c6bfc745dc9d533ea76bceec2823fccb9fe476aa
[gnulib.git] / ChangeLog
1 2011-09-13  Bruno Haible  <bruno@clisp.org>
2
3         pathmax: Support for native Windows.
4         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
5
6 2011-09-12  Bruno Haible  <bruno@clisp.org>
7
8         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9         * lib/dirent.in.h (struct dirent): New type.
10         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
11         DT_WHT): New macros.
12         (DIR): New type.
13         (opendir, closedir): Declare only if the module 'opendir' is enabled.
14         (readdir, rewinddir): New declarations.
15         * lib/dirent-private.h: New file.
16         * lib/opendir.c: New file.
17         * lib/readdir.c: New file.
18         * lib/rewinddir.c: New file.
19         * lib/closedir.c: New file.
20         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
21         * m4/opendir.m4: New file.
22         * m4/readdir.m4: New file.
23         * m4/rewinddir.m4: New file.
24         * m4/closedir.m4: New file.
25         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
26         REPLACE_CLOSEDIR here.
27         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
28         readdir, rewinddir are declared.
29         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
30         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
31         HAVE_REWINDDIR, HAVE_CLOSEDIR.
32         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
33         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
34         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
35         * modules/opendir: New file.
36         * modules/readdir: New file.
37         * modules/rewinddir: New file.
38         * modules/closedir: New file.
39         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
40         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
41         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
42         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
43         * NEWS: Mention the 'fchdir' change.
44
45 2011-09-11  Bruno Haible  <bruno@clisp.org>
46
47         asm-underscore.m4: Support for MSVC.
48         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
49         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
50
51 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
52
53         Doc about crypt functions.
54         * doc/posix-functions/crypt.texi: Expand range of glibc versions
55         needing for _GNU_SOURCE to get crypt.
56         * doc/posix-functions/encrypt.texi: Likewise.
57         * doc/posix-functions/setkey.texi: Likewise.
58
59 2011-09-11  Bruno Haible  <bruno@clisp.org>
60
61         doc: Update regarding MSVC 9.
62         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
63         tested".
64         * doc/posix-functions/*.texi: Update with info about MSVC 9.
65         * doc/posix-headers/*.texi: Likewise.
66         * doc/pastposix-functions/*.texi: Likewise.
67         * doc/glibc-functions/*.texi: Likewise.
68         * doc/glibc-headers/*.texi: Likewise.
69
70 2011-09-11  Bruno Haible  <bruno@clisp.org>
71
72         unistd et al.: Don't assume <unistd.h> exists.
73         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
74         does not exist.
75         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
76         exist. But include <stdlib.h>.
77         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
78         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
79         symlink() does not exist.
80         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
81         include <io.h> instead.
82         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
83         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
84         include <direct.h> instead.
85         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
86         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
87         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
88         <io.h> instead.
89         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
90         correctly if the system does not have hard links.
91         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
92         <direct.h> instead.
93         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
94         it when looking for function declarations.
95         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
96         <direct.h> and <io.h> instead.
97         * doc/posix-headers/unistd.texi: More details about MSVC problem.
98
99 2011-09-11  Bruno Haible  <bruno@clisp.org>
100
101         strcase: Support for MSVC.
102         * modules/strcase (Status, Notice): Remove obsoletion mark.
103         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
104         * doc/posix-functions/strncasecmp.texi: Likewise.
105
106         strings: Don't assume <strings.h> exists.
107         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
108         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
109         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
110         * doc/posix-headers/strings.texi: Mention the MSVC problem.
111
112 2011-09-11  Bruno Haible  <bruno@clisp.org>
113
114         dirent: Don't assume <dirent.h> exists.
115         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
116         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
117         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
118         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
119
120 2011-09-11  Bruno Haible  <bruno@clisp.org>
121
122         Fix wint_t on MSVC.
123         * lib/wchar.in.h (wint_t): On MSVC, override it.
124         * lib/wctype.in.h (wint_t): Likewise.
125         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
126         MSVC.
127         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
128         * doc/posix-headers/wctype.texi: Likewise.
129
130 2011-09-11  Bruno Haible  <bruno@clisp.org>
131
132         sys_types: Fix typo.
133         * lib/sys_types.in.h: Fix typo in comment.
134         Reported by Paul Eggert.
135
136         Support for MSVC compiler: Ensure size_t gets defined.
137         * modules/strings (Depends-on): Add 'sys_types'.
138         * modules/sys_uio (Depends-on): Likewise.
139         * lib/sys_uio.in.h: Update comment.
140
141         C++ tests for module 'sys_types'.
142         * modules/sys_types-c++-tests: New file.
143         * tests/test-sys_types-c++.cc: New file.
144
145         Tests for module 'sys_types'.
146         * modules/sys_types-tests: New file.
147         * tests/test-sys_types.c: New file.
148
149         New module 'sys_types'.
150         * lib/sys_types.in.h: New file.
151         * m4/sys_types_h.m4: New file.
152         * modules/sys_types: New file.
153         * doc/posix-headers/sys_types.texi: Mention the new module and the
154         size_t problem on MSVC 9.
155
156 2011-09-11  Bruno Haible  <bruno@clisp.org>
157
158         Support for MSVC compiler: Avoid division by a literal 0.
159         * lib/math.in.h (NAN): Define through a function call also on MSVC.
160         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
161         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
162         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
163         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
164         * tests/infinity.h: New file.
165         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
166         on MSVC.
167         * tests/test-ceilf1.c: Include infinity.h.
168         (main): Use Infinityf.
169         * tests/test-ceil1.c: Include infinity.h.
170         (main): Use Infinityd.
171         * tests/test-ceill.c: Include infinity.h.
172         (main): Use Infinityl.
173         * tests/test-dprintf-posix.c: Include infinity.h.
174         (test_function): Use Infinityd.
175         * tests/test-floorf1.c: Include infinity.h.
176         (main): Use Infinityf.
177         * tests/test-floor1.c: Include infinity.h.
178         (main): Use Infinityd.
179         * tests/test-floorl.c: Include infinity.h.
180         (main): Use Infinityl.
181         * tests/test-fprintf-posix.c: Include infinity.h.
182         (test_function): Use Infinityd.
183         * tests/test-frexp.c: Include infinity.h.
184         (main): Use Infinityd.
185         * tests/test-frexpl.c: Include infinity.h.
186         (main): Use Infinityl.
187         * tests/test-isfinite.c: Include infinity.h.
188         (test_isfinitef): Use Infinityf.
189         (test_isfinited): Use Infinityd.
190         (test_isfinitel): Use Infinityl.
191         * tests/test-isinf.c: Include infinity.h.
192         (test_isinff): Use Infinityf.
193         (test_isinfd): Use Infinityd.
194         (test_isinfl): Use Infinityl.
195         * tests/test-isnan.c: Include infinity.h.
196         (test_float): Use Infinityf.
197         (test_double): Use Infinityd.
198         (test_long_double): Use Infinityl.
199         * tests/test-isnanf.h: Include infinity.h.
200         (main): Use Infinityf.
201         * tests/test-isnand.h: Include infinity.h.
202         (main): Use Infinityd.
203         * tests/test-isnanl.h: Include infinity.h.
204         (main): Use Infinityl.
205         * tests/test-ldexpl.c: Include infinity.h.
206         (main): Use Infinityl.
207         * tests/test-printf-posix.h: Include infinity.h.
208         (test_function): Use Infinityd.
209         * tests/test-roundf1.c: Include infinity.h.
210         (main): Use Infinityf.
211         * tests/test-round1.c: Include infinity.h.
212         (main): Use Infinityd.
213         * tests/test-roundl.c: Include infinity.h.
214         (main): Use Infinityl.
215         * tests/test-signbit.c: Include infinity.h.
216         (test_signbitf): Use Infinityf.
217         (test_signbitd): Use Infinityd.
218         (test_signbitl): Use Infinityl.
219         * tests/test-snprintf-posix.h: Include infinity.h.
220         (test_function): Use Infinityd, Infinityl.
221         * tests/test-sprintf-posix.h: Include infinity.h.
222         (test_function): Use Infinityd, Infinityl.
223         * tests/test-truncf1.c: Include infinity.h.
224         (main): Use Infinityf.
225         * tests/test-trunc1.c: Include infinity.h.
226         (main): Use Infinityd.
227         * tests/test-truncl.c: Include infinity.h.
228         (main): Use Infinityl.
229         * tests/test-vasnprintf-posix.c: Include infinity.h.
230         (test_function): Use Infinityd, Infinityl.
231         * tests/test-vasprintf-posix.c: Include infinity.h.
232         (test_function): Use Infinityd, Infinityl.
233         * modules/ceilf-tests (Files): Add tests/infinity.h.
234         * modules/ceil-tests (Files): Likewise.
235         * modules/ceill-tests (Files): Likewise.
236         * modules/dprintf-posix-tests (Files): Likewise.
237         * modules/floorf-tests (Files): Likewise.
238         * modules/floor-tests (Files): Likewise.
239         * modules/floorl-tests (Files): Likewise.
240         * modules/fprintf-posix-tests (Files): Likewise.
241         * modules/frexp-tests (Files): Likewise.
242         * modules/frexp-nolibm-tests (Files): Likewise.
243         * modules/frexpl-tests (Files): Likewise.
244         * modules/frexpl-nolibm-tests (Files): Likewise.
245         * modules/isfinite-tests (Files): Likewise.
246         * modules/isinf-tests (Files): Likewise.
247         * modules/isnan-tests (Files): Likewise.
248         * modules/isnanf-tests (Files): Likewise.
249         * modules/isnanf-nolibm-tests (Files): Likewise.
250         * modules/isnand-tests (Files): Likewise.
251         * modules/isnand-nolibm-tests (Files): Likewise.
252         * modules/isnanl-tests (Files): Likewise.
253         * modules/isnanl-nolibm-tests (Files): Likewise.
254         * modules/ldexpl-tests (Files): Likewise.
255         * modules/printf-posix-tests (Files): Likewise.
256         * modules/roundf-tests (Files): Likewise.
257         * modules/round-tests (Files): Likewise.
258         * modules/roundl-tests (Files): Likewise.
259         * modules/signbit-tests (Files): Likewise.
260         * modules/snprintf-posix-tests (Files): Likewise.
261         * modules/sprintf-posix-tests (Files): Likewise.
262         * modules/truncf-tests (Files): Likewise.
263         * modules/trunc-tests (Files): Likewise.
264         * modules/truncl-tests (Files): Likewise.
265         * modules/vasnprintf-posix-tests (Files): Likewise.
266         * modules/vasprintf-posix-tests (Files): Likewise.
267         * modules/vdprintf-posix-tests (Files): Likewise.
268         * modules/vfprintf-posix-tests (Files): Likewise.
269         * modules/vprintf-posix-tests (Files): Likewise.
270         * modules/vsnprintf-posix-tests (Files): Likewise.
271         * modules/vsprintf-posix-tests (Files): Likewise.
272         * modules/xprintf-posix-tests (Files): Likewise.
273
274 2011-09-11  Bruno Haible  <bruno@clisp.org>
275
276         Ensure pid_t gets defined.
277         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
278         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
279         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
280         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
281         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
282         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
283         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
284         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
285         * tests/test-fcntl-h.c: Check that pid_t is defined.
286         * tests/test-sched.c: Likewise.
287         * tests/test-termios.c: Likewise.
288         * tests/test-time.c: Likewise.
289         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
290         * doc/posix-headers/signal.texi: Likewise.
291         * doc/posix-headers/sys_types.texi: Likewise.
292         * doc/posix-headers/time.texi: Likewise.
293
294 2011-09-11  Bruno Haible  <bruno@clisp.org>
295
296         acl: Fix compilation on Solaris 10 (older version).
297         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
298         of ACE_EVERYONE.
299         * lib/set-mode-acl.c (qset_acl): Likewise.
300         Reported by Christian Jullien <eligis@orange.fr>.
301
302 2011-09-10  Bruno Haible  <bruno@clisp.org>
303
304         iconv, unsetenv: Add support for MSVC compiler.
305         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
306         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
307
308 2011-09-10  Bruno Haible  <bruno@clisp.org>
309
310         *printf: Add support for MSVC compiler.
311         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
312         handles the exception caused by the %n directive. When cross-compiling,
313         guess no on native Windows.
314         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
315         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
316         emulate it through vsnprintf.
317         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
318         * doc/posix-functions/dprintf.texi: Update documentation regarding
319         MSVC 9.
320         * doc/posix-functions/fprintf.texi: Likewise.
321         * doc/posix-functions/printf.texi: Likewise.
322         * doc/posix-functions/snprintf.texi: Likewise.
323         * doc/posix-functions/sprintf.texi: Likewise.
324         * doc/posix-functions/swprintf.texi: Likewise.
325         * doc/posix-functions/vdprintf.texi: Likewise.
326         * doc/posix-functions/vfprintf.texi: Likewise.
327         * doc/posix-functions/vprintf.texi: Likewise.
328         * doc/posix-functions/vsnprintf.texi: Likewise.
329         * doc/posix-functions/vsprintf.texi: Likewise.
330         * doc/glibc-functions/asprintf.texi: Likewise.
331         * doc/glibc-functions/obstack_printf.texi: Likewise.
332         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
333         * doc/glibc-functions/vasprintf.texi: Likewise.
334
335 2011-09-10  Bruno Haible  <bruno@clisp.org>
336
337         nocrash: Add support for native Windows.
338         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
339
340 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
341             Bruno Haible  <bruno@clisp.org>
342
343         absolute-header, include-next: Add support for MSVC compiler.
344         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
345         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
346         directory separator in #line directives.
347         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
348         recognize also backslash as directory separator in #line directives.
349
350 2011-09-08  Jim Meyering  <meyering@redhat.com>
351
352         maint.mk: mark the post-release commit log with "maint: " prefix
353         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
354         one-line commit-log summary.
355
356 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
357             Bruno Haible  <bruno@clisp.org>
358
359         Doc about crypt functions.
360         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
361         systems.
362         * doc/posix-functions/encrypt.texi: Likewise.
363         * doc/posix-functions/setkey.texi: Likewise.
364
365 2011-09-08  Simon Josefsson  <simon@josefsson.org>
366
367         * lib/gc.h: Fix copyright header.
368
369 2011-09-07  Bruno Haible  <bruno@clisp.org>
370
371         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
372         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
373         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
374
375 2011-09-07  Bruno Haible  <bruno@clisp.org>
376
377         openat: Work around compilation error with OSF/1 5.1 DTK cc.
378         * lib/fopen.c: Use different syntax for include of <stdio.h>.
379         * lib/freopen.c: Likewise.
380         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
381         * lib/lstat.c: Likewise.
382         * lib/stat.c: Likewise.
383         * lib/open.c: Use different syntax for include of <fcntl.h>.
384         * lib/openat.c: Include fcntl.h again, explicitly.
385
386 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
387
388         parse-datetime: document the newly accepted format
389         * doc/parse-datetime.texi (Combined date and time of day items):
390         New section.
391
392 2011-09-06  Bruno Haible  <bruno@clisp.org>
393
394         acl: Fix a test failure on newer Solaris 10 with ZFS.
395         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
396         ENOSYS as no ACL.
397         Reported by Jim Meyering.
398
399 2011-09-06  Bruno Haible  <bruno@clisp.org>
400
401         acl: Update for AIX >= 5.3 with NFS.
402         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
403         ENOSYS as no ACL.
404
405         acl: Fix a test failure on AIX >= 5.3 with NFS.
406         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
407         as no ACL.
408
409 2011-09-06  Bruno Haible  <bruno@clisp.org>
410
411         acl: Fix a test failure on IRIX 6.5 with NFS.
412         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
413         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
414         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
415         * lib/copy-acl.c (qcopy_acl): Likewise.
416
417 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
418
419         openat: port to AIX 7.1 with large files
420         AIX 7.1 does a "#define openat open64at" if large files are in use,
421         so we can't simply #undef openat.  Use the orig_openat trick (similar
422         to orig_open in lib/open.c) to work around the problem.  Problem
423         reported by Kevin Brott for GNU tar, in the thread containing
424         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
425         * lib/openat.c (__need_system_fcntl_h): Define first.
426         Include <fcntl.h> and <sys/types.h> before undefining.
427         (orig_openat) [HAVE_OPENAT]: New inline function.
428         (openat) [HAVE_OPENAT]: Do not undef.
429         (rpl_openat): Use orig_openat, not openat.
430
431 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
432             Bruno Haible  <bruno@clisp.org>
433
434         acl: Avoid errors on NonStop Kernel.
435         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
436         ENOTSUP errors.
437
438 2011-09-05  Bruno Haible  <bruno@clisp.org>
439
440         acl: Clean up Solaris code.
441         * lib/acl-internal.h: Remove no-op #if.
442         * lib/file-has-acl.c: Likewise.
443         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
444         * lib/copy-acl.c (qcopy_acl): Likewise.
445
446 2011-09-05  Bruno Haible  <bruno@clisp.org>
447
448         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
449         binaries built on the original Solaris 10.
450         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
451         trivial.
452
453 2011-09-05  Bruno Haible  <bruno@clisp.org>
454
455         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
456         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
457         10.
458         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
459         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
460         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
461         instead of acl_get, facl_get, acl_set, facl_set.
462
463 2011-09-05  Bruno Haible  <bruno@clisp.org>
464
465         copy-file: Try unit tests on more file systems.
466         * tests/test-copy-file-1.sh: New file.
467         * tests/test-copy-file-2.sh: New file.
468         * modules/copy-file-tests (Files): Add them.
469         (Makefile.am): Add them to TESTS.
470
471         acl: Try unit tests on more file systems.
472         * tests/test-file-has-acl-1.sh: New file.
473         * tests/test-file-has-acl-2.sh: New file.
474         * tests/test-set-mode-acl-1.sh: New file.
475         * tests/test-set-mode-acl-2.sh: New file.
476         * tests/test-copy-acl-1.sh: New file.
477         * tests/test-copy-acl-2.sh: New file.
478         * modules/acl-tests (Files): Add them.
479         (Makefile.am): Add them to TESTS.
480
481 2011-09-04  Bruno Haible  <bruno@clisp.org>
482
483         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
484         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
485         10.
486         (OLD_ALLOW, OLD_DENY): New macros.
487         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
488         ACE_ACCESS_ALLOWED_ACE_TYPE.
489         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
490         ACE_ACCESS_DENIED_ACE_TYPE.
491         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
492         (NEW_ACE_EXECUTE): Fix value.
493         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
494         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
495         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
496         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
497         NEW_ACE_SYNCHRONIZE): New macros.
498         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
499         instead of acl_fromtext, acl_set, facl_set.
500         Fixes a coreutils/tests/cp/perm failure.
501
502 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
503
504         openat: test for fstatat (..., 0) bug
505         Further testing with tar suggests that fstatat (..., 0)
506         does not work in general, on AIX 7.1; see
507         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
508         So, give up entirely on AIX 7.1's fstatat, and fall back on our
509         replacement fstatat (which is what older AIX releases were using
510         anyway).
511         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
512         use is now changed to orig_fstatat.  This was probably the right
513         thing to do anyway.
514         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
515         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
516         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
517         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
518         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
519         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
520         if the bug is found.
521
522         openat: test for fstatat (AT_FDCWD, ..., 0) bug
523         This tests for another fstatat bug on AIX 7.1:
524         fstatat (AT_FDCWD, ..., 0) does not work.  See
525         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
526         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
527         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
528         (rpl_fstatat): Adjust so that it works around either (or both)
529         bugs if present.
530         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
531
532 2011-09-03  Karl Berry  <karl@gnu.org>
533
534         * doc/regex.texi (Character Class Operators): Avoid literal ":"
535         in index entries.
536
537 2011-09-02  Bruno Haible  <bruno@clisp.org>
538
539         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
540         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
541         values of AR, ARFLAGS, RANLIB.
542         Reported by John W. Eaton <jwe@gnu.org> for Octave.
543
544 2011-09-02  Bruno Haible  <bruno@clisp.org>
545
546         Find 'ar' program that fits with --host argument.
547         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
548
549 2011-09-02  Bruno Haible  <bruno@clisp.org>
550
551         tests: init.sh: Support any non-GNU diff.
552         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
553         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
554         Solaris 8.
555
556 2011-09-02  Bruno Haible  <bruno@clisp.org>
557
558         tests: init.sh: work also with any non-GNU diff that supports -u
559         * tests/init.sh: Relax check for diff -u support.
560         Rather than checking for GNU diff via --version, simply check
561         for support for -u itself.  Useful at least on OpenBSD 4.9,
562         AIX 7.1, IRIX 6.5, and Solaris 10.
563
564 2011-09-01  Bruno Haible  <bruno@clisp.org>
565
566         strtoimax, strtoumax: Document problem on HP-UX 11.
567         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
568         * doc/posix-functions/strtoumax.texi: Likewise.
569
570 2011-09-01  Bruno Haible  <bruno@clisp.org>
571
572         strtoumax: Avoid link error on OSF/1 with DTK cc.
573         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
574         defined as a function.
575         * modules/strtoumax (Depends-on, configure.ac): Test only whether
576         strtoumax is defined, not whether it is declared.
577
578 2011-09-01  Bruno Haible  <bruno@clisp.org>
579
580         strtoimax: Avoid link error on OSF/1 with DTK cc.
581         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
582         defined as a function.
583         * modules/strtoimax (Depends-on, configure.ac): Test only whether
584         strtoimax is defined, not whether it is declared.
585
586 2011-09-01  Bruno Haible  <bruno@clisp.org>
587
588         imaxdiv: Avoid link error on OSF/1 with DTK cc.
589         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
590         as a function.
591         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
592         whether it is declared.
593
594 2011-09-01  Bruno Haible  <bruno@clisp.org>
595
596         imaxabs: Avoid link error on OSF/1 with DTK cc.
597         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
598         as a function.
599         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
600         whether it is declared.
601
602 2011-09-01  Bruno Haible  <bruno@clisp.org>
603
604         Tests for module 'strtoumax'.
605         * modules/strtoumax-tests: New file.
606         * tests/test-strtoumax.c: New file.
607
608         Tests for module 'strtoimax'.
609         * modules/strtoimax-tests: New file.
610         * tests/test-strtoimax.c: New file.
611
612         Tests for module 'imaxdiv'.
613         * modules/imaxdiv-tests: New file.
614         * tests/test-imaxdiv.c: New file.
615
616         Tests for module 'imaxabs'.
617         * modules/imaxabs-tests: New file.
618         * tests/test-imaxabs.c: New file.
619
620 2011-09-01  Bruno Haible  <bruno@clisp.org>
621
622         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
623         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
624         pthread_create.
625
626 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
627
628         openat: work around AIX 7.1 fstatat issue
629         This should fix the problem that was not properly fixed
630         in the previous change, dated 2011-08-30.
631         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
632         __need_system_stat_h defined.
633         (orig_fstatat) [HAVE_FSTATAT]: New function.
634         (rpl_fstatat): Go back to the old way of doing things,
635         except call orig_fstatat instead of fstatat.
636         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
637         Remove unnecessary check whether fstatat fills in st_size etc.
638
639 2011-09-01  Bruno Haible  <bruno@clisp.org>
640
641         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
642         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
643         just include the system's header.
644
645 2011-08-31  Jim Meyering  <meyering@redhat.com>
646
647         tests: avoid spurious assertion failure in test-float.c on ppc64
648         * tests/test-float.c (test_long_double): Comment out an assertion,
649         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
650         with gcc-4.4.4.
651
652         maint: indent with spaces, not TABs
653         I need to get in the habit of running gnulib's "make check".
654         Both of these would have been caught.
655         * m4/largefile.m4: Indent with spaces, not TABs.
656         * lib/parse-datetime.y (iso_8601_time): Likewise.
657         Spotted by Pádraig Brady.
658
659         test-parse-datetime.c: accommodate a relatively strict gcc warning
660         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
661         to avoid a warning from gcc's -Werror=missing-declarations.
662         Insert a few spaces-before-funcall-parenthesis.
663
664 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
665
666         parse-datetime: accept ISO 8601 date and time rep with "T" separator
667         The parser now accepts ISO 8601 date-time strings with "T" as the
668         separator.  It has long parsed dates like "2004-02-29 16:21:42"
669         with a space between the date and time strings.  Now it also parses
670         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
671         variants like "2004-02-29T16:21:42.333-07:00"
672         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
673         of day representation using the 'T' separator character.
674         * doc/parse-datetime.texi (General date syntax): replace use of
675         deprecated --iso-8601 option with --rfc-3339 in example of date
676         command output formats that can be parsed.
677         * tests/test-parse-datetime.c (tm_diff): New function, taken from
678         lib/parse-datetime.y.
679         (gmt_offset): New function.
680         (main): Add additional test cases to validate ISO8601 extended
681         date and time of day parsing.
682
683 2011-08-31  Bruno Haible  <bruno@clisp.org>
684
685         freopen: Documentation.
686         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
687         name.
688         Reported by Claudio Bley <claudio.bley@gmail.com>.
689
690 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
691
692         freopen: Don't crash if the filename argument is NULL.
693         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
694         NULL.
695
696 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
697
698         openat: work around AIX 7.1 fstatat bug
699         Problem reported by Kevin Brott for GNU tar, in the thread containing
700         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
701         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
702         FSTATAT_ST_SIZE_ETC_BROKEN.
703         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
704         rpl_fstatat.
705         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
706         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
707         AC_CHECK_FUNCS_ONCE for fstatat.
708         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
709         fchmodat, mkdirat, openat and unlinkat.
710
711 2011-08-30  Bruno Haible  <bruno@clisp.org>
712
713         Avoid endless recursions if config.h includes some header files.
714         * lib/fopen.c (__need_FILE): Define already before including config.h.
715         * lib/freopen.c (__need_FILE): Likewise.
716         * lib/open.c (__need_system_fcntl_h): Likewise.
717         * lib/stat.c (__need_system_sys_stat_h): Likewise.
718         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
719         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
720
721 2011-08-25  Karl Berry  <karl@gnu.org>
722
723         * config/srclist.txt (ylwrap): new try.
724         * build-aux/ylwrap: new file.
725
726 2011-08-23  Bruno Haible  <bruno@clisp.org>
727
728         tmpdir: Use a good default directory on native Windows.
729         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
730         (P_tmpdir): Default to _P_tmpdir on native Windows.
731         (path_search): On native Windows, try the value returned by GetTempPath
732         before trying P_tmpdir.
733         * modules/tmpdir (Depends-on): Add pathmax.
734         Suggested by John Darrington <john@darrington.wattle.id.au>.
735
736 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
737
738         doc: fix typo in README-release
739         * top/README-release: Capitalize first word of a sentence.
740
741 2011-08-19  Jim Meyering  <meyering@redhat.com>
742
743         fts: do not exhaust memory when processing million-entry directories
744         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
745         directory would require about 256*N bytes of memory.  Thus, it was
746         easy to construct a directory too large to be processed by any of
747         those tools.  With this change, fts' maximum memory utilization is
748         now limited to around 30MB.
749         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
750         (fts_read): When we've processed the final entry (i.e., when
751         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
752         using the parent entry to read any remaining entries.  Dispatch
753         depending on what fts_build returns:
754         - NULL+stop, aka failure: stop
755         - NULL otherwise: move up in the dir hierarchy
756         - non-NULL: handle this new entry
757         (fts_build): Declare and use new local, continue_readdir.
758         Prepare to be called from fts_read, when the entries
759         from a partially-read directory have just been exhausted.
760         In that case, we'll skip the opendir and instead use the parent's
761         fts_dirp and derive dir_fd from that.
762         Finally, in the readdir loop, if we read max_entries entries,
763         exit the loop ensuring *not* to call closedir.  This is required
764         so that fts_dirp can be reused on a subsequent call.
765         Prompted by Ben England's report of memory exhaustion in find
766         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
767
768         maint: fts: move decl of `dp' down into while loop; split a long line
769         * lib/fts.c (fts_build): No semantic change.
770
771         fts: add/use new struct member, fts_dirp
772         We are about to use this to manage any directory with
773         too many entries to read all of them into memory at once.
774         To do that, we'll need to save the DIR* pointer in each
775         affected FTSENT struct.
776         * lib/fts_.h: Include <dirent.h>.
777         (struct FTSENT) [fts_dirp]: New member.
778         * lib/fts.c (closedir_and_clear): Define.
779         Use it in place of closedir so that we are sure to
780         clear the new fts_dirp member when done with it.
781         (fts_alloc): Initialize the new member.
782         (fts_lfree): Free, if needed.
783
784         maint: fts: give __opendir2 a new parameter and rename
785         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
786         than surreptitiously using sole caller's "dir_fd".
787         (fts_opendir): Rename from __opendir2.
788
789         maint: fts.c: remove __opendir2's now-unused parameter, oflag
790         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
791
792         maint: fts.c: correct off-by-one indentation
793         * lib/fts.c (fts_build): Correct indentation, change style
794         of a couple of block comments, and bracing style.
795
796         maint: fts.c: move __opendir2 #define "up" out of function body
797         * lib/fts.c (__opendir2): Move "up".  No semantic change.
798
799         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
800         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
801         out for a long time and besides was useful only on BSD systems.
802
803 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
804
805         regex: port to Stratus OpenVOS
806         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
807         define to empty, rather than attempting nonportable optimizations.
808         Problem reported by Paul Green in:
809         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
810         and fix suggested by Eric Blake in:
811         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
812
813 2011-08-17  Eric Blake  <eblake@redhat.com>
814
815         getcwd: fix test failures on mingw
816         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
817         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
818         test if long directory cannot be created, and allow mingw errno.
819
820         getcwd-lgpl: fix m4 to match relaxed test for BSD
821         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
822         (gl_FUNC_GETCWD_SIGNATURE): New macro.
823         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
824         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
825         signature problem.
826
827         getcwd: fix compilation on mingw64
828         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
829         getcwd.
830         Reported by Marc-André Lureau.
831
832         pipe2: silence compiler warning
833         * lib/pipe2.c (pipe2): Hide label if it is not used.
834
835 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
836
837         relocatable-prog: fix link error
838         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
839         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
840         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
841         into modules/relocatable-lib without noticing that
842         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
843         also needs to build relocatable.c.
844
845 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
846
847         getaddrinfo: fix sh typo in gai_strerrorA decl checking
848         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
849         shell code: it contained a 'break' that was not in a loop.
850         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
851         via a shell-language loop; this may have been true in old Autoconf
852         versions, but it's not true in Autoconf 2.68.  I found this bug
853         when testing coreutils git on Solaris 8, whose shell complains
854         about the syntax error.
855
856 2011-08-12  Simon Josefsson  <simon@josefsson.org>
857
858         * lib/base64.c: Fix comment to reference RFC 4648.
859         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
860         <gvtulder@gmail.com>.
861
862 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
863
864         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
865
866         po/Makefile.in.in: fix make -q problem
867         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
868         rule, since there's no file named 'check-macro-version' and its
869         use as a file breaks make -q.
870         (all): Don't depend on check-macro-version.
871         (CHECK_MACRO_VERSION): New macro.
872         (stamp-po): Use it.
873
874         configmake: fix make -q problem
875         * modules/configmake (configmake.h): Update configmake.h's time stamp
876         even if the file does not change.  Otherwise, 'make -q' fails.
877         Problem reported by Simon Josefsson in
878         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
879
880 2011-08-11  Jim Meyering  <meyering@redhat.com>
881
882         git-version-gen: correct the advice in a comment
883         * build-aux/git-version-gen: Correct comment.
884         Don't recommend to list .tarball-version in .gitignore.
885
886 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
887
888         base64: fix off-by-one buffer size bug
889         Problem and (trivial) fix reported by Gijs van Tulder in
890         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
891         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
892         * tests/test-base64.c (main): Catch the bug.
893
894 2011-08-10  Eric Blake  <eblake@redhat.com>
895
896         closein: correct comments
897         * lib/closein.c (close_stdin): Improve comments.
898
899 2011-08-09  Bruno Haible  <bruno@clisp.org>
900
901         More tests for 'fseeko'.
902         * tests/test-fseeko3.c: New file, from Eric Blake.
903         * tests/test-fseeko3.sh: New file.
904         * modules/fseeko-tests (Files): Add them.
905         (TESTS): Add test-fseeko3.sh.
906         (check_PROGRAMS): Add test-fseeko3.
907
908 2011-08-09  Eric Blake  <eblake@redhat.com>
909
910         fseeko: remove unneeded hack
911         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
912
913         fseeko: fix bug on glibc
914         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
915         Reported by John W. Eaton.
916
917 2011-08-08  Bruno Haible  <bruno@clisp.org>
918
919         unictype/base: Fix interoperability with preinstalled libunistring.
920         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
921         Reported by Simon Josefsson.
922
923 2011-08-08  Bruno Haible  <bruno@clisp.org>
924
925         iswblank: Detect declaration correctly.
926         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
927         AC_CHECK_DECLS invocation.
928
929 2011-08-08  Bruno Haible  <bruno@clisp.org>
930
931         tcgetsid: Detect declaration correctly.
932         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
933         AC_CHECK_DECLS invocation.
934         Reported by Simon Josefsson.
935
936 2011-08-08  Eric Blake  <eblake@redhat.com>
937
938         largefile: fix typo that regressed large file support
939         * modules/largefile (configure.ac-early): Fix section name.
940
941 2011-08-06  Karl Berry  <karl@gnu.org>
942
943         * MODULES.html.sh (func_all_files): _Noreturn is no longer
944         a separate module.
945
946 2011-08-05  Simon Josefsson  <simon@josefsson.org>
947
948         openat: Fix warnings and commens when building unlinkat.c on Hurd.
949         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
950         get prototype for free.
951
952 2011-08-04  Bruno Haible  <bruno@clisp.org>
953
954         Tests for module 'pathmax'.
955         * modules/pathmax-tests: New file.
956         * tests/test-pathmax.c: New file.
957
958         canonicalize-lgpl: Support larger filenames on the Hurd.
959         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
960         Reported by Paul Eggert.
961
962         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
963         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
964         * lib/chdir-long.h: Include pathmax.h.
965         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
966         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
967         (PATH_MAX): Remove code that is done by pathmax.h.
968         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
969         * lib/tmpfile.c: Add a comment.
970         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
971         * modules/chdir-long (Depends-on): Add pathmax.
972         * modules/getcwd (Depends-on): Add pathmax.
973         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
974         is not defined.
975         * doc/posix-headers/limits.texi: Mention the pathmax module.
976         * NEWS: Mention the change.
977
978 2011-08-02  Bruno Haible  <bruno@clisp.org>
979
980         pthread_sigmask: Actually use results of gl_THREADLIB.
981         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
982         gl_THREADLIB, not gl_[]THREADLIB.
983         Reported by Eric Blake.
984
985 2011-08-02  Jim Meyering  <meyering@redhat.com>
986
987         maint.mk: relax the default _gl_TS_function_match regexp
988         * top/maint.mk (_gl_TS_function_match): Don't require at least one
989         space between function name and "(" in an "extern" declaration.
990         That would fail to match a decl with no space there: extern void foo();
991
992 2011-07-31  Iain Nicol  <iain@thenicols.net>
993
994         git-version-gen: document that EXTRA_DIST must include .version
995         * build-aux/git-version-gen: In the how-to-use comment, document
996         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
997         will fail when run from an unpacked distribution tarball.
998
999 2011-08-01  Bruno Haible  <bruno@clisp.org>
1000
1001         wctype-h: Fix last change.
1002         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
1003         REPLACE_TOWLOWER to 0.
1004         Reported by Sam Steingold <sds@gnu.org>.
1005
1006 2011-07-31  Bruno Haible  <bruno@clisp.org>
1007
1008         frexpl: Update autoconf test.
1009         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
1010         according to changes of 2011-06-20.
1011
1012 2011-07-31  Bruno Haible  <bruno@clisp.org>
1013
1014         sys_utsname: Add support for Minix.
1015         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
1016         <sys/utsname.h>.
1017         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1018         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
1019
1020 2011-07-31  Bruno Haible  <bruno@clisp.org>
1021
1022         strings: Add support for Minix.
1023         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
1024         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1025         * doc/posix-headers/strings.texi: Document the Minix problem.
1026
1027 2011-07-31  Bruno Haible  <bruno@clisp.org>
1028
1029         wctype-h: Add support for Minix.
1030         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
1031         REPLACE_TOWLOWER.
1032         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
1033         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
1034         REPLACE_ISWCNTRL.
1035
1036 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
1037
1038         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
1039         This is a performance improvement for 64-bit hosts: it causes the
1040         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
1041
1042 2011-07-31  Bruno Haible  <bruno@clisp.org>
1043
1044         stdioext: Add support for Minix.
1045         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
1046         * lib/fpurge.c (fpurge): Likewise.
1047         * lib/freadahead.c (freadahead): Likewise.
1048         * lib/freadable.c (freadable): Likewise.
1049         * lib/freading.c (freading): Likewise.
1050         * lib/freadptr.c (freadptr): Likewise.
1051         * lib/freadseek.c (freadptrinc): Likewise.
1052         * lib/fseeko.c (rpl_fseeko): Likewise.
1053         * lib/fseterr.c (fseterr): Likewise.
1054         * lib/fwritable.c (fwritable): Likewise.
1055         * lib/fwriting.c (fwriting): Likewise.
1056         * lib/fflush.c (clear_ungetc_buffer): Update comment.
1057         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
1058
1059 2011-07-31  Bruno Haible  <bruno@clisp.org>
1060
1061         errno: Port to Minix.
1062         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
1063         ECONNABORTED are defined.
1064         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
1065         GNULIB_defined_ECONNABORTED): New macros.
1066         * lib/strerror-override.h (strerror_override): Test also
1067         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
1068         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
1069         ECONNABORTED.
1070         * doc/posix-headers/errno.texi: Mention the Minix problem.
1071
1072 2011-07-31  Bruno Haible  <bruno@clisp.org>
1073
1074         Work around declaration collisions on Minix.
1075         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
1076         defined, set REPLACE_MBSINIT.
1077         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
1078         defined, set REPLACE_MBRTOWC.
1079         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
1080         set REPLACE_MBRLEN.
1081         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
1082         defined, set REPLACE_MBSRTOWCS.
1083         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
1084         defined, set REPLACE_WCRTOMB.
1085         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
1086         defined, set REPLACE_WCSRTOMBS.
1087
1088 2011-07-31  Bruno Haible  <bruno@clisp.org>
1089
1090         Add support for Minix with ACK compiler.
1091         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
1092         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
1093         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
1094
1095 2011-07-31  Bruno Haible  <bruno@clisp.org>
1096
1097         Documentation about Minix.
1098         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
1099         * doc/glibc-headers/*.texi: Likewise.
1100         * doc/posix-functions/*.texi: Likewise.
1101         * doc/glibc-functions/*.texi: Likewise.
1102
1103 2011-07-31  Bruno Haible  <bruno@clisp.org>
1104
1105         snippet/warn-on-use: Fix indentation.
1106         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
1107
1108 2011-07-25  Jim Meyering  <meyering@redhat.com>
1109
1110         tests: test-update-copyright.sh: remove unnecessary "rm" commands
1111         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
1112         commands.
1113
1114 2011-07-27  Jim Meyering  <meyering@redhat.com>
1115
1116         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
1117         * top/maint.mk (gl_extract_significant_defines_): Now that
1118         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
1119         gnulib/lib/signal.in.h, and now that we recommend to
1120         define-if-undefined those two symbols in application code,
1121         we must filter them out of the "significant" list.
1122         This avoids a "make syntax-check" failure in coreutils.
1123
1124 2011-07-26  Eric Blake  <eblake@redhat.com>
1125
1126         warnings: add comments about previous patch
1127         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
1128         * m4/include_next.m4: Likewise.
1129         * m4/warn-on-use.m4: Likewise.
1130         * m4/warnings.m4: Likewise, and simplify use.
1131         Suggested by Stefano Lattarini.
1132
1133         include-next, warnings: support older autoconf
1134         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
1135         AS_VAR_PUSHDEF in a way that works with older autoconf.
1136         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
1137         Reported by Daniel P. Berrange.
1138
1139 2011-07-25  Bruno Haible  <bruno@clisp.org>
1140
1141         fseek, ftell: Fix doc.
1142         * doc/posix-functions/fseek.texi: Reword statement about
1143         AC_SYS_LARGEFILE.
1144         * doc/posix-functions/ftell.texi: Likewise.
1145
1146 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1147             Bruno Haible  <bruno@clisp.org>
1148
1149         Add dependencies to the 'largefile' module.
1150         * modules/fopen (Depends-on): Add 'largefile'.
1151         * modules/freopen (Depends-on): Likewise.
1152         * modules/fseeko (Depends-on): Likewise.
1153         * modules/ftello (Depends-on): Likewise.
1154         * modules/glob (Depends-on): Likewise.
1155         * modules/lseek (Depends-on): Likewise.
1156         * modules/lstat (Depends-on): Likewise.
1157         * modules/mkostemp (Depends-on): Likewise.
1158         * modules/mkostemps (Depends-on): Likewise.
1159         * modules/mkstemp (Depends-on): Likewise.
1160         * modules/mkstemps (Depends-on): Likewise.
1161         * modules/open (Depends-on): Likewise.
1162         * modules/openat (Depends-on): Likewise.
1163         * modules/pread (Depends-on): Likewise.
1164         * modules/pwrite (Depends-on): Likewise.
1165         * modules/scandir (Depends-on): Likewise.
1166         * modules/stat (Depends-on): Likewise.
1167         * modules/tmpfile (Depends-on): Likewise.
1168         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
1169         since the containing module now depends on the largefile module.
1170         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
1171         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
1172         off_t is fixed by gnulib.
1173         * doc/posix-functions/freopen.texi: Likewise.
1174         * doc/posix-functions/fseeko.texi: Likewise.
1175         * doc/posix-functions/fstatat.texi: Likewise.
1176         * doc/posix-functions/ftello.texi: Likewise.
1177         * doc/posix-functions/glob.texi: Likewise.
1178         * doc/posix-functions/lseek.texi: Likewise.
1179         * doc/posix-functions/lstat.texi: Likewise.
1180         * doc/posix-functions/mkstemp.texi: Likewise.
1181         * doc/posix-functions/open.texi: Likewise.
1182         * doc/posix-functions/openat.texi: Likewise.
1183         * doc/posix-functions/pread.texi: Likewise.
1184         * doc/posix-functions/pwrite.texi: Likewise.
1185         * doc/posix-functions/scandir.texi: Likewise.
1186         * doc/posix-functions/stat.texi: Likewise.
1187         * doc/posix-functions/tmpfile.texi: Likewise.
1188         * doc/glibc-functions/mkostemp.texi: Likewise.
1189         * doc/glibc-functions/mkostemps.texi: Likewise.
1190         * doc/glibc-functions/mkstemps.texi: Likewise.
1191
1192 2011-07-25  Bruno Haible  <bruno@clisp.org>
1193
1194         fcntl: Move AC_LIBOBJ invocation to module description.
1195         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
1196         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
1197
1198         fcntl: Remove call-in from fchdir.m4.
1199         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
1200         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
1201
1202         dup3: Remove potential call-in from fchdir.m4.
1203         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
1204         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
1205
1206         dup2: Move AC_LIBOBJ invocation to module description.
1207         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
1208         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
1209         Don't invoke AC_LIBOBJ.
1210         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
1211
1212         dup2: Remove call-in from fchdir.m4.
1213         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
1214         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
1215
1216         fclose: Move AC_LIBOBJ invocation to module description.
1217         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
1218         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
1219         to 1.
1220         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
1221
1222         fclose: Remove call-in from close.m4.
1223         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
1224         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
1225
1226         close: Move AC_LIBOBJ invocation to module description.
1227         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
1228         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
1229         1.
1230         * modules/close (configure.ac): Invoke AC_LIBOBJ.
1231
1232         close: Remove call-in from fchdir.m4.
1233         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
1234         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
1235
1236         open: Move AC_LIBOBJ invocation to module description.
1237         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
1238         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
1239         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
1240
1241         open: Remove call-in from fchdir.m4.
1242         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
1243         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
1244
1245         fchdir: Start to remove gl_REPLACE_* idiom.
1246         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
1247         (gl_FUNC_FCHDIR): Invoke it.
1248
1249 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1250
1251         * lib/ftell.c (ftell): Comment out cast.
1252
1253         close: use gl_REPLACE_FCLOSE only if defined
1254         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
1255         is defined.  The close module doesn't depend on the fclose module
1256         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
1257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
1258         I reproduced the problem with "./gnulib-tool --test close sys_socket".
1259
1260 2011-07-24  Jim Meyering  <meyering@redhat.com>
1261
1262         test-select.h: avoid warning when using gcc's -Wmissing-declarations
1263         * tests/test-select.h (test_function): Declare as "static".
1264
1265 2011-07-24  Bruno Haible  <bruno@clisp.org>
1266
1267         doc: Mention the effects of AC_SYS_LARGEFILE.
1268         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
1269         on this function.
1270         * doc/posix-functions/aio_error.texi: Likewise.
1271         * doc/posix-functions/aio_fsync.texi: Likewise.
1272         * doc/posix-functions/aio_read.texi: Likewise.
1273         * doc/posix-functions/aio_return.texi: Likewise.
1274         * doc/posix-functions/aio_suspend.texi: Likewise.
1275         * doc/posix-functions/aio_write.texi: Likewise.
1276         * doc/posix-functions/fgetpos.texi: Likewise.
1277         * doc/posix-functions/fopen.texi: Likewise.
1278         * doc/posix-functions/freopen.texi: Likewise.
1279         * doc/posix-functions/fsetpos.texi: Likewise.
1280         * doc/posix-functions/fstatvfs.texi: Likewise.
1281         * doc/posix-functions/ftruncate.texi: Likewise.
1282         * doc/posix-functions/ftw.texi: Likewise.
1283         * doc/posix-functions/getrlimit.texi: Likewise.
1284         * doc/posix-functions/glob.texi: Likewise.
1285         * doc/posix-functions/lio_listio.texi: Likewise.
1286         * doc/posix-functions/lockf.texi: Likewise.
1287         * doc/posix-functions/mkstemp.texi: Likewise.
1288         * doc/posix-functions/mmap.texi: Likewise.
1289         * doc/posix-functions/nftw.texi: Likewise.
1290         * doc/posix-functions/openat.texi: Likewise.
1291         * doc/posix-functions/opendir.texi: Likewise.
1292         * doc/posix-functions/posix_fadvise.texi: Likewise.
1293         * doc/posix-functions/posix_fallocate.texi: Likewise.
1294         * doc/posix-functions/pread.texi: Likewise.
1295         * doc/posix-functions/pwrite.texi: Likewise.
1296         * doc/posix-functions/readdir.texi: Likewise.
1297         * doc/posix-functions/readdir_r.texi: Likewise.
1298         * doc/posix-functions/rewinddir.texi: Likewise.
1299         * doc/posix-functions/scandir.texi: Likewise.
1300         * doc/posix-functions/seekdir.texi: Likewise.
1301         * doc/posix-functions/setrlimit.texi: Likewise.
1302         * doc/posix-functions/statvfs.texi: Likewise.
1303         * doc/posix-functions/telldir.texi: Likewise.
1304         * doc/posix-functions/tmpfile.texi: Likewise.
1305         * doc/posix-functions/truncate.texi: Likewise.
1306         * doc/glibc-functions/fallocate.texi: Likewise.
1307         * doc/glibc-functions/fstatfs.texi: Likewise.
1308         * doc/glibc-functions/fts_children.texi: Likewise.
1309         * doc/glibc-functions/fts_read.texi: Likewise.
1310         * doc/glibc-functions/getdirentries.texi: Likewise.
1311         * doc/glibc-functions/mkostemp.texi: Likewise.
1312         * doc/glibc-functions/mkostemps.texi: Likewise.
1313         * doc/glibc-functions/mkstemps.texi: Likewise.
1314         * doc/glibc-functions/preadv.texi: Likewise.
1315         * doc/glibc-functions/pwritev.texi: Likewise.
1316         * doc/glibc-functions/sendfile.texi: Likewise.
1317         * doc/glibc-functions/statfs.texi: Likewise.
1318
1319 2011-07-24  Bruno Haible  <bruno@clisp.org>
1320
1321         doc: Fix typo.
1322         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
1323
1324 2011-07-24  Bruno Haible  <bruno@clisp.org>
1325
1326         doc: Mention fsusage.
1327         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
1328
1329 2011-07-24  Bruno Haible  <bruno@clisp.org>
1330
1331         doc: Mention new glibc headers and functions.
1332         * doc/glibc-headers/gshadow.texi: New file.
1333         * doc/glibc-functions/endsgent.texi: New file.
1334         * doc/glibc-functions/fgetsgent.texi: New file.
1335         * doc/glibc-functions/fgetsgent_r.texi: New file.
1336         * doc/glibc-functions/getsgent.texi: New file.
1337         * doc/glibc-functions/getsgent_r.texi: New file.
1338         * doc/glibc-functions/getsgnam.texi: New file.
1339         * doc/glibc-functions/getsgnam_r.texi: New file.
1340         * doc/glibc-functions/putsgent.texi: New file.
1341         * doc/glibc-functions/setsgent.texi: New file.
1342         * doc/glibc-functions/sgetsgent.texi: New file.
1343         * doc/glibc-functions/sgetsgent_r.texi: New file.
1344         * doc/glibc-functions/malloc_info.texi: New file.
1345         * doc/glibc-functions/preadv.texi: New file.
1346         * doc/glibc-functions/pwritev.texi: New file.
1347         * doc/glibc-functions/register_printf_modifier.texi: New file.
1348         * doc/glibc-functions/register_printf_specifier.texi: New file.
1349         * doc/glibc-functions/register_printf_type.texi: New file.
1350         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
1351         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
1352         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
1353         * doc/glibc-functions/pthread_getname_np.texi: New file.
1354         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
1355         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
1356         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
1357         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
1358         * doc/glibc-functions/pthread_setname_np.texi: New file.
1359         * doc/glibc-functions/pthread_sigqueue.texi: New file.
1360         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
1361         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
1362         * doc/glibc-functions/qsort_r.texi: New file.
1363         * doc/glibc-functions/quick_exit.texi: New file.
1364         * doc/glibc-functions/syncfs.texi: New file.
1365         * doc/gnulib.texi: Include them.
1366         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
1367         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
1368         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
1369         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
1370         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
1371         * doc/glibc-functions/execvpe.texi: Likewise.
1372
1373 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1374
1375         ftell: don't include <unistd.h>
1376         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
1377         guaranteed to define off_t, and the ftell module depends on the
1378         stdio module.
1379
1380         ftell: do not assume wraparound signed arithmetic
1381         * lib/ftell.c: Include <limits.h>.
1382         (ftell): Don't assume wraparound signed arithmetic.
1383
1384 2011-07-24  Bruno Haible  <bruno@clisp.org>
1385
1386         close: No longer depend on module 'fclose'.
1387         * modules/close (Depends-on): Remove fclose.
1388         * NEWS: Mention the change.
1389         Suggested by Sam Steingold <sds@gnu.org>.
1390
1391 2011-07-24  Bruno Haible  <bruno@clisp.org>
1392
1393         fsusage: Enable large volume support on AIX >= 5.2.
1394         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
1395         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
1396         instead of STAT_STATVFS.
1397         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
1398
1399         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
1400         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
1401         f_blocks field only on MacOS X.
1402
1403         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
1404         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
1405         * modules/fsusage (Depends-on): Add largefile.
1406
1407 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1408
1409         * README: Modernize discussion of signed integers.
1410         Assuming overflow wraparound is no longer safe.
1411         Mention ones' complement and signed magnitude.
1412
1413 2011-07-22  Bruno Haible  <bruno@clisp.org>
1414
1415         select tests, pselect tests: Refactor.
1416         * tests/test-select.h: New file, extracted from tests/test-select.c.
1417         (select_fn): New type.
1418         (test, do_select, do_select_nowait, do_select_wait, test_tty,
1419         test_connect_first, test_accept_first, test_pair, test_socket_pair,
1420         test_pipe): Add my_select argument.
1421         (test_function): Renamed from main. Add my_select argument.
1422         * tests/test-select.c: Move most code to tests/test-select.h. Include
1423         test-select.h.
1424         * modules/select-tests (Files): Add tests/test-select.h.
1425         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
1426         (my_select, main): New functions.
1427         * modules/pselect-tests (Files): Add tests/test-select.h,
1428         tests/macros.h, tests/signature.h.
1429         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
1430         (configure.ac): Check for <sys/wait.h>.
1431
1432 2011-07-22  Bruno Haible  <bruno@clisp.org>
1433
1434         sys_select tests: Check the signature of FD_*.
1435         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
1436         signature tests from here...
1437         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
1438         here.
1439         * modules/sys_select-tests (Files): Add tests/signature.h.
1440
1441 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
1442
1443         largefile: new module, replacing large-inode
1444         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
1445         * MODULES.html.sh: Add largefile, remove large-inode.
1446         * modules/largefile, m4/largefile.m4: New files.
1447         * modules/large-inode, m4/large-inode.m4: Remove.
1448
1449         fsusage: port to MacOS X 10.7 with 4 TiB file systems
1450         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
1451         implementations that use only 32 bits to count blocks.
1452         On typical hosts with 1024-byte blocks, this fails with file
1453         systems as small as 4 TiB.  Problem reported by Herb Wartens
1454         <http://debbugs.gnu.org/9140> and this should also fix a similar
1455         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
1456
1457         large-inode: New module
1458         * MODULES.html.sh: Add it.
1459         * modules/large-inode, m4/large-inode.m4: New files.
1460
1461         extensions: Enable extensions on MacOS X 10.5 and later.
1462         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
1463
1464 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
1465
1466         file-has-acl: use acl_extended_file_nofollow if available
1467         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
1468         (acl_extended_file): New macro.
1469         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
1470         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
1471
1472 2011-07-21  Bruno Haible  <bruno@clisp.org>
1473
1474         Declare system functions in a way that works with C++.
1475         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
1476         declare fdopendir as extern "C".
1477         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
1478         declare frexpl as extern "C".
1479         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
1480         declare gai_strerror as extern "C".
1481         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
1482         programs, declare gai_strerror as extern "C".
1483         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
1484         declare getlogin_r as extern "C".
1485         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
1486         as extern "C".
1487         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
1488         declare ldexpl as extern "C".
1489         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
1490         as extern "C".
1491         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
1492         program, declare getmntinfo as extern "C".
1493         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
1494         stpncpy as extern "C".
1495         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
1496         program, declare __xpg_strerror_r as extern "C".
1497         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
1498         strndup as extern "C".
1499         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
1500         declare memset and bzero as extern "C".
1501         Reported by Sam Steingold <sds@gnu.org>.
1502
1503 2011-07-12  Jim Meyering  <meyering@redhat.com>
1504
1505         maint.mk: prohibit inclusion of "verify.h" without use
1506         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
1507
1508 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1509
1510         timer-time: A new module to check for timer_settime()
1511         * m4/timer_time.m4: Check for the posix function.
1512         * modules/timer-time: Add the new module.
1513         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
1514         Mention it.
1515
1516 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
1517             Bruno Haible  <bruno@clisp.org>
1518
1519         pthread_sigmask: assume POSIX threads if --avoid=threadlib
1520         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
1521         not defined, assume POSIX threads and look for pthread_sigmask in
1522         $LIBS, without changing $CPPFLAGS.
1523
1524 2011-07-19  Bruno Haible  <bruno@clisp.org>
1525
1526         strstr: Update cross-compilation guess.
1527         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
1528         CPUs, guess no, in view of glibc
1529         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
1530         Suggested by Eric Blake. Reported by Reuben Thomas.
1531
1532 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1533
1534         getopt-gnu: suppress core dumps from detection code
1535         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
1536         to suppress core dumps that may well occur on glibc systems.
1537         * modules/getopt-gnu: Depend on nocrash.
1538
1539 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
1540
1541         pthread_sigmask: ensure usleep is declared
1542         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
1543         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
1544
1545 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1546
1547         doc: Document NonStop portability issues.
1548         * doc/posix-functions/sigaction.texi (sigaction):
1549         * doc/posix-headers/signal.texi (signal.h):
1550         Document NonStop.  See Joachim Schmitz in
1551         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
1552
1553 2011-07-15  Bruno Haible  <bruno@clisp.org>
1554
1555         ffsl, ffsll: Avoid unportable behaviour.
1556         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
1557
1558 2011-07-15  Bruno Haible  <bruno@clisp.org>
1559
1560         ffs: More tests.
1561         * tests/test-ffs.c (NBITS): New macro.
1562         (main): Add more tests.
1563         * tests/test-ffsl.c (NBITS): New macro.
1564         (main): Add more tests.
1565         * tests/test-ffsll.c (NBITS): New macro.
1566         (main): Add more tests.
1567
1568 2011-07-15  Eric Blake  <eblake@redhat.com>
1569
1570         ffsl, ffsll: new modules
1571         * modules/ffsl: New file.
1572         * modules/ffsll: Likewise.
1573         * m4/ffsl.m4: Likewise.
1574         * m4/ffsll.m4: Likewise.
1575         * lib/ffsl.c: Likewise.
1576         * lib/ffsl.h: Likewise.
1577         * lib/ffsll.c: Likewise.
1578         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
1579         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
1580         * modules/string (Makefile.am): Substitute witnesses.
1581         * lib/strings.in.h (ffsl, ffsll): Declare.
1582         * modules/ffsl-tests: New test file.
1583         * modules/ffsll-tests: Likewise.
1584         * tests/test-ffsl.c: Likewise.
1585         * tests/test-ffsll.c: Likewise.
1586         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1587         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
1588         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
1589
1590         ffs: fix m4 prerequisite
1591         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
1592
1593         ffs: avoid undefined behavior
1594         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
1595         * tests/test-ffs.c (naive, main): Avoid signed shifts.
1596         Reported by Bruno Haible.
1597
1598 2011-07-12  Bruno Haible  <bruno@clisp.org>
1599
1600         pthread_sigmask: Rely on module 'threadlib'.
1601         * modules/pthread_sigmask (Depends-on): Add threadlib.
1602         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
1603         is defined.
1604
1605 2011-07-12  Bruno Haible  <bruno@clisp.org>
1606
1607         regex: Depend on module 'strcase'.
1608         * modules/regex (Depends-on): Add strcase, for strcasecmp().
1609
1610 2011-07-12  Jim Meyering  <meyering@redhat.com>
1611
1612         warn-on-use: fix typo in file name
1613         * modules/snippet/warn-on-use (Files): Correct file name:
1614         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
1615
1616 2011-07-12  Bruno Haible  <bruno@clisp.org>
1617
1618         strings: Document module.
1619         * doc/posix-headers/strings.texi: Mention module 'strings'.
1620
1621 2011-07-12  Bruno Haible  <bruno@clisp.org>
1622
1623         Rename module '_Noreturn' to 'snippet/_Noreturn'.
1624         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
1625         (Files, Makefile.am): Update.
1626         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
1627         * modules/stdlib (Depends-on): Update.
1628
1629 2011-07-12  Bruno Haible  <bruno@clisp.org>
1630
1631         * NEWS: Mention the changes.
1632
1633         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
1634         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
1635         (Files, Makefile.am): Update.
1636         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
1637         * modules/arpa_inet (Depends-on): Update.
1638         * modules/ctype (Depends-on): Update.
1639         * modules/dirent (Depends-on): Update.
1640         * modules/fcntl-h (Depends-on): Update.
1641         * modules/glob (Depends-on): Update.
1642         * modules/iconv-h (Depends-on): Update.
1643         * modules/inttypes-incomplete (Depends-on): Update.
1644         * modules/langinfo (Depends-on): Update.
1645         * modules/locale (Depends-on): Update.
1646         * modules/math (Depends-on): Update.
1647         * modules/netdb (Depends-on): Update.
1648         * modules/poll-h (Depends-on): Update.
1649         * modules/pty (Depends-on): Update.
1650         * modules/search (Depends-on): Update.
1651         * modules/signal (Depends-on): Update.
1652         * modules/spawn (Depends-on): Update.
1653         * modules/stdio (Depends-on): Update.
1654         * modules/stdlib (Depends-on): Update.
1655         * modules/string (Depends-on): Update.
1656         * modules/strings (Depends-on): Update.
1657         * modules/sys_file (Depends-on): Update.
1658         * modules/sys_ioctl (Depends-on): Update.
1659         * modules/sys_select (Depends-on): Update.
1660         * modules/sys_socket (Depends-on): Update.
1661         * modules/sys_stat (Depends-on): Update.
1662         * modules/sys_time (Depends-on): Update.
1663         * modules/sys_times (Depends-on): Update.
1664         * modules/sys_utsname (Depends-on): Update.
1665         * modules/sys_wait (Depends-on): Update.
1666         * modules/termios (Depends-on): Update.
1667         * modules/time (Depends-on): Update.
1668         * modules/unistd (Depends-on): Update.
1669         * modules/wchar (Depends-on): Update.
1670         * modules/wctype-h (Depends-on): Update.
1671         * MODULES.html.sh (Support for building libraries and executables):
1672         Update.
1673
1674         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
1675         * modules/snippet/unused-parameter: Renamed from
1676         modules/unused-parameter.
1677         (Files, Makefile.am): Update.
1678         * build-aux/snippet/unused-parameter.h: Renamed from
1679         build-aux/unused-parameter.h.
1680         * modules/selinux-h (Depends-on): Update.
1681         * modules/unistr/base (Depends-on): Update.
1682         * MODULES.html.sh (Core language properties): Update.
1683
1684         Rename module 'link-warning' to 'snippet/link-warning'.
1685         * modules/snippet/link-warning: Renamed from modules/link-warning.
1686         (Files, Makefile.am): Update.
1687         * build-aux/snippet/link-warning.h: Renamed from
1688         build-aux/link-warning.h.
1689         * MODULES.html.sh (Support for building libraries and executables):
1690         Update.
1691
1692         Rename module 'c++defs' to 'snippet/c++defs'.
1693         * modules/snippet/c++defs: Renamed from modules/c++defs.
1694         (Files, Makefile.am): Update.
1695         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
1696         * modules/arpa_inet (Depends-on): Update.
1697         * modules/ctype (Depends-on): Update.
1698         * modules/dirent (Depends-on): Update.
1699         * modules/fcntl-h (Depends-on): Update.
1700         * modules/glob (Depends-on): Update.
1701         * modules/iconv-h (Depends-on): Update.
1702         * modules/langinfo (Depends-on): Update.
1703         * modules/locale (Depends-on): Update.
1704         * modules/math (Depends-on): Update.
1705         * modules/netdb (Depends-on): Update.
1706         * modules/poll-h (Depends-on): Update.
1707         * modules/pty (Depends-on): Update.
1708         * modules/search (Depends-on): Update.
1709         * modules/signal (Depends-on): Update.
1710         * modules/spawn (Depends-on): Update.
1711         * modules/stdio (Depends-on): Update.
1712         * modules/stdlib (Depends-on): Update.
1713         * modules/string (Depends-on): Update.
1714         * modules/strings (Depends-on): Update.
1715         * modules/sys_ioctl (Depends-on): Update.
1716         * modules/sys_select (Depends-on): Update.
1717         * modules/sys_socket (Depends-on): Update.
1718         * modules/sys_stat (Depends-on): Update.
1719         * modules/sys_time (Depends-on): Update.
1720         * modules/sys_wait (Depends-on): Update.
1721         * modules/termios (Depends-on): Update.
1722         * modules/time (Depends-on): Update.
1723         * modules/unistd (Depends-on): Update.
1724         * modules/wchar (Depends-on): Update.
1725         * modules/wctype-h (Depends-on): Update.
1726
1727         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
1728         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
1729         (Files, Makefile.am): Update.
1730         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
1731         * modules/argv-iter (Depends-on): Update.
1732         * modules/arpa_inet (Depends-on): Update.
1733         * modules/dirent (Depends-on): Update.
1734         * modules/fcntl-h (Depends-on): Update.
1735         * modules/fnmatch (Depends-on): Update.
1736         * modules/getopt-posix (Depends-on): Update.
1737         * modules/glob (Depends-on): Update.
1738         * modules/iconv-h (Depends-on): Update.
1739         * modules/inttypes-incomplete (Depends-on): Update.
1740         * modules/locale (Depends-on): Update.
1741         * modules/math (Depends-on): Update.
1742         * modules/netdb (Depends-on): Update.
1743         * modules/search (Depends-on): Update.
1744         * modules/signal (Depends-on): Update.
1745         * modules/spawn (Depends-on): Update.
1746         * modules/stdio (Depends-on): Update.
1747         * modules/stdlib (Depends-on): Update.
1748         * modules/string (Depends-on): Update.
1749         * modules/strings (Depends-on): Update.
1750         * modules/sys_socket (Depends-on): Update.
1751         * modules/sys_stat (Depends-on): Update.
1752         * modules/sys_time (Depends-on): Update.
1753         * modules/sys_times (Depends-on): Update.
1754         * modules/sys_utsname (Depends-on): Update.
1755         * modules/time (Depends-on): Update.
1756         * modules/unistd (Depends-on): Update.
1757         * modules/wchar (Depends-on): Update.
1758         * MODULES.html.sh (Support for building libraries and executables):
1759         Update.
1760
1761 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1762
1763         Improvements on _Noreturn and related modules.
1764
1765         modules/_Exit-tests: test _Noreturn too
1766         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
1767         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
1768         (main): Use them.
1769
1770         stdnoreturn, stdnoreturn-tests: remove modules
1771         They're not needed here and a bit premature for use elsewhere.  See
1772         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
1773         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
1774         * tests/test-stdnoreturn.c: Remove files.
1775         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
1776         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
1777         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
1778         and using noreturn.
1779         * modules/openat, modules/sigpipe-die, modules/xalloc:
1780         * modules/xmemdup0, modules/xstrtol:
1781         Remove dependency on stdnoreturn.
1782
1783         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
1784         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
1785         Reparenthesize to avoid GCC warning.
1786         Support Microsoft's syntax.
1787         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
1788
1789         _Noreturn-tests: remove module
1790         * modules/_Noreturn-tests: Remove.
1791         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
1792         * tests/test-_Noreturn.c: Remove.
1793         * tests/test-stdnoreturn.c: Merge from the old
1794         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
1795
1796 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1797
1798         _Noreturn, stdnoreturn, and related modules.
1799
1800         * top/maint.mk: Adjust to new noreturn support.
1801         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
1802         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
1803
1804         xalloc: use stdnoreturn.h
1805         * lib/xalloc.h: Include <stdnoreturn.h>.
1806         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1807         * modules/xalloc (Depends-on): Add stdnoreturn.
1808
1809         xstrtol: use stdnoreturn.h
1810         * lib/xstrtol.h: Include <stdnoreturn.h>.
1811         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1812         * modules/xstrtol (Depends-on): Add stdnoreturn.
1813
1814         xmemdup0: use stdnoreturn.h
1815         * lib/xmemdup0.h: Include <stdnoreturn.h>.
1816         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1817         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
1818
1819         sigpipe-die: use stdnoreturn.h
1820         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
1821         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1822         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
1823
1824         openat: use stdnoreturn.h
1825         * lib/openat.h: Include <stdnoreturn.h>.
1826         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1827         * modules/openat (Depends-on): Add stdnoreturn.
1828
1829         * lib/openat-die.c (openat_save_fail): Modernize comment.
1830
1831         * lib/xalloc-die.c (xalloc_die): Modernize comment.
1832
1833         * lib/glthread/thread.h: Modernize comment.
1834
1835         obstack: use _Noreturn
1836         * lib/obstack.c (__attribute__): Remove macro.
1837         (print_and_abort): Use _Noreturn.
1838
1839         c-stack: use _Noreturn
1840         * lib/c-stack.c (die, overflow_handler, segv_handler):
1841         Use _Noreturn rather than __attribute__((noreturn)).
1842
1843         argmatch-tests, exclude_tests: use _Noreturn
1844         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
1845         Remove.
1846         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
1847
1848         stdlib: use _Noreturn
1849         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
1850         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
1851         * modules/stdlib (Depends-on): Add _Noreturn.
1852         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
1853
1854         stdnoreturn-tests: new module
1855         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
1856
1857         stdnoreturn: new module
1858         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
1859         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
1860
1861         _Noreturn-tests: new module
1862         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
1863
1864         _Noreturn: new module
1865         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
1866         New section, mentioning it.
1867         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
1868
1869         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
1870
1871 2011-07-11  Eric Blake  <eblake@redhat.com>
1872
1873         ffs: new module
1874         * modules/ffs: New file.
1875         * m4/ffs.m4: Likewise.
1876         * lib/ffs.c: Likewise.
1877         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
1878         * modules/strings (Makefile.am): Substitute witness.
1879         (Depends-on): Add c++defs.
1880         * lib/strings.in.h (ffs): Declare.
1881         * modules/ffs-tests: New test file.
1882         * tests/test-ffs.c: Test new module.
1883         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1884         * doc/posix-functions/ffs.texi (ffs): Likewise.
1885
1886         regex: avoid compiler warning
1887         * lib/regex.c (includes): Include <strings.h>, for use of
1888         strcasecmp in regcomp.c.
1889         Reported by Joachim Schmitz.
1890
1891 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1892
1893         stdint: respect system's intmax_t if INTMAX_MAX
1894         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
1895         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
1896         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
1897         long but int64_t is long long, and where we will clash with the
1898         system intmax_t if we override it.  See
1899         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
1900         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
1901         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
1902         similarly for UINTMAX_C.
1903
1904 2011-07-08  Bruno Haible  <bruno@clisp.org>
1905
1906         pthread_sigmask tests: Avoid a compiler warning.
1907         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
1908         non-zero.
1909
1910         sigprocmask tests: A better way to avoid a compiler warning.
1911         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
1912         (main): Complain if system() returns non-zero.
1913         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
1914
1915 2011-07-08  Bruno Haible  <bruno@clisp.org>
1916
1917         pthread_sigmask: Work around IRIX bug.
1918         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
1919         bug.
1920         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
1921         there may be unblocked pending signals.
1922         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
1923
1924 2011-07-08  Bruno Haible  <bruno@clisp.org>
1925
1926         pthread_sigmask: Work around Cygwin bug.
1927         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
1928         bug.
1929         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
1930         the system's pthread_sigmask function.
1931         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
1932
1933 2011-07-08  Bruno Haible  <bruno@clisp.org>
1934
1935         pthread_sigmask: Work around bug in single-threaded implementation.
1936         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
1937         FreeBSD, HP-UX, Solaris bug.
1938         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
1939         * lib/pthread_sigmask.c: Include <stddef.h>.
1940         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
1941         the system's pthread_sigmask function.
1942         * modules/pthread_sigmask (configure.ac): Invoke
1943         gl_PREREQ_PTHREAD_SIGMASK.
1944         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
1945         HP-UX, Solaris.
1946
1947 2011-07-08  Eric Blake  <eblake@redhat.com>
1948
1949         test-sigprocmask: avoid compiler warning
1950         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
1951         * tests/test-sigprocmask.c (main): Use it to silence warning.
1952         Reported by Jim Meyering.
1953
1954         test-snprintf: avoid compiler warning
1955         * tests/test-snprintf.c (main): Avoid shadowed declaration.
1956         * tests/test-vsnprintf.c (main): Likewise.
1957         Reported by Jim Meyering.
1958
1959 2011-07-08  Bruno Haible  <bruno@clisp.org>
1960
1961         Tests for module 'pthread_sigmask'.
1962         * modules/pthread_sigmask-tests: New file.
1963         * tests/test-pthread_sigmask1.c: New file, based on
1964         tests/test-sigprocmask.c.
1965         * tests/test-pthread_sigmask2.c: New file.
1966
1967 2011-07-08  Jim Meyering  <meyering@redhat.com>
1968
1969         test-getopt.h: avoid warning about an unused variable
1970         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
1971
1972 2011-07-07  Jim Meyering  <meyering@redhat.com>
1973
1974         maint: reduce list of files exempt from sc_prohibit_leading_TABs
1975         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
1976         now that it no longer contains leading TABs.
1977         Remove unused "url=FIXME" statement.
1978
1979 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
1980
1981         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
1982         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
1983         When gl_THREADLIB is not in use, assume that the POSIX sematics
1984         are desired.  This is better for Emacs, which uses POSIX semantics
1985         on GNUish and/or POSIXish platforms, and does not use threads at
1986         all otherwise.
1987
1988         pthread_sigmask: fix typo when testing for libraries
1989         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
1990         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
1991
1992 2011-07-08  Eric Blake  <eblake@redhat.com>
1993
1994         fts: introduce FTS_NOATIME
1995         * lib/fts_.h (FTS_NOATIME): New bit flag.
1996         (FTS_OPTIONMASK): Adjust.
1997         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
1998         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
1999
2000 2011-07-08  Bruno Haible  <bruno@clisp.org>
2001
2002         Tests for module 'thread'.
2003         * modules/thread-tests: New file.
2004         * tests/test-thread_self.c: New file.
2005         * tests/test-thread_create.cc: New file.
2006
2007 2011-07-08  Bruno Haible  <bruno@clisp.org>
2008
2009         thread: Avoid gcc warnings when using gl_thread_self().
2010         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
2011         'void *'.
2012         (gl_thread_self_pointer): Update.
2013
2014 2011-07-07  Bruno Haible  <bruno@clisp.org>
2015
2016         signal-c++-tests: Check declaration of pthread_sigmask.
2017         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
2018         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
2019         $(LIB_PTHREAD_SIGMASK).
2020
2021 2011-07-07  Bruno Haible  <bruno@clisp.org>
2022
2023         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
2024         * lib/signal.in.h (pthread_sigmask): Override if
2025         REPLACE_PTHREAD_SIGMASK is 1.
2026         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2027         REPLACE_PTHREAD_SIGMASK.
2028         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
2029         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
2030         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
2031         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2032         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
2033
2034 2011-07-07  Bruno Haible  <bruno@clisp.org>
2035
2036         pthread_sigmask: Ensure declaration in <signal.h>.
2037         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
2038         include <pthread.h>.
2039         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
2040         problem.
2041
2042 2011-07-07  Bruno Haible  <bruno@clisp.org>
2043
2044         pthread_sigmask: Document the module.
2045         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
2046
2047 2011-07-07  Bruno Haible  <bruno@clisp.org>
2048
2049         pthread_sigmask: Follow gnulib conventions.
2050         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
2051         gl_PTHREAD_SIGMASK.
2052         * modules/pthread_sigmask (configure.ac): Update.
2053
2054 2011-07-07  Bruno Haible  <bruno@clisp.org>
2055
2056         pthread_sigmask: Make declaration C++ safe.
2057         * lib/signal.in.h: In two special conditions, just do an #include_next.
2058         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2059         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
2060         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2061         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2062         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
2063         not REPLACE_PTHREAD_MASK.
2064         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
2065         not REPLACE_PTHREAD_MASK.
2066         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2067
2068 2011-07-07  Bruno Haible  <bruno@clisp.org>
2069
2070         pthread_sigmask: Fix return value.
2071         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
2072         * lib/pthread_sigmask.c: New file.
2073         * modules/pthread_sigmask (Files): Add it.
2074         (configure.ac): Invoke AC_LIBOBJ.
2075
2076 2011-07-07  Eric Blake  <eblake@redhat.com>
2077
2078         getopt: more portable argv creation
2079         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
2080         const, use char arrays rather than strings.
2081         Suggested by Paul Eggert.
2082
2083 2011-07-07  Bruno Haible  <bruno@clisp.org>
2084
2085         Tests for module 'sigprocmask'.
2086         * modules/sigprocmask-tests: New file.
2087         * tests/test-sigprocmask.c: New file.
2088
2089 2011-07-07  Bruno Haible  <bruno@clisp.org>
2090
2091         float tests: Tweak.
2092         * tests/test-float.c (main): Tweak skip message.
2093
2094 2011-07-07  Eric Blake  <eblake@redhat.com>
2095
2096         getopt: avoid compiler warning during configure
2097         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
2098         assigning string literals to non-const pointer.
2099
2100         getopt-gnu: avoid crash in glibc getopt
2101         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
2102         * tests/test-getopt.h (test_getopt): Enhance test.
2103         * tests/test-getopt_long.h (test_getopt_long): Likewise.
2104         * doc/posix-functions/getopt.texi (getopt): Document it.
2105         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2106         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2107         Likewise.
2108
2109 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
2110
2111         getopt: handle W; without long options in getopt [BZ #12922]
2112         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
2113         but no long options are defined, just return 'W'.
2114
2115 2011-07-07  Bruno Haible  <bruno@clisp.org>
2116
2117         Avoid literal tabs.
2118         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
2119         variable containing a tab instead of a literal tab.
2120         Reported by Jim Meyering.
2121
2122 2011-07-07  Bruno Haible  <bruno@clisp.org>
2123
2124         Comments.
2125         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
2126
2127 2011-07-06  Bruno Haible  <bruno@clisp.org>
2128
2129         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
2130         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
2131         <winsock2.h>.
2132         (rpl_fd_isset, FD_ISSET): New definitions, copied from
2133         lib/sys_socket.in.h.
2134         (close, gethostname): Hide declarations from <winsock2.h>.
2135         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2136         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
2137         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
2138         (select): Don't override if gnulib's <sys/select.h> was already
2139         included.
2140         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
2141         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
2142         setsockopt, shutdown, select): Tweak indentation.
2143
2144 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2145
2146         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
2147         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
2148         in an application that does not use the sys_select module.
2149
2150 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2151
2152         poll: do not return 0 on timeout=-1
2153         * lib/poll.c: Loop with yield if no events occured
2154
2155 2011-07-06  Eric Blake  <eblake@redhat.com>
2156
2157         pthread_sigmask: always replace when not using pthread
2158         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
2159         replacement when using some threading other than pthread.  Fix
2160         logic bug.
2161
2162 2011-07-06  Bruno Haible  <bruno@clisp.org>
2163
2164         Comments.
2165         * m4/printf.m4: Update comments about mingw.
2166
2167 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2168
2169         sys_select: define sigset_t more portably
2170         * lib/sys_select.in.h: Always include <sys/types.h>, since
2171         we now need sigset_t and mingw defines it there.
2172         Include <signal.h> before split inclusion guard, to avoid
2173         mishaps on Solaris, whose <signal.h> eventually includes us.
2174         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
2175         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
2176         which come from ...
2177         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2178         gl_CHECK_TYPE_SIGSET_T.
2179         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
2180         does the real work.
2181         * modules/sys_select (Depends-on): Add 'signal'.
2182
2183         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
2184         Suggested by Bruno Haible.
2185
2186         pselect: Use pthread_sigmask, not sigprocmask.
2187         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
2188         multithreaded apps better than sigprocmask does.
2189         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
2190         sigprocmask directly.
2191
2192 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2193
2194         * lib/pselect.c (pselect): Use plain name, without "rpl_".
2195         Don't #undef,  since we don't need any underlying pselect.
2196         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
2197         (Depends-on): Add select.
2198         (Link): Add $(LIBSOCKET).
2199         These changes suggested by Bruno Haible.
2200
2201         pselect: document better
2202         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2203         * doc/posix-functions/pselect.texi (pselect): Document new module.
2204
2205         pthread_sigmask: new module
2206         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2207         * doc/posix-functions/pthread_sigmask.texi: Document new module.
2208         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
2209         This is done only as a macro; I don't know how well that'll
2210         work for C++.  Move <sys/types.h> include before the include_next,
2211         to avoid mishap on Solaris.
2212         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
2213         * modules/signal (Makefile.am): Substitute the check's results.
2214         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
2215
2216         test-pselect: new module
2217         * modules/pselect-tests, tests/test-pselect.c: New files.
2218         * tests/test-select.c, tests/test-sys_select-c++.cc:
2219         If TEST_PSELECT is defined, test pselect instead of testing select.
2220
2221         * tests/test-sys_select.c (sigset_t): Test for it, too.
2222         Suggested by Bruno Haible.
2223
2224 2011-07-05  Eric Blake  <eblake@redhat.com>
2225
2226         snprintf: guarantee %1$d, for libintl
2227         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
2228         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2229         * doc/posix-functions/snprintf.texi (snprintf): Update.
2230         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2231         * tests/test-snprintf.c (main): Enhance test.
2232         * tests/test-vsnprintf.c (main): Likewise.
2233
2234 2011-07-05  Jim Meyering  <meyering@redhat.com>
2235
2236         maint: exempt stdio-read.c and stdio-write.c from the cppi check
2237         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
2238         per Bruno's request, to accommodate this idiom (no space after "#")
2239         even when the function is inside an #if block:
2240         char *
2241         gets (char *s)
2242         #undef gets
2243         {
2244           ...
2245         }
2246
2247 2011-07-04  Jim Meyering  <meyering@redhat.com>
2248
2249         maint: indent with spaces, not TABs, and add a rule to check this
2250         * tests/test-userspec.c: Indent with spaces, not TABs.
2251         * tests/test-argp.c: Likewise.
2252         * tests/test-c-stack2.sh: Likewise.
2253         * tests/test-parse-duration.sh: Likewise
2254         * m4/strtod.m4: Likewise.
2255         * m4/alloca.m4: Likewise.
2256         * m4/pselect.m4: Likewise.
2257         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
2258
2259 2011-07-03  Jim Meyering  <meyering@redhat.com>
2260
2261         maint.mk: correct omissions in prohibit_argmatch_without_use check
2262         This rule would mistakenly report that argmatch.h is included without
2263         use even when both the argmatch and invalid_arg macro were used.
2264         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
2265         of argmatch and invalid_arg.
2266
2267 2011-07-03  Bruno Haible  <bruno@clisp.org>
2268
2269         Comments about EINTR.
2270         * lib/safe-read.h: Explain the purpose of this module.
2271         * lib/safe-write.h: Likewise.
2272         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
2273         module.
2274         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
2275         module.
2276         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2277
2278 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2279
2280         xnanosleep: Rewrite to use new dtotimespec module.
2281         It has the conversion code that used to be in xnanosleep.
2282         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
2283         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
2284         (TIME_T_MAX): Remove.
2285         (xnanosleep): Rewrite in terms of dtotimespec.
2286         * modules/xnanosleep (Depends-on): Add dtotimespec.
2287         Remove intprops, stdbool.
2288
2289         timespec-add, timespec-sub: new modules
2290         * lib/timespec.h (timespec_add, timespec_sub): New decls.
2291         * lib/timespec-add.c, lib/timespec-sub.c:
2292         * modules/timespec-add, modules/timespec-sub: New files.
2293
2294         dtotimespec: new module
2295         * lib/timespec.h (dtotimespec): New decl.
2296         * lib/dtotimespec.c, modules/dtotimespec: New files.
2297
2298         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
2299
2300         pselect: new module
2301         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
2302         (pselect): New decls.
2303         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
2304         since the standard pselect decl uses 'restrict'.
2305         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
2306         HAVE_PSELECT, REPLACE_PSELECT.
2307         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
2308         HAVE_PSELECT, REPLACE_PSELECT.
2309         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
2310
2311         sys_select: don't depend on sys_socket
2312         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
2313         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
2314         This fix works on GNU and GNU-like platforms, but has not been tested
2315         on native Windows.
2316         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
2317         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
2318         gl_HEADER_SYS_SOCKET.
2319         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
2320         gl_PREREQ_SYS_H_WINSOCK2.
2321
2322 2011-06-29  Eric Blake  <eblake@redhat.com>
2323
2324         pipe2: fix C89 compile problem
2325         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
2326         Reported by Bruno Haible.
2327
2328         pipe, pipe2: don't corrupt fd on error
2329         * lib/pipe.c (pipe): Leave fd unchanged on error.
2330         * lib/pipe2.c (pipe2): Likewise.
2331         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
2332         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2333
2334 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
2335
2336         mmap-anon: do not use regular expressions inadvertently
2337         * m4/mmap-anon.m4: Remove trailing period from strings sought
2338         in the output.
2339
2340 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
2341
2342         nanosleep: fix integer overflow problem
2343         * lib/nanosleep.c (my_usleep): Don't assume signed integer
2344         arithmetic wraps around on overflow.
2345
2346         nanosleep: simplify carrying
2347         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
2348         first call to the underyling nanosleep, not for the last one.
2349         This doesn't fix any bugs, but it simplifies the computation of
2350         the remaining delay.  Found while auditing integer overflow issues.
2351
2352         dup2: remove test for existence of fcntl
2353         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
2354         "#if HAVE_FCNTL", in the configure-time test program.
2355         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
2356         and therefore speeds up "configure" a bit.  Found while
2357         adding the dup2 module to Emacs.
2358
2359 2011-06-24  Eric Blake  <eblake@redhat.com>
2360
2361         maint.mk: enhance useless header checks
2362         * top/maint.mk (_sc_header_without_use): Check both include
2363         styles.
2364         (sc_prohibit_assert_without_use)
2365         (sc_prohibit_close_stream_without_use)
2366         (sc_prohibit_getopt_without_use)
2367         (sc_prohibit_quotearg_without_use)
2368         (sc_prohibit_quote_without_use)
2369         (sc_prohibit_long_options_without_use)
2370         (sc_prohibit_inttostr_without_use)
2371         (sc_prohibit_ignore_value_without_use)
2372         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
2373         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
2374         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
2375         (sc_prohibit_hash_pjw_without_use)
2376         (sc_prohibit_safe_read_without_use)
2377         (sc_prohibit_argmatch_without_use)
2378         (sc_prohibit_canonicalize_without_use)
2379         (sc_prohibit_root_dev_ino_without_use)
2380         (sc_prohibit_openat_without_use)
2381         (sc_prohibit_c_ctype_without_use)
2382         (sc_prohibit_signal_without_use)
2383         (sc_prohibit_stdio--_without_use)
2384         (sc_prohibit_stdio-safer_without_use)
2385         (sc_prohibit_strings_without_use)
2386         (sc_prohibit_intprops_without_use)
2387         (sc_prohibit_stddef_without_use)
2388         (sc_prohibit_xfreopen_without_use): Update clients.
2389
2390 2011-06-24  Jim Meyering  <meyering@redhat.com>
2391
2392         syntax-check: keep one maint.mk rule in sync with its header
2393         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
2394         of the bug Eric has just fixed, with today's commit 25e4c2ec.
2395         I prefer to avoid temporary files here, so use <(...), but that
2396         is not supported by /bin/sh, so...
2397         (SHELL): Define to /bin/bash.
2398
2399 2011-06-24  Eric Blake  <eblake@redhat.com>
2400
2401         maint.mk: update sc_prohibit_intprops_without_use
2402         * top/maint.mk (_intprops_names): Match recent changes.
2403
2404 2011-06-24  Bruno Haible  <bruno@clisp.org>
2405
2406         strerror-override: No-op tweak.
2407         * lib/strerror-override.h (strerror_override): Reorder conditions,
2408         for consistency with lib/strerror-override.c.
2409
2410 2011-06-23  Eric Blake  <eblake@redhat.com>
2411
2412         maint.mk: test further PATH_MAX issues
2413         * top/maint.mk (sc_prohibit_path_max_array): Rename...
2414         (sc_prohibit_path_max_allocation): ...and also test alloca.
2415         Suggested by Jim Meyering.
2416
2417 2011-06-22  Eric Blake  <eblake@redhat.com>
2418
2419         maint.mk: add syntax-check to avoid char[PATH_MAX]
2420         * top/maint.mk (sc_prohibit_path_max_array): New rule.
2421
2422         stat: be robust to PATH_MAX definition
2423         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
2424         * modules/stat (Depends-on): Add verify.
2425
2426         link: work around IRIX bug
2427         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
2428         * lib/link.c (rpl_link): Work around it.
2429         * tests/test-link.h (test_link): Enhance test.
2430         * doc/posix-functions/link.texi (link): Document the bug.
2431
2432         getopt: silence clang warning
2433         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
2434         dereference.
2435         Reported by Gustavo Martin Domato.
2436
2437 2011-06-22  Jim Meyering  <meyering@redhat.com>
2438
2439         bootstrap: do not insert a blank line into each .gitignore file
2440         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
2441
2442 2011-06-21  Eric Blake  <eblake@redhat.com>
2443
2444         perror: test for output mismatch
2445         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
2446         perror on IRIX.
2447
2448         strerror_r: fix OpenBSD behavior on out-of-range
2449         * lib/strerror_r.c (strerror_r): Always use maximal string.
2450         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2451
2452         strerror_r: fix OpenBSD behavior on 0
2453         * lib/strerror-override.c (strerror_override): Also override 0
2454         when needed.
2455         * lib/strerror-override.h (strerror_override): Likewise.
2456         * lib/strerror.c (strerror): Simplify, now that 0 override is done
2457         earlier.
2458         * lib/strerror_r.c (strerror_r): Likewise.
2459         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
2460         behavior...
2461         (gl_FUNC_STRERROR_0): ...into new macro.
2462         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
2463         is overridden.
2464         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
2465         * modules/strerror-override (Files): Add strerror.m4.
2466         (configure.ac): Also provide override for 0 when needed.
2467         * doc/posix-functions/strerror.texi (strerror): Document this.
2468         * doc/posix-functions/perror.texi (perror): Likewise.
2469
2470         perror: adjust array size
2471         * modules/perror (Depends-on): Add strerror-override.
2472         * lib/perror.c (perror): Use it to avoid magic number.
2473
2474         strerror-override: reduce size
2475         * lib/strerror-override.c (strerror_override): Use fewer lines.
2476
2477 2011-06-20  Bruno Haible  <bruno@clisp.org>
2478
2479         pathmax: Ensure correct value for PATH_MAX on HP-UX.
2480         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
2481
2482 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2483
2484         alloca: port to compilers that can optimize like GCC 4.6.0
2485         * lib/alloca.c (find_stack_direction): New signature, taken from
2486         Autoconf git.  This works with GCC 4.6.0.  This code should never
2487         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
2488         be used with other compilers that optimize as well as GCC 4.6.0 does.
2489         (alloca): Adjust to new signature.
2490         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
2491         New macro, which patches Autoconf in a similar way.
2492
2493         c-stack: stop worrying about stack direction
2494         * lib/c-stack.c (find_stack_direction): Remove.
2495         (segv_handler): Don't worry about stack direction growth, as it's
2496         too much of a pain to configure this correctly, given how compilers
2497         are optimizing-away our stack-growth detection code.  Instead, assume
2498         that any access to just before or just after the stack is OK.
2499         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2500         Don't require AC_FUNC_ALLOCA; no longer needed.
2501
2502 2011-06-20  Eric Blake  <eblake@redhat.com>
2503
2504         test-stat: don't allocate PATH_MAX bytes
2505         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
2506         PATH_MAX-sized buffer.
2507         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
2508         * modules/stat-tests (Depends-on): Likewise.
2509         * tests/test-fstatat.c (includes): Drop pathmax.h.
2510         * tests/test-stat.c (includes): Likewise.
2511         Reported by Bruno Haible.
2512
2513 2011-06-20  Bruno Haible  <bruno@clisp.org>
2514
2515         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
2516         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
2517         * lib/float.c: New file.
2518         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
2519         REPLACE_FLOAT_LDBL.
2520         * modules/float (Files): Add lib/float.c.
2521         (configure.ac): Invoke AC_LIBOBJ.
2522         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
2523
2524 2011-06-20  Bruno Haible  <bruno@clisp.org>
2525
2526         Tests for module 'float'.
2527         * modules/float-tests: New file.
2528         * tests/test-float.c: New file.
2529
2530 2011-06-19  Bruno Haible  <bruno@clisp.org>
2531
2532         isinf: Coding style.
2533         * lib/isinf.c: Use GNU coding style.
2534
2535 2011-06-19  Bruno Haible  <bruno@clisp.org>
2536
2537         linkat test: Avoid test failure on AIX 7.1.
2538         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
2539         * tests/test-link.h (test_link): Likewise.
2540
2541 2011-06-19  Bruno Haible  <bruno@clisp.org>
2542
2543         pread test: Avoid test failure on OpenBSD 4.9.
2544         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
2545
2546 2011-06-19  Bruno Haible  <bruno@clisp.org>
2547
2548         sprintf-posix: Fix test failure on AIX 7.1.
2549         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
2550         * doc/posix-functions/dprintf.texi: Mention limited precision problem
2551         on AIX.
2552         * doc/posix-functions/fprintf.texi: Likewise.
2553         * doc/posix-functions/printf.texi: Likewise.
2554         * doc/posix-functions/snprintf.texi: Likewise.
2555         * doc/posix-functions/sprintf.texi: Likewise.
2556         * doc/posix-functions/vdprintf.texi: Likewise.
2557         * doc/posix-functions/vfprintf.texi: Likewise.
2558         * doc/posix-functions/vprintf.texi: Likewise.
2559         * doc/posix-functions/vsnprintf.texi: Likewise.
2560         * doc/posix-functions/vsprintf.texi: Likewise.
2561
2562 2011-06-19  Bruno Haible  <bruno@clisp.org>
2563
2564         roundl-ieee: Fix test failure on AIX 7.1.
2565         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
2566         * doc/posix-functions/roundl.texi: Mention problem with negative
2567         arguments.
2568
2569 2011-06-19  Bruno Haible  <bruno@clisp.org>
2570
2571         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2572         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
2573         * doc/posix-functions/round.texi: Mention problem with negative
2574         arguments.
2575         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
2576
2577 2011-06-19  Bruno Haible  <bruno@clisp.org>
2578
2579         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2580         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
2581         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
2582         * doc/posix-functions/roundf.texi: Mention problem with negative
2583         arguments.
2584         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
2585
2586 2011-06-19  Bruno Haible  <bruno@clisp.org>
2587
2588         ceilf-ieee: Work around bug on MacOS X 10.5.
2589         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
2590
2591         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
2592         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
2593         IEEE compliant, avoid compiler optimizations.
2594         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
2595         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2596         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
2597         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2598         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2599         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2600         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2601         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2602         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2603         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2604
2605 2011-06-19  Bruno Haible  <bruno@clisp.org>
2606
2607         ceilf-ieee: Work around bug on AIX 7.1.
2608         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
2609         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
2610
2611 2011-06-19  Bruno Haible  <bruno@clisp.org>
2612
2613         ceil-ieee: Work around bug on AIX 7.1.
2614         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
2615         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
2616
2617 2011-06-18  Bruno Haible  <bruno@clisp.org>
2618
2619         fsync test: Avoid test failure on MacOS X and AIX.
2620         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
2621         EINVAL.
2622
2623 2011-06-18  Bruno Haible  <bruno@clisp.org>
2624
2625         openat, fdopendir tests: Fix link errors.
2626         * modules/openat-tests (Depends-on): Add progname.
2627         * modules/fdopendir-tests (Depends-on): Likewise.
2628         * tests/test-fchownat.c: Include progname.h.
2629         (main): Call set_program_name.
2630         * tests/test-fstatat.c: Include progname.h.
2631         (main): Call set_program_name.
2632         * tests/test-mkdirat.c: Include progname.h.
2633         (main): Call set_program_name.
2634         * tests/test-openat.c: Include progname.h.
2635         (main): Call set_program_name.
2636         * tests/test-unlinkat.c: Include progname.h.
2637         (main): Call set_program_name.
2638         * tests/test-fdopendir.c: Include progname.h.
2639         (main): Call set_program_name.
2640
2641 2011-06-18  Bruno Haible  <bruno@clisp.org>
2642
2643         Doc update.
2644         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
2645         HP-UX.
2646         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
2647
2648 2011-06-18  Bruno Haible  <bruno@clisp.org>
2649
2650         getcwd tests: Avoid compilation error on HP-UX 11.31.
2651         * modules/getcwd-tests (Depends-on): Add pathmax.
2652         * tests/test-getcwd.c: Include pathmax.h.
2653
2654 2011-06-18  Bruno Haible  <bruno@clisp.org>
2655
2656         isfinite, isinf: Fix link error on AIX 6 and 7.
2657         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
2658         needed, also test the macro with a 'float' argument.
2659         * m4/isinf.m4 (gl_ISINF): Likewise.
2660
2661 2011-06-18  Bruno Haible  <bruno@clisp.org>
2662
2663         getloadavg: Don't clobber LIBS. Regression from previous commit.
2664         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
2665         AC_CHECK_LIB from here...
2666         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
2667         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
2668         gl_func_getloadavg_done.
2669         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2670
2671 2011-06-18  Bruno Haible  <bruno@clisp.org>
2672
2673         clean-temp: Improve documentation.
2674         * lib/clean-temp.h: Explain better how to use this module.
2675         Reported by John Darrington <john@darrington.wattle.id.au>.
2676
2677 2011-06-17  Bruno Haible  <bruno@clisp.org>
2678
2679         pread, pwrite: Avoid cc warning on AIX.
2680         * lib/unistd.in.h (pread): Undefine before defining as a macro.
2681         (pwrite): Likewise.
2682
2683 2011-06-17  Bruno Haible  <bruno@clisp.org>
2684
2685         spawn-pipe tests: Fix link error.
2686         * tests/test-spawn-pipe-child.c: Undefine fprintf.
2687         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2688
2689 2011-06-17  Bruno Haible  <bruno@clisp.org>
2690
2691         Tests: Remove unnecessary dependency.
2692         * modules/canonicalize-tests (Depends-on): Remove progname.
2693         * modules/chown-tests (Depends-on): Likewise.
2694         * modules/dirname-tests (Depends-on): Likewise.
2695         * modules/fdopendir-tests (Depends-on): Likewise.
2696         * modules/fdutimensat-tests (Depends-on): Likewise.
2697         * modules/hash-tests (Depends-on): Likewise.
2698         * modules/lchown-tests (Depends-on): Likewise.
2699         * modules/linkat-tests (Depends-on): Likewise.
2700         * modules/renameat-tests (Depends-on): Likewise.
2701         * modules/spawn-pipe-tests (Depends-on): Likewise.
2702         * modules/utimensat-tests (Depends-on): Likewise.
2703
2704 2011-06-17  Bruno Haible  <bruno@clisp.org>
2705
2706         spawn-pipe tests: Fix link error.
2707         * tests/test-spawn-pipe-child.c: Undefine fflush.
2708
2709 2011-06-17  Bruno Haible  <bruno@clisp.org>
2710
2711         Fix tests link errors.
2712         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
2713         * modules/chown-tests (Makefile.am): Don't link test-chown with
2714         LIBINTL.
2715         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
2716         LIBINTL.
2717         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
2718         LIBINTL.
2719         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
2720         LIBINTL.
2721
2722 2011-06-16  Bruno Haible  <bruno@clisp.org>
2723
2724         crypto/gc-sha1: Fix recent regression.
2725         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
2726         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
2727
2728         crypto/gc-md5: Fix recent regression.
2729         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
2730
2731         crypto/gc-md4: Fix recent regression.
2732         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
2733         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
2734
2735         crypto/gc-arctwo: Fix recent regression.
2736         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
2737         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
2738
2739         crypto/gc-rijndael: Fix recent regression.
2740         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
2741         (configure.ac): Invoke AC_LIBOBJ here.
2742         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
2743         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2744
2745         crypto/gc-hmac-sha1: Fix recent regression.
2746         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
2747         (configure.ac): Invoke AC_LIBOBJ here.
2748         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
2749         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2750
2751         crypto/gc-hmac-md5: Fix recent regression.
2752         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
2753         (configure.ac): Invoke AC_LIBOBJ here.
2754         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
2755         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2756
2757         crypto/gc-des: Fix recent regression.
2758         * modules/crypto/gc-des (Files): Remove m4/des.m4.
2759         (configure.ac): Invoke AC_LIBOBJ here.
2760         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
2761         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2762
2763         crypto/gc-arcfour: Fix recent regression.
2764         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
2765         (configure.ac): Invoke AC_LIBOBJ here.
2766         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
2767         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2768
2769 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
2770
2771         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
2772         After the 2011-05-21 change, this macro requires
2773         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
2774         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
2775
2776 2011-06-16  Bruno Haible  <bruno@clisp.org>
2777
2778         fprintftime: Move AC_LIBOBJ invocations to module description.
2779         * m4/fprintftime.m4: Remove file.
2780         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
2781         (configure.ac): Remove gl_FPRINTFTIME call.
2782         (Makefile.am): Augment lib_SOURCES.
2783         Reported by Jim Meyering.
2784
2785 2011-06-16  Bruno Haible  <bruno@clisp.org>
2786
2787         tmpfile-safer: Finish 2011-05-23 commit.
2788         * m4/stdio-safer.m4: Really remove file.
2789         Reported by Jim Meyering.
2790
2791 2011-06-16  Bruno Haible  <bruno@clisp.org>
2792
2793         syntax-check: Fix typo.
2794         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
2795         printf-posix.m4.
2796         Reported by Jim Meyering.
2797
2798 2011-06-13  Jim Meyering  <meyering@redhat.com>
2799
2800         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
2801         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
2802
2803 2011-05-23  Bruno Haible  <bruno@clisp.org>
2804
2805         yesno: Move AC_LIBOBJ invocations to module description.
2806         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
2807         * modules/yesno (Makefile.am): Augment lib_SOURCES.
2808
2809 2011-05-23  Bruno Haible  <bruno@clisp.org>
2810
2811         xstrtol: Move AC_LIBOBJ invocations to module description.
2812         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
2813         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
2814
2815 2011-05-23  Bruno Haible  <bruno@clisp.org>
2816
2817         xstrtold: Move AC_LIBOBJ invocations to module description.
2818         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
2819         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
2820
2821 2011-05-23  Bruno Haible  <bruno@clisp.org>
2822
2823         xstrtod: Move AC_LIBOBJ invocations to module description.
2824         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
2825         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
2826
2827 2011-05-23  Bruno Haible  <bruno@clisp.org>
2828
2829         xnanosleep: Move AC_LIBOBJ invocations to module description.
2830         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
2831         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
2832
2833 2011-05-23  Bruno Haible  <bruno@clisp.org>
2834
2835         xgetcwd: Move AC_LIBOBJ invocations to module description.
2836         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
2837         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
2838
2839 2011-05-23  Bruno Haible  <bruno@clisp.org>
2840
2841         xalloc: Move AC_LIBOBJ invocations to module description.
2842         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
2843         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
2844
2845 2011-05-23  Bruno Haible  <bruno@clisp.org>
2846
2847         write-any-file: Move AC_LIBOBJ invocations to module description.
2848         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
2849         invocation.
2850         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
2851
2852 2011-05-23  Bruno Haible  <bruno@clisp.org>
2853
2854         utimens: Move AC_LIBOBJ invocations to module description.
2855         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
2856         * modules/utimens (Makefile.am): Augment lib_SOURCES.
2857
2858 2011-05-23  Bruno Haible  <bruno@clisp.org>
2859
2860         utimecmp: Move AC_LIBOBJ invocations to module description.
2861         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
2862         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
2863
2864 2011-05-23  Bruno Haible  <bruno@clisp.org>
2865
2866         userspec: Move AC_LIBOBJ invocations to module description.
2867         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
2868         * modules/userspec (Makefile.am): Augment lib_SOURCES.
2869
2870 2011-05-23  Bruno Haible  <bruno@clisp.org>
2871
2872         unlinkdir: Move AC_LIBOBJ invocations to module description.
2873         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
2874         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
2875
2876 2011-05-23  Bruno Haible  <bruno@clisp.org>
2877
2878         unistd-safer: Move AC_LIBOBJ invocations to module description.
2879         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
2880         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
2881
2882 2011-05-23  Bruno Haible  <bruno@clisp.org>
2883
2884         tempname: Move AC_LIBOBJ invocations to module description.
2885         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
2886         * modules/tempname (Makefile.am): Augment lib_SOURCES.
2887
2888 2011-05-23  Bruno Haible  <bruno@clisp.org>
2889
2890         strftime: Move AC_LIBOBJ invocations to module description.
2891         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
2892         * modules/strftime (Makefile.am): Augment lib_SOURCES.
2893
2894 2011-05-23  Bruno Haible  <bruno@clisp.org>
2895
2896         stdlib-safer: Move AC_LIBOBJ invocations to module description.
2897         * m4/stdlib-safer.m4: Remove file.
2898         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
2899         (configure.ac): Remove gl_STDLIB_SAFER call.
2900         (Makefile.am): Augment lib_SOURCES.
2901
2902 2011-05-23  Bruno Haible  <bruno@clisp.org>
2903
2904         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
2905         * m4/stdio-safer.m4: Remove file.
2906         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
2907         (configure.ac): Remove gl_TMPFILE_SAFER call.
2908         (Makefile.am): Augment lib_SOURCES.
2909
2910 2011-05-23  Bruno Haible  <bruno@clisp.org>
2911
2912         popen-safer: Move AC_LIBOBJ invocations to module description.
2913         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
2914         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
2915         (configure.ac): Remove gl_POPEN_SAFER call.
2916         (Makefile.am): Augment lib_SOURCES.
2917
2918 2011-05-23  Bruno Haible  <bruno@clisp.org>
2919
2920         freopen-safer: Move AC_LIBOBJ invocations to module description.
2921         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
2922         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
2923         (configure.ac): Remove gl_FREOPEN_SAFER call.
2924         (Makefile.am): Augment lib_SOURCES.
2925
2926 2011-05-23  Bruno Haible  <bruno@clisp.org>
2927
2928         fopen-safer: Move AC_LIBOBJ invocations to module description.
2929         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
2930         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
2931         (configure.ac): Remove gl_FOPEN_SAFER call.
2932         (Makefile.am): Augment lib_SOURCES.
2933
2934 2011-05-23  Bruno Haible  <bruno@clisp.org>
2935
2936         crypto/sha512: Move AC_LIBOBJ invocations to module description.
2937         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
2938         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
2939
2940 2011-05-23  Bruno Haible  <bruno@clisp.org>
2941
2942         crypto/sha256: Move AC_LIBOBJ invocations to module description.
2943         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
2944         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
2945
2946 2011-05-23  Bruno Haible  <bruno@clisp.org>
2947
2948         crypto/sha1: Move AC_LIBOBJ invocations to module description.
2949         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
2950         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
2951
2952 2011-05-23  Bruno Haible  <bruno@clisp.org>
2953
2954         settime: Move AC_LIBOBJ invocations to module description.
2955         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
2956         * modules/settime (Makefile.am): Augment lib_SOURCES.
2957
2958 2011-05-23  Bruno Haible  <bruno@clisp.org>
2959
2960         savedir: Move AC_LIBOBJ invocations to module description.
2961         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
2962         * modules/savedir (Makefile.am): Augment lib_SOURCES.
2963
2964 2011-05-23  Bruno Haible  <bruno@clisp.org>
2965
2966         save-cwd: Move AC_LIBOBJ invocations to module description.
2967         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
2968         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
2969
2970 2011-05-23  Bruno Haible  <bruno@clisp.org>
2971
2972         same: Move AC_LIBOBJ invocations to module description.
2973         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
2974         * modules/same (Makefile.am): Augment lib_SOURCES.
2975
2976 2011-05-23  Bruno Haible  <bruno@clisp.org>
2977
2978         safe-write: Move AC_LIBOBJ invocations to module description.
2979         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
2980         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
2981         instead of gl_SAFE_WRITE.
2982         (Makefile.am): Augment lib_SOURCES.
2983
2984 2011-05-23  Bruno Haible  <bruno@clisp.org>
2985
2986         safe-read: Move AC_LIBOBJ invocations to module description.
2987         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
2988         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
2989         of gl_SAFE_READ.
2990         (Makefile.am): Augment lib_SOURCES.
2991
2992 2011-05-23  Bruno Haible  <bruno@clisp.org>
2993
2994         safe-alloc: Move AC_LIBOBJ invocations to module description.
2995         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
2996         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
2997
2998 2011-05-23  Bruno Haible  <bruno@clisp.org>
2999
3000         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
3001         * m4/rijndael.m4: Remove file.
3002         * modules/crypto/rijndael (Files): Remove it.
3003         (configure.ac): Remove gl_RIJNDAEL call.
3004         (Makefile.am): Augment lib_SOURCES.
3005
3006 2011-05-23  Bruno Haible  <bruno@clisp.org>
3007
3008         readtokens: Move AC_LIBOBJ invocations to module description.
3009         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
3010         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
3011
3012 2011-05-23  Bruno Haible  <bruno@clisp.org>
3013
3014         read-file: Move AC_LIBOBJ invocations to module description.
3015         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
3016         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
3017         of gl_FUNC_READ_FILE.
3018         (Makefile.am): Augment lib_SOURCES.
3019
3020 2011-05-23  Bruno Haible  <bruno@clisp.org>
3021
3022         quotearg: Move AC_LIBOBJ invocations to module description.
3023         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
3024         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
3025
3026 2011-05-23  Bruno Haible  <bruno@clisp.org>
3027
3028         quote: Move AC_LIBOBJ invocations to module description.
3029         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
3030         * modules/quote (Makefile.am): Augment lib_SOURCES.
3031
3032 2011-05-23  Bruno Haible  <bruno@clisp.org>
3033
3034         posixver: Move AC_LIBOBJ invocations to module description.
3035         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
3036         * modules/posixver (Makefile.am): Augment lib_SOURCES.
3037
3038 2011-05-23  Bruno Haible  <bruno@clisp.org>
3039
3040         posixtm: Move AC_LIBOBJ invocations to module description.
3041         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
3042         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
3043
3044 2011-05-23  Bruno Haible  <bruno@clisp.org>
3045
3046         physmem: Move AC_LIBOBJ invocations to module description.
3047         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
3048         * modules/physmem (Makefile.am): Augment lib_SOURCES.
3049
3050 2011-05-23  Bruno Haible  <bruno@clisp.org>
3051
3052         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
3053         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
3054         invocation.
3055         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
3056
3057 2011-05-23  Bruno Haible  <bruno@clisp.org>
3058
3059         mpsort: Move AC_LIBOBJ invocations to module description.
3060         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
3061         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
3062
3063 2011-05-23  Bruno Haible  <bruno@clisp.org>
3064
3065         modechange: Move AC_LIBOBJ invocations to module description.
3066         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
3067         * modules/modechange (Makefile.am): Augment lib_SOURCES.
3068
3069 2011-05-23  Bruno Haible  <bruno@clisp.org>
3070
3071         mkdir-p: Move AC_LIBOBJ invocations to module description.
3072         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
3073         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
3074
3075 2011-05-23  Bruno Haible  <bruno@clisp.org>
3076
3077         mkancesdirs: Move AC_LIBOBJ invocations to module description.
3078         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
3079         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
3080
3081 2011-05-23  Bruno Haible  <bruno@clisp.org>
3082
3083         mgetgroups: Move AC_LIBOBJ invocations to module description.
3084         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
3085         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
3086
3087 2011-05-23  Bruno Haible  <bruno@clisp.org>
3088
3089         memxor: Move AC_LIBOBJ invocations to module description.
3090         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
3091         * modules/memxor (Makefile.am): Augment lib_SOURCES.
3092
3093 2011-05-23  Bruno Haible  <bruno@clisp.org>
3094
3095         memcoll: Move AC_LIBOBJ invocations to module description.
3096         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
3097         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
3098
3099 2011-05-23  Bruno Haible  <bruno@clisp.org>
3100
3101         memcasecmp: Move AC_LIBOBJ invocations to module description.
3102         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
3103         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
3104
3105 2011-05-23  Bruno Haible  <bruno@clisp.org>
3106
3107         crypto/md5: Move AC_LIBOBJ invocations to module description.
3108         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
3109         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
3110
3111 2011-05-23  Bruno Haible  <bruno@clisp.org>
3112
3113         crypto/md4: Move AC_LIBOBJ invocations to module description.
3114         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
3115         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
3116
3117 2011-05-23  Bruno Haible  <bruno@clisp.org>
3118
3119         crypto/md2: Move AC_LIBOBJ invocations to module description.
3120         * m4/md2.m4: Remove file.
3121         * modules/crypto/md2 (Files): Remove it.
3122         (configure.ac): Remove gl_MD2 call.
3123         (Makefile.am): Augment lib_SOURCES.
3124
3125 2011-05-23  Bruno Haible  <bruno@clisp.org>
3126
3127         long-options: Move AC_LIBOBJ invocations to module description.
3128         * m4/long-options.m4: Remove file.
3129         * modules/long-options (Files): Remove it.
3130         (configure.ac): Remove gl_LONG_OPTIONS call.
3131         (Makefile.am): Augment lib_SOURCES.
3132
3133 2011-05-23  Bruno Haible  <bruno@clisp.org>
3134
3135         i-ring: Move AC_LIBOBJ invocations to module description.
3136         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
3137         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
3138
3139 2011-05-23  Bruno Haible  <bruno@clisp.org>
3140
3141         idcache: Move AC_LIBOBJ invocations to module description.
3142         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
3143         * modules/idcache (Makefile.am): Augment lib_SOURCES.
3144
3145 2011-05-23  Bruno Haible  <bruno@clisp.org>
3146
3147         human: Move AC_LIBOBJ invocations to module description.
3148         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
3149         * modules/human (Makefile.am): Augment lib_SOURCES.
3150
3151 2011-05-23  Bruno Haible  <bruno@clisp.org>
3152
3153         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
3154         * m4/hmac-sha1.m4: Remove file.
3155         * modules/crypto/hmac-sha1 (Files): Remove it.
3156         (configure.ac): Remove gl_HMAC_SHA1 call.
3157         (Makefile.am): Augment lib_SOURCES.
3158
3159 2011-05-23  Bruno Haible  <bruno@clisp.org>
3160
3161         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
3162         * m4/hmac-md5.m4: Remove file.
3163         * modules/crypto/hmac-md5 (Files): Remove it.
3164         (configure.ac): Remove gl_HMAC_MD5 call.
3165         (Makefile.am): Augment lib_SOURCES.
3166
3167 2011-05-23  Bruno Haible  <bruno@clisp.org>
3168
3169         hash: Move AC_LIBOBJ invocations to module description.
3170         * m4/hash.m4: Remove file.
3171         * modules/hash (Files): Remove it.
3172         (configure.ac): Remove gl_HASH call.
3173         (Makefile.am): Augment lib_SOURCES.
3174
3175 2011-05-23  Bruno Haible  <bruno@clisp.org>
3176
3177         hard-locale: Move AC_LIBOBJ invocations to module description.
3178         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
3179         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
3180
3181 2011-05-23  Bruno Haible  <bruno@clisp.org>
3182
3183         getugroups: Move AC_LIBOBJ invocations to module description.
3184         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
3185         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
3186
3187 2011-05-23  Bruno Haible  <bruno@clisp.org>
3188
3189         gettime: Move AC_LIBOBJ invocations to module description.
3190         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
3191         * modules/gettime (Makefile.am): Augment lib_SOURCES.
3192
3193 2011-05-23  Bruno Haible  <bruno@clisp.org>
3194
3195         getndelim2: Move AC_LIBOBJ invocations to module description.
3196         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
3197         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
3198
3199 2011-05-23  Bruno Haible  <bruno@clisp.org>
3200
3201         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
3202         * m4/gc-pbkdf2-sha1.m4: Remove file.
3203         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
3204         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
3205         (Makefile.am): Augment lib_SOURCES.
3206
3207 2011-05-23  Bruno Haible  <bruno@clisp.org>
3208
3209         fts: Move AC_LIBOBJ invocations to module description.
3210         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
3211         * modules/fts (configure.ac): ... to here.
3212
3213 2011-05-23  Bruno Haible  <bruno@clisp.org>
3214
3215         file-type: Move AC_LIBOBJ invocations to module description.
3216         * m4/file-type.m4: Remove file.
3217         * modules/file-type (Files): Remove it.
3218         (configure.ac): Remove gl_FILE_TYPE call.
3219         (Makefile.am): Augment lib_SOURCES.
3220
3221 2011-05-23  Bruno Haible  <bruno@clisp.org>
3222
3223         filenamecat*: Respect rules for use of AC_LIBOBJ.
3224         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
3225         Remove AC_LIBOBJ invocation.
3226         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
3227         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
3228
3229 2011-05-23  Bruno Haible  <bruno@clisp.org>
3230
3231         filemode: Move AC_LIBOBJ invocations to module description.
3232         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
3233         * modules/filemode (Makefile.am): Augment lib_SOURCES.
3234
3235 2011-05-23  Bruno Haible  <bruno@clisp.org>
3236
3237         openat-safer: Move AC_LIBOBJ invocations to module description.
3238         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
3239         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
3240
3241 2011-05-23  Bruno Haible  <bruno@clisp.org>
3242
3243         fcntl-safer: Move AC_LIBOBJ invocations to module description.
3244         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
3245         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
3246
3247 2011-05-23  Bruno Haible  <bruno@clisp.org>
3248
3249         exclude: Move AC_LIBOBJ invocations to module description.
3250         * m4/exclude.m4: Remove file.
3251         * modules/exclude (Files): Remove it.
3252         (configure.ac): Remove gl_EXCLUDE call.
3253         (Makefile.am): Augment lib_SOURCES.
3254
3255 2011-05-23  Bruno Haible  <bruno@clisp.org>
3256
3257         dirname*: Respect rules for use of AC_LIBOBJ.
3258         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
3259         invocations.
3260         * modules/dirname (Makefile.am): Augment lib_SOURCES.
3261         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
3262
3263 2011-05-23  Bruno Haible  <bruno@clisp.org>
3264
3265         dirent-safer: Move AC_LIBOBJ invocations to module description.
3266         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
3267         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
3268
3269 2011-05-23  Bruno Haible  <bruno@clisp.org>
3270
3271         crypto/des: Move AC_LIBOBJ invocations to module description.
3272         * m4/des.m4: Remove file.
3273         * modules/crypto/des (Files): Remove it.
3274         (configure.ac): Remove gl_DES call.
3275         (Makefile.am): Augment lib_SOURCES.
3276
3277 2011-05-23  Bruno Haible  <bruno@clisp.org>
3278
3279         cycle-check: Move AC_LIBOBJ invocations to module description.
3280         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
3281         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
3282
3283 2011-05-23  Bruno Haible  <bruno@clisp.org>
3284
3285         c-strtold: Move AC_LIBOBJ invocations to module description.
3286         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
3287         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
3288
3289 2011-05-23  Bruno Haible  <bruno@clisp.org>
3290
3291         c-strtod: Move AC_LIBOBJ invocations to module description.
3292         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
3293         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
3294
3295 2011-05-23  Bruno Haible  <bruno@clisp.org>
3296
3297         crc: Move AC_LIBOBJ invocations to module description.
3298         * m4/crc.m4: Remove file.
3299         * modules/crc (Files): Remove it.
3300         (configure.ac): Remove gl_CRC call.
3301         (Makefile.am): Augment lib_SOURCES.
3302
3303 2011-05-23  Bruno Haible  <bruno@clisp.org>
3304
3305         close-stream: Move AC_LIBOBJ invocations to module description.
3306         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
3307         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
3308
3309 2011-05-23  Bruno Haible  <bruno@clisp.org>
3310
3311         closeout: Move AC_LIBOBJ invocations to module description.
3312         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
3313         * modules/closeout (Makefile.am): Augment lib_SOURCES.
3314
3315 2011-05-23  Bruno Haible  <bruno@clisp.org>
3316
3317         closein: Move AC_LIBOBJ invocations to module description.
3318         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
3319         * modules/closein (Makefile.am): Augment lib_SOURCES.
3320
3321 2011-05-23  Bruno Haible  <bruno@clisp.org>
3322
3323         cloexec: Move AC_LIBOBJ invocations to module description.
3324         * m4/cloexec.m4: Remove file.
3325         * modules/cloexec (Files): Remove it.
3326         (configure.ac): Remove gl_CLOEXEC call.
3327         (Makefile.am): Augment lib_SOURCES.
3328
3329 2011-05-23  Bruno Haible  <bruno@clisp.org>
3330
3331         check-version: Move AC_LIBOBJ invocations to module description.
3332         * m4/check-version.m4: Remove file.
3333         * modules/check-version (Files): Remove it.
3334         (configure.ac): Remove gl_CHECK_VERSION call.
3335         (Makefile.am): Augment lib_SOURCES.
3336
3337 2011-05-23  Bruno Haible  <bruno@clisp.org>
3338
3339         chdir-safer: Move AC_LIBOBJ invocations to module description.
3340         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
3341         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
3342
3343 2011-05-23  Bruno Haible  <bruno@clisp.org>
3344
3345         canonicalize: Move AC_LIBOBJ invocations to module description.
3346         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
3347         AC_LIBOBJ invocation.
3348         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
3349
3350 2011-05-23  Bruno Haible  <bruno@clisp.org>
3351
3352         canon-host: Move AC_LIBOBJ invocations to module description.
3353         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
3354         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
3355         instead of gl_CANON_HOST.
3356         (Makefile.am): Augment lib_SOURCES.
3357
3358 2011-05-23  Bruno Haible  <bruno@clisp.org>
3359
3360         backupfile: Move AC_LIBOBJ invocations to module description.
3361         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
3362         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
3363
3364 2011-05-23  Bruno Haible  <bruno@clisp.org>
3365
3366         argmatch: Move AC_LIBOBJ invocations to module description.
3367         * m4/argmatch.m4: Remove file.
3368         * modules/argmatch (Files): Remove it.
3369         (configure.ac): Remove gl_ARGMATCH call.
3370         (Makefile.am): Augment lib_SOURCES.
3371
3372 2011-05-23  Bruno Haible  <bruno@clisp.org>
3373
3374         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
3375         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
3376         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
3377
3378 2011-05-23  Bruno Haible  <bruno@clisp.org>
3379
3380         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
3381         * m4/arcfour.m4: Remove file.
3382         * modules/crypto/arcfour (Files): Remove it.
3383         (configure.ac): Remove gl_ARCFOUR call.
3384         (Makefile.am): Augment lib_SOURCES.
3385
3386 2011-05-22  Bruno Haible  <bruno@clisp.org>
3387
3388         write: Move AC_LIBOBJ invocations to module description.
3389         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
3390         * modules/write (configure.ac): ... to here.
3391
3392 2011-05-22  Bruno Haible  <bruno@clisp.org>
3393
3394         wmemset: Move AC_LIBOBJ invocations to module description.
3395         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
3396         here...
3397         * modules/wmemset (configure.ac): ... to here.
3398
3399 2011-05-22  Bruno Haible  <bruno@clisp.org>
3400
3401         wmemmove: Move AC_LIBOBJ invocations to module description.
3402         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
3403         here...
3404         * modules/wmemmove (configure.ac): ... to here.
3405
3406 2011-05-22  Bruno Haible  <bruno@clisp.org>
3407
3408         wmemcpy: Move AC_LIBOBJ invocations to module description.
3409         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
3410         here...
3411         * modules/wmemcpy (configure.ac): ... to here.
3412
3413 2011-05-22  Bruno Haible  <bruno@clisp.org>
3414
3415         wmemcmp: Move AC_LIBOBJ invocations to module description.
3416         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
3417         here...
3418         * modules/wmemcmp (configure.ac): ... to here.
3419
3420 2011-05-22  Bruno Haible  <bruno@clisp.org>
3421
3422         wmemchr: Move AC_LIBOBJ invocations to module description.
3423         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
3424         here...
3425         * modules/wmemchr (configure.ac): ... to here.
3426
3427 2011-05-22  Bruno Haible  <bruno@clisp.org>
3428
3429         wcswidth: Move AC_LIBOBJ invocations to module description.
3430         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
3431         here...
3432         * modules/wcswidth (configure.ac): ... to here.
3433
3434 2011-05-22  Bruno Haible  <bruno@clisp.org>
3435
3436         wcwidth: Respect rules for use of AC_LIBOBJ.
3437         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
3438         invocation from here...
3439         * modules/wcwidth (configure.ac): ... to here.
3440         (Depends-on): Update conditions.
3441
3442 2011-05-22  Bruno Haible  <bruno@clisp.org>
3443
3444         wctype: Move AC_LIBOBJ invocations to module description.
3445         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
3446         invocation from here...
3447         * modules/wctype (configure.ac): ... to here.
3448         (Depends-on): Update conditions.
3449
3450 2011-05-22  Bruno Haible  <bruno@clisp.org>
3451
3452         wctrans: Move AC_LIBOBJ invocations to module description.
3453         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
3454         invocation from here...
3455         * modules/wctrans (configure.ac): ... to here.
3456
3457 2011-05-22  Bruno Haible  <bruno@clisp.org>
3458
3459         wctomb: Move AC_LIBOBJ invocations to module description.
3460         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
3461         invocations from here...
3462         * modules/wctomb (configure.ac): ... to here.
3463
3464 2011-05-22  Bruno Haible  <bruno@clisp.org>
3465
3466         wctob: Move AC_LIBOBJ invocations to module description.
3467         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
3468         gl_PREREQ_WCTOB invocations from here...
3469         * modules/wctob (configure.ac): ... to here.
3470         (Depends-on): Update conditions.
3471
3472 2011-05-22  Bruno Haible  <bruno@clisp.org>
3473
3474         wcsxfrm: Move AC_LIBOBJ invocations to module description.
3475         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
3476         here...
3477         * modules/wcsxfrm (configure.ac): ... to here.
3478
3479 2011-05-22  Bruno Haible  <bruno@clisp.org>
3480
3481         wcstok: Move AC_LIBOBJ invocations to module description.
3482         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
3483         * modules/wcstok (configure.ac): ... to here.
3484
3485 2011-05-22  Bruno Haible  <bruno@clisp.org>
3486
3487         wcsstr: Move AC_LIBOBJ invocations to module description.
3488         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
3489         * modules/wcsstr (configure.ac): ... to here.
3490
3491 2011-05-22  Bruno Haible  <bruno@clisp.org>
3492
3493         wcsspn: Move AC_LIBOBJ invocations to module description.
3494         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
3495         * modules/wcsspn (configure.ac): ... to here.
3496
3497 2011-05-22  Bruno Haible  <bruno@clisp.org>
3498
3499         wcsrtombs: Move AC_LIBOBJ invocations to module description.
3500         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
3501         gl_PREREQ_WCSRTOMBS invocations from here...
3502         * modules/wcsrtombs (configure.ac): ... to here.
3503
3504 2011-05-22  Bruno Haible  <bruno@clisp.org>
3505
3506         wcsrchr: Move AC_LIBOBJ invocations to module description.
3507         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
3508         here...
3509         * modules/wcsrchr (configure.ac): ... to here.
3510
3511 2011-05-22  Bruno Haible  <bruno@clisp.org>
3512
3513         wcspbrk: Move AC_LIBOBJ invocations to module description.
3514         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
3515         here...
3516         * modules/wcspbrk (configure.ac): ... to here.
3517
3518 2011-05-22  Bruno Haible  <bruno@clisp.org>
3519
3520         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
3521         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
3522         gl_PREREQ_WCSNRTOMBS invocations from here...
3523         * modules/wcsnrtombs (configure.ac): ... to here.
3524
3525 2011-05-22  Bruno Haible  <bruno@clisp.org>
3526
3527         wcsnlen: Move AC_LIBOBJ invocations to module description.
3528         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
3529         here...
3530         * modules/wcsnlen (configure.ac): ... to here.
3531
3532 2011-05-22  Bruno Haible  <bruno@clisp.org>
3533
3534         wcsncpy: Move AC_LIBOBJ invocations to module description.
3535         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
3536         here...
3537         * modules/wcsncpy (configure.ac): ... to here.
3538
3539 2011-05-22  Bruno Haible  <bruno@clisp.org>
3540
3541         wcsncmp: Move AC_LIBOBJ invocations to module description.
3542         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
3543         here...
3544         * modules/wcsncmp (configure.ac): ... to here.
3545
3546 2011-05-22  Bruno Haible  <bruno@clisp.org>
3547
3548         wcsncat: Move AC_LIBOBJ invocations to module description.
3549         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
3550         here...
3551         * modules/wcsncat (configure.ac): ... to here.
3552
3553 2011-05-22  Bruno Haible  <bruno@clisp.org>
3554
3555         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
3556         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
3557         from here...
3558         * modules/wcsncasecmp (configure.ac): ... to here.
3559
3560 2011-05-22  Bruno Haible  <bruno@clisp.org>
3561
3562         wcslen: Move AC_LIBOBJ invocations to module description.
3563         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
3564         * modules/wcslen (configure.ac): ... to here.
3565
3566 2011-05-22  Bruno Haible  <bruno@clisp.org>
3567
3568         wcsdup: Move AC_LIBOBJ invocations to module description.
3569         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
3570         * modules/wcsdup (configure.ac): ... to here.
3571
3572 2011-05-22  Bruno Haible  <bruno@clisp.org>
3573
3574         wcscspn: Move AC_LIBOBJ invocations to module description.
3575         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
3576         here...
3577         * modules/wcscspn (configure.ac): ... to here.
3578
3579 2011-05-22  Bruno Haible  <bruno@clisp.org>
3580
3581         wcscpy: Move AC_LIBOBJ invocations to module description.
3582         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
3583         * modules/wcscpy (configure.ac): ... to here.
3584
3585 2011-05-22  Bruno Haible  <bruno@clisp.org>
3586
3587         wcscoll: Move AC_LIBOBJ invocations to module description.
3588         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
3589         here...
3590         * modules/wcscoll (configure.ac): ... to here.
3591
3592 2011-05-22  Bruno Haible  <bruno@clisp.org>
3593
3594         wcscmp: Move AC_LIBOBJ invocations to module description.
3595         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
3596         * modules/wcscmp (configure.ac): ... to here.
3597
3598 2011-05-22  Bruno Haible  <bruno@clisp.org>
3599
3600         wcschr: Move AC_LIBOBJ invocations to module description.
3601         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
3602         * modules/wcschr (configure.ac): ... to here.
3603
3604 2011-05-22  Bruno Haible  <bruno@clisp.org>
3605
3606         wcscat: Move AC_LIBOBJ invocations to module description.
3607         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
3608         * modules/wcscat (configure.ac): ... to here.
3609
3610 2011-05-22  Bruno Haible  <bruno@clisp.org>
3611
3612         wcscasecmp: Move AC_LIBOBJ invocations to module description.
3613         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
3614         here...
3615         * modules/wcscasecmp (configure.ac): ... to here.
3616
3617 2011-05-22  Bruno Haible  <bruno@clisp.org>
3618
3619         wcrtomb: Move AC_LIBOBJ invocations to module description.
3620         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
3621         invocations from here...
3622         * modules/wcrtomb (configure.ac): ... to here.
3623
3624 2011-05-22  Bruno Haible  <bruno@clisp.org>
3625
3626         wcpncpy: Move AC_LIBOBJ invocations to module description.
3627         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
3628         here...
3629         * modules/wcpncpy (configure.ac): ... to here.
3630
3631 2011-05-22  Bruno Haible  <bruno@clisp.org>
3632
3633         wcpcpy: Move AC_LIBOBJ invocations to module description.
3634         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
3635         * modules/wcpcpy (configure.ac): ... to here.
3636
3637 2011-05-22  Bruno Haible  <bruno@clisp.org>
3638
3639         waitpid: Move AC_LIBOBJ invocations to module description.
3640         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
3641         invocation from here...
3642         * modules/waitpid (configure.ac): ... to here.
3643
3644 2011-05-22  Bruno Haible  <bruno@clisp.org>
3645
3646         utimensat: Move AC_LIBOBJ invocations to module description.
3647         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
3648         here...
3649         * modules/utimensat (configure.ac): ... to here.
3650
3651 2011-05-22  Bruno Haible  <bruno@clisp.org>
3652
3653         usleep: Move AC_LIBOBJ invocations to module description.
3654         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
3655         here...
3656         * modules/usleep (configure.ac): ... to here.
3657
3658 2011-05-22  Bruno Haible  <bruno@clisp.org>
3659
3660         unlockpt: Move AC_LIBOBJ invocations to module description.
3661         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
3662         gl_PREREQ_UNLOCKPT invocations from here...
3663         * modules/unlockpt (configure.ac): ... to here.
3664
3665 2011-05-22  Bruno Haible  <bruno@clisp.org>
3666
3667         unlink: Respect rules for use of AC_LIBOBJ.
3668         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
3669         * modules/unlink (configure.ac): ... to here.
3670
3671 2011-05-22  Bruno Haible  <bruno@clisp.org>
3672
3673         uname: Move AC_LIBOBJ invocations to module description.
3674         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
3675         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
3676         here...
3677         * modules/uname (configure.ac): ... to here.
3678
3679 2011-05-22  Bruno Haible  <bruno@clisp.org>
3680
3681         ttyname_r: Move AC_LIBOBJ invocations to module description.
3682         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
3683         gl_PREREQ_TTYNAME_R invocations from here...
3684         * modules/ttyname_r (configure.ac): ... to here.
3685
3686 2011-05-22  Bruno Haible  <bruno@clisp.org>
3687
3688         tsearch: Move AC_LIBOBJ invocations to module description.
3689         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
3690         invocations from here...
3691         * modules/tsearch (configure.ac): ... to here.
3692
3693 2011-05-22  Bruno Haible  <bruno@clisp.org>
3694
3695         towctrans: Move AC_LIBOBJ invocations to module description.
3696         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
3697         AC_LIBOBJ invocation from here...
3698         * modules/towctrans (configure.ac): ... to here.
3699
3700 2011-05-22  Bruno Haible  <bruno@clisp.org>
3701
3702         tmpfile: Move AC_LIBOBJ invocations to module description.
3703         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
3704         invocations from here...
3705         * modules/tmpfile (configure.ac): ... to here.
3706
3707 2011-05-22  Bruno Haible  <bruno@clisp.org>
3708
3709         times: Move AC_LIBOBJ invocations to module description.
3710         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
3711         * modules/times (configure.ac): ... to here.
3712
3713 2011-05-22  Bruno Haible  <bruno@clisp.org>
3714
3715         time_r: Move AC_LIBOBJ invocations to module description.
3716         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
3717         invocations from here...
3718         * modules/time_r (configure.ac): ... to here.
3719
3720 2011-05-22  Bruno Haible  <bruno@clisp.org>
3721
3722         timegm: Move AC_LIBOBJ invocations to module description.
3723         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
3724         invocations from here...
3725         * modules/timegm (configure.ac): ... to here.
3726
3727 2011-05-22  Bruno Haible  <bruno@clisp.org>
3728
3729         tcgetsid: Move AC_LIBOBJ invocations to module description.
3730         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
3731         and gl_PREREQ_TCGETSID invocations from here...
3732         * modules/tcgetsid (configure.ac): ... to here.
3733         (Depends-on): Update conditions.
3734
3735 2011-05-22  Bruno Haible  <bruno@clisp.org>
3736
3737         symlinkat: Move AC_LIBOBJ invocations to module description.
3738         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
3739         here...
3740         * modules/symlinkat (configure.ac): ... to here.
3741
3742 2011-05-22  Bruno Haible  <bruno@clisp.org>
3743
3744         symlink: Move AC_LIBOBJ invocations to module description.
3745         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
3746         here...
3747         * modules/symlink (configure.ac): ... to here.
3748
3749 2011-05-22  Bruno Haible  <bruno@clisp.org>
3750
3751         strverscmp: Move AC_LIBOBJ invocations to module description.
3752         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
3753         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
3754         from here...
3755         * modules/strverscmp (configure.ac): ... to here.
3756
3757 2011-05-22  Bruno Haible  <bruno@clisp.org>
3758
3759         strtok_r: Move AC_LIBOBJ invocations to module description.
3760         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
3761         and gl_PREREQ_STRTOK_R invocations from here...
3762         * modules/strtok_r (configure.ac): ... to here.
3763         (Depends-on): Update conditions.
3764
3765 2011-05-22  Bruno Haible  <bruno@clisp.org>
3766
3767         strtoumax: Move AC_LIBOBJ invocations to module description.
3768         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
3769         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
3770         from here...
3771         * modules/strtoumax (configure.ac): ... to here.
3772
3773 2011-05-22  Bruno Haible  <bruno@clisp.org>
3774
3775         strtoimax: Move AC_LIBOBJ invocations to module description.
3776         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
3777         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
3778         from here...
3779         * modules/strtoimax (configure.ac): ... to here.
3780
3781 2011-05-22  Bruno Haible  <bruno@clisp.org>
3782
3783         strtoull: Move AC_LIBOBJ invocations to module description.
3784         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
3785         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
3786         from here...
3787         * modules/strtoull (configure.ac): ... to here.
3788
3789 2011-05-22  Bruno Haible  <bruno@clisp.org>
3790
3791         strtoll: Move AC_LIBOBJ invocations to module description.
3792         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
3793         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
3794         here...
3795         * modules/strtoll (configure.ac): ... to here.
3796
3797 2011-05-22  Bruno Haible  <bruno@clisp.org>
3798
3799         strtoul: Move AC_LIBOBJ invocations to module description.
3800         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
3801         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3802         * modules/strtoul (configure.ac): ... to here.
3803
3804 2011-05-22  Bruno Haible  <bruno@clisp.org>
3805
3806         strtol: Move AC_LIBOBJ invocations to module description.
3807         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
3808         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3809         * modules/strtol (configure.ac): ... to here.
3810
3811 2011-05-22  Bruno Haible  <bruno@clisp.org>
3812
3813         strtod: Move AC_LIBOBJ invocations to module description.
3814         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
3815         invocations from here...
3816         * modules/strtod (configure.ac): ... to here.
3817
3818 2011-05-22  Bruno Haible  <bruno@clisp.org>
3819
3820         strstr*: Move AC_LIBOBJ invocations to module description.
3821         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
3822         invocations from here...
3823         * modules/strstr-simple (configure.ac): ... to here.
3824         * modules/strstr (configure.ac): ... and here.
3825
3826 2011-05-22  Bruno Haible  <bruno@clisp.org>
3827
3828         strsignal: Move AC_LIBOBJ invocations to module description.
3829         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
3830         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
3831         * modules/strsignal (configure.ac): ... to here.
3832         (Depends-on): Update conditions.
3833
3834 2011-05-22  Bruno Haible  <bruno@clisp.org>
3835
3836         strsep: Move AC_LIBOBJ invocations to module description.
3837         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
3838         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
3839         here...
3840         * modules/strsep (configure.ac): ... to here.
3841
3842 2011-05-22  Bruno Haible  <bruno@clisp.org>
3843
3844         strptime: Move AC_LIBOBJ invocations to module description.
3845         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
3846         gl_PREREQ_STRPTIME invocations from here...
3847         * modules/strptime (configure.ac): ... to here.
3848
3849 2011-05-22  Bruno Haible  <bruno@clisp.org>
3850
3851         strpbrk: Move AC_LIBOBJ invocations to module description.
3852         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
3853         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
3854         here...
3855         * modules/strpbrk (configure.ac): ... to here.
3856
3857 2011-05-22  Bruno Haible  <bruno@clisp.org>
3858
3859         strnlen: Move AC_LIBOBJ invocations to module description.
3860         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
3861         invocations from here...
3862         * modules/strnlen (configure.ac): ... to here.
3863
3864 2011-05-22  Bruno Haible  <bruno@clisp.org>
3865
3866         strndup: Move AC_LIBOBJ invocations to module description.
3867         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
3868         invocations from here...
3869         * modules/strndup (configure.ac): ... to here.
3870         (Depends-on): Update conditions.
3871
3872 2011-05-22  Bruno Haible  <bruno@clisp.org>
3873
3874         strncat: Move AC_LIBOBJ invocations to module description.
3875         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
3876         invocations from here...
3877         * modules/strncat (configure.ac): ... to here.
3878
3879 2011-05-22  Bruno Haible  <bruno@clisp.org>
3880
3881         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
3882         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
3883         invocations from here...
3884         * modules/strdup (configure.ac): ... to here.
3885         * modules/strdup-posix (configure.ac): ... and here.
3886
3887 2011-05-22  Bruno Haible  <bruno@clisp.org>
3888
3889         strcspn: Move AC_LIBOBJ invocations to module description.
3890         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
3891         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
3892         here...
3893         * modules/strcspn (configure.ac): ... to here.
3894
3895 2011-05-22  Bruno Haible  <bruno@clisp.org>
3896
3897         strchrnul: Move AC_LIBOBJ invocations to module description.
3898         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
3899         gl_PREREQ_STRCHRNUL invocations from here...
3900         * modules/strchrnul (configure.ac): ... to here.
3901
3902 2011-05-22  Bruno Haible  <bruno@clisp.org>
3903
3904         strcasestr*: Move AC_LIBOBJ invocations to module description.
3905         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
3906         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
3907         * modules/strcasestr-simple (configure.ac): ... to here.
3908         * modules/strcasestr (configure.ac): ... and here.
3909
3910 2011-05-22  Bruno Haible  <bruno@clisp.org>
3911
3912         strcase: Move AC_LIBOBJ invocations to module description.
3913         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
3914         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
3915         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
3916         gl_PREREQ_STRNCASECMP invocations from here...
3917         * modules/strcase (configure.ac): ... to here.
3918
3919 2011-05-22  Bruno Haible  <bruno@clisp.org>
3920
3921         stpncpy: Move AC_LIBOBJ invocations to module description.
3922         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
3923         here...
3924         * modules/stpncpy (configure.ac): ... to here.
3925
3926 2011-05-22  Bruno Haible  <bruno@clisp.org>
3927
3928         stpcpy: Move AC_LIBOBJ invocations to module description.
3929         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
3930         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
3931         here...
3932         * modules/stpcpy (configure.ac): ... to here.
3933
3934 2011-05-21  Bruno Haible  <bruno@clisp.org>
3935
3936         stat: Move AC_LIBOBJ invocations to module description.
3937         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
3938         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
3939         here...
3940         * modules/stat (configure.ac): ... to here.
3941
3942 2011-05-21  Bruno Haible  <bruno@clisp.org>
3943
3944         sleep: Move AC_LIBOBJ invocations to module description.
3945         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
3946         * modules/sleep (configure.ac): ... to here.
3947
3948 2011-05-21  Bruno Haible  <bruno@clisp.org>
3949
3950         signbit: Move AC_LIBOBJ invocations to module description.
3951         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
3952         * modules/signbit (configure.ac): ... to here.
3953
3954 2011-05-21  Bruno Haible  <bruno@clisp.org>
3955
3956         sigprocmask: Move AC_LIBOBJ invocations to module description.
3957         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
3958         gl_PREREQ_SIGPROMASK invocations from here...
3959         * modules/sigprocmask (configure.ac): ... to here.
3960
3961 2011-05-21  Bruno Haible  <bruno@clisp.org>
3962
3963         sigaction: Move AC_LIBOBJ invocations to module description.
3964         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
3965         gl_PREREQ_SIGACTION invocations from here...
3966         * modules/sigaction (configure.ac): ... to here.
3967
3968 2011-05-21  Bruno Haible  <bruno@clisp.org>
3969
3970         sig2str: Move AC_LIBOBJ invocations to module description.
3971         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
3972         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
3973         here...
3974         * modules/sig2str (configure.ac): ... to here.
3975
3976 2011-05-21  Bruno Haible  <bruno@clisp.org>
3977
3978         setlocale: Move AC_LIBOBJ invocations to module description.
3979         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
3980         gl_PREREQ_SETLOCALE invocations from here...
3981         * modules/setlocale (configure.ac): ... to here.
3982
3983 2011-05-21  Bruno Haible  <bruno@clisp.org>
3984
3985         unsetenv: Move AC_LIBOBJ invocations to module description.
3986         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
3987         and gl_PREREQ_UNSETENV invocations from here...
3988         * modules/unsetenv (configure.ac): ... to here.
3989         (Depends-on): Update.
3990
3991 2011-05-21  Bruno Haible  <bruno@clisp.org>
3992
3993         setenv: Move AC_LIBOBJ invocations to module description.
3994         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
3995         here...
3996         * modules/setenv (configure.ac): ... to here.
3997
3998 2011-05-21  Bruno Haible  <bruno@clisp.org>
3999
4000         selinux-h: Move AC_LIBOBJ invocations to module description.
4001         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
4002         AC_LIBOBJ invocation from here...
4003         * modules/selinux-h (configure.ac): ... to here.
4004
4005 2011-05-21  Bruno Haible  <bruno@clisp.org>
4006
4007         select: Respect rules for use of AC_LIBOBJ.
4008         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
4009         here...
4010         * modules/select (configure.ac): ... to here.
4011
4012 2011-05-21  Bruno Haible  <bruno@clisp.org>
4013
4014         scandir: Move AC_LIBOBJ invocations to module description.
4015         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
4016         invocations from here...
4017         * modules/scandir (configure.ac): ... to here.
4018
4019 2011-05-21  Bruno Haible  <bruno@clisp.org>
4020
4021         rpmatch: Move AC_LIBOBJ invocations to module description.
4022         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
4023         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
4024         here...
4025         * modules/rpmatch (configure.ac): ... to here.
4026
4027 2011-05-21  Bruno Haible  <bruno@clisp.org>
4028
4029         rmdir: Respect rules for use of AC_LIBOBJ.
4030         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
4031         * modules/rmdir (configure.ac): ... to here.
4032
4033 2011-05-21  Bruno Haible  <bruno@clisp.org>
4034
4035         renameat: Move AC_LIBOBJ invocations to module description.
4036         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
4037         here...
4038         * modules/renameat (configure.ac): ... to here.
4039
4040 2011-05-21  Bruno Haible  <bruno@clisp.org>
4041
4042         rename: Respect rules for use of AC_LIBOBJ.
4043         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
4044         here...
4045         * modules/rename (configure.ac): ... to here.
4046
4047 2011-05-21  Bruno Haible  <bruno@clisp.org>
4048
4049         remove: Move AC_LIBOBJ invocations to module description.
4050         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
4051         here...
4052         * modules/remove (configure.ac): ... to here.
4053
4054 2011-05-21  Bruno Haible  <bruno@clisp.org>
4055
4056         relocatable-lib: Move AC_LIBOBJ invocations to module description.
4057         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
4058         macro.
4059         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
4060         * modules/relocatable-lib (configure.ac): ... to here.
4061         * modules/relocatable-prog-wrapper (configure.ac): Invoke
4062         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
4063
4064 2011-05-21  Bruno Haible  <bruno@clisp.org>
4065
4066         relocatable-prog: Move AC_LIBOBJ invocations to module description.
4067         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
4068         here...
4069         * modules/relocatable-prog (configure.ac): ... to here.
4070
4071 2011-05-21  Bruno Haible  <bruno@clisp.org>
4072
4073         regex: Move AC_LIBOBJ invocations to module description.
4074         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
4075         invocations from here...
4076         * modules/regex (configure.ac): ... to here.
4077
4078 2011-05-21  Bruno Haible  <bruno@clisp.org>
4079
4080         realloc-*: Move AC_LIBOBJ invocations to module description.
4081         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
4082         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
4083         AC_LIBOBJ invocations from here...
4084         * modules/realloc-gnu (configure.ac): ... to here.
4085         * modules/realloc-posix (configure.ac): ... and here.
4086
4087 2011-05-21  Bruno Haible  <bruno@clisp.org>
4088
4089         readutmp: Move AC_LIBOBJ invocations to module description.
4090         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
4091         * modules/readutmp (configure.ac): ... to here.
4092
4093 2011-05-21  Bruno Haible  <bruno@clisp.org>
4094
4095         readlinkat: Move AC_LIBOBJ invocations to module description.
4096         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
4097         here...
4098         * modules/readlinkat (configure.ac): ... to here.
4099
4100 2011-05-21  Bruno Haible  <bruno@clisp.org>
4101
4102         readlink: Move AC_LIBOBJ invocations to module description.
4103         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
4104         gl_PREREQ_READLINK invocations from here...
4105         * modules/readlink (configure.ac): ... to here.
4106
4107 2011-05-21  Bruno Haible  <bruno@clisp.org>
4108
4109         readline: Move AC_LIBOBJ invocations to module description.
4110         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
4111         gl_PREREQ_READLINE invocations from here...
4112         * modules/readline (configure.ac): ... to here.
4113
4114 2011-05-21  Bruno Haible  <bruno@clisp.org>
4115
4116         read: Move AC_LIBOBJ invocations to module description.
4117         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
4118         * modules/read (configure.ac): ... to here.
4119
4120 2011-05-21  Bruno Haible  <bruno@clisp.org>
4121
4122         rawmemchr: Move AC_LIBOBJ invocations to module description.
4123         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
4124         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
4125         from here...
4126         * modules/rawmemchr (configure.ac): ... to here.
4127
4128 2011-05-21  Bruno Haible  <bruno@clisp.org>
4129
4130         random_r: Move AC_LIBOBJ invocations to module description.
4131         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
4132         gl_PREREQ_RANDOM_R invocations from here...
4133         * modules/random_r (configure.ac): ... to here.
4134
4135 2011-05-21  Bruno Haible  <bruno@clisp.org>
4136
4137         pwrite: Move AC_LIBOBJ invocations to module description.
4138         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
4139         * modules/pwrite (configure.ac): ... to here.
4140
4141 2011-05-21  Bruno Haible  <bruno@clisp.org>
4142
4143         putenv: Move AC_LIBOBJ invocations to module description.
4144         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
4145         * modules/putenv (configure.ac): ... to here.
4146
4147 2011-05-21  Bruno Haible  <bruno@clisp.org>
4148
4149         login_tty: Move AC_LIBOBJ invocations to module description.
4150         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
4151         * modules/login_tty (configure.ac): ... to here.
4152
4153 2011-05-21  Bruno Haible  <bruno@clisp.org>
4154
4155         openpty: Move AC_LIBOBJ invocations to module description.
4156         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
4157         * modules/openpty (configure.ac): ... to here.
4158
4159 2011-05-21  Bruno Haible  <bruno@clisp.org>
4160
4161         forkpty: Move AC_LIBOBJ invocations to module description.
4162         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
4163         * modules/forkpty (configure.ac): ... to here.
4164
4165 2011-05-21  Bruno Haible  <bruno@clisp.org>
4166
4167         ptsname: Move AC_LIBOBJ invocations to module description.
4168         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
4169         invocations from here...
4170         * modules/ptsname (configure.ac): ... to here.
4171
4172 2011-05-21  Bruno Haible  <bruno@clisp.org>
4173
4174         pread: Move AC_LIBOBJ invocations to module description.
4175         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
4176         * modules/pread (configure.ac): ... to here.
4177
4178 2011-05-21  Bruno Haible  <bruno@clisp.org>
4179
4180         posix_spawn*: Move AC_LIBOBJ invocations to module description.
4181         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
4182         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
4183         * modules/posix_spawn (configure.ac): ... to here.
4184         * modules/posix_spawnp (configure.ac): ... and here.
4185
4186 2011-05-21  Bruno Haible  <bruno@clisp.org>
4187
4188         popen: Move AC_LIBOBJ invocations to module description.
4189         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
4190         invocations from here...
4191         * modules/popen (configure.ac): ... to here.
4192
4193 2011-05-21  Bruno Haible  <bruno@clisp.org>
4194
4195         poll: Move AC_LIBOBJ invocations to module description.
4196         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
4197         invocations from here...
4198         * modules/poll (configure.ac): ... to here.
4199
4200 2011-05-21  Bruno Haible  <bruno@clisp.org>
4201
4202         pipe-posix: Move AC_LIBOBJ invocations to module description.
4203         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
4204         * modules/pipe-posix (configure.ac): ... to here.
4205
4206 2011-05-21  Bruno Haible  <bruno@clisp.org>
4207
4208         openat: Respect rules for use of AC_LIBOBJ.
4209         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
4210         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4211         * modules/openat (configure.ac): ... to here.
4212
4213 2011-05-21  Bruno Haible  <bruno@clisp.org>
4214
4215         obstack-printf*: Move AC_LIBOBJ invocations to module description.
4216         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
4217         invocation from here...
4218         * modules/obstack-printf (configure.ac): ... to here.
4219         * modules/obstack-printf-posix (configure.ac): ... and here.
4220
4221 2011-05-21  Bruno Haible  <bruno@clisp.org>
4222
4223         nl_langinfo: Move AC_LIBOBJ invocations to module description.
4224         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
4225         from here...
4226         * modules/nl_langinfo (configure.ac): ... to here.
4227
4228 2011-05-21  Bruno Haible  <bruno@clisp.org>
4229
4230         nanosleep: Move AC_LIBOBJ invocations to module description.
4231         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
4232         gl_PREREQ_NANOSLEEP invocations from here...
4233         * modules/nanosleep (configure.ac): ... to here.
4234
4235 2011-05-21  Bruno Haible  <bruno@clisp.org>
4236
4237         mountlist: Move AC_LIBOBJ invocations to module description.
4238         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
4239         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
4240         * modules/mountlist (configure.ac): ... to here.
4241
4242 2011-05-21  Bruno Haible  <bruno@clisp.org>
4243
4244         mktime: Respect rules for use of AC_LIBOBJ.
4245         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
4246         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
4247         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
4248         (gl_FUNC_MKTIME_INTERNAL): ... and here...
4249         * modules/mktime (configure.ac): ... to here.
4250         * modules/mktime-internal (configure.ac): ... and here.
4251         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
4252
4253 2011-05-21  Bruno Haible  <bruno@clisp.org>
4254
4255         mkstemps: Move AC_LIBOBJ invocations to module description.
4256         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
4257         here...
4258         * modules/mkstemps (configure.ac): ... to here.
4259
4260 2011-05-21  Bruno Haible  <bruno@clisp.org>
4261
4262         mkstemp: Move AC_LIBOBJ invocations to module description.
4263         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
4264         gl_PREREQ_MKSTEMP invocations from here...
4265         * modules/mkstemp (configure.ac): ... to here.
4266
4267 2011-05-21  Bruno Haible  <bruno@clisp.org>
4268
4269         mkostemps: Move AC_LIBOBJ invocations to module description.
4270         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
4271         here...
4272         * modules/mkostemps (configure.ac): ... to here.
4273
4274 2011-05-21  Bruno Haible  <bruno@clisp.org>
4275
4276         mkostemp: Move AC_LIBOBJ invocations to module description.
4277         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
4278         gl_PREREQ_MKOSTEMP invocations from here...
4279         * modules/mkostemp (configure.ac): ... to here.
4280
4281 2011-05-21  Bruno Haible  <bruno@clisp.org>
4282
4283         mknod: Move AC_LIBOBJ invocations to module description.
4284         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
4285         * modules/mknod (configure.ac): ... to here.
4286
4287 2011-05-21  Bruno Haible  <bruno@clisp.org>
4288
4289         mkfifoat: Move AC_LIBOBJ invocations to module description.
4290         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
4291         here...
4292         * modules/mkfifoat (configure.ac): ... to here.
4293
4294 2011-05-21  Bruno Haible  <bruno@clisp.org>
4295
4296         mkfifo: Respect rules for use of AC_LIBOBJ.
4297         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
4298         here...
4299         * modules/mkfifo (configure.ac): ... to here.
4300
4301 2011-05-21  Bruno Haible  <bruno@clisp.org>
4302
4303         mkdtemp: Move AC_LIBOBJ invocations to module description.
4304         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
4305         invocations from here...
4306         * modules/mkdtemp (configure.ac): ... to here.
4307
4308 2011-05-21  Bruno Haible  <bruno@clisp.org>
4309
4310         mkdir: Move AC_LIBOBJ invocations to module description.
4311         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
4312         * modules/mkdir (configure.ac): ... to here.
4313
4314 2011-05-21  Bruno Haible  <bruno@clisp.org>
4315
4316         memset: Move AC_LIBOBJ invocations to module description.
4317         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
4318         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
4319         here...
4320         * modules/memset (configure.ac): ... to here.
4321
4322 2011-05-21  Bruno Haible  <bruno@clisp.org>
4323
4324         memrchr: Move AC_LIBOBJ invocations to module description.
4325         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
4326         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
4327         here...
4328         * modules/memrchr (configure.ac): ... to here.
4329
4330 2011-05-21  Bruno Haible  <bruno@clisp.org>
4331
4332         mempcpy: Move AC_LIBOBJ invocations to module description.
4333         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
4334         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
4335         here...
4336         * modules/mempcpy (configure.ac): ... to here.
4337
4338 2011-05-21  Bruno Haible  <bruno@clisp.org>
4339
4340         memmove: Move AC_LIBOBJ invocations to module description.
4341         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
4342         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
4343         here...
4344         * modules/memmove (configure.ac): ... to here.
4345
4346 2011-05-21  Bruno Haible  <bruno@clisp.org>
4347
4348         memmem*: Move AC_LIBOBJ invocations to module description.
4349         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
4350         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
4351         here...
4352         (gl_FUNC_MEMMEM): ... and here...
4353         * modules/memmem-simple (configure.ac): ... to here.
4354         * modules/memmem (configure.ac): ... and here.
4355
4356 2011-05-21  Bruno Haible  <bruno@clisp.org>
4357
4358         memcpy: Move AC_LIBOBJ invocations to module description.
4359         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
4360         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
4361         here...
4362         * modules/memcpy (configure.ac): ... to here.
4363
4364 2011-05-21  Bruno Haible  <bruno@clisp.org>
4365
4366         memcmp: Simplify autoconf macro.
4367         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
4368         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
4369         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
4370
4371 2011-05-21  Bruno Haible  <bruno@clisp.org>
4372
4373         memcmp: Move AC_LIBOBJ invocations to module description.
4374         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
4375         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
4376         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
4377         * modules/memcmp (configure.ac): ... to here.
4378         (Depends-on): Update conditions.
4379
4380 2011-05-21  Bruno Haible  <bruno@clisp.org>
4381
4382         memchr: Respect rules for use of AC_LIBOBJ.
4383         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
4384         invocations from here...
4385         * modules/memchr (configure.ac): ... to here.
4386
4387 2011-05-21  Bruno Haible  <bruno@clisp.org>
4388
4389         mbtowc: Move AC_LIBOBJ invocations to module description.
4390         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
4391         invocations from here...
4392         * modules/mbtowc (configure.ac): ... to here.
4393
4394 2011-05-21  Bruno Haible  <bruno@clisp.org>
4395
4396         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
4397         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
4398         gl_PREREQ_MBSRTOWCS invocations from here...
4399         * modules/mbsrtowcs (configure.ac): ... to here.
4400
4401 2011-05-21  Bruno Haible  <bruno@clisp.org>
4402
4403         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
4404         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
4405         gl_PREREQ_MBSNRTOWCS invocations from here...
4406         * modules/mbsnrtowcs (configure.ac): ... to here.
4407
4408 2011-05-21  Bruno Haible  <bruno@clisp.org>
4409
4410         mbsinit: Move AC_LIBOBJ invocations to module description.
4411         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
4412         invocations from here...
4413         * modules/mbsinit (configure.ac): ... to here.
4414
4415 2011-05-21  Bruno Haible  <bruno@clisp.org>
4416
4417         mbrlen: Move AC_LIBOBJ invocations to module description.
4418         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
4419         invocations from here...
4420         * modules/mbrlen (configure.ac): ... to here.
4421
4422 2011-05-21  Bruno Haible  <bruno@clisp.org>
4423
4424         mbrtowc: Respect rules for use of AC_LIBOBJ.
4425         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
4426         invocations from here...
4427         * modules/mbrtowc (configure.ac): ... to here.
4428
4429 2011-05-21  Bruno Haible  <bruno@clisp.org>
4430
4431         malloc-*: Move AC_LIBOBJ invocations to module description.
4432         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
4433         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
4434         AC_LIBOBJ invocations from here...
4435         * modules/malloc-gnu (configure.ac): ... to here.
4436         * modules/malloc-posix (configure.ac): ... and here.
4437
4438 2011-05-21  Bruno Haible  <bruno@clisp.org>
4439
4440         lstat, openat: Respect rules for use of AC_LIBOBJ.
4441         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
4442         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
4443         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
4444         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
4445         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
4446         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
4447         here.
4448         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4449
4450 2011-05-21  Bruno Haible  <bruno@clisp.org>
4451
4452         lseek: Move AC_LIBOBJ invocations to module description.
4453         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
4454         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4455         * modules/lseek (configure.ac): ... to here.
4456
4457 2011-05-21  Bruno Haible  <bruno@clisp.org>
4458
4459         linkat: Move AC_LIBOBJ invocations to module description.
4460         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
4461         here...
4462         * modules/linkat (configure.ac): ... to here.
4463
4464 2011-05-21  Bruno Haible  <bruno@clisp.org>
4465
4466         link: Respect rules for use of AC_LIBOBJ.
4467         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
4468         * modules/link (configure.ac): ... to here.
4469
4470 2011-05-21  Bruno Haible  <bruno@clisp.org>
4471
4472         lchown: Move AC_LIBOBJ invocations to module description.
4473         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4474         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4475         * modules/lchown (configure.ac): ... to here.
4476
4477 2011-05-21  Bruno Haible  <bruno@clisp.org>
4478
4479         iswctype: Move AC_LIBOBJ invocations to module description.
4480         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
4481         here...
4482         * modules/iswctype (configure.ac): ... to here.
4483
4484 2011-05-21  Bruno Haible  <bruno@clisp.org>
4485
4486         iswblank: Move AC_LIBOBJ invocations to module description.
4487         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
4488         here...
4489         * modules/iswblank (configure.ac): ... to here.
4490
4491 2011-05-21  Bruno Haible  <bruno@clisp.org>
4492
4493         atanl: Move AC_LIBOBJ invocations to module description.
4494         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
4495         * modules/atanl (configure.ac): ... to here.
4496
4497 2011-05-21  Bruno Haible  <bruno@clisp.org>
4498
4499         acosl: Move AC_LIBOBJ invocations to module description.
4500         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
4501         * modules/acosl (configure.ac): ... to here.
4502
4503 2011-05-21  Bruno Haible  <bruno@clisp.org>
4504
4505         asinl: Respect rules for use of AC_LIBOBJ.
4506         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
4507         * modules/asinl (configure.ac): ... to here.
4508
4509 2011-05-21  Bruno Haible  <bruno@clisp.org>
4510
4511         tanl: Move AC_LIBOBJ invocations to module description.
4512         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
4513         * modules/tanl (configure.ac): ... to here.
4514
4515 2011-05-21  Bruno Haible  <bruno@clisp.org>
4516
4517         cosl: Move AC_LIBOBJ invocations to module description.
4518         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
4519         * modules/cosl (configure.ac): ... to here.
4520
4521 2011-05-21  Bruno Haible  <bruno@clisp.org>
4522
4523         sinl: Move AC_LIBOBJ invocations to module description.
4524         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
4525         * modules/sinl (configure.ac): ... to here.
4526
4527 2011-05-21  Bruno Haible  <bruno@clisp.org>
4528
4529         logl: Move AC_LIBOBJ invocations to module description.
4530         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
4531         * modules/logl (configure.ac): ... to here.
4532
4533 2011-05-21  Bruno Haible  <bruno@clisp.org>
4534
4535         expl: Move AC_LIBOBJ invocations to module description.
4536         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
4537         * modules/expl (configure.ac): ... to here.
4538
4539 2011-05-21  Bruno Haible  <bruno@clisp.org>
4540
4541         roundl: Move AC_LIBOBJ invocations to module description.
4542         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
4543         * modules/roundl (configure.ac): ... to here.
4544
4545 2011-05-21  Bruno Haible  <bruno@clisp.org>
4546
4547         round: Move AC_LIBOBJ invocations to module description.
4548         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
4549         * modules/round (configure.ac): ... to here.
4550
4551 2011-05-21  Bruno Haible  <bruno@clisp.org>
4552
4553         roundf: Move AC_LIBOBJ invocations to module description.
4554         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
4555         * modules/roundf (configure.ac): ... to here.
4556
4557 2011-05-21  Bruno Haible  <bruno@clisp.org>
4558
4559         truncl: Move AC_LIBOBJ invocations to module description.
4560         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
4561         * modules/truncl (configure.ac): ... to here.
4562
4563 2011-05-21  Bruno Haible  <bruno@clisp.org>
4564
4565         trunc: Move AC_LIBOBJ invocations to module description.
4566         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
4567         * modules/trunc (configure.ac): ... to here.
4568
4569 2011-05-21  Bruno Haible  <bruno@clisp.org>
4570
4571         truncf: Move AC_LIBOBJ invocations to module description.
4572         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
4573         * modules/truncf (configure.ac): ... to here.
4574
4575 2011-05-21  Bruno Haible  <bruno@clisp.org>
4576
4577         ceill: Move AC_LIBOBJ invocations to module description.
4578         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
4579         * modules/ceill (configure.ac): ... to here.
4580
4581 2011-05-21  Bruno Haible  <bruno@clisp.org>
4582
4583         ceil: Move AC_LIBOBJ invocations to module description.
4584         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
4585         * modules/ceil (configure.ac): ... to here.
4586
4587 2011-05-21  Bruno Haible  <bruno@clisp.org>
4588
4589         ceilf: Move AC_LIBOBJ invocations to module description.
4590         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
4591         * modules/ceilf (configure.ac): ... to here.
4592
4593 2011-05-21  Bruno Haible  <bruno@clisp.org>
4594
4595         floorl: Respect rules for use of AC_LIBOBJ.
4596         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
4597         * modules/floorl (configure.ac): ... to here.
4598
4599 2011-05-21  Bruno Haible  <bruno@clisp.org>
4600
4601         floor: Respect rules for use of AC_LIBOBJ.
4602         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
4603         * modules/floor (configure.ac): ... to here.
4604
4605 2011-05-21  Bruno Haible  <bruno@clisp.org>
4606
4607         floorf: Move AC_LIBOBJ invocations to module description.
4608         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
4609         * modules/floorf (configure.ac): ... to here.
4610
4611 2011-05-20  Bruno Haible  <bruno@clisp.org>
4612
4613         sqrtl: Respect rules for use of AC_LIBOBJ.
4614         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
4615         * modules/sqrtl (configure.ac): ... to here.
4616
4617 2011-05-20  Bruno Haible  <bruno@clisp.org>
4618
4619         ldexpl: Respect rules for use of AC_LIBOBJ.
4620         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
4621         * modules/ldexpl (configure.ac): ... to here.
4622
4623 2011-05-20  Bruno Haible  <bruno@clisp.org>
4624
4625         frexpl*: Respect rules for use of AC_LIBOBJ.
4626         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
4627         invocation from here...
4628         * modules/frexpl (configure.ac): ... to here.
4629         * modules/frexpl-nolibm (configure.ac): ... and here.
4630
4631 2011-05-20  Bruno Haible  <bruno@clisp.org>
4632
4633         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
4634         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
4635         invocation from here...
4636         * modules/frexp (configure.ac): ... to here.
4637         * modules/frexp-nolibm (configure.ac): ... and here.
4638
4639 2011-05-20  Bruno Haible  <bruno@clisp.org>
4640
4641         isnan: Respect rules for use of AC_LIBOBJ.
4642         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
4643         invocations here.
4644         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
4645         REPLACE_ISNAN.
4646         * modules/isnand (configure.ac): Likewise.
4647         * modules/isnanl (configure.ac): Likewise.
4648
4649 2011-05-20  Bruno Haible  <bruno@clisp.org>
4650
4651         isnanl*: Respect rules for use of AC_LIBOBJ.
4652         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
4653         invocation from here...
4654         * modules/isnanl (configure.ac): ... to here.
4655         * modules/isnanl-nolibm (configure.ac): ... and here.
4656
4657 2011-05-20  Bruno Haible  <bruno@clisp.org>
4658
4659         isnand*: Move AC_LIBOBJ invocations to module description.
4660         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
4661         invocation from here...
4662         * modules/isnand (configure.ac): ... to here.
4663         * modules/isnand-nolibm (configure.ac): ... and here.
4664
4665 2011-05-20  Bruno Haible  <bruno@clisp.org>
4666
4667         isnanf*: Move AC_LIBOBJ invocations to module description.
4668         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
4669         invocation from here...
4670         * modules/isnanf (configure.ac): ... to here.
4671         * modules/isnanf-nolibm (configure.ac): ... and here.
4672
4673 2011-05-20  Bruno Haible  <bruno@clisp.org>
4674
4675         isnan*: Separate the AC_LIBOBJ invocations.
4676         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
4677         AC_LIBOBJ invocation.
4678         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
4679         here.
4680         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
4681         AC_LIBOBJ invocation.
4682         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
4683         here.
4684         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
4685         AC_LIBOBJ invocation.
4686         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
4687         here.
4688         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
4689
4690 2011-05-08  Bruno Haible  <bruno@clisp.org>
4691
4692         isinf: Move AC_LIBOBJ invocations to module description.
4693         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
4694         * modules/isinf (configure.ac): ... to here.
4695
4696 2011-05-08  Bruno Haible  <bruno@clisp.org>
4697
4698         isfinite: Move AC_LIBOBJ invocations to module description.
4699         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
4700         * modules/isfinite (configure.ac): ... to here.
4701
4702 2011-05-08  Bruno Haible  <bruno@clisp.org>
4703
4704         isblank: Move AC_LIBOBJ invocations to module description.
4705         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
4706         here...
4707         * modules/isblank (configure.ac): ... to here.
4708
4709 2011-05-08  Bruno Haible  <bruno@clisp.org>
4710
4711         isapipe: Move AC_LIBOBJ invocations to module description.
4712         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
4713         gl_PREREQ_ISAPIPE invocations from here...
4714         * modules/isapipe (configure.ac): ... to here.
4715         (Depends-on): Update condition.
4716
4717 2011-05-08  Bruno Haible  <bruno@clisp.org>
4718
4719         ioctl: Move AC_LIBOBJ invocations to module description.
4720         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
4721         invocations from here...
4722         * modules/ioctl (configure.ac): ... to here.
4723         (Depends-on): Update condition.
4724
4725 2011-05-08  Bruno Haible  <bruno@clisp.org>
4726
4727         imaxdiv: Move AC_LIBOBJ invocations to module description.
4728         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
4729         invocations from here...
4730         * modules/imaxdiv (configure.ac): ... to here.
4731
4732 2011-05-08  Bruno Haible  <bruno@clisp.org>
4733
4734         imaxabs: Move AC_LIBOBJ invocations to module description.
4735         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
4736         invocations from here...
4737         * modules/imaxabs (configure.ac): ... to here.
4738
4739 2011-05-08  Bruno Haible  <bruno@clisp.org>
4740
4741         getaddrinfo: Move AC_LIBOBJ invocations to module description.
4742         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
4743         AC_LIBOBJ invocations from here...
4744         * modules/getaddrinfo (configure.ac): ... to here.
4745         (Depends-on): Add conditions.
4746
4747 2011-05-08  Bruno Haible  <bruno@clisp.org>
4748
4749         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4750         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
4751         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4752         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
4753         (gl_PREREQ_INET_PTON): ... from here.
4754         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
4755         gl_PREREQ_INET_PTON here.
4756         (Depends-on): Update condition.
4757
4758 2011-05-08  Bruno Haible  <bruno@clisp.org>
4759
4760         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4761         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
4762         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4763         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
4764         (gl_PREREQ_INET_NTOP): ... from here.
4765         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
4766         gl_PREREQ_INET_NTOP here.
4767         (Depends-on): Update condition.
4768
4769 2011-05-08  Bruno Haible  <bruno@clisp.org>
4770
4771         iconv_open: Move AC_LIBOBJ invocations to module description.
4772         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
4773         AC_LIBOBJ invocations from here...
4774         * modules/iconv_open (configure.ac): ... to here.
4775
4776 2011-05-08  Bruno Haible  <bruno@clisp.org>
4777
4778         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
4779         If module 'iconv_open' is among the main modules and module
4780         'iconv_open-utf' is among the tests dependencies, then
4781         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
4782         return the special iconv_t values. Therefore iconv() and iconv_close()
4783         must support these special iconv_t values, already in lib, not only in
4784         tests.
4785         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
4786         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
4787         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
4788         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
4789         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
4790         (Depends-on): Add the dependencies of iconv_open-utf.
4791         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
4792         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
4793         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
4794
4795 2011-05-08  Bruno Haible  <bruno@clisp.org>
4796
4797         group-member: Move AC_LIBOBJ invocations to module description.
4798         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
4799         gl_PREREQ_GROUP_MEMBER invocations from here...
4800         * modules/group-member (configure.ac): ... to here.
4801
4802 2011-05-08  Bruno Haible  <bruno@clisp.org>
4803
4804         grantpt: Move AC_LIBOBJ invocations to module description.
4805         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
4806         invocations from here...
4807         * modules/grantpt (configure.ac): ... to here.
4808
4809 2011-05-08  Bruno Haible  <bruno@clisp.org>
4810
4811         glob: Move AC_LIBOBJ invocations to module description.
4812         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
4813         from here...
4814         * modules/glob (configure.ac): ... to here.
4815
4816 2011-05-08  Bruno Haible  <bruno@clisp.org>
4817
4818         getusershell: Move AC_LIBOBJ invocations to module description.
4819         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
4820         Move AC_LIBOBJ invocation from here...
4821         * modules/getusershell (configure.ac): ... to here.
4822         (Depends-on): Update condition.
4823
4824 2011-05-08  Bruno Haible  <bruno@clisp.org>
4825
4826         gettimeofday: Move AC_LIBOBJ invocations to module description.
4827         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
4828         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
4829         gl_PREREQ_GETTIMEOFDAY invocations from here...
4830         * modules/gettimeofday (configure.ac): ... to here.
4831
4832 2011-05-08  Bruno Haible  <bruno@clisp.org>
4833
4834         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
4835         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
4836         just gl_FUNC_TZSET.
4837         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
4838         (gl_FUNC_TZSET_CLOBBER): Remove actions.
4839         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
4840         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
4841
4842 2011-05-08  Bruno Haible  <bruno@clisp.org>
4843
4844         getsubopt: Move AC_LIBOBJ invocations to module description.
4845         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
4846         gl_PREREQ_GETSUBOPT invocations from here...
4847         * modules/getsubopt (configure.ac): ... to here.
4848
4849 2011-05-08  Bruno Haible  <bruno@clisp.org>
4850
4851         getpass-gnu: Move AC_LIBOBJ invocations to module description.
4852         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
4853         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
4854         * modules/getpass-gnu (configure.ac): ... to here.
4855
4856 2011-05-08  Bruno Haible  <bruno@clisp.org>
4857
4858         getpass: Move AC_LIBOBJ invocations to module description.
4859         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
4860         gl_PREREQ_GETPASS invocations from here...
4861         * modules/getpass (configure.ac): ... to here.
4862
4863 2011-05-08  Bruno Haible  <bruno@clisp.org>
4864
4865         getpagesize: Move AC_LIBOBJ invocations to module description.
4866         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
4867         from here...
4868         * modules/getpagesize (configure.ac): ... to here.
4869
4870 2011-05-08  Bruno Haible  <bruno@clisp.org>
4871
4872         getopt: Move AC_LIBOBJ invocations to module description.
4873         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
4874         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
4875         invocations from here...
4876         * modules/getopt-gnu (configure.ac): ... to here.
4877         * modules/getopt-posix (configure.ac): ... and here.
4878         (Depends-on): Update condition.
4879
4880 2011-05-08  Bruno Haible  <bruno@clisp.org>
4881
4882         getopt, argp: Respect rules for use of AC_LIBOBJ.
4883         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
4884         (gl_REPLACE_GETOPT_ALWAYS): New macro.
4885         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
4886         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
4887
4888 2011-05-08  Bruno Haible  <bruno@clisp.org>
4889
4890         getlogin_r: Move AC_LIBOBJ invocations to module description.
4891         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
4892         gl_PREREQ_GETLOGIN_R invocations from here...
4893         * modules/getlogin_r (configure.ac): ... to here.
4894
4895 2011-05-08  Bruno Haible  <bruno@clisp.org>
4896
4897         getlogin: Move AC_LIBOBJ invocations to module description.
4898         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
4899         here...
4900         * modules/getlogin (configure.ac): ... to here.
4901
4902 2011-05-08  Bruno Haible  <bruno@clisp.org>
4903
4904         getloadavg: Move AC_LIBOBJ invocations to module description.
4905         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
4906         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
4907         * modules/getloadavg (configure.ac): ... to here.
4908
4909 2011-05-08  Bruno Haible  <bruno@clisp.org>
4910
4911         gethrxtime: Move AC_LIBOBJ invocations to module description.
4912         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
4913         LIB_GETHRXTIME from here...
4914         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
4915         invocations from here...
4916         * modules/gethrxtime (configure.ac): ... to here.
4917
4918 2011-05-08  Bruno Haible  <bruno@clisp.org>
4919
4920         gethostname: Move AC_LIBOBJ invocations to module description.
4921         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
4922         gl_PREREQ_GETHOSTNAME invocations from here...
4923         * modules/gethostname (configure.ac): ... to here.
4924
4925 2011-05-08  Bruno Haible  <bruno@clisp.org>
4926
4927         getgroups: Move AC_LIBOBJ invocations to module description.
4928         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
4929         here...
4930         * modules/getgroups (configure.ac): ... to here.
4931
4932 2011-05-08  Bruno Haible  <bruno@clisp.org>
4933
4934         getdtablesize: Move AC_LIBOBJ invocations to module description.
4935         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
4936         invocation from here...
4937         * modules/getdtablesize (configure.ac): ... to here.
4938
4939 2011-05-08  Bruno Haible  <bruno@clisp.org>
4940
4941         getdomainname: Move AC_LIBOBJ invocations to module description.
4942         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
4943         gl_PREREQ_GETDOMAINNAME invocations from here...
4944         * modules/getdomainname (configure.ac): ... to here.
4945
4946 2011-05-08  Bruno Haible  <bruno@clisp.org>
4947
4948         getline: Move AC_LIBOBJ invocations to module description.
4949         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
4950         invocations from here...
4951         * modules/getline (configure.ac): ... to here.
4952
4953 2011-05-08  Bruno Haible  <bruno@clisp.org>
4954
4955         getline: Simplify.
4956         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
4957         It's already handled through the module dependency.
4958
4959 2011-05-08  Bruno Haible  <bruno@clisp.org>
4960
4961         getdelim: Move AC_LIBOBJ invocations to module description.
4962         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
4963         and gl_PREREQ_GETDELIM invocations from here...
4964         * modules/getdelim (configure.ac): ... to here.
4965         (Depends-on): Fix condition.
4966
4967 2011-05-08  Bruno Haible  <bruno@clisp.org>
4968
4969         getcwd: Move AC_LIBOBJ invocations to module description.
4970         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
4971         invocations from here...
4972         * modules/getcwd (configure.ac): ... to here.
4973
4974 2011-05-08  Bruno Haible  <bruno@clisp.org>
4975
4976         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
4977         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
4978         here...
4979         * modules/getcwd-lgpl (configure.ac): ... to here.
4980
4981 2011-05-07  Bruno Haible  <bruno@clisp.org>
4982
4983         crypto/gc: Move AC_LIBOBJ invocations to module description.
4984         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
4985         * modules/crypto/gc (configure.ac): ... to here.
4986
4987 2011-05-07  Bruno Haible  <bruno@clisp.org>
4988
4989         fwriting: Move AC_LIBOBJ invocations to module description.
4990         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
4991         here...
4992         * modules/fwriting (configure.ac): ... to here.
4993
4994 2011-05-07  Bruno Haible  <bruno@clisp.org>
4995
4996         fwritable: Move AC_LIBOBJ invocations to module description.
4997         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
4998         here...
4999         * modules/fwritable (configure.ac): ... to here.
5000
5001 2011-05-07  Bruno Haible  <bruno@clisp.org>
5002
5003         futimens: Move AC_LIBOBJ invocations to module description.
5004         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
5005         here...
5006         * modules/futimens (configure.ac): ... to here.
5007
5008 2011-05-07  Bruno Haible  <bruno@clisp.org>
5009
5010         ftruncate: Move AC_LIBOBJ invocations to module description.
5011         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
5012         gl_PREREQ_FTRUNCATE invocations from here...
5013         * modules/ftruncate (configure.ac): ... to here.
5014
5015 2011-05-07  Bruno Haible  <bruno@clisp.org>
5016
5017         fsync: Move AC_LIBOBJ invocations to module description.
5018         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
5019         invocations from here...
5020         * modules/fsync (configure.ac): ... to here.
5021
5022 2011-05-07  Bruno Haible  <bruno@clisp.org>
5023
5024         fsusage: Move AC_LIBOBJ invocations to module description.
5025         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
5026         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
5027         * modules/fsusage (configure.ac): ... to here.
5028
5029 2011-05-07  Bruno Haible  <bruno@clisp.org>
5030
5031         freopen: Move AC_LIBOBJ invocations to module description.
5032         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
5033         invocations from here...
5034         * modules/freopen (configure.ac): ... to here.
5035
5036 2011-05-07  Bruno Haible  <bruno@clisp.org>
5037
5038         free: Move AC_LIBOBJ invocations to module description.
5039         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
5040         invocations from here...
5041         * modules/free (configure.ac): ... to here.
5042
5043 2011-05-07  Bruno Haible  <bruno@clisp.org>
5044
5045         freadable: Move AC_LIBOBJ invocations to module description.
5046         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
5047         here...
5048         * modules/freadable (configure.ac): ... to here.
5049
5050 2011-05-07  Bruno Haible  <bruno@clisp.org>
5051
5052         fpurge: Move AC_LIBOBJ invocations to module description.
5053         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
5054         invocations from here...
5055         * modules/fpurge (configure.ac): ... to here.
5056
5057 2011-05-07  Bruno Haible  <bruno@clisp.org>
5058
5059         fpending: Move AC_LIBOBJ invocations to module description.
5060         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
5061         gl_FUNC_FPENDING.
5062         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
5063         invocations from here...
5064         * modules/fpending (configure.ac): ... to here.
5065
5066 2011-05-07  Bruno Haible  <bruno@clisp.org>
5067
5068         fopen: Move AC_LIBOBJ invocations to module description.
5069         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
5070         invocations from here...
5071         * modules/fopen (configure.ac): ... to here.
5072
5073 2011-05-07  Bruno Haible  <bruno@clisp.org>
5074
5075         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
5076         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
5077         gl_FUNC_FNMATCH_POSIX.
5078         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
5079         invocations from here...
5080         * modules/fnmatch (configure.ac): ... to here.
5081         * modules/fnmatch-gnu (configure.ac): ... and here.
5082
5083 2011-05-07  Bruno Haible  <bruno@clisp.org>
5084
5085         flock: Move AC_LIBOBJ invocations to module description.
5086         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
5087         invocations from here...
5088         * modules/flock (configure.ac): ... to here.
5089
5090 2011-05-07  Bruno Haible  <bruno@clisp.org>
5091
5092         fileblocks: Move AC_LIBOBJ invocations to module description.
5093         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
5094         gl_PREREQ_FILEBLOCKS invocations from here...
5095         * modules/fileblocks (configure.ac): ... to here.
5096
5097 2011-05-06  Bruno Haible  <bruno@clisp.org>
5098
5099         fflush: Move AC_LIBOBJ invocations to module description.
5100         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
5101         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
5102         invocations from here...
5103         * modules/fflush (configure.ac): ... to here.
5104
5105 2011-05-06  Bruno Haible  <bruno@clisp.org>
5106
5107         fdopendir: Move AC_LIBOBJ invocations to module description.
5108         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
5109         here...
5110         * modules/fdopendir (configure.ac): ... to here.
5111         (Depends-on): Improve conditions.
5112
5113 2011-05-06  Bruno Haible  <bruno@clisp.org>
5114
5115         _Exit: Move AC_LIBOBJ invocations to module description.
5116         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
5117         invocations from here...
5118         * modules/_Exit (configure.ac): ... to here.
5119
5120 2011-05-21  Bruno Haible  <bruno@clisp.org>
5121
5122         euidaccess: Respect rules for use of AC_LIBOBJ.
5123         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5124         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
5125         from here...
5126         * modules/euidaccess (configure.ac): ... to here.
5127
5128 2011-05-06  Bruno Haible  <bruno@clisp.org>
5129
5130         error: Move AC_LIBOBJ invocations to module description.
5131         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
5132         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
5133         invocations from here...
5134         * modules/error (configure.ac): ... to here.
5135
5136 2011-05-06  Bruno Haible  <bruno@clisp.org>
5137
5138         duplocale: Move AC_LIBOBJ invocations to module description.
5139         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
5140         gl_PREREQ_DUPLOCALE invocations from here...
5141         * modules/duplocale (configure.ac): ... to here.
5142
5143 2011-05-05  Bruno Haible  <bruno@clisp.org>
5144
5145         dirfd: Move AC_LIBOBJ invocations to module description.
5146         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
5147         gl_FUNC_DIRFD.
5148         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
5149         here...
5150         * modules/dirfd (configure.ac): ... to here.
5151         (Depends-on): Fix condition.
5152
5153 2011-05-05  Bruno Haible  <bruno@clisp.org>
5154
5155         chown: Respect rules for use of AC_LIBOBJ.
5156         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5157         * modules/chown (configure.ac): ... to here.
5158
5159 2011-05-05  Bruno Haible  <bruno@clisp.org>
5160
5161         chdir-long: Move AC_LIBOBJ invocations to module description.
5162         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
5163         gl_PREREQ_CHDIR_LONG invocations from here...
5164         * modules/chdir-long (configure.ac): ... to here.
5165
5166 2011-05-05  Bruno Haible  <bruno@clisp.org>
5167
5168         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
5169         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
5170         from here...
5171         * modules/canonicalize-lgpl (configure.ac): ... to here.
5172
5173 2011-05-05  Bruno Haible  <bruno@clisp.org>
5174
5175         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
5176         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
5177         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
5178         REPLACE_CALLOC.
5179         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
5180         * modules/calloc-gnu (configure.ac): Likewise.
5181
5182 2011-05-05  Bruno Haible  <bruno@clisp.org>
5183
5184         btowc: Move AC_LIBOBJ invocations to module description.
5185         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
5186         invocations from here...
5187         * modules/btowc (configure.ac): ... to here.
5188
5189 2011-05-21  Bruno Haible  <bruno@clisp.org>
5190
5191         atexit: Move AC_LIBOBJ invocations to module description.
5192         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
5193         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
5194         here...
5195         * modules/atexit (configure.ac): ... to here.
5196
5197 2011-05-05  Bruno Haible  <bruno@clisp.org>
5198
5199         atoll: Move AC_LIBOBJ invocations to module description.
5200         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
5201         invocations from here...
5202         * modules/atoll (configure.ac): ... to here.
5203
5204 2011-05-05  Bruno Haible  <bruno@clisp.org>
5205
5206         argz: Move AC_LIBOBJ invocations to module description.
5207         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
5208         * modules/argz (configure.ac): ... to here.
5209
5210 2011-05-05  Bruno Haible  <bruno@clisp.org>
5211
5212         alphasort: Move AC_LIBOBJ invocations to module description.
5213         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
5214         gl_PREREQ_ALPHASORT invocations from here...
5215         * modules/alphasort (configure.ac): ... to here.
5216
5217 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5218
5219         verify: new macro verify_expr; verify_true deprecated
5220         * NEWS: Mention this.
5221         * doc/verify.texi (Compile-time Assertions): Document this.
5222         * lib/verify.h (verify_true): Deprecate.
5223         (verify_expr): New macro.
5224         * tests/test-verify.c (function): Test verify_expr.
5225
5226 2011-06-14  Jim Meyering  <meyering@redhat.com>
5227
5228         init.sh: give more portable redirection-related advice in a comment
5229         * tests/init.sh (stderr_fileno_): Update the advice in comments.
5230         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
5231         for lots of discussion.  Stefano Lattarini suggested the solution
5232         of putting "9>&2" after the command.  Reported by Bruno Haible.
5233
5234 2011-06-13  Bruno Haible  <bruno@clisp.org>
5235
5236         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
5237         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
5238         'none'.
5239
5240 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5241
5242         ftoastr: use strtof only if HAVE_STRTOF
5243         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
5244         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
5245         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
5246         * modules/ftoastr (configure.ac): Check for strtof.
5247
5248 2011-06-13  Bruno Haible  <bruno@clisp.org>
5249
5250         gnulib-tool: Addendum to 2011-06-08 commit.
5251         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
5252         and --witness-c-macro have been given, augment AM_CPPFLAGS.
5253
5254 2011-06-13  Bruno Haible  <bruno@clisp.org>
5255
5256         fseeko: Provide a non-inline replacement of fseek().
5257         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
5258         * modules/fseeko (Depends-on): Add fseek.
5259         * modules/fseek (License): Change to LGPLv2+.
5260
5261 2011-06-13  Bruno Haible  <bruno@clisp.org>
5262
5263         ftello: Provide a non-inline replacement of ftell().
5264         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
5265         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
5266         not have ftello() (such as on mingw).
5267         * modules/ftello (Depends-on): Add ftell.
5268         * modules/ftell (License): Change to LGPLv2+.
5269
5270 2011-05-07  Bruno Haible  <bruno@clisp.org>
5271
5272         ftell: Move AC_LIBOBJ invocations to module description.
5273         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
5274         * modules/ftell (configure.ac): ... to here.
5275
5276 2011-05-07  Bruno Haible  <bruno@clisp.org>
5277
5278         ftello: Respect rules for use of AC_LIBOBJ.
5279         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
5280         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
5281         here...
5282         * modules/ftello (configure.ac): ... to here.
5283
5284 2011-05-07  Bruno Haible  <bruno@clisp.org>
5285
5286         fseeko: Simplify.
5287         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
5288         (gl_FUNC_FSEEKO): Inline it here.
5289
5290 2011-05-07  Bruno Haible  <bruno@clisp.org>
5291
5292         fseek: Move AC_LIBOBJ invocations to module description.
5293         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
5294         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5295         * modules/fseek (configure.ac): ... to here.
5296
5297 2011-05-07  Bruno Haible  <bruno@clisp.org>
5298
5299         fseek: Respect rules for use of AC_LIBOBJ.
5300         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
5301         here...
5302         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
5303
5304 2011-05-07  Bruno Haible  <bruno@clisp.org>
5305
5306         fseeko: Respect rules for use of AC_LIBOBJ.
5307         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
5308         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
5309         here...
5310         * modules/fseeko (configure.ac): ... to here.
5311
5312 2011-06-13  Bruno Haible  <bruno@clisp.org>
5313
5314         gnulib-tool: Allow comments in the 'Depends-on' section.
5315         * doc/gnulib.texi (Module description): Mention comment syntax in the
5316         Depends-on section.
5317         * gnulib-tool (func_get_dependencies): Filter out comment lines.
5318
5319 2011-06-13  Bruno Haible  <bruno@clisp.org>
5320
5321         file-set.h: guard __attibute__ use, now that it's not always defined
5322         * lib/file-set.h (record_file): Use __attribute__ only with compiler
5323         versions that support it.  This fixes a coreutils build failure with
5324         the vendor cc on HP-UX 11.31.
5325
5326 2011-06-12  Bruno Haible  <bruno@clisp.org>
5327
5328         acl: Add support for HP-UX >= 11.11 JFS ACLs.
5329         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
5330         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
5331         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
5332         (acl, aclsort): New declarations.
5333         (aclv_nontrivial): New declaration.
5334         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
5335         (file_has_acl): Read also the second kind of HP-UX ACLs.
5336         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
5337         kind of HP-UX ACLs if the first kind fails.
5338         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
5339         second kind of HP-UX ACLs.
5340         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
5341         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
5342         agree.
5343         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5344         hpuxjfs.
5345         Handle hpuxjfs.
5346         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5347         hpuxjfs.
5348         Handle hpuxjfs.
5349         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5350         (func_test_same_acls): Use both lsacl and getacl.
5351         Handle hpuxjfs.
5352         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5353         (func_test_same_acls): Use both lsacl and getacl.
5354         Handle hpuxjfs.
5355
5356 2011-06-12  Bruno Haible  <bruno@clisp.org>
5357
5358         acl: Complete the 2010-08-10 fix.
5359         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
5360         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
5361         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
5362         explicitly.
5363         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
5364         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
5365
5366 2011-06-12  Bruno Haible  <bruno@clisp.org>
5367
5368         spawn-pipe tests: Comments.
5369         * tests/test-spawn-pipe-child.c (main): Update comment.
5370         Reported by James Youngman <jay@gnu.org>.
5371
5372 2011-06-11  James Youngman  <jay@gnu.org>
5373
5374         New module 'stat-size'.
5375         * modules/stat-size: New module.  Provides macros for accessing
5376         file size information in instances of struct stat.  Depends on the
5377         fileblocks module because it calls st_blocks.
5378         * lib/stat-size.h: New file, adapted from coreutils' system.h.
5379         * doc/gnulib.texi: Include stat-size.texi.
5380         * doc/stat-size.texi: Documentation for this module.
5381         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
5382         * m4/fileblocks.m4: Mention that stat-size depends on the call to
5383         AC_STRUCT_ST_BLOCKS.
5384
5385 2011-06-09  Bruno Haible  <bruno@clisp.org>
5386
5387         thread: Support pthreads-win32.
5388         * lib/glthread/thread.h (gl_thread_self): Define differently on
5389         pthreads-win32.
5390         (gl_null_thread): New declaration.
5391         (gl_thread_self_pointer): New macro.
5392         * lib/glthread/thread.c (gl_null_thread): New constant.
5393         * tests/test-lock.c: Use gl_thread_self_pointer instead of
5394         gl_thread_self.
5395         * tests/test-tls.c: Likewise.
5396         Suggested by Paul Eggert. Reported by Eric Blake.
5397
5398 2011-06-09  Bruno Haible  <bruno@clisp.org>
5399
5400         thread: Fix confusion between NULL and 0.
5401         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
5402         Reported by Paul Eggert.
5403
5404 2011-06-09  Bruno Haible  <bruno@clisp.org>
5405
5406         spawn-pipe tests: Avoid test failure on HP-UX 11.
5407         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
5408         is closed.
5409
5410 2011-06-09  Bruno Haible  <bruno@clisp.org>
5411
5412         acl tests: Fix compilation error on HP-UX 11.
5413         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
5414
5415 2011-06-09  Bruno Haible  <bruno@clisp.org>
5416
5417         rmdir: Avoid test failure on HP-UX 10.20.
5418         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
5419         EEXIST.
5420
5421 2011-06-08  Eric Blake  <eblake@redhat.com>
5422
5423         perror: fix test on mingw
5424         * modules/perror-tests (Depends-on): Add dup2.
5425
5426         strerror_r-posix: fix on MacOS
5427         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
5428         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
5429         logic bug.
5430         * lib/strerror_r.c (strerror_r): Fix the bug.
5431         * lib/strerror.c (strerror): Likewise.
5432         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5433         problem.
5434         * doc/posix-functions/strerror.texi (strerror): Likewise.
5435         * doc/posix-functions/perror.texi (perror): Likewise.
5436         * tests/test-strerror.c (main): Enhance test.
5437         * tests/test-strerror_r.c (main): Likewise.
5438
5439 2011-06-08  Bruno Haible  <bruno@clisp.org>
5440
5441         gnulib-tool: Better isolation between different gnulib-tool invocations.
5442         * gnulib-tool: New option --witness-c-macro.
5443         (witness_c_macro): New variable.
5444         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
5445         AM_CPPFLAGS define it as a C macro.
5446         (func_emit_tests_Makefile_am): Likewise.
5447         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
5448         read it from there.
5449         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
5450         m4_define, not AC_DEFUN.
5451         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
5452         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
5453         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
5454         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
5455         s|...|...|, to substitute the values of the GNULIB_* module indicator
5456         variables.
5457         * modules/dirent (Makefile.am): Likewise.
5458         * modules/fcntl-h (Makefile.am): Likewise.
5459         * modules/iconv-h (Makefile.am): Likewise.
5460         * modules/langinfo (Makefile.am): Likewise.
5461         * modules/locale (Makefile.am): Likewise.
5462         * modules/math (Makefile.am): Likewise.
5463         * modules/netdb (Makefile.am): Likewise.
5464         * modules/poll-h (Makefile.am): Likewise.
5465         * modules/pty (Makefile.am): Likewise.
5466         * modules/search (Makefile.am): Likewise.
5467         * modules/signal (Makefile.am): Likewise.
5468         * modules/spawn (Makefile.am): Likewise.
5469         * modules/stdio (Makefile.am): Likewise.
5470         * modules/stdlib (Makefile.am): Likewise.
5471         * modules/string (Makefile.am): Likewise.
5472         * modules/sys_ioctl (Makefile.am): Likewise.
5473         * modules/sys_select (Makefile.am): Likewise.
5474         * modules/sys_socket (Makefile.am): Likewise.
5475         * modules/sys_stat (Makefile.am): Likewise.
5476         * modules/sys_times (Makefile.am): Likewise.
5477         * modules/sys_utsname (Makefile.am): Likewise.
5478         * modules/sys_wait (Makefile.am): Likewise.
5479         * modules/termios (Makefile.am): Likewise.
5480         * modules/time (Makefile.am): Likewise.
5481         * modules/unistd (Makefile.am): Likewise.
5482         * modules/wchar (Makefile.am): Likewise.
5483
5484 2011-06-08  Eric Blake  <eblake@redhat.com>
5485
5486         strerror: simplify replacement
5487         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
5488         * modules/strerror (configure.ac): No prereqs needed here...
5489         * modules/strerror-override (configure.ac): ...but this needs it.
5490         (Files): Add file for needed prereq macro.
5491
5492 2011-06-08  Bruno Haible  <bruno@clisp.org>
5493
5494         strerror_r-posix: Tweaks.
5495         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
5496         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
5497         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
5498         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
5499         (gl_FUNC_STRERROR_R): ... to here.
5500         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
5501
5502 2011-06-07  Eric Blake  <eblake@redhat.com>
5503
5504         perror: document fixed bugs
5505         * doc/posix-functions/perror.texi (perror): Document recent
5506         patches.
5507
5508 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
5509
5510         stat-time: get_stat_birthtime failure is better-defined
5511         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
5512         return a timestamp whose tv_sec and tv_nsec values are both -1.
5513         Previously, the spec said only that the tv_nsec value was negative.
5514         This upward-compatible change simplifies GNU tar a bit.
5515
5516 2011-06-07  Eric Blake  <eblake@redhat.com>
5517
5518         strerror_r-posix: work around cygwin 1.7.9
5519         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
5520         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
5521         bug without replacing strerror_r.
5522         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
5523         strerror_r is buggy, but without requiring strerror_r compilation.
5524         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
5525
5526         test-perror: relax test to ignore cygwin bug
5527         * tests/test-perror2.c (main): Relax test on requiring detection
5528         of stream errors, and use unbuffered stream.
5529         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
5530         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
5531         * doc/posix-functions/fputc.texi (fputc): Likewise.
5532         * doc/posix-functions/fputs.texi (fputs): Likewise.
5533         * doc/posix-functions/fputws.texi (fputws): Likewise.
5534         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
5535         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
5536         * doc/posix-functions/getopt.texi (getopt): Likewise.
5537         * doc/posix-functions/perror.texi (perror): Likewise.
5538         * doc/posix-functions/printf.texi (printf): Likewise.
5539         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
5540         * doc/posix-functions/psignal.texi (psignal): Likewise.
5541         * doc/posix-functions/putc.texi (putc): Likewise.
5542         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
5543         Likewise.
5544         * doc/posix-functions/putchar.texi (putchar): Likewise.
5545         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
5546         Likewise.
5547         * doc/posix-functions/puts.texi (puts): Likewise.
5548         * doc/posix-functions/putwc.texi (putwc): Likewise.
5549         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
5550         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
5551         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5552         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
5553         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5554         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
5555         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
5556         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
5557
5558 2011-05-22  Bruno Haible  <bruno@clisp.org>
5559
5560         strerror: Move AC_LIBOBJ invocations to module description.
5561         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
5562         gl_PREREQ_STRERROR invocations from here...
5563         * modules/strerror (configure.ac): ... to here.
5564
5565 2011-05-21  Bruno Haible  <bruno@clisp.org>
5566
5567         perror: Use common idiom.
5568         * modules/perror (configure.ac): Reorder statements.
5569
5570 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5571
5572         tests: fix usage message in 'mktempd_'
5573         * tests/init.sh (mktempd_): In the usage message, use literal
5574         'mktempd_', not '$ME' (which is even undefined), as the name of
5575         the subroutine.
5576
5577 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5578
5579         tests init: new function 'fatal_', for hard errors
5580         Before this patch, the only way offered by tests/init.sh to
5581         properly signal a hard error was the `framework_failure_'
5582         function.  But the error message issued by that function,
5583         as its name would suggest, refers to a set-up failure in the
5584         testsuite, while hard errors can obviously also be due to
5585         other reasons.  The best way to fix this inconsistency is to
5586         introduce a new function with a more general error message.
5587         * tests/init.sh (fatal_): New function.
5588
5589 2011-06-06  Eric Blake  <eblake@redhat.com>
5590
5591         canonicalize-lgpl: use common idiom
5592         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
5593         over newer POSIX -Rf.
5594         Reported by Bruno Haible.
5595
5596         canonicalize-lgpl: work around AIX realpath bug
5597         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
5598         * doc/posix-functions/realpath.texi (realpath): Document it.
5599         Reported by Bruno Haible.
5600
5601         strerror: work around FreeBSD bug
5602         * lib/strerror.c (strerror): Special case 0.
5603         Reported by Bruno Haible.
5604
5605         strerror-override: avoid bloating errno module
5606         * modules/errno (Files, configure.ac): Move replacement strings...
5607         * modules/strerror-override: ...to new module.
5608         * modules/strerror (Depends-on): Add strerror-override.
5609         * modules/strerror_r-posix (Depends-on): Likewise.
5610         * MODULES.html.sh: Document new module.
5611         Reported by Bruno Haible.
5612
5613 2011-06-06  Bruno Haible  <bruno@clisp.org>
5614
5615         spawn-pipe tests: Rename program.
5616         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
5617         * tests/test-spawn-pipe-child.c: Update comment.
5618         * tests/test-spawn-pipe.sh: Update.
5619         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
5620
5621         spawn-pipe tests: Link the child program only against libc.
5622         * tests/test-spawn-pipe-child.c: New file, extracted from
5623         tests/test-spawn-pipe.c.
5624         (main): Expect only one argument.
5625         (is_open): New function, copied from tests/test-pipe.c.
5626         * tests/test-spawn-pipe.c: Don't include <errno.h>.
5627         (child_main): Remove function.
5628         (test_pipe): Pass only one argument to the child program.
5629         (main): Remove child process code. Expect the child program's name as
5630         first argument.
5631         * tests/test-spawn-pipe.sh: Pass the child program's name as first
5632         argument.
5633         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
5634         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
5635         test-spawn-pipe-child against no libraries.
5636
5637 2011-06-06  Bruno Haible  <bruno@clisp.org>
5638
5639         careadlinkat: Avoid mismatch between ssize_t and int.
5640         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
5641         * lib/careadlinkat.c (careadlinkatcwd): Define always.
5642
5643 2011-06-06  Jim Meyering  <meyering@redhat.com>
5644
5645         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
5646         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
5647         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
5648
5649 2011-06-05  Bruno Haible  <bruno@clisp.org>
5650
5651         ansi-c++-opt: Interoperability with libtool.
5652         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
5653         set the variable to "no", not to ":".
5654         * NEWS: Mention the change.
5655
5656 2011-06-05  Bruno Haible  <bruno@clisp.org>
5657
5658         acl: Fix test failure on AIX 7.
5659         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
5660         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
5661
5662 2011-06-05  Bruno Haible  <bruno@clisp.org>
5663
5664         pipe-filter-ii: Fix test failure on AIX and IRIX.
5665         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
5666         with EAGAIN, retry with a smaller buffer size.
5667
5668 2011-06-05  Bruno Haible  <bruno@clisp.org>
5669
5670         localename: Fix link dependencies.
5671         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
5672         * modules/localename-tests (Makefile.am): Link test-localename with
5673         $(LIBTHREAD).
5674
5675 2011-06-05  Bruno Haible  <bruno@clisp.org>
5676
5677         error: Avoid gcc warning.
5678         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
5679
5680 2011-06-05  Bruno Haible  <bruno@clisp.org>
5681
5682         unsetenv: Avoid gcc warning.
5683         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
5684
5685 2011-06-05  Bruno Haible  <bruno@clisp.org>
5686
5687         setenv: Avoid gcc warning.
5688         * lib/setenv.c (setenv): Provide declaration if system lacks it.
5689
5690 2011-06-05  Bruno Haible  <bruno@clisp.org>
5691
5692         sys_select: Ensure memset is declared also on AIX 7.
5693         * lib/sys_select.in.h: Include <string.h> also on AIX.
5694         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
5695         self-contained also on AIX 7.1.
5696
5697 2011-06-04  Jim Meyering  <meyering@redhat.com>
5698
5699         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
5700         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
5701         function name, "error".
5702         (_gl_translatable_diag_func_re): New configurable variable.
5703
5704 2011-06-04  Bruno Haible  <bruno@clisp.org>
5705
5706         getopt: Avoid gcc warning.
5707         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
5708
5709 2011-06-04  Bruno Haible  <bruno@clisp.org>
5710
5711         strerror_r: Fix comments.
5712         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
5713         commit.
5714
5715 2011-06-04  Bruno Haible  <bruno@clisp.org>
5716
5717         perror: Fix compilation error.
5718         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
5719         Undefine fprintf, not sprintf.
5720         * modules/perror (Depends-on): Remove intprops, verify.
5721
5722 2011-06-04  Bruno Haible  <bruno@clisp.org>
5723
5724         setlocale: Enable replacement on Cygwin 1.5.
5725         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
5726         Cygwin 1.5.x.
5727         * doc/posix-functions/setlocale.texi: Mention that the problem with the
5728         LC_CTYPE category also exists on Cygwin 1.5.x.
5729
5730 2011-06-04  Bruno Haible  <bruno@clisp.org>
5731
5732         strerror-override: Don't disable symbol renamings.
5733         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
5734         * lib/strerror-override.c: Include config.h.
5735         (strerror_override): Don't undefine.
5736
5737 2011-06-03  Bruno Haible  <bruno@clisp.org>
5738
5739         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
5740         * lib/localename.h: Update copyright header.
5741         * lib/localename.c: Likewise.
5742         * lib/relocatable.h: Likewise.
5743         * lib/relocatable.c: Likewise.
5744
5745 2011-06-02  Bruno Haible  <bruno@clisp.org>
5746
5747         doc: Fix a module name.
5748         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
5749
5750 2011-06-02  Bruno Haible  <bruno@clisp.org>
5751
5752         pipe2: Remove dependency on 'nonblocking' module.
5753         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
5754         O_NONBLOCK is defined by gnulib.
5755         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
5756         is zero.
5757         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
5758         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
5759         defined by gnulib.
5760         (get_nonblocking_flag): New function.
5761         (main): Test O_NONBLOCK flag only if it is nonzero.
5762         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
5763
5764 2011-06-03  Jim Meyering  <meyering@redhat.com>
5765
5766         maint: three new prohibit-header-without-use rules
5767         Prohibit use of cloexec.h, posixver.h, same.h without use.
5768         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
5769         (sc_prohibit_posixver_without_use): Likewise.
5770         (sc_prohibit_same_without_use): Likewise.
5771
5772 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
5773
5774         allocator: 'die' routine is now given requested size
5775         * lib/allocator.h (struct allocator.die): New size arg.
5776         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
5777         If the actual problem is an ssize_t limitation, not a size_t or
5778         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
5779
5780 2011-06-01  Eric Blake  <eblake@redhat.com>
5781
5782         strerror: drop strerror_r dependency
5783         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
5784         * lib/strerror-override.c (strerror_override): ...to new file.
5785         * lib/strerror-override.h: Add prototype.
5786         * lib/strerror-impl.h: Delete.
5787         * lib/strerror.c (strerror): New implementation.
5788         * modules/errno (Files): Add new files.
5789         (configure.ac): Compile new file as appropriate.
5790         * modules/strerror (Files): Drop unused file.
5791         (Depends-on): Drop strerror_r-posix.
5792         * MODULES.html.sh: Document strerror_r-posix.
5793         Requested by Sam Steingold.
5794
5795         perror: call strerror_r directly
5796         * modules/perror (Files): Drop strerror-impl.h.
5797         * lib/perror.c (perror): Use our own stack buffer, rather than
5798         calling a wrapper that uses static storage.
5799         * doc/posix-functions/perror.texi (perror): Document a limitation
5800         of our replacement.
5801
5802         strerror_r: fix includes for FreeBSD
5803         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
5804         since we use abort on some platforms.
5805         Reported by Matthias Bolte.
5806
5807 2011-05-31  Bruno Haible  <bruno@clisp.org>
5808
5809         Fix link errors in tests: openat-die uses gettext-h.
5810         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
5811         against $(LIBINTL).
5812         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
5813         against $(LIBINTL).
5814         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
5815         $(LIBINTL).
5816         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
5817         against $(LIBINTL).
5818         * modules/linkat-tests (Makefile.am): Link test-linkat against
5819         $(LIBINTL).
5820         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
5821         $(LIBINTL).
5822         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
5823         against $(LIBINTL).
5824         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
5825         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
5826         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
5827         $(LIBINTL).
5828         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
5829         $(LIBINTL).
5830         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
5831         $(LIBINTL).
5832         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5833
5834 2011-05-31  Bruno Haible  <bruno@clisp.org>
5835
5836         Fix link errors in tests: wait-process uses gettext-h.
5837         * modules/nonblocking-pipe-tests (Makefile.am): Set
5838         test_nonblocking_pipe_main_LDADD.
5839         * modules/nonblocking-socket-tests (Makefile.am): Link
5840         test-nonblocking-socket-main against $(LIBINTL).
5841         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5842
5843 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
5844
5845         assert-h: work around 'verify' incompatibility
5846         * lib/verify.h: Use @...@ directives, not ifdef.
5847         * modules/assert-h (assert.h): Implement the directives.
5848         (assert.h): Substitute the symbol-prefix more consistently.
5849
5850 2011-05-29  Jim Meyering  <meyering@redhat.com>
5851
5852         trim: remove three superfluous assignments
5853         * lib/trim.c (trim2): Remove three superfluous assignments
5854         and correct brace positioning.
5855
5856 2011-05-29  Bruno Haible  <bruno@clisp.org>
5857
5858         wctype-h: Avoid namespace pollution on Solaris 2.6.
5859         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
5860         identifiers.
5861         * doc/posix-headers/wctype.texi: Mention the problem.
5862         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5863
5864 2011-05-28  Jim Meyering  <meyering@redhat.com>
5865
5866         parse-datetime.y: accommodate -Wstrict-overflow
5867         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
5868         placate -Wstrict-overflow.
5869
5870         trim: avoid a warning from -O2 -Wstrict-overflow
5871         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
5872
5873 2011-05-29  Bruno Haible  <bruno@clisp.org>
5874
5875         gnulib-tool: Fix bug in yesterday's commit.
5876         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
5877         twice.
5878
5879 2011-05-29  Bruno Haible  <bruno@clisp.org>
5880
5881         Allow multiple gnulib generated include files to be combined.
5882         * gnulib-tool (func_compute_include_guard_prefix): New function.
5883         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
5884         ${gl_include_guard_prefix} references.
5885         (func_import, func_create_testdir): Invoke
5886         func_compute_include_guard_prefix.
5887         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
5888         * lib/ctype.in.h: Likewise.
5889         * lib/dirent.in.h: Likewise.
5890         * lib/errno.in.h: Likewise.
5891         * lib/fcntl.in.h: Likewise.
5892         * lib/float.in.h: Likewise.
5893         * lib/getopt.in.h: Likewise.
5894         * lib/iconv.in.h: Likewise.
5895         * lib/langinfo.in.h: Likewise.
5896         * lib/locale.in.h: Likewise.
5897         * lib/math.in.h: Likewise.
5898         * lib/netdb.in.h: Likewise.
5899         * lib/netinet_in.in.h: Likewise.
5900         * lib/poll.in.h: Likewise.
5901         * lib/pthread.in.h: Likewise.
5902         * lib/pty.in.h: Likewise.
5903         * lib/sched.in.h: Likewise.
5904         * lib/se-selinux.in.h: Likewise.
5905         * lib/search.in.h: Likewise.
5906         * lib/signal.in.h: Likewise.
5907         * lib/spawn.in.h: Likewise.
5908         * lib/stdarg.in.h: Likewise.
5909         * lib/stddef.in.h: Likewise.
5910         * lib/stdint.in.h: Likewise.
5911         * lib/stdio.in.h: Likewise.
5912         * lib/stdlib.in.h: Likewise.
5913         * lib/string.in.h: Likewise.
5914         * lib/strings.in.h: Likewise.
5915         * lib/sys_file.in.h: Likewise.
5916         * lib/sys_ioctl.in.h: Likewise.
5917         * lib/sys_select.in.h: Likewise.
5918         * lib/sys_socket.in.h: Likewise.
5919         * lib/sys_stat.in.h: Likewise.
5920         * lib/sys_time.in.h: Likewise.
5921         * lib/sys_times.in.h: Likewise.
5922         * lib/sys_uio.in.h: Likewise.
5923         * lib/sys_utsname.in.h: Likewise.
5924         * lib/sys_wait.in.h: Likewise.
5925         * lib/sysexits.in.h: Likewise.
5926         * lib/termios.in.h: Likewise.
5927         * lib/time.in.h: Likewise.
5928         * lib/unistd.in.h: Likewise.
5929         * lib/wchar.in.h: Likewise.
5930         * lib/wctype.in.h: Likewise.
5931         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
5932         * modules/ctype (Makefile.am): Likewise.
5933         * modules/dirent (Makefile.am): Likewise.
5934         * modules/errno (Makefile.am): Likewise.
5935         * modules/fcntl-h (Makefile.am): Likewise.
5936         * modules/float (Makefile.am): Likewise.
5937         * modules/getopt-posix (Makefile.am): Likewise.
5938         * modules/iconv-h (Makefile.am): Likewise.
5939         * modules/langinfo (Makefile.am): Likewise.
5940         * modules/locale (Makefile.am): Likewise.
5941         * modules/math (Makefile.am): Likewise.
5942         * modules/netdb (Makefile.am): Likewise.
5943         * modules/netinet_in (Makefile.am): Likewise.
5944         * modules/poll-h (Makefile.am): Likewise.
5945         * modules/pthread (Makefile.am): Likewise.
5946         * modules/pty (Makefile.am): Likewise.
5947         * modules/sched (Makefile.am): Likewise.
5948         * modules/search (Makefile.am): Likewise.
5949         * modules/selinux-h (Makefile.am): Likewise.
5950         * modules/signal (Makefile.am): Likewise.
5951         * modules/spawn (Makefile.am): Likewise.
5952         * modules/stdarg (Makefile.am): Likewise.
5953         * modules/stddef (Makefile.am): Likewise.
5954         * modules/stdint (Makefile.am): Likewise.
5955         * modules/stdio (Makefile.am): Likewise.
5956         * modules/stdlib (Makefile.am): Likewise.
5957         * modules/string (Makefile.am): Likewise.
5958         * modules/strings (Makefile.am): Likewise.
5959         * modules/sys_file (Makefile.am): Likewise.
5960         * modules/sys_ioctl (Makefile.am): Likewise.
5961         * modules/sys_select (Makefile.am): Likewise.
5962         * modules/sys_socket (Makefile.am): Likewise.
5963         * modules/sys_stat (Makefile.am): Likewise.
5964         * modules/sys_time (Makefile.am): Likewise.
5965         * modules/sys_times (Makefile.am): Likewise.
5966         * modules/sys_uio (Makefile.am): Likewise.
5967         * modules/sys_utsname (Makefile.am): Likewise.
5968         * modules/sys_wait (Makefile.am): Likewise.
5969         * modules/sysexits (Makefile.am): Likewise.
5970         * modules/termios (Makefile.am): Likewise.
5971         * modules/time (Makefile.am): Likewise.
5972         * modules/unistd (Makefile.am): Likewise.
5973         * modules/wchar (Makefile.am): Likewise.
5974         * modules/wctype-h (Makefile.am): Likewise.
5975         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
5976
5977 2011-05-29  Bruno Haible  <bruno@clisp.org>
5978
5979         assert-h: Allow multiple gnulib generated replacements to coexist.
5980         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
5981
5982 2011-05-29  Bruno Haible  <bruno@clisp.org>
5983
5984         argp: Allow coexistence with strerror_r-posix module.
5985         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
5986         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
5987         by gnulib's <string.h> replacement), assume it has the POSIX signature,
5988         not the glibc signature.
5989
5990 2011-05-28  Bruno Haible  <bruno@clisp.org>
5991
5992         gnulib-tool: Alternative structure of testdirs, similar to --import.
5993         * gnulib-tool: New option --single-configure.
5994         (func_usage): Document it.
5995         (single_configure): New variable.
5996         (func_modules_transitive_closure_separately,
5997         func_modules_transitive_closure_separately,
5998         func_determine_use_libtests, func_modules_add_dummy_separately,
5999         func_modules_to_filelist_separately): New functions, extracted from
6000         func_import.
6001         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
6002         (func_import): Use the new functions.
6003         (func_create_testdir): Set final_modules. Handle $single_configure =
6004         true case.
6005
6006 2011-05-28  Bruno Haible  <bruno@clisp.org>
6007
6008         getloadavg: Remove an unreliable safety check.
6009         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
6010         getloadavg.c is in place.
6011         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
6012         Reported by Sam Steingold <sds@gnu.org>.
6013
6014 2011-05-28  Bruno Haible  <bruno@clisp.org>
6015
6016         doc: Cleanup yet another file produced by texinfo.tex.
6017         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
6018
6019 2011-05-28  Bruno Haible  <bruno@clisp.org>
6020
6021         Finish the conditional dependencies mechanism.
6022         * gnulib-tool: New option --no-conditional-dependencies.
6023         (func_usage): Document it. Don't mark --conditional-dependencies as
6024         experimental.
6025         (cond_dependencies): The possible values can now be true, false, empty.
6026         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
6027         (func_import): Store setting in gnulib-cache.m4 and read it from there.
6028         * doc/gnulib-tool.texi (Conditional dependencies): New section.
6029
6030 2011-05-28  Bruno Haible  <bruno@clisp.org>
6031
6032         doc: Use a recent texinfo.tex.
6033         * doc/Makefile (tex_opts): New variable.
6034         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
6035
6036 2011-05-28  Jim Meyering  <meyering@redhat.com>
6037
6038         intprops.h: adjust comment to match code change
6039         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
6040         only once, it *may* have side effects.  Also fix an unrelated typo.
6041         (_GL_INT_SIGNED): Likewise.
6042
6043 2011-05-26  Simon Josefsson  <simon@josefsson.org>
6044
6045         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
6046
6047 2011-05-26  Bruno Haible  <bruno@clisp.org>
6048
6049         mbsrchr: Avoid collision with system function on Interix.
6050         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
6051         Reported by Markus Duft <mduft@gentoo.org>.
6052
6053 2011-05-15  James Youngman  <jay@gnu.org>
6054
6055         getopt: for ambiguous options, enumerate the possibilities.
6056         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
6057         the ambiguous options when an ambiguous prefix is given. This was
6058         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
6059         glibc change was
6060         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
6061
6062 2011-05-25  Eric Blake  <eblake@redhat.com>
6063
6064         getcwd: work around mingw bug
6065         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
6066         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6067         Reported by Matthias Bolte.
6068
6069 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6070
6071         test-intprops: disable -Wtype-limits diagnostics
6072         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
6073         diagnostics.  Otherwise, the integer overflow macros generate many
6074         diagnostics.  Reported by Jim Meyering in
6075         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6076
6077         intprops: shorten, to pacify gcc -Woverlength-strings
6078         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
6079         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
6080         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
6081         likely to run afoul of C compiler limits for string constant lengths.
6082         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6083
6084 2011-05-24  Eric Blake  <eblake@redhat.com>
6085
6086         docs: document recently fixed glibc printf bug
6087         * doc/posix-functions/fprintf.texi (fprintf): Document it.
6088         * doc/posix-functions/printf.texi (printf): Likewise.
6089         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6090         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6091
6092         closein-tests: convert to init.sh
6093         * modules/closein-tests (Files): Add init.sh
6094         * tests/test-closein.sh Use it.
6095
6096         yesno-tests: convert to init.sh
6097         * modules/yesno-tests (Files): Add init.sh.
6098         * tests/test-yesno.sh: Use it.
6099
6100         atexit-tests: ensure reliable exit status
6101         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
6102         Reported by Bruno Haible.
6103
6104 2011-05-24  Bruno Haible  <bruno@clisp.org>
6105
6106         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
6107         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
6108         gl_PREREQ_STRERROR_R invocations from here...
6109         * modules/strerror_r-posix (configure.ac): ... to here.
6110
6111 2011-05-24  Eric Blake  <eblake@redhat.com>
6112
6113         strerror_r: fix missing header
6114         * lib/strerror_r.c: Avoid compiler warning about snprintf.
6115
6116         strerror_r: fix AIX test failures
6117         * lib/strerror_r.c (strerror_r): Convert silent truncation to
6118         ERANGE failure.
6119
6120         strerror_r: fix Solaris test failures
6121         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
6122         failures.
6123         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6124
6125         strerror_r: enforce POSIX recommendations
6126         * lib/strerror_r.c (safe_copy): New helper method.
6127         (strerror_r): Guarantee a non-empty string.
6128         * tests/test-strerror_r.c (main): Enhance tests to incorporate
6129         recent POSIX rulings and to match our strerror guarantees.
6130         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6131
6132 2011-05-24  Jim Meyering  <meyering@redhat.com>
6133
6134         test-perror2.c: avoid warning about unused variable
6135         * tests/test-perror2.c (main): Remove declaration of unused "fp".
6136
6137 2011-05-24  Eric Blake  <eblake@redhat.com>
6138
6139         perror: avoid spurious test failure on HP-UX
6140         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
6141
6142         tests: fix logic bug in init.sh
6143         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
6144         shell.
6145
6146 2011-05-24  Jim Meyering  <meyering@redhat.com>
6147
6148         utimensat: do not reference an out-of-scope buffer
6149         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
6150         declared in an inner scope, yet "times" would be dereferenced outside
6151         the scope in which "ts" was valid.
6152         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
6153         of ts[2] "out/up", so that the use of aliased "times" (via
6154         "times = ts;") does not end up referencing an out-of-scope "ts"
6155
6156         opendir-safer.c: don't clobber errno; don't close negative FD
6157         * lib/opendir-safer.c (opendir_safer):
6158         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
6159         file descriptor, and more importantly, don't clobber the
6160         offending errno value with EINVAL.  Before, upon failure
6161         of dup_safer, we would pass the negative file descriptor to
6162         fdopendir, which would clobber errno.
6163
6164 2011-05-23  Bruno Haible  <bruno@clisp.org>
6165
6166         idcache: Fix module description.
6167         * modules/idcache (Include): Set to "idcache.h".
6168
6169 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6170
6171         gnulib-tool: fix portability problem with MacOS sed
6172         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
6173         before the "}".  Problem reported by Leo in
6174         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
6175         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
6176         sed_extract_condition1, sed_extract_condition2.
6177
6178 2011-05-23  Bruno Haible  <bruno@clisp.org>
6179
6180         hash: Simplify autoconf macro.
6181         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
6182
6183 2011-05-23  Bruno Haible  <bruno@clisp.org>
6184
6185         getugroups: Fix module description.
6186         * modules/getugroups (Include): Set to "getugroups.h".
6187
6188 2011-05-23  Bruno Haible  <bruno@clisp.org>
6189
6190         linkat: Simplify autoconf macro.
6191         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
6192
6193 2011-05-23  Bruno Haible  <bruno@clisp.org>
6194             Eric Blake  <eblake@redhat.com>
6195
6196         linkat, renameat: Update dependencies.
6197         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
6198         * modules/linkat (Depends-on): Likewise. Remove also readlink,
6199         symlinkat.
6200
6201 2011-05-23  Jim Meyering  <meyering@redhat.com>
6202
6203         maint.mk: more tight_scope improvements
6204         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
6205         (_gl_TS_headers): Define only in if-0'd block.
6206         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
6207         sometimes we must *not* use it.  Adjust uses accordingly.
6208         (sc_tight_scope): Use much simpler grep-based test to determine
6209         whether we skip this rule.
6210
6211         maint.mk: generalize/improve the tight-scope rule
6212         * top/maint.mk: Emit a warning when the test is skipped.
6213         (_gl_TS_dir): Add $(srcdir)/ prefix.
6214         (_gl_TS_function_match): Simplify, rather than trying
6215         to enumerate common types.  Otherwise, it would fail to match an
6216         "extern unsigned char const *" declaration in idutils.
6217         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
6218         a way to support use of that type of macro.
6219         (_gl_TS_var_match): Simplify regexp.
6220         (_gl_TS_obj_files): New configurable variable.
6221         (_gl_TS_headers): Likewise.
6222
6223 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6224
6225         verify: fix bug when gnulib <assert.h> is also included
6226         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
6227         is defined, not if _GL_STATIC_ASSERT_H is not defined.
6228         Perhaps there's a better way, but this fixes the immediate problem.
6229         Problem reported by Bruno Haible in
6230         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
6231
6232 2011-05-22  Bruno Haible  <bruno@clisp.org>
6233
6234         xgetcwd: Simplify autoconf macro.
6235         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
6236
6237 2011-05-22  Bruno Haible  <bruno@clisp.org>
6238
6239         New module 'mktime-internal'.
6240         * modules/mktime-internal: New file.
6241         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
6242         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
6243         mktime_internal as a C macro if libc has __mktime_internal.
6244         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
6245         conditions.
6246         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
6247
6248 2011-05-22  Bruno Haible  <bruno@clisp.org>
6249
6250         timegm: Correct mktime replacement statements.
6251         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
6252         defining mktime as a C macro. This completes a 2009-07-28 commit.
6253
6254 2011-05-22  Bruno Haible  <bruno@clisp.org>
6255
6256         timegm: Simplify autoconf macro.
6257         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
6258
6259 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6260
6261         clock-time: change to LGPLv2+.
6262         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
6263         BSD-like but we have no mark for that; this is good enough for now.
6264
6265 2011-05-21  Bruno Haible  <bruno@clisp.org>
6266
6267         strerror_r: Fix comments.
6268         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
6269
6270 2011-05-21  Bruno Haible  <bruno@clisp.org>
6271
6272         relocatable-prog-wrapper: Fix possible link error.
6273         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
6274         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
6275         (gl_FUNC_SETENV): ... to here.
6276         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
6277         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
6278
6279 2011-05-21  Bruno Haible  <bruno@clisp.org>
6280
6281         relocatable-prog-wrapper: Assume strerror() exists.
6282         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
6283         m4/strerror.m4.
6284         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
6285         * lib/relocwrapper.c: Remove mention of strerror module.
6286         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
6287         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
6288         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
6289         C macro.
6290
6291 2011-05-21  Bruno Haible  <bruno@clisp.org>
6292
6293         select: Simplify replacement idiom.
6294         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
6295         Win32 platforms.
6296         * lib/sys_select.in.h (select): Simplify accordingly.
6297         * modules/select (Depends-on): Likewise.
6298
6299 2011-05-21  Bruno Haible  <bruno@clisp.org>
6300
6301         mkdir-p: Simplify autoconf macro.
6302         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
6303         gl_FUNC_LCHOWN.
6304
6305 2011-05-21  Eric Blake  <eblake@redhat.com>
6306
6307         strerror_r: avoid clobbering strerror on cygwin
6308         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
6309         fall back instead to sys_errlist.
6310         * modules/strerror (configure.ac): Add witness.
6311         * tests/test-strerror_r.c (main): Enhance test.
6312         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6313         * tests/test-perror2.c (main): Free memory before exit.
6314
6315 2011-05-21  Bruno Haible  <bruno@clisp.org>
6316
6317         mkdtemp: Use gnulib naming conventions.
6318         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
6319         * modules/mkdtemp (configure.ac): Update.
6320
6321 2011-05-20  Eric Blake  <eblake@redhat.com>
6322
6323         strerror_r: avoid corrupting errno on Solaris
6324         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
6325         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6326
6327         strerror_r: avoid compiler warning
6328         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
6329
6330         strerror_r: simplify AIX code
6331         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
6332
6333         test-perror: avoid spurious failure on FreeBSD
6334         * modules/perror-tests (Depends-on): Add strerror, now that
6335         strerror_r no longer pulls it in.
6336
6337 2011-05-20  Bruno Haible  <bruno@clisp.org>
6338
6339         strerror_r-posix: Remove unused dependencies.
6340         * modules/strerror_r-posix (Depends-on): Remove strerror.
6341         Reported by Eric Blake.
6342
6343 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
6344
6345         intprops: remove assumption about A|B representation
6346         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
6347         is a valid integer if both A and B are.  Although this is true for
6348         all known practical hosts, the C standard doesn't guarantee it,
6349         and the code need not assume it.  Also, this change may work around
6350         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
6351         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
6352
6353 2011-05-20  Eric Blake  <eblake@redhat.com>
6354
6355         perror: work around FreeBSD bug
6356         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
6357         is broken.  Move AC_LIBOBJ...
6358         * modules/perror (configure.ac): Here.
6359         * doc/posix-functions/perror.texi (perror): Document this.
6360         * tests/test-perror2.c (main): Enhance test.
6361
6362         test-perror: check for strerror interactions
6363         * tests/macros.h (STREQ): Add macro.
6364         * modules/perror-tests (Files): Add second test.
6365         * tests/test-perror2.c (main): New file.
6366         * doc/posix-functions/perror.texi (perror): Document glibc bug.
6367
6368         test-perror: rewrite to use init script
6369         * modules/perror-tests (Files): Add init.sh.
6370         * tests/test-perror.sh: Use temporary directory.
6371
6372 2011-05-20  Jim Meyering  <meyering@redhat.com>
6373
6374         maint: replace misused "a" with "an"
6375         * doc/intprops.texi: "a integer"
6376         * doc/regex.texi: "a explanation"
6377         * lib/alignof.h: "a object"
6378         * lib/argmatch.h: "a explanation"
6379         * lib/argp-help.c: "a option" and "a OPTION_DOC"
6380         * lib/stdint.in.h: "a integer"
6381         * lib/userspec.c: "a owner"
6382         * doc/gnulib.texi: Fix "a idea", and reword.
6383
6384 2011-05-19  Jim Meyering  <meyering@redhat.com>
6385
6386         maint: correct misuse of "a" and "an"
6387         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
6388         * lib/argp-help.c: "an docum...": s/an/a/
6389         * lib/argp-parse.c: "An vector": s/An/A/
6390         * lib/execute.c: "an native": s/an/a/
6391         * lib/spawn-pipe.c: Likewise.
6392         * lib/gc.h: "an Gc_rc": s/an/a/
6393         * lib/unigbrk.in.h: "an grapheme": s/an/a/
6394         * lib/fts.c: "an stat.st_dev": s/an/a/
6395
6396 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6397
6398         intprops-tests: work around HP-UX 11.23 cc bug with constants
6399         * tests/test-intprops.c (VERIFY): New macro.
6400         (main): Use it, instead of verify, to work around the compiler bug; see
6401         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6402
6403         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
6404         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
6405         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
6406         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
6407         (_GL_REMAINDER_OVERFLOW): Use it.
6408
6409         intprops-tests: revert unsigned part of previous change
6410         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
6411         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
6412         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
6413         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
6414
6415 2011-05-19  Bruno Haible  <bruno@clisp.org>
6416
6417         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
6418         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
6419         strerror_r() returned without filling the buffer.
6420         Reported by Eric Blake.
6421
6422 2011-05-19  Eric Blake  <eblake@redhat.com>
6423
6424         strerror_r: guarantee unchanged errno
6425         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
6426         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
6427         failure.
6428         * tests/test-strerror_r.c (main): Enhance test.
6429
6430 2011-05-19  Bruno Haible  <bruno@clisp.org>
6431
6432         strerror_r: Reorder #if blocks.
6433         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
6434         for consistency with the previous commit.
6435
6436 2011-05-19  Bruno Haible  <bruno@clisp.org>
6437
6438         perror: Avoid clobbering the strerror buffer when possible.
6439         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
6440         * lib/strerror.c: Include it.
6441         * modules/strerror (Files): Add lib/strerror-impl.h.
6442         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
6443         (my_strerror): New function, defined through lib/strerror-impl.h.
6444         (perror): Use it instead of strerror.
6445         * modules/perror (Files): Add lib/strerror-impl.h.
6446         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
6447
6448 2011-05-19  Eric Blake  <eblake@redhat.com>
6449
6450         strerror_r: fix on newer cygwin
6451         * lib/strerror_r.c (strerror_r): Cygwin now has
6452         __xpg_strerror_r, use it.
6453
6454 2011-05-19  Bruno Haible  <bruno@clisp.org>
6455
6456         strerror_r: Avoid clobbering the strerror buffer when possible.
6457         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
6458         (sys_nerr, sys_errlist): New declarations.
6459         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
6460         HP-UX, native Win32, IRIX, and 32-bit Solaris.
6461         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
6462
6463 2011-05-19  Bruno Haible  <bruno@clisp.org>
6464
6465         strerror_r: Fix test failure on mingw.
6466         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
6467         EXTEND_STRERROR_R.
6468         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
6469         macros from errno.in.h instead.
6470
6471 2011-05-19  Eric Blake  <eblake@redhat.com>
6472
6473         strerror: relax test for Solaris
6474         * tests/test-strerror.c (main): Permit Solaris behavior.
6475         * tests/test-strerror_r.c (main): Likewise.
6476
6477         strerror: enforce POSIX ruling on strerror(0)
6478         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
6479         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6480         * lib/strerror_r.c (rpl_strerror_r): Work around it.
6481         * doc/posix-functions/strerror.texi (strerror): Document it.
6482         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
6483         * tests/test-strerror.c (main): Strengthen test.
6484         * tests/test-strerror_r.c (main): Likewise.
6485
6486 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6487
6488         intprop-tests: port to older and more-pedantic compilers
6489         * modules/intprops-tests (Files): Add tests/macros.h.
6490         * tests/test-intprops.c: Include macros.h.
6491         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
6492         it's no longer documented to expand to an integer constant expression.
6493         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
6494         argument is floating point, as it's no longer documented to expand
6495         to an integer constant expression in that case.
6496         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
6497         compiler bugs reported by Bruno Haible.  See
6498         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6499         (U0, U1): New constants, to work around the same bugs.  Also,
6500         in tests, use e.g., "(unsigned int) 39" rather than "39u".
6501
6502         intprops: work around C compiler bugs
6503         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
6504         bug in Sun C 5.11 2010/08/13 and other compilers; see
6505         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6506
6507         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
6508         * doc/intprops.texi (Integer Type Determination): Fix
6509         documentation for TYPE_IS_INTEGER: it returns an constant
6510         expression, not an integer constant expression.  Fix doc for
6511         TYPE_SIGNED: it returns an integer constant expression only if its
6512         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
6513         hardly worth documented that way....)
6514
6515 2011-05-18  Bruno Haible  <bruno@clisp.org>
6516
6517         strerror_r: Avoid clobbering the strerror buffer when possible.
6518         * lib/strerror_r.c (strerror_r): Merge the three implementations.
6519         Handle gnulib defined errno values here. When strerror() returns NULL
6520         or an empty string, return EINVAL.
6521         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
6522         gnulib defined errno values here.
6523         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
6524
6525 2011-05-18  Eric Blake  <eblake@redhat.com>
6526
6527         fnmatch: avoid compiler warning
6528         * lib/fnmatch_loop.c (FCT): Use correct type.
6529         Reported by Matthias Bolte.
6530
6531 2011-05-13  Jim Meyering  <meyering@redhat.com>
6532
6533         maint.mk: three new prohibit_<HDR>_without_use rules
6534         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
6535         (sc_prohibit_stdio-safer_without_use): Likewise.
6536         (sc_prohibit_xfreopen_without_use): Likewise.
6537
6538 2011-05-17  Jim Meyering  <meyering@redhat.com>
6539
6540         announce-gen: fail if the NEWS delta is empty
6541         If there's nothing noteworthy in NEWS, then either you forgot
6542         or you shouldn't be releasing.
6543         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
6544
6545 2011-05-17  Pádraig Brady <P@draigBrady.com>
6546
6547         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
6548         reserved symbols starting with double underscore from the check.
6549
6550 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
6551
6552         intprops: add doc
6553         * doc/intprops.texi: New file, documenting intprops.
6554         * doc/gnulib.texi (Particular Modules): Include it.
6555
6556         verify: add doc to gnulib manual and fix example
6557         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
6558         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
6559         (Compile-time Assertions): Fix example so it can't overflow.
6560
6561 2011-05-17  Jim Meyering  <meyering@redhat.com>
6562
6563         warnings.m4: don't usurp save_CPPFLAGS variable name
6564         * m4/warnings.m4: Prefix local temporary variable name with gl_.
6565
6566         doc: fix typo
6567         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
6568
6569 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6570             Bruno Haible  <bruno@clisp.org>
6571
6572         doc: Tweak recent change.
6573         * README (Portability guidelines): Tweak new text.
6574         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
6575         Interix 6.1.
6576
6577 2011-05-16  Eric Blake  <eblake@redhat.com>
6578
6579         inttypes: avoid autoconf warning
6580         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
6581         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6582
6583 2011-05-16  Sam Steingold <sds@gnu.org>
6584         and Eric Blake  <eblake@redhat.com>
6585
6586         vc-list-files: accept multiple directory operands
6587         * build-aux/vc-list-files: Iterate over all remaining operands.
6588
6589 2011-05-16  Bruno Haible  <bruno@clisp.org>
6590
6591         Fix confusion regarding deprecated modules.
6592         * modules/calloc (Status, Notice): Mark module as deprecated, not
6593         obsolete.
6594         * modules/fnmatch-posix (Status, Notice): Likewise.
6595         * modules/getdate (Status, Notice): Likewise.
6596         * modules/getopt (Status, Notice): Likewise.
6597         * modules/malloc (Status, Notice): Likewise.
6598         * modules/pipe (Status, Notice): Likewise.
6599         * modules/realloc (Status, Notice): Likewise.
6600         * modules/rename-dest-slash (Status, Notice): Likewise.
6601         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
6602         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
6603         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
6604         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
6605         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
6606
6607 2011-05-16  Bruno Haible  <bruno@clisp.org>
6608
6609         doc: List the target platforms.
6610         * doc/gnulib-intro.texi (Target Platforms): New section.
6611         * doc/gnulib.texi (Introduction): Update menu.
6612         * README (Portability guidelines): Refer to the new section. Update
6613         statement about oldest supported environment. Remove rationale why
6614         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
6615         unportable C89 function.
6616         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
6617         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
6618
6619 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6620
6621         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
6622
6623 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
6624
6625         intprops-tests: new module
6626         * modules/intprops-tests, tests/test-intprops.c: New files.
6627
6628         intprops: add safe, portable integer overflow checking
6629         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
6630         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
6631         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
6632         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
6633         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
6634         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
6635         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
6636         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
6637         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
6638         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
6639         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
6640
6641 2011-05-12  James Youngman  <jay@gnu.org>
6642
6643         Add a test for glibc's Bugzilla bug #12378.
6644         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
6645         doesn't allow the literal matching of a lone "[" (which is
6646         required by POSIX).
6647         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
6648
6649 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
6650
6651         Sync glibc change fixing Bugzilla bug #12378.
6652         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
6653         beginning and fall back to matching as normal character if the
6654         string ends before the matching ']' is found.  This is what POSIX
6655         requires.
6656
6657 2011-05-13  Eric Blake  <eblake@redhat.com>
6658
6659         getcwd-lgpl: relax test for FreeBSD
6660         * doc/posix-functions/getcwd.texi (getcwd): Document portability
6661         issue.
6662         * tests/test-getcwd-lgpl.c (main): Relax test.
6663         Reported by Matthias Bolte.
6664
6665 2011-05-11  Eric Blake  <eblake@redhat.com>
6666
6667         test-fflush: silence compiler warning
6668         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
6669
6670 2011-05-11  Bruno Haible  <bruno@clisp.org>
6671
6672         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
6673         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
6674         * modules/canonicalize (Depends-on): Add 'nocrash'.
6675         * modules/canonicalize-lgpl (Depends-on): Likewise.
6676         * doc/posix-functions/realpath.texi: Update platforms list.
6677         Reported by Ryan Schmidt <ryandesign@macports.org>.
6678
6679 2011-05-11  Bruno Haible  <bruno@clisp.org>
6680
6681         group-member: Declare function in <unistd.h>.
6682         * lib/unistd.in.h (group_member): New declaration.
6683         * lib/group-member.h: Remove file.
6684         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
6685         * tests/test-unistd-c++.cc: Check signature of group_member.
6686         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
6687         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
6688         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
6689         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
6690         HAVE_GROUP_MEMBER.
6691         * modules/group-member (Files): Remove lib/group-member.h.
6692         (Depends-on): Add unistd. Specify conditions.
6693         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6694         (Include): Change to <unistd.h>.
6695         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
6696         HAVE_GROUP_MEMBER.
6697         * NEWS: Mention the change.
6698         * lib/euidaccess.c: Don't include group-member.h.
6699
6700 2011-05-11  Bruno Haible  <bruno@clisp.org>
6701
6702         group-member: Document module.
6703         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
6704         module.
6705
6706 2011-05-11  Bruno Haible  <bruno@clisp.org>
6707
6708         fclose: Fix mistake earlier today.
6709         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
6710
6711 2011-05-11  Eric Blake  <eblake@redhat.com>
6712
6713         fclose: preserve fflush errors
6714         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
6715         Reported by Jim Meyering.
6716
6717         bootstrap: support a prereq of 'rpcgen -' on RHEL5
6718         * build-aux/bootstrap (check_versions): When no specific version
6719         is required, merely check that the app produces an exit status
6720         that indicates its existence.
6721
6722         maint.mk: drop redundant check
6723         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
6724         the same but better.
6725
6726 2011-05-11  Bruno Haible  <bruno@clisp.org>
6727
6728         fclose: Fix possible link error.
6729         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
6730         unregister_shadow_fd. Improve comments.
6731         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
6732         Eric Blake.
6733
6734 2011-05-11  Jim Meyering  <meyering@redhat.com>
6735
6736         maint.mk: improve "can not" detection and generalize rule name
6737         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
6738         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
6739         Use the same technique as in sc_prohibit_doubled_word, so that
6740         we recognize "can not" also when the words are separated by a newline.
6741         Suggested by Eric Blake.
6742         (perl_filename_lineno_text_): Define.  Factored out of...
6743         (prohibit_doubled_word_): ...here.  Use the new definition.
6744         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
6745         (prohibit_undesirable_word_seq_RE_): New overridable variable.
6746         (ignore_undesirable_word_sequence_RE_): New overridable variable.
6747
6748 2011-05-10  Eric Blake  <eblake@redhat.com>
6749
6750         fclose: avoid double close race when possible
6751         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
6752         all but WINDOWS_SOCKETS.
6753
6754 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
6755
6756         openat: correct new comment
6757         * lib/openat-proc.c (openat_proc_name): Correct the comment.
6758
6759 2011-05-10  Jim Meyering  <meyering@redhat.com>
6760
6761         openat: add comments
6762         * lib/openat-proc.c (openat_proc_name): Add comments,
6763         mostly from Eric Blake.
6764
6765 2011-05-09  Eric Blake  <eblake@redhat.com>
6766
6767         openat: reduce syscalls in first probe of /proc
6768         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
6769         be a directory.  Simplify the probe for .. bugs.
6770         * modules/openat (Depends-on): Drop same-inode.
6771         Reported by Bastien ROUCARIES.
6772
6773 2011-05-09  Jim Meyering  <meyering@redhat.com>
6774
6775         maint.mk: change semantics/name of tight_scope variables
6776         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
6777         Rename variables to align with semantics that make them more useful.
6778
6779         maint.mk: tweak new rule's name not to impinge
6780         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
6781         (sc_tight_scope): Use new rule name rather than $@-0.
6782
6783         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
6784         * top/maint.mk (sc_tight_scope): New rule.
6785         (sc_tight_scope-0): New rule, ifdef'd out.
6786         (_gl_TS_dir): Default.
6787         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
6788         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
6789
6790 2011-05-09  Simon Josefsson  <simon@josefsson.org>
6791
6792         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
6793         Haible <bruno@clisp.org>.
6794
6795 2011-05-08  Bruno Haible  <bruno@clisp.org>
6796
6797         Comments.
6798         * m4/isnanf.m4: Add comment.
6799         * m4/isnanl.m4: Likewise.
6800
6801 2011-05-08  Bruno Haible  <bruno@clisp.org>
6802
6803         glob: Remove obsolete macro.
6804         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
6805
6806 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
6807
6808         intprops: Sun C 5.11 supports __typeof__
6809         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
6810         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
6811         which is new.
6812         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
6813
6814         intprops: switch to usual gnulib indenting and naming
6815         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
6816         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
6817
6818         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
6819
6820 2011-05-08  Jim Meyering  <meyering@redhat.com>
6821
6822         maint.mk: suppress "Entering/Leaving directory" diag in announcement
6823         * top/maint.mk (release-prep): Use make's --no-print-directory
6824         option when generating the announcement.  This eliminates the
6825         pesky "make[2]: Entering/Leaving directory" diagnostics in the
6826         generated announcement template.
6827
6828 2011-05-08  Bruno Haible  <bruno@clisp.org>
6829
6830         tzset: Fix gettimeofday wrapper on Solaris 2.6.
6831         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
6832         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
6833
6834 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
6835
6836         ignore-value, verify: Omit include files from lib_SOURCES.
6837         * modules/ignore-value, modules/verify (Makefile.am):
6838         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
6839         that leads Automake to duplicate use of am__objects_... variables
6840         in Makefile.in.  See
6841         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
6842
6843 2011-05-07  Bruno Haible  <bruno@clisp.org>
6844
6845         fclose: Simplify autoconf macro.
6846         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
6847         defined.
6848
6849 2011-05-07  Bruno Haible  <bruno@clisp.org>
6850
6851         canonicalize-lgpl: Fix autoconf macro ordering bug.
6852         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
6853         gl_STDLIB_H_DEFAULTS.
6854
6855 2011-05-06  Eric Blake  <eblake@redhat.com>
6856
6857         maintainer-makefile: make sc_po_check easier to tune
6858         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
6859         to probe for strings, such as an alternate location for gnulib.
6860
6861         fclose: guarantee behavior on seekable stdin
6862         * modules/fclose (Depends-on): Add fflush.
6863         * doc/posix-functions/fclose.texi (fclose): Document this.
6864         * tests/test-fclose.c (main): Make test for this unconditional.
6865
6866 2011-05-06  Bruno Haible  <bruno@clisp.org>
6867
6868         fflush, fpurge: Relicense under LGPLv2+.
6869         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
6870         * modules/fpurge (License): Likewise.
6871         With permission from Eric Blake and Jim Meyering.
6872         Suggested by Eric Blake.
6873
6874 2011-05-06  Karl Berry  <karl@gnu.org>
6875
6876         * MODULES.html.sh (func_all_modules): remove exit.
6877
6878 2011-05-06  Jim Meyering  <meyering@redhat.com>
6879
6880         maint.mk: use info-gnu@ as the default only for a stable release
6881         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
6882         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
6883         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
6884         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
6885
6886 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
6887
6888         assert-h: new module, which supports C1X-style static_assert
6889         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
6890         * lib/verify.h: Revamp so that this can be copied into assert.h,
6891         while retaining the ability to use it standalone as before.
6892         Rename private identifiers so as not to encroach on the
6893         standard C namespace, since this is now used by assert.h.
6894         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
6895         the old verify_true.
6896         (_GL_VERIFY_TRUE): New macro, with much of the contents of
6897         the old verify_true.  Use _GL_VERIFY_TYPE.
6898         (_GL_VERIFY): New macro, with much of the contents of the old verify.
6899         (static_assert): New macro, if _GL_STATIC_ASSERT_H
6900         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
6901         defined when this file is copied into the replacement assert.h.
6902         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
6903         and _Static_assert is not built in.
6904         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
6905         defined, and use the new macros mentioned above.
6906         * doc/posix-headers/assert.texi: Document this.
6907
6908 2011-05-05  Bruno Haible  <bruno@clisp.org>
6909
6910         fclose, fflush: Respect rules for use of AC_LIBOBJ.
6911         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
6912         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
6913         gl_REPLACE_FCLOSE here.
6914         * modules/fflush (Depends-on): Remove fclose.
6915         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
6916         combination with module 'fclose'.
6917
6918 2011-05-05  Bruno Haible  <bruno@clisp.org>
6919
6920         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
6921         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
6922         gl_FUNC_FFLUSH.
6923         (gl_FUNC_FFLUSH): Use it.
6924         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
6925         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
6926         gl_REPLACE_FSEEKO here.
6927
6928 2011-05-05  Bruno Haible  <bruno@clisp.org>
6929
6930         tzset: Relicense under LGPL.
6931         * modules/tzset (License): Change to LGPL.
6932         No agreement needed; it's a no-op.
6933
6934         strtoimax, strtoumax: Relicense under LGPL.
6935         * modules/strtoimax (License): Change to LGPL.
6936         * modules/strtoumax (License): Likewise.
6937         With permission from Jim Meyering, Paul Eggert:
6938         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
6939         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
6940
6941         getgroups: Relicense under LGPL.
6942         * modules/getgroups (License): Change to LGPL.
6943         With permission from Jim Meyering, Paul Eggert, Eric Blake:
6944         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
6945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
6946         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6947
6948         nanosleep: Relicense under LGPL.
6949         * modules/nanosleep (License): Change to LGPL.
6950         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
6951         Haible:
6952         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
6953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
6954         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6955         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
6956
6957         futimens: Relicense under LGPL.
6958         * modules/futimens (License): Change to LGPL.
6959         With permission from Eric Blake:
6960         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6961
6962         fflush: Relicense under LGPL.
6963         * modules/fflush (License): Change to LGPL.
6964         With permission from Eric Blake, Bruno Haible, Jim Meyering:
6965         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6966         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
6967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
6968
6969         tmpfile: Relicense under LGPL.
6970         * modules/tmpfile (License): Change to LGPL.
6971         With permission from Ben Pfaff:
6972         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
6973
6974         isfinite: Relicense under LGPL.
6975         * modules/isfinite (License): Change to LGPL.
6976         With permission from Ben Pfaff, Bruno Haible:
6977         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
6978         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
6979
6980         acosl..tanl: Relicense under LGPL.
6981         * modules/acosl (License): Change to LGPL.
6982         * modules/asinl (License): Likewise.
6983         * modules/atanl (License): Likewise.
6984         * modules/cosl (License): Likewise.
6985         * modules/expl (License): Likewise.
6986         * modules/logl (License): Likewise.
6987         * modules/sinl (License): Likewise.
6988         * modules/sqrtl (License): Likewise.
6989         * modules/tanl (License): Likewise.
6990         Source code originally from glibc and Paolo Bonzini. Agreements:
6991         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
6992         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
6993
6994 2011-05-05  Bruno Haible  <bruno@clisp.org>
6995
6996         signal: Define sighandler_t.
6997         * lib/signal.in.h (sighandler_t): New type.
6998         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
6999         whether sighandler_t is defined.
7000         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
7001         * modules/signal (Depends-on): Add extensions.
7002         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
7003         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
7004         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
7005
7006 2011-05-05  Eric Blake  <eblake@redhat.com>
7007
7008         maint: remove useless REPLACE_*_H macros
7009         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
7010         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7011         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7012         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
7013         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7014         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7015         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
7016         * m4/btowc.m4: Update callers.
7017         * m4/dirfd.m4: Likewise.
7018         * m4/duplocale.m4: Likewise.
7019         * m4/fchdir.m4: Likewise.
7020         * m4/fdopendir.m4: Likewise.
7021         * m4/inet_ntop.m4: Likewise.
7022         * m4/inet_pton.m4: Likewise.
7023         * m4/ioctl.m4: Likewise.
7024         * m4/mbrlen.m4: Likewise.
7025         * m4/mbrtowc.m4: Likewise.
7026         * m4/mbsinit.m4: Likewise.
7027         * m4/mbsnrtowcs.m4: Likewise.
7028         * m4/mbsrtowcs.m4: Likewise.
7029         * m4/poll.m4: Likewise.
7030         * m4/setlocale.m4: Likewise.
7031         * m4/wcrtomb.m4: Likewise.
7032         * m4/wcsnrtombs.m4: Likewise.
7033         * m4/wcsrtombs.m4: Likewise.
7034         * m4/wctob.m4: Likewise.
7035         * m4/wcwidth.m4: Likewise.
7036         * modules/posix_spawn: Likewise.
7037         * modules/posix_spawn_file_actions_addclose: Likewise.
7038         * modules/posix_spawn_file_actions_adddup2: Likewise.
7039         * modules/posix_spawn_file_actions_addopen: Likewise.
7040         * modules/posix_spawn_file_actions_destroy: Likewise.
7041         * modules/posix_spawn_file_actions_init: Likewise.
7042         * modules/posix_spawnattr_destroy: Likewise.
7043         * modules/posix_spawnattr_getflags: Likewise.
7044         * modules/posix_spawnattr_getpgroup: Likewise.
7045         * modules/posix_spawnattr_getschedparam: Likewise.
7046         * modules/posix_spawnattr_getschedpolicy: Likewise.
7047         * modules/posix_spawnattr_getsigdefault: Likewise.
7048         * modules/posix_spawnattr_getsigmask: Likewise.
7049         * modules/posix_spawnattr_init: Likewise.
7050         * modules/posix_spawnattr_setflags: Likewise.
7051         * modules/posix_spawnattr_setpgroup: Likewise.
7052         * modules/posix_spawnattr_setschedparam: Likewise.
7053         * modules/posix_spawnattr_setschedpolicy: Likewise.
7054         * modules/posix_spawnattr_setsigdefault: Likewise.
7055         * modules/posix_spawnattr_setsigmask: Likewise.
7056         * modules/posix_spawnp: Likewise.
7057
7058 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
7059
7060         Add option to do-release-commit-and-tag to specify branch.
7061         * build-aux/do-release-commit-and-tag: Add --branch.
7062
7063 2011-05-03  Bruno Haible  <bruno@clisp.org>
7064
7065         Avoid unnecessary compilation units, through conditional dependencies.
7066         * modules/accept (Depends-on): Add conditions to the dependencies.
7067         * modules/acosl (Depends-on): Likewise.
7068         * modules/argz (Depends-on): Likewise.
7069         * modules/asinl (Depends-on): Likewise.
7070         * modules/atanl (Depends-on): Likewise.
7071         * modules/atoll (Depends-on): Likewise.
7072         * modules/bind (Depends-on): Likewise.
7073         * modules/btowc (Depends-on): Likewise.
7074         * modules/canonicalize-lgpl (Depends-on): Likewise.
7075         * modules/ceil (Depends-on): Likewise.
7076         * modules/ceilf (Depends-on): Likewise.
7077         * modules/ceill (Depends-on): Likewise.
7078         * modules/chdir-long (Depends-on): Likewise.
7079         * modules/chown (Depends-on): Likewise.
7080         * modules/close (Depends-on): Likewise.
7081         * modules/connect (Depends-on): Likewise.
7082         * modules/cosl (Depends-on): Likewise.
7083         * modules/dirfd (Depends-on): Likewise.
7084         * modules/dprintf (Depends-on): Likewise.
7085         * modules/dprintf-posix (Depends-on): Likewise.
7086         * modules/error (Depends-on): Likewise.
7087         * modules/euidaccess (Depends-on): Likewise.
7088         * modules/expl (Depends-on): Likewise.
7089         * modules/faccessat (Depends-on): Likewise.
7090         * modules/fchdir (Depends-on): Likewise.
7091         * modules/fclose (Depends-on): Likewise.
7092         * modules/fcntl (Depends-on): Likewise.
7093         * modules/fdopendir (Depends-on): Likewise.
7094         * modules/fflush (Depends-on): Likewise.
7095         * modules/floor (Depends-on): Likewise.
7096         * modules/floorf (Depends-on): Likewise.
7097         * modules/floorl (Depends-on): Likewise.
7098         * modules/fnmatch (Depends-on): Likewise.
7099         * modules/fopen (Depends-on): Likewise.
7100         * modules/fprintf-posix (Depends-on): Likewise.
7101         * modules/frexp (Depends-on): Likewise.
7102         * modules/frexp-nolibm (Depends-on): Likewise.
7103         * modules/frexpl (Depends-on): Likewise.
7104         * modules/frexpl-nolibm (Depends-on): Likewise.
7105         * modules/fseek (Depends-on): Likewise.
7106         * modules/fsusage (Depends-on): Likewise.
7107         * modules/ftell (Depends-on): Likewise.
7108         * modules/ftello (Depends-on): Likewise.
7109         * modules/futimens (Depends-on): Likewise.
7110         * modules/getcwd (Depends-on): Likewise.
7111         * modules/getcwd-lgpl (Depends-on): Likewise.
7112         * modules/getdelim (Depends-on): Likewise.
7113         * modules/getdomainname (Depends-on): Likewise.
7114         * modules/getgroups (Depends-on): Likewise.
7115         * modules/gethostname (Depends-on): Likewise.
7116         * modules/getline (Depends-on): Likewise.
7117         * modules/getlogin_r (Depends-on): Likewise.
7118         * modules/getopt-posix (Depends-on): Likewise.
7119         * modules/getpeername (Depends-on): Likewise.
7120         * modules/getsockname (Depends-on): Likewise.
7121         * modules/getsockopt (Depends-on): Likewise.
7122         * modules/getsubopt (Depends-on): Likewise.
7123         * modules/getusershell (Depends-on): Likewise.
7124         * modules/glob (Depends-on): Likewise.
7125         * modules/grantpt (Depends-on): Likewise.
7126         * modules/iconv_open (Depends-on): Likewise.
7127         * modules/iconv_open-utf (Depends-on): Likewise.
7128         * modules/inet_ntop (Depends-on): Likewise.
7129         * modules/inet_pton (Depends-on): Likewise.
7130         * modules/ioctl (Depends-on): Likewise.
7131         * modules/isapipe (Depends-on): Likewise.
7132         * modules/isfinite (Depends-on): Likewise.
7133         * modules/isinf (Depends-on): Likewise.
7134         * modules/lchown (Depends-on): Likewise.
7135         * modules/ldexpl (Depends-on): Likewise.
7136         * modules/link (Depends-on): Likewise.
7137         * modules/linkat (Depends-on): Likewise.
7138         * modules/listen (Depends-on): Likewise.
7139         * modules/logl (Depends-on): Likewise.
7140         * modules/lstat (Depends-on): Likewise.
7141         * modules/mbrlen (Depends-on): Likewise.
7142         * modules/mbrtowc (Depends-on): Likewise.
7143         * modules/mbsinit (Depends-on): Likewise.
7144         * modules/mbsnrtowcs (Depends-on): Likewise.
7145         * modules/mbsrtowcs (Depends-on): Likewise.
7146         * modules/mbtowc (Depends-on): Likewise.
7147         * modules/memcmp (Depends-on): Likewise.
7148         * modules/mkdir (Depends-on): Likewise.
7149         * modules/mkdtemp (Depends-on): Likewise.
7150         * modules/mkfifo (Depends-on): Likewise.
7151         * modules/mkfifoat (Depends-on): Likewise.
7152         * modules/mknod (Depends-on): Likewise.
7153         * modules/mkostemp (Depends-on): Likewise.
7154         * modules/mkostemps (Depends-on): Likewise.
7155         * modules/mkstemp (Depends-on): Likewise.
7156         * modules/mkstemps (Depends-on): Likewise.
7157         * modules/mktime (Depends-on): Likewise.
7158         * modules/nanosleep (Depends-on): Likewise.
7159         * modules/open (Depends-on): Likewise.
7160         * modules/openat (Depends-on): Likewise.
7161         * modules/perror (Depends-on): Likewise.
7162         * modules/poll (Depends-on): Likewise.
7163         * modules/popen (Depends-on): Likewise.
7164         * modules/posix_spawn (Depends-on): Likewise.
7165         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
7166         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7167         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7168         * modules/posix_spawnp (Depends-on): Likewise.
7169         * modules/pread (Depends-on): Likewise.
7170         * modules/printf-posix (Depends-on): Likewise.
7171         * modules/ptsname (Depends-on): Likewise.
7172         * modules/putenv (Depends-on): Likewise.
7173         * modules/pwrite (Depends-on): Likewise.
7174         * modules/readline (Depends-on): Likewise.
7175         * modules/readlink (Depends-on): Likewise.
7176         * modules/readlinkat (Depends-on): Likewise.
7177         * modules/recv (Depends-on): Likewise.
7178         * modules/recvfrom (Depends-on): Likewise.
7179         * modules/regex (Depends-on): Likewise.
7180         * modules/remove (Depends-on): Likewise.
7181         * modules/rename (Depends-on): Likewise.
7182         * modules/renameat (Depends-on): Likewise.
7183         * modules/rmdir (Depends-on): Likewise.
7184         * modules/round (Depends-on): Likewise.
7185         * modules/roundf (Depends-on): Likewise.
7186         * modules/roundl (Depends-on): Likewise.
7187         * modules/rpmatch (Depends-on): Likewise.
7188         * modules/select (Depends-on): Likewise.
7189         * modules/send (Depends-on): Likewise.
7190         * modules/sendto (Depends-on): Likewise.
7191         * modules/setenv (Depends-on): Likewise.
7192         * modules/setlocale (Depends-on): Likewise.
7193         * modules/setsockopt (Depends-on): Likewise.
7194         * modules/shutdown (Depends-on): Likewise.
7195         * modules/sigaction (Depends-on): Likewise.
7196         * modules/signbit (Depends-on): Likewise.
7197         * modules/sigprocmask (Depends-on): Likewise.
7198         * modules/sinl (Depends-on): Likewise.
7199         * modules/sleep (Depends-on): Likewise.
7200         * modules/snprintf (Depends-on): Likewise.
7201         * modules/snprintf-posix (Depends-on): Likewise.
7202         * modules/socket (Depends-on): Likewise.
7203         * modules/sprintf-posix (Depends-on): Likewise.
7204         * modules/sqrtl (Depends-on): Likewise.
7205         * modules/stat (Depends-on): Likewise.
7206         * modules/strchrnul (Depends-on): Likewise.
7207         * modules/strdup-posix (Depends-on): Likewise.
7208         * modules/strerror (Depends-on): Likewise.
7209         * modules/strerror_r-posix (Depends-on): Likewise.
7210         * modules/strndup (Depends-on): Likewise.
7211         * modules/strnlen (Depends-on): Likewise.
7212         * modules/strptime (Depends-on): Likewise.
7213         * modules/strsep (Depends-on): Likewise.
7214         * modules/strsignal (Depends-on): Likewise.
7215         * modules/strstr-simple (Depends-on): Likewise.
7216         * modules/strtod (Depends-on): Likewise.
7217         * modules/strtoimax (Depends-on): Likewise.
7218         * modules/strtok_r (Depends-on): Likewise.
7219         * modules/strtoumax (Depends-on): Likewise.
7220         * modules/symlink (Depends-on): Likewise.
7221         * modules/symlinkat (Depends-on): Likewise.
7222         * modules/tanl (Depends-on): Likewise.
7223         * modules/tcgetsid (Depends-on): Likewise.
7224         * modules/tmpfile (Depends-on): Likewise.
7225         * modules/trunc (Depends-on): Likewise.
7226         * modules/truncf (Depends-on): Likewise.
7227         * modules/truncl (Depends-on): Likewise.
7228         * modules/uname (Depends-on): Likewise.
7229         * modules/unlink (Depends-on): Likewise.
7230         * modules/unlockpt (Depends-on): Likewise.
7231         * modules/unsetenv (Depends-on): Likewise.
7232         * modules/usleep (Depends-on): Likewise.
7233         * modules/utimensat (Depends-on): Likewise.
7234         * modules/vasprintf (Depends-on): Likewise.
7235         * modules/vdprintf (Depends-on): Likewise.
7236         * modules/vdprintf-posix (Depends-on): Likewise.
7237         * modules/vfprintf-posix (Depends-on): Likewise.
7238         * modules/vprintf-posix (Depends-on): Likewise.
7239         * modules/vsnprintf (Depends-on): Likewise.
7240         * modules/vsnprintf-posix (Depends-on): Likewise.
7241         * modules/vsprintf-posix (Depends-on): Likewise.
7242         * modules/wcrtomb (Depends-on): Likewise.
7243         * modules/wcscasecmp (Depends-on): Likewise.
7244         * modules/wcscspn (Depends-on): Likewise.
7245         * modules/wcsdup (Depends-on): Likewise.
7246         * modules/wcsncasecmp (Depends-on): Likewise.
7247         * modules/wcsnrtombs (Depends-on): Likewise.
7248         * modules/wcspbrk (Depends-on): Likewise.
7249         * modules/wcsrtombs (Depends-on): Likewise.
7250         * modules/wcsspn (Depends-on): Likewise.
7251         * modules/wcsstr (Depends-on): Likewise.
7252         * modules/wcstok (Depends-on): Likewise.
7253         * modules/wcswidth (Depends-on): Likewise.
7254         * modules/wctob (Depends-on): Likewise.
7255         * modules/wctomb (Depends-on): Likewise.
7256         * modules/wctype (Depends-on): Likewise.
7257         * modules/wcwidth (Depends-on): Likewise.
7258         * modules/write (Depends-on): Likewise.
7259
7260 2011-05-03  Bruno Haible  <bruno@clisp.org>
7261
7262         Support for conditional dependencies.
7263         * doc/gnulib.texi (Module description): Document the syntax of
7264         conditional dependencies.
7265         * gnulib-tool: New option --conditional-dependencies.
7266         (func_usage): Document it.
7267         (cond_dependencies): New variable.
7268         (func_get_automake_snippet_conditional,
7269         func_get_automake_snippet_unconditional): New functions, extracted from
7270         func_get_automake_snippet.
7271         (func_get_automake_snippet): Use them.
7272         (sed_first_32_chars): New variable.
7273         (func_module_shellfunc_name): New function.
7274         (func_module_shellvar_name): New function.
7275         (func_module_conditional_name): New function.
7276         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
7277         func_cond_module_condition): New functions.
7278         (func_modules_transitive_closure): Add support for conditional
7279         dependencies.
7280         (func_emit_lib_Makefile_am): For a conditional module, enclose the
7281         conditional automake snippet in an automake conditional.
7282         (func_emit_autoconf_snippets): Emit shell functions that contain the
7283         code for conditional modules.
7284         (func_import, func_create_testdir): Update specification.
7285
7286 2011-05-03  Eric Blake  <eblake@redhat.com>
7287
7288         test-getaddrinfo: report error information
7289         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
7290
7291 2011-05-03  Jim Meyering  <meyering@redhat.com>
7292
7293         bootstrap: avoid build failure when $GZIP is set
7294         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
7295         program name.  If defined at all, it is supposed to list gzip options.
7296         Reported by Alan Curry in http://debbugs.gnu.org/8609
7297
7298 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
7299
7300         readme-release: new module with release instructions
7301         * modules/readme-release: New module.
7302         * top/README-release: New file, from coreutils, grep, diffutils.
7303         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7304
7305 2011-05-02  Eric Blake  <eblake@redhat.com>
7306
7307         fflush: also replace fclose when fixing fflush
7308         * modules/fflush (Depends-on): Add fclose.
7309         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
7310         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
7311         memstreams with no backing fd.
7312         * doc/posix-functions/fclose.texi (fclose): Document the use of
7313         fflush module to fix the bug.
7314         * tests/test-fclose.c (main): Relax test when fclose is used in
7315         isolation.
7316
7317         fclose: add some tests
7318         * modules/fclose-tests: New test module.
7319         * tests/test-fclose.c: New file.
7320         * doc/posix-functions/fclose.texi (fclose): Document the bug.
7321
7322         fclose: reduced dependencies
7323         * modules/fclose (Depends-on): Switch from fflush/fseeko to
7324         simpler lseek.
7325         * lib/fclose.c (rpl_fclose): Likewise.
7326         Reported by Simon Josefsson.
7327
7328         exit: drop remaining clients
7329         * modules/argmatch (Depends-on): Replace exit with stdlib.
7330         * modules/copy-file (Depends-on): Likewise.
7331         * modules/execute (Depends-on): Likewise.
7332         * modules/exitfail (Depends-on): Likewise.
7333         * modules/obstack (Depends-on): Likewise.
7334         * modules/pagealign_alloc (Depends-on): Likewise.
7335         * modules/pipe-filter-gi (Depends-on): Likewise.
7336         * modules/pipe-filter-ii (Depends-on): Likewise.
7337         * modules/savewd (Depends-on): Likewise.
7338         * modules/spawn-pipe (Depends-on): Likewise.
7339         * modules/wait-process (Depends-on): Likewise.
7340         * modules/xsetenv (Depends-on): Likewise.
7341         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
7342         * modules/git-merge-changelog (Depends-on): Likewise.
7343         * modules/long-options (Depends-on): Likewise.
7344         * modules/pt_chown (Depends-on): Likewise.
7345         * modules/sysexits (Depends-on): Likewise.
7346
7347         freading: relax license from LGPLv3+ to LGPLv2+
7348         * modules/freading (License): Relax LGPL version.
7349
7350 2011-05-02  Bruno Haible  <bruno@clisp.org>
7351
7352         fchdir: Remove unused dependencies.
7353         * modules/fchdir (Depends-on): Remove include_next.
7354
7355 2011-05-02  Bruno Haible  <bruno@clisp.org>
7356
7357         gnulib-tool: Refactor.
7358         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
7359         from func_emit_autoconf_snippets.
7360         (func_emit_autoconf_snippets): Use it.
7361
7362 2011-05-02  Simon Josefsson  <simon@josefsson.org>
7363
7364         * NEWS: Document removal of 'exit'.
7365         * modules/exit: Remove file.
7366
7367 2011-05-01  Bruno Haible  <bruno@clisp.org>
7368
7369         Update DEPENDENCIES.
7370         * DEPENDENCIES (gettext): Recommend the newest release.
7371         Reported by Simon Josefsson.
7372
7373 2011-05-01  Bruno Haible  <bruno@clisp.org>
7374
7375         gnulib-tool: Reduce code duplication.
7376         * gnulib-tool (func_emit_autoconf_snippets): New function.
7377         (func_import, func_create_testdir): Use it.
7378
7379 2011-04-30  Eric Blake  <eblake@redhat.com>
7380
7381         fclose: don't fail on non-seekable input stream
7382         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
7383         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
7384         since fflush is allowed to fail in that case.
7385
7386 2011-04-30  Bruno Haible  <bruno@clisp.org>
7387
7388         dup3: cleanup
7389         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
7390
7391 2011-04-30  Bruno Haible  <bruno@clisp.org>
7392
7393         netdb: Make it work in C++ mode.
7394         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
7395         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
7396         module.
7397         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
7398         gl_MODULE_INDICATOR_FOR_TESTS.
7399         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
7400         * modules/netdb-c++-tests: New file.
7401         * tests/test-netdb-c++.cc: New file.
7402
7403 2011-04-30  Bruno Haible  <bruno@clisp.org>
7404
7405         New modules 'vfscanf', 'vscanf'.
7406         * modules/vfscanf: New file.
7407         * modules/vscanf: New file.
7408         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
7409         here.
7410         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
7411         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
7412
7413 2011-04-30  Bruno Haible  <bruno@clisp.org>
7414
7415         passfd: Add comments.
7416         * lib/passfd.c: Add comments about platforms.
7417
7418 2011-04-30  Bruno Haible  <bruno@clisp.org>
7419
7420         sys_uio: Make <sys/uio.h> self-contained.
7421         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
7422         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
7423
7424 2011-04-30  Bruno Haible  <bruno@clisp.org>
7425
7426         sys_socket: Ensure 'struct iovec' definition.
7427         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
7428         <sys/socket.h>.
7429         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
7430
7431 2011-04-30  Bruno Haible  <bruno@clisp.org>
7432
7433         sys_uio: Protect definition of 'struct iovec'.
7434         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
7435         it as a C struct.
7436
7437 2011-04-30  Bruno Haible  <bruno@clisp.org>
7438
7439         manywarnings: fix indentation
7440         * m4/manywarnings.m4: Indent by 2 spaces consistently.
7441
7442 2011-04-30  Pádraig Brady <P@draigBrady.com>
7443
7444         manywarnings: add -Wno-missing-field-initializers if needed.
7445         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
7446         option if it's needed to allow initialization with { 0, }
7447
7448 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
7449
7450         announce-gen: cosmetic improvement
7451         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
7452
7453 2011-04-29  Jim Meyering  <meyering@redhat.com>
7454
7455         vc-list-files: indent with spaces, not TABs
7456         * build-aux/vc-list-files: Convert leading TABs to spaces,
7457         to match the style of most other files in gnulib.
7458
7459         announce-gen: indent with spaces, not TABs
7460         * build-aux/announce-gen: Convert all TABs to spaces, to match
7461         the style of most other files in gnulib.
7462
7463 2011-04-29  Eric Blake  <eblake@redhat.com>
7464
7465         quotearg: avoid uninitialized variable use
7466         * lib/quotearg.c (quoting_options_from_style): Initialize
7467         remaining fields, and ensure that custom styles are only used via
7468         quoting_options rather than quoting_style.
7469
7470 2011-04-29  Jim Meyering  <meyering@redhat.com>
7471
7472         maint.mk: remove unused VC-tag variable
7473         * top/maint.mk (VC-tag): Remove unused variable.
7474
7475 2011-04-29  Bruno Haible  <bruno@clisp.org>
7476
7477         netdb: fix gai_strerror replacements
7478         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
7479         * modules/netdb: Substitute it.
7480
7481 2011-04-29  Jim Meyering  <meyering@redhat.com>
7482
7483         test-getcwd.c: avoid new set-but-not-used warning
7484         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
7485         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
7486         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
7487         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
7488
7489         test-hash.c: avoid a new shadowing warning
7490         * tests/test-hash.c (main): Don't shadow "dup".
7491
7492 2011-04-28  Eric Blake  <eblake@redhat.com>
7493
7494         getaddrinfo: fix gai_strerror signature
7495         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
7496         and work around mingw with UNICODE defined.
7497         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
7498         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
7499         * modules/netdb (Makefile.am): Substitute it.
7500         * lib/netdb.in.h (gai_strerror): Declare replacement.
7501         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
7502         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
7503         the fix.
7504
7505         getsockopt: avoid compiler warning
7506         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
7507         Reported by Matthias Bolte.
7508
7509         tests: drop unused link dependency
7510         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
7511         * modules/dirent-safer-tests (Makefile.am): Likewise.
7512         * modules/fdopendir-tests (Makefile.am): Likewise.
7513         * modules/mkfifoat-tests (Makefile.am): Likewise.
7514         * modules/openat-safer-tests (Makefile.am): Likewise.
7515         * modules/openat-tests (Makefile.am): Likewise.
7516         * modules/readlinkat-tests (Makefile.am): Likewise.
7517         * modules/symlinkat-tests (Makefile.am): Likewise.
7518         * modules/linkat-tests (Makefile.am): Likewise.
7519         (Depends-on): Switch to filenamecat-lgpl.
7520         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
7521         LIBINTL.
7522         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
7523         * tests/test-linkat.c (main): Don't require xalloc.
7524
7525         hash, mgetgroups: drop xalloc dependency
7526         * lib/hash.c (includes): Adjust includes.
7527         * lib/mgetgroups.c (includes): Likewise.
7528         (xgetgroups): Move...
7529         * lib/xgetgroups.c: ...to new file.
7530         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
7531         * modules/xgetgroups: New file, split from...
7532         * modules/mgetgroups: ...here.
7533         (Depends-on): Add xalloc-oversized.
7534         * modules/hash (Depends-on): Likewise.
7535         * modules/hash-tests (Depends-on): Drop xalloc.
7536         (test_hash_LDADD): Drop unused library.
7537         * tests/test-hash.c (main): Break xalloc dependency.
7538         (includes): Drop unused include.
7539
7540         xalloc-oversized: new module
7541         * modules/xalloc-oversized: New module.
7542         * modules/xalloc (Depends-on): Add it.
7543         * lib/xalloc.h (xalloc_oversized): Move...
7544         * lib/xalloc-oversized.h: ...into new file.
7545
7546         utimecmp: drop dependency on xmalloc
7547         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
7548         due to memory pressure.
7549         * modules/utimecmp (Depends-on): Drop xalloc.
7550
7551 2011-04-27  Eric Blake  <eblake@redhat.com>
7552
7553         getcwd: fix mingw bugs
7554         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
7555         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
7556         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
7557
7558 2011-04-27  Bruno Haible  <bruno@clisp.org>
7559
7560         mkstemps: Ensure declaration on MacOS X 10.5.
7561         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
7562         * doc/glibc-functions/mkstemps.texi: Document header file problem on
7563         MacOS X.
7564
7565 2011-04-27  Bruno Haible  <bruno@clisp.org>
7566
7567         mkstemp: More documentation.
7568         * doc/posix-functions/mkstemp.texi: Document header file problem on
7569         MacOS X.
7570
7571 2011-04-27  Bruno Haible  <bruno@clisp.org>
7572
7573         mkstemp: Tweak configure message when cross-compiling.
7574         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
7575         result as a guess.
7576
7577 2011-04-27  Bruno Haible  <bruno@clisp.org>
7578
7579         clean-temp: Clarify what it does.
7580         * lib/clean-temp.h: Add more comments.
7581         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
7582         module.
7583         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
7584         * doc/glibc-functions/mkstemps.texi: Likewise.
7585         * doc/glibc-functions/mkostemps.texi: Likewise.
7586
7587 2011-04-27  Eric Blake  <eblake@redhat.com>
7588
7589         fchdir: avoid extra chdir and fix test
7590         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
7591         getcwd-lgpl.
7592         * lib/fchdir.c (get_name): Any absolute name will do; it does not
7593         have to be canonical.
7594         (canonicalize_file_name): Drop unused macro.
7595         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
7596
7597         filenamecat-lgpl: fix licence
7598         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
7599         when it was first created.
7600
7601         linkat, renameat: add missing dependency
7602         * modules/linkat (Depends-on): Require getcwd-lgpl.
7603         * modules/renameat (Depends-on): Likewise.
7604
7605         tests: reduce dependencies
7606         * tests/test-linkat.c (main): Use lighter-weight getcwd.
7607         * tests/test-renameat.c (main): Likewise.
7608         * modules/linkat-tests (Depends-on): Relax dependency.
7609         * modules/renameat-tests (Depends-on): Likewise.
7610         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
7611         dependency explicit.
7612
7613         save-cwd: reduce default dependency
7614         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
7615         * lib/save-cwd.c: Update comments.
7616         * NEWS: Document the semantic change.
7617
7618         getcwd: enhance tests
7619         * tests/test-getcwd-lgpl.c: New file, taken from...
7620         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
7621         repeat long path stress tests from m4 probe.
7622         * modules/getcwd-lgpl-tests: New module.
7623         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
7624         * m4/getcwd-abort-bug.m4: Update comment.
7625         * m4/getcwd-path-max.m4: Likewise.
7626
7627         getcwd-lgpl: new module
7628         * modules/getcwd-lgpl: New module.
7629         * lib/getcwd-lgpl.c: New file.
7630         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7631         * MODULES.html.sh (lacking POSIX:2008): Likewise.
7632         * modules/getcwd (configure.ac): Set C witness.
7633         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
7634
7635         getcwd: tweak comments
7636         * m4/getcwd-abort-bug.m4: Fix comments.
7637         * m4/getcwd-path-max.m4: Likewise.
7638         * m4/getcwd.m4: Likewise.
7639
7640 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7641         and Eric Blake  <eblake@redhat.com>
7642
7643         mkstemp: replace if system version uses wrong permissions
7644         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
7645         read/write mode bits set in file created by mkstemp.
7646         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
7647
7648 2011-04-27  Eric Blake  <eblake@redhat.com>
7649
7650         passfd: avoid compiler warning
7651         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
7652         Reported by Laine Stump.
7653
7654 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
7655
7656         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
7657         required by the NetBSD (and perhaps other 4.4BSD derived) join.
7658
7659 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7660         and Eric Blake  <eblake@redhat.com>
7661
7662         mkstemp: mention clean-temp module
7663         * lib/mkstemp.c: Add comment.
7664         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
7665
7666 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
7667
7668         inttypes: also provide default values for 32-bit tests
7669         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
7670         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
7671
7672 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7673
7674         strtoumax: remove dependency on strtoimax
7675         This is like the strtoull change of yesterday.
7676         * modules/strtoumax (Files): Add lib/strtoimax.c.
7677         (Depends-on): Remove strtoimax and add verify.
7678
7679         inttypes-incomplete: new module
7680         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
7681         all but the PRI* and SCN* parts of gl_INTTYPES_H.
7682         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
7683         of gl_INTTYPES_H.
7684         (gl_INTTYPES_H): Rewrite in terms of these new macros.
7685         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
7686         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
7687         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
7688         * modules/strtoumax, modules/xstrtol (Depends-on):
7689         Depend on inttypes-incomplete, not inttypes.
7690         * modules/inttypes-incomplete: New module, containing the contents
7691         of the old modules/inttypes module, except that the Files: section
7692         omits m4/inttypes-pri.m4, and the configure.ac section invokes
7693         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
7694         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
7695         (Depends-on): Depend only on inttypes-incomplete.
7696         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
7697
7698         inttypes: omit now-redundant strtoimax and strtoumax work
7699         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
7700         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
7701
7702         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
7703         This supports apps that need pointers to strtoimax and strtoumax,
7704         and ports to HP-UX 11.00 64.bit, which has macros that expand to
7705         nonexistent functions.  See
7706         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
7707         et seq.
7708         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
7709         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
7710         a macro.
7711         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7712
7713 2011-04-25  Simon Josefsson  <simon@josefsson.org>
7714
7715         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
7716
7717 2011-04-25  Bruno Haible  <bruno@clisp.org>
7718
7719         strtol, strtoul: Mark modules as obsolete.
7720         * modules/strtol (Status, Notice): New sections.
7721         * modules/strtoul (Status, Notice): New sections.
7722
7723 2011-04-25  Bruno Haible  <bruno@clisp.org>
7724
7725         strtod: Remove check for strtod, unless supporting old platforms.
7726         * modules/strtod-obsolete: New file.
7727         * m4/strtod-obsolete.m4: New file.
7728         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
7729         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
7730         * modules/strtod (Depends-on): Add strtod-obsolete.
7731         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
7732
7733 2011-04-25  Bruno Haible  <bruno@clisp.org>
7734
7735         strcase: Make module obsolete.
7736         * modules/strcase (Status, Notice): New sections.
7737
7738 2011-04-25  Bruno Haible  <bruno@clisp.org>
7739
7740         dup2: Remove check for dup2, unless supporting old obsolete platforms.
7741         * modules/dup2-obsolete: New file.
7742         * m4/dup2-obsolete.m4: New file.
7743         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
7744         gl_FUNC_DUP2_OBSOLETE is not also defined.
7745         * modules/dup2 (Depends-on): Add dup2-obsolete.
7746         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
7747
7748 2011-04-25  Bruno Haible  <bruno@clisp.org>
7749
7750         strnlen: Avoid memchr related link error on old obsolete platforms.
7751         * modules/memchr-obsolete: New file.
7752         * m4/memchr-obsolete.m4: New file.
7753         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
7754         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
7755         * modules/memchr (Depends-on): Add memchr-obsolete.
7756         * modules/strnlen (Depends-on): Likewise.
7757         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
7758
7759 2011-04-25  Jim Meyering  <meyering@redhat.com>
7760
7761         maint.mk: makefile_at_at_check extend and clean up
7762         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
7763         in addition to */Makefile.am.
7764         Exempt legitimate uses of @VAR@ notation, e.g.,
7765         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
7766         Remove obsolete coreutils-specific comment.
7767         Prompted by discussion here:
7768         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
7769
7770 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
7771
7772         strtoul: remove dependency on strtol
7773         This is so that 'configure' need not check for strtol merely because
7774         the application needs strtoul.
7775         * modules/strtoul (Files): Add lib/strtol.c.
7776         (Depends-on): Remove strtol.
7777
7778         strtoull: remove dependency on strtoul
7779         This is like the strtoll change.
7780         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
7781         (Depends-on): Remove strtoul.
7782
7783         strtoll: remove dependency on strtol
7784         This is so that 'configure' need not check for strtol merely because
7785         the application needs strtoll.
7786         * modules/strtoll (Files): Add lib/strtol.c.
7787         (Depends-on): Remove strtol.
7788
7789 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7790
7791         inttypes: Move some configure check to module 'imaxdiv'.
7792         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
7793         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
7794         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
7795
7796 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7797
7798         inttypes: Move some configure check to module 'imaxabs'.
7799         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
7800         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
7801         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
7802
7803 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7804
7805         inttypes: Remove configure tests that are not needed since 2009-12-31.
7806         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
7807         gl_cv_header_working_inttypes_h.
7808
7809 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7810
7811         * modules/strnlen (Depends-on): Remove memchr.
7812         The strnlen implementation doesn't need the memchr module's fixes; see
7813         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
7814
7815         strtol: remove dependency on wchar
7816         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
7817         * modules/strtol (Depends-on): Remove wchar.
7818
7819 2011-04-21  Eric Blake  <eblake@redhat.com>
7820
7821         passfd: fix test regression on Linux
7822         * modules/passfd-tests (configure.ac): Correct socketpair check.
7823
7824         passfd: speed up configure and drop unused code
7825         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
7826         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
7827         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
7828         Instead of probing at configure for unix_scm_rights_bsd44_way,
7829         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
7830         check to a struct member probe.
7831         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
7832         (sendfd, recvfd): Update preprocessor checks.
7833         * modules/passfd (Files): Reflect rename, and drop unused file.
7834         (Depends-on): Drop unused dependency.
7835
7836         passfd: allow compilation on mingw
7837         * modules/sys_socket (Depends-on): Add sys_uio.
7838         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
7839         iovec and a minimal struct msghdr.
7840         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
7841         * tests/test-sys_socket.c (main): Enhance test.
7842         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
7843         guaranteed to provide what we need.
7844         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
7845         * modules/passfd-tests (Depends-on): Add sys_wait.
7846         * tests/test-passfd.c (main): Skip test on mingw, for now.
7847         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
7848         partial 'struct msghdr' implementation.
7849
7850         sys_uio: new module
7851         * modules/sys_uio: New module.
7852         * modules/sys_uio-tests: Likewise.
7853         * lib/sys_uio.in.h: New file.
7854         * m4/sys_uio_h.m4: Likewise.
7855         * tests/test-sys_uio.c: Likewise.
7856         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
7857         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
7858
7859 2011-04-20  Jim Meyering  <meyering@redhat.com>
7860
7861         useless-if-before-free: avoid false-positive
7862         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
7863         disjunct so that it too requires a terminating ";".  Without that,
7864         this script would identify as useless one statement from gcc that
7865         was not:
7866           if (aligned_ptr)
7867             free (((void **) aligned_ptr) [-1]);
7868
7869 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
7870
7871         doc: update users.txt.
7872         * users.txt: Add barcode.
7873
7874 2011-04-19  Bruno Haible  <bruno@clisp.org>
7875
7876         ioctl: Remove link dependency on native Windows.
7877         * lib/fd-hook.h: Renamed from lib/close-hook.h.
7878         (gl_close_fn, gl_ioctl_fn): New types.
7879         (struct fd_hook): Renamed from struct close_hook. Change type of
7880         private_close_fn field. Add private_ioctl_fn field.
7881         (close_hook_fn): Add parameter for primary close method.
7882         (execute_close_hooks, execute_all_close_hooks): Likewise.
7883         (ioctl_hook_fn): New type.
7884         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
7885         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
7886         argument.
7887         (unregister_fd_hook): Renamed from unregister_close_hook.
7888         * lib/fd-hook.c: Renamed from lib/close-hook.c.
7889         Don't include <unistd.h>.
7890         (close): Remove undef.
7891         (anchor): Update.
7892         (execute_close_hooks): Add argument for primary close method.
7893         (execute_all_close_hooks): Likewise.
7894         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
7895         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
7896         argument. Allow each argument to be NULL.
7897         (unregister_fd_hook): Renamed from unregister_close_hook.
7898         * lib/close.c (rpl_close): Pass 'close' function pointer to
7899         execute_all_close_hooks.
7900         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
7901         (primary_ioctl): New function.
7902         (ioctl): Don't call ioctlsocket here. Instead, call
7903         execute_all_ioctl_hooks.
7904         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
7905         close method.
7906         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
7907         (fd_sockets_hook): Renamed from close_sockets_hook.
7908         (gl_sockets_startup, gl_sockets_cleanup): Update.
7909         * modules/fd-hook: Renamed from modules/close-hook. Update.
7910         * modules/close (Depends-on): Add fd-hook, remove close-hook.
7911         * modules/sockets (Depends-on): Likewise.
7912         * modules/ioctl (Depends-on): Add fd-hook.
7913         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
7914         GNULIB_SOCKET.
7915
7916 2011-04-19  Bruno Haible  <bruno@clisp.org>
7917
7918         Move the support of O_NONBLOCK in open() to the 'open' module.
7919         * modules/nonblocking (Depends-on): Remove 'open'.
7920         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
7921         gl_cv_have_open_O_NONBLOCK.
7922         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
7923         O_NONBLOCK support.
7924         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
7925
7926 2011-04-17  Bruno Haible  <bruno@clisp.org>
7927
7928         pipe2: Simplify code.
7929         * lib/pipe2.c (pipe2): Reduce code duplication.
7930
7931 2011-04-17  Bruno Haible  <bruno@clisp.org>
7932
7933         nonblocking: Add comment.
7934         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
7935
7936 2011-04-17  Bruno Haible  <bruno@clisp.org>
7937
7938         nonblocking: Add tests for sockets.
7939         * tests/test-nonblocking-socket.sh: New file.
7940         * tests/test-nonblocking-socket-main.c: New file.
7941         * tests/test-nonblocking-socket-child.c: New file.
7942         * tests/test-nonblocking-socket.h: New file.
7943         * tests/socket-server.h: New file.
7944         * tests/socket-client.h: New file.
7945         * modules/nonblocking-socket-tests: New file.
7946         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
7947
7948 2011-04-17  Bruno Haible  <bruno@clisp.org>
7949
7950         nonblocking: Add tests for pipes.
7951         * tests/test-nonblocking-pipe.sh: New file.
7952         * tests/test-nonblocking-pipe-main.c: New file.
7953         * tests/test-nonblocking-pipe-child.c: New file.
7954         * tests/test-nonblocking-pipe.h: New file.
7955         * tests/test-nonblocking-writer.h: New file.
7956         * tests/test-nonblocking-reader.h: New file.
7957         * tests/test-nonblocking-misc.h: New file.
7958         * modules/nonblocking-pipe-tests: New file.
7959         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
7960
7961 2011-04-16  Bruno Haible  <bruno@clisp.org>
7962
7963         gettext: Clarify the needed programmer actions.
7964         * modules/gettext (Notice): New field.
7965         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
7966
7967 2011-04-16  Bruno Haible  <bruno@clisp.org>
7968
7969         strchrnul: Tweak last commit.
7970         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
7971         bug.
7972         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
7973         as in _GL_FUNCDECL_SYS.
7974         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
7975         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
7976
7977 2011-04-15  Eric Blake  <eblake@redhat.com>
7978
7979         strchrnul: work around cygwin bug
7980         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
7981         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
7982         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
7983         * modules/string (Makefile.am): Substitute it.
7984         * lib/string.in.h (strchrnul): Use it.
7985
7986 2011-04-15  Bruno Haible  <bruno@clisp.org>
7987
7988         Don't require lib/stdio-write.c when only module 'stdio' is used.
7989         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
7990         invocation.
7991         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
7992
7993 2011-04-14  Bruno Haible  <bruno@clisp.org>
7994
7995         Support non-blocking pipe I/O in read() on native Windows.
7996         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
7997         (read): New declaration.
7998         * lib/read.c: New file.
7999         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
8000         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
8001         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
8002         vscanf): New declarations.
8003         * lib/stdio-read.c: New file.
8004         * m4/read.m4: New file.
8005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
8006         REPLACE_READ.
8007         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
8008         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8009         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
8010         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
8011         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
8012         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8013         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8014         * modules/read: New file.
8015         * modules/nonblocking (Files): Add lib/stdio-read.c.
8016         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
8017         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
8018         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8019         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8020         * modules/pread (Depends-on): Add read.
8021         * modules/safe-read (Depends-on): Likewise.
8022         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
8023         gets, scanf, vfscanf, vscanf): Verify signatures.
8024         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
8025         problem with non-blocking pipes.
8026         * doc/posix-functions/fgetc.texi: Likewise.
8027         * doc/posix-functions/fgets.texi: Likewise.
8028         * doc/posix-functions/fread.texi: Likewise.
8029         * doc/posix-functions/fscanf.texi: Likewise.
8030         * doc/posix-functions/getc.texi: Likewise.
8031         * doc/posix-functions/getchar.texi: Likewise.
8032         * doc/posix-functions/gets.texi: Likewise.
8033         * doc/posix-functions/scanf.texi: Likewise.
8034         * doc/posix-functions/vfscanf.texi: Likewise.
8035         * doc/posix-functions/vscanf.texi: Likewise.
8036
8037 2011-04-14  Bruno Haible  <bruno@clisp.org>
8038
8039         Support non-blocking pipe I/O in write() on native Windows.
8040         * lib/write.c (rpl_write): Split a write request that failed merely
8041         because the byte count was larger than the pipe buffer's size.
8042         * doc/posix-functions/write.texi: Mention the problem with large byte
8043         counts.
8044
8045 2011-04-14  Bruno Haible  <bruno@clisp.org>
8046
8047         wchar: Ensure that wchar_t gets defined on uClibc.
8048         * lib/wchar.in.h: On uClibc, include <stddef.h>.
8049         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
8050
8051 2011-04-13  Bruno Haible  <bruno@clisp.org>
8052
8053         safe-write, full-read: Avoid unnecessary compilation units.
8054         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
8055         (Depends-on): Remove safe-read. Add ssize_t.
8056         * modules/full-read (Files): Add lib/full-write.c.
8057         (Depends-on): Add full-write.
8058
8059 2011-04-13  Bruno Haible  <bruno@clisp.org>
8060
8061         Support non-blocking pipe I/O and SIGPIPE in pwrite().
8062         * modules/pwrite (Depends-on): Add 'write'.
8063
8064 2011-04-13  Bruno Haible  <bruno@clisp.org>
8065
8066         Support non-blocking pipe I/O in write() on native Windows.
8067         * lib/unistd.in.h (write): Enable replacement also if
8068         GNULIB_UNISTD_H_NONBLOCKING is 1.
8069         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
8070         (rpl_write): When failing to write on a non-blocking pipe, change
8071         errno from ENOSPC to EAGAIN.
8072         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
8073         putchar, puts, vfprintf, vprintf): Enable replacement also if
8074         GNULIB_STDIO_H_NONBLOCKING is 1.
8075         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
8076         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
8077         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
8078         CALL_WITH_SIGPIPE_EMULATION.
8079         (CALL_WITH_SIGPIPE_EMULATION): Use them.
8080         * m4/nonblocking.m4: New file.
8081         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
8082         for non-blocking I/O support.
8083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8084         GNULIB_UNISTD_H_NONBLOCKING.
8085         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
8086         required for non-blocking I/O support.
8087         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
8088         * modules/nonblocking (Files): Add m4/nonblocking.m4,
8089         lib/stdio-write.c, m4/asm-underscore.m4.
8090         (Depends-on): Add stdio, unistd.
8091         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
8092         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
8093         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
8094         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
8095         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
8096         problem with non-blocking pipes.
8097         * doc/posix-functions/fputc.texi: Likewise.
8098         * doc/posix-functions/fputs.texi: Likewise.
8099         * doc/posix-functions/fwrite.texi: Likewise.
8100         * doc/posix-functions/printf.texi: Likewise.
8101         * doc/posix-functions/putc.texi: Likewise.
8102         * doc/posix-functions/putchar.texi: Likewise.
8103         * doc/posix-functions/puts.texi: Likewise.
8104         * doc/posix-functions/vfprintf.texi: Likewise.
8105         * doc/posix-functions/vprintf.texi: Likewise.
8106         * doc/posix-functions/write.texi: Likewise.
8107
8108 2011-04-10  Jim Meyering  <meyering@redhat.com>
8109
8110         maint.mk: prohibit doubled words
8111         Detect them also when they're separated by a newline.
8112         There are 3 ways to customize it:
8113           - disable the test on a per file basis, as usual with rules using
8114             $(VC_LIST_EXCEPT)
8115           - replace the default doubled-word-selecting regexp (affects all files)
8116           - ignore a particular file-vs-doubled-word match
8117         I nearly used that last one to ignore the "is is" match in
8118         coreutils' NEWS file, since the text was "ls -is is ..."
8119         To do that, I would have added this line to cfg.mk:
8120           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
8121         but it would have ignored any "is is" match in NEWS.
8122         Low probability, but still...
8123         Instead, I changed the text, slightly:
8124           -  ls -is is now consistent with ls -lis in ignoring values returned
8125           +  "ls -is" is now consistent with ls -lis in ignoring values returned
8126         * top/maint.mk (prohibit_double_word_RE_): Provide default.
8127         (prohibit_doubled_word_): Define.
8128         (sc_prohibit_doubled_word): New rule.
8129         (sc_prohibit_the_the): Remove.  Subsumed by the above.
8130
8131 2011-04-10  Jim Meyering  <meyering@redhat.com>
8132
8133         maint: fix doubled-word typo in comment
8134         * m4/gethostname.m4: s/is is/it is/
8135         * m4/getdomainname.m4: Likewise.
8136
8137 2011-04-10  Jim Meyering  <meyering@redhat.com>
8138
8139         maint: remove doubled word: s/it it/it/
8140         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
8141
8142 2011-04-10  Jim Meyering  <meyering@redhat.com>
8143
8144         maint.mk: remove useless semicolon and backslash
8145         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
8146         semicolon and backslash.
8147
8148 2011-04-10  Bruno Haible  <bruno@clisp.org>
8149
8150         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
8151         * modules/stdint-tests (Depends-on): Add wchar.
8152
8153 2011-04-10  Jim Meyering  <meyering@redhat.com>
8154
8155         maint: remove doubled words in comments, e.g., s/a a/a/
8156         * lib/strptime.c (day_of_the_week): s/the the/the/
8157         * tests/test-chown.h (test_chown): s/a a/a/
8158
8159         test-chown.h: correct a cast
8160         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
8161         when the destination is a stat.st_gid.
8162
8163 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8164
8165         getaddrinfo: Fix test for sa_len member.
8166         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
8167         include <sys/types.h> before <sys/socket.h>.
8168
8169 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8170
8171         maint: change "can not" to "cannot"
8172         * doc/posix-functions/iconv.texi (iconv): This one crossed line
8173         boundaries.
8174
8175 2011-04-09  Jim Meyering  <meyering@redhat.com>
8176
8177         maint: change "a a" to "a"
8178         * tests/test-lchown.h (test_lchown): s/a a/a/
8179
8180         maint.mk: prohibit \<the the\>
8181         * top/maint.mk (sc_prohibit_the_the): New rule.
8182
8183         maint: fix "the the" in comment
8184         * lib/count-one-bits.h: s/the the/the/
8185
8186         maint: change "can not" to "cannot"
8187         But do not change the occurrences in maintain.texi or in
8188         build-aux/po/Makefile.in.in, which I presume comes from gettext.
8189         * doc/gnulib-tool.texi: s/can not/cannot/
8190         * doc/posix-functions/accept.texi (accept): Likewise.
8191         * doc/posix-functions/socket.texi (socket): Likewise.
8192         * lib/mbrtowc.c: Likewise.
8193
8194         maint.mk: prohibit use of "can not"
8195         * top/maint.mk (sc_prohibit_can_not): New rule.
8196         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
8197
8198 2011-04-09  Bruno Haible  <bruno@clisp.org>
8199
8200         careadlinkat: Guard against misuse of careadlinkatcwd.
8201         * lib/careadlinkat.c: Include <stdlib.h>.
8202         (careadlinkatcwd): Check that the fd argument is as expected.
8203
8204 2011-04-09  Bruno Haible  <bruno@clisp.org>
8205
8206         careadlinkat: Use common coding style.
8207         * lib/careadlinkat.c: Move gnulib includes after system includes.
8208
8209 2011-04-09  Bruno Haible  <bruno@clisp.org>
8210
8211         careadlinkat: Clarify specification.
8212         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
8213         (careadlinkatcwd): Add comment.
8214         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
8215
8216 2011-04-09  Bruno Haible  <bruno@clisp.org>
8217
8218         areadlinkat: Avoid link error on many platforms.
8219         * modules/areadlinkat (Depends-on): Add areadlink.
8220
8221 2011-04-09  Bruno Haible  <bruno@clisp.org>
8222
8223         allocator, careadlinkat: Fix double-inclusion guard.
8224         * lib/allocator.h: Fix double-inclusion guard.
8225         * lib/careadlinkat.h: Likewise.
8226
8227 2011-04-09  Bruno Haible  <bruno@clisp.org>
8228
8229         relocatable-prog-wrapper: Update after module 'areadlink' changed.
8230         * lib/relocwrapper.c: Update dependencies hierarchy.
8231         * build-aux/install-reloc: Update list of files to be compiled.
8232         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
8233         lib/allocator.[hc].
8234
8235 2011-04-08  Eric Blake  <eblake@redhat.com>
8236
8237         strftime: silence gnulib-tool warning
8238         * modules/strftime-tests (Depends-on): Drop automatic dependency.
8239
8240 2011-04-08  Bruno Haible  <bruno@clisp.org>
8241
8242         verify: Fix syntax error with GCC 4.6 in C++ mode.
8243         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
8244         (HAVE_STATIC_ASSERT): New macro.
8245         (verify_true, verify): Use 'static_assert' if it is supported and
8246         '_Static_assert' is not supported.
8247
8248 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8249
8250         allocator: New module.
8251         * modules/allocator, lib/allocator.c: New files.
8252         * lib/allocator.h (stdlib_allocator): New decl.
8253         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
8254         Remove.  Do not include <stdlib.h>.
8255         (careadlinkat): Use stdlib_allocator instead of rolling our own.
8256         * modules/careadlinkat (Files): Remove lib/allocator.h.
8257         (Depends-on): Add allocator.
8258
8259         stdlib: let modules use system malloc, realloc
8260         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
8261         if !_GL_USE_STDLIB_ALLOC.
8262         (malloc, realloc): Limit this change to a smaller scope.
8263
8264         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
8265         (malloc, realloc): Don't #undef; no longer needed.
8266         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8267         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8268         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8269         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8270         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8271         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8272         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8273         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8274
8275         careadlinkat: rename members to avoid problem
8276         * lib/allocator.h (struct allocator): Rename members from
8277         malloc/realloc to allocate/reallocate, to avoid problems if malloc
8278         and realloc are #define'd.  Reported by Eric Blake in
8279         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
8280         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
8281
8282 2011-04-08  Eric Blake  <eblake@redhat.com>
8283
8284         nonblocking: reduce dependency
8285         * tests/test-nonblocking.c: Only test sockets when in use.
8286         * modules/nonblocking-tests (Depends-on): Drop socket.
8287         (Makefile.am): Link even if sockets are not present.
8288         * modules/pipe2-tests (Makefile.am): Likewise.
8289         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
8290
8291         pipe2: fix O_NONBLOCK support on mingw
8292         * modules/pipe2 (Depends-on): Add nonblocking.
8293         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
8294         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
8295         * tests/test-nonblocking.c (main): Likewise.
8296         * modules/pipe2-tests (Makefile.am): Avoid link failure.
8297
8298         fcntl-h: fix O_ACCMODE on cygwin
8299         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
8300         * lib/fcntl.in.h (O_ACCMODE): Fix it.
8301
8302         pipe-filter: drop O_NONBLOCK workarounds
8303         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
8304         * modules/pipe-filter-ii (Depends-on): Likewise.
8305         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
8306
8307         nonblocking: provide O_NONBLOCK for mingw
8308         * modules/nonblocking (Depends-on): Add open.
8309         (configure.ac): Set new witness macro.
8310         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
8311         * modules/fcntl-h (Makefile.am): Substitute it.
8312         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
8313         nonblocking module is in use.
8314         * lib/nonblocking.c: Adjust portability test.
8315         * lib/open.c (open): Don't let native open see gnulib flag.
8316         * tests/test-fcntl-h.c (main): Enhance test.
8317         * tests/test-open.h (test_open): Likewise.
8318         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
8319
8320         careadlinkat: fix compilation error on mingw
8321         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
8322         within struct allocator.
8323
8324 2011-04-06  Eric Blake  <eblake@redhat.com>
8325
8326         binary-io: relicense under LGPLv2+
8327         * modules/binary-io (License): Relax to LGPLv2+.
8328         Requested for libvirt, and required by pipe2.
8329
8330 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8331
8332         verify: use _Static_assert if available
8333         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
8334         (verify_true, verify): Use it if available.  This generates better
8335         diagnostics with GCC 4.6.0 and later.
8336
8337 2011-04-05  Bruno Haible  <bruno@clisp.org>
8338
8339         Remove leftover generated .h files after config.status changed.
8340
8341         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
8342         GL_GENERATE_ALLOCA_H.
8343         * modules/alloca-opt (Makefile.am): Remove alloca.h if
8344         GL_GENERATE_ALLOCA_H evaluates to false.
8345
8346         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
8347         GL_GENERATE_ARGZ_H.
8348         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
8349         evaluates to false.
8350
8351         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
8352         GL_GENERATE_BYTESWAP_H.
8353         * modules/byteswap (Makefile.am): Remove byteswap.h if
8354         GL_GENERATE_BYTESWAP_H evaluates to false.
8355
8356         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
8357         GL_GENERATE_ERRNO_H.
8358         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
8359         evaluates to false.
8360
8361         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
8362         GL_GENERATE_FLOAT_H.
8363         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
8364         evaluates to false.
8365
8366         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
8367         GL_GENERATE_FNMATCH_H.
8368         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
8369         GL_GENERATE_FNMATCH_H evaluates to false.
8370
8371         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
8372         GL_GENERATE_GLOB_H.
8373         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
8374         evaluates to false.
8375
8376         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
8377         automake conditional GL_GENERATE_ICONV_H.
8378         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
8379         evaluates to false.
8380
8381         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
8382         GL_GENERATE_NETINET_IN_H.
8383         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
8384         GL_GENERATE_NETINET_IN_H evaluates to false.
8385
8386         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
8387         conditional GL_GENERATE_PTHREAD_H.
8388         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
8389         * modules/pthread (Makefile.am): Remove pthread.h if
8390         GL_GENERATE_PTHREAD_H evaluates to false.
8391
8392         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
8393         GL_GENERATE_SCHED_H.
8394         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
8395         evaluates to false.
8396
8397         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
8398         conditional GL_GENERATE_SELINUX_CONTEXT_H.
8399         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
8400         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
8401
8402         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
8403         GL_GENERATE_STDARG_H.
8404         * modules/stdarg (Makefile.am): Remove stdarg.h if
8405         GL_GENERATE_STDARG_H evaluates to false.
8406
8407         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
8408         GL_GENERATE_STDBOOL_H.
8409         * modules/stdbool (Makefile.am): Remove stdbool.h if
8410         GL_GENERATE_STDBOOL_H evaluates to false.
8411
8412         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
8413         conditional GL_GENERATE_STDDEF_H.
8414         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
8415         * modules/stddef (Makefile.am): Remove stddef.h if
8416         GL_GENERATE_STDDEF_H evaluates to false.
8417
8418         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
8419         GL_GENERATE_STDINT_H.
8420         * modules/stdint (Makefile.am): Remove stdint.h if
8421         GL_GENERATE_STDINT_H evaluates to false.
8422
8423         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
8424         GL_GENERATE_SYSEXITS_H.
8425         * modules/sysexits (Makefile.am): Remove sysexits.h if
8426         GL_GENERATE_SYSEXITS_H evaluates to false.
8427
8428         Reported by Karl Berry and Ralf Wildenhues.
8429
8430 2011-04-05  Bruno Haible  <bruno@clisp.org>
8431
8432         Ensure to rebuild generated .h files when config.status has changed.
8433         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
8434         config.status.
8435         * modules/ctype (Makefile.am): Likewise.
8436         * modules/dirent (Makefile.am): Likewise.
8437         * modules/errno (Makefile.am): Likewise.
8438         * modules/fcntl-h (Makefile.am): Likewise.
8439         * modules/float (Makefile.am): Likewise.
8440         * modules/getopt-posix (Makefile.am): Likewise.
8441         * modules/glob (Makefile.am): Likewise.
8442         * modules/iconv-h (Makefile.am): Likewise.
8443         * modules/inttypes (Makefile.am): Likewise.
8444         * modules/langinfo (Makefile.am): Likewise.
8445         * modules/locale (Makefile.am): Likewise.
8446         * modules/math (Makefile.am): Likewise.
8447         * modules/netdb (Makefile.am): Likewise.
8448         * modules/netinet_in (Makefile.am): Likewise.
8449         * modules/poll-h (Makefile.am): Likewise.
8450         * modules/pthread (Makefile.am): Likewise.
8451         * modules/pty (Makefile.am): Likewise.
8452         * modules/sched (Makefile.am): Likewise.
8453         * modules/search (Makefile.am): Likewise.
8454         * modules/selinux-h (Makefile.am): Likewise.
8455         * modules/signal (Makefile.am): Likewise.
8456         * modules/spawn (Makefile.am): Likewise.
8457         * modules/stdarg (Makefile.am): Likewise.
8458         * modules/stdbool (Makefile.am): Likewise.
8459         * modules/stddef (Makefile.am): Likewise.
8460         * modules/stdint (Makefile.am): Likewise.
8461         * modules/stdio (Makefile.am): Likewise.
8462         * modules/stdlib (Makefile.am): Likewise.
8463         * modules/string (Makefile.am): Likewise.
8464         * modules/strings (Makefile.am): Likewise.
8465         * modules/sys_file (Makefile.am): Likewise.
8466         * modules/sys_ioctl (Makefile.am): Likewise.
8467         * modules/sys_select (Makefile.am): Likewise.
8468         * modules/sys_socket (Makefile.am): Likewise.
8469         * modules/sys_stat (Makefile.am): Likewise.
8470         * modules/sys_time (Makefile.am): Likewise.
8471         * modules/sys_times (Makefile.am): Likewise.
8472         * modules/sys_utsname (Makefile.am): Likewise.
8473         * modules/sys_wait (Makefile.am): Likewise.
8474         * modules/sysexits (Makefile.am): Likewise.
8475         * modules/termios (Makefile.am): Likewise.
8476         * modules/time (Makefile.am): Likewise.
8477         * modules/unistd (Makefile.am): Likewise.
8478         * modules/wchar (Makefile.am): Likewise.
8479         * modules/wctype-h (Makefile.am): Likewise.
8480         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
8481
8482 2011-04-05  Bruno Haible  <bruno@clisp.org>
8483
8484         pipe2: Relicense under LGPLv2+.
8485         * modules/pipe2 (License): Change to LGPLv2+.
8486         Requested by Eric Blake, for libvirt.
8487
8488 2011-04-05  Bruce Korb  <bkorb@gnu.org>
8489
8490         bootstrap: compute gnulib_extra_files after updating build_aux
8491         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
8492         change build_aux or also supply gnulib_extra_files.  Handle correctly.
8493
8494 2011-04-05  Eric Blake  <eblake@redhat.com>
8495
8496         bootstrap: preserve git whitelist item sorting
8497         * build-aux/bootstrap (sort_patterns): New function.
8498         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
8499
8500 2011-04-05  Simon Josefsson  <simon@josefsson.org>
8501
8502         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
8503         sc_space_tab check.
8504
8505 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
8506
8507         areadlink, areadlinkat: rewrite in terms of careadlinkat
8508         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
8509         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
8510         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
8511         (malloc, realloc): Remove #undefs.
8512         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
8513         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
8514         readlink, ssize_t, stdint, unistd.
8515         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
8516         areadlink, stdint.
8517
8518         careadlinkat: new module
8519         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
8520         * modules/careadlinkat: New files, written by me with
8521         a review and feedback from Ben Pfaff in
8522         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
8523
8524 2011-04-01  Bruno Haible  <bruno@clisp.org>
8525
8526         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
8527         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
8528         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
8529         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
8530         Reported by Bruce Korb <bruce.korb@gmail.com>.
8531
8532 2011-04-01  Bruno Haible  <bruno@clisp.org>
8533
8534         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
8535         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
8536         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
8537         * modules/wcpcpy (Depends-on): Add extensions.
8538         * modules/wcpncpy (Depends-on): Likewise.
8539         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
8540         systems.
8541         * doc/posix-functions/wcpncpy.texi: Likewise.
8542         * doc/posix-functions/wcwidth.texi: Likewise.
8543
8544 2011-03-31  Eric Blake  <eblake@redhat.com>
8545
8546         nonblocking: fix mingw test failures
8547         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
8548         non-blocking flag on regular file.
8549         (get_nonblocking_flag): Set errno on invalid fd.
8550         * tests/test-nonblocking.c (main): Avoid test failure on
8551         directories if fchdir is not active.
8552         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
8553
8554 2011-03-31  Bruno Haible  <bruno@clisp.org>
8555
8556         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
8557         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
8558         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
8559         Reported by Simon Josefsson <simon@josefsson.org>.
8560
8561 2011-03-31  Bruno Haible  <bruno@clisp.org>
8562         and Eric Blake  <eblake@redhat.com>
8563
8564         nonblocking: new module
8565         * modules/nonblocking: New module.
8566         * modules/nonblocking-tests: Likewise.
8567         * lib/nonblocking.h: New file.
8568         * lib/nonblocking.c: Likewise.
8569         * tests/test-nonblocking.c: New test.
8570         * lib/ioctl.c (ioctl) [mingw]: Update comment.
8571
8572 2011-03-30  Bruno Haible  <bruno@clisp.org>
8573
8574         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
8575         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
8576         instead of 'printf' format for GCC >= 4.4.
8577         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
8578         (fprintf, printf, vfprintf, vprintf): Declare with
8579         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
8580         the system's vfprintf() function.
8581         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
8582
8583 2011-03-30  Eric Blake  <eblake@redhat.com>
8584
8585         passfd: fix scoping bug
8586         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
8587         before sendmsg/recvmsg.
8588
8589         passfd: standardize coding conventions
8590         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
8591         can be learned at compile time.
8592         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
8593         ifdefs.
8594         (sendfd, recvfd): Follow gnulib code conventions.
8595
8596         passfd: fix incorrect sendmsg arguments
8597         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
8598         incorrect msg_controllen value.
8599         * modules/passfd-tests (Depends-on): Check for alarm.
8600         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
8601         Reported by Bastien ROUCARIES.
8602
8603 2011-03-30  Bruno Haible  <bruno@clisp.org>
8604
8605         c-strcasestr: Relicense under LGPLv2+.
8606         * modules/c-strcasestr (License): Change to LGPLv2+.
8607         Requested by Eric Blake, for libvirt.
8608
8609 2011-03-30  Simon Josefsson  <simon@josefsson.org>
8610
8611         * users.txt: Add libidn2.  Fix libtasn1 link.
8612
8613 2011-03-30  Jim Meyering  <meyering@redhat.com>
8614
8615         tests: readlink* ("",... fails with EINVAL on newer kernels
8616         readlink and readlinkat have typically failed with ENOENT for
8617         the invalid, empty file name,  "".  However, with the advent
8618         of linux-2.6.39, they fail with EINVAL.
8619         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
8620         when operating on the empty file name.
8621         * tests/test-readlink.h (test_readlink): Likewise.
8622
8623 2011-03-29  Bruno Haible  <bruno@clisp.org>
8624
8625         Relicense some modules under LGPLv2+, for libidn2.
8626         * modules/array-mergesort (License): Change to LGPLv2+.
8627         * modules/c-strcaseeq (License): Likewise.
8628         * modules/striconveh (License): Likewise.
8629         * modules/striconveha (License): Likewise.
8630         * modules/uniconv/base (License): Likewise.
8631         * modules/uniconv/u8-conv-from-enc (License): Likewise.
8632         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
8633         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
8634         * modules/unictype/base (License): Likewise.
8635         * modules/unictype/bidiclass-of (License): Likewise.
8636         * modules/unictype/category-M (License): Likewise.
8637         * modules/unictype/category-none (License): Likewise.
8638         * modules/unictype/category-of (License): Likewise.
8639         * modules/unictype/category-test (License): Likewise.
8640         * modules/unictype/category-test-withtable (License): Likewise.
8641         * modules/unictype/combining-class (License): Likewise.
8642         * modules/unictype/joiningtype-of (License): Likewise.
8643         * modules/unictype/scripts (License): Likewise.
8644         * modules/uninorm/base (License): Likewise.
8645         * modules/uninorm/canonical-decomposition (License): Likewise.
8646         * modules/uninorm/composition (License): Likewise.
8647         * modules/uninorm/decompose-internal (License): Likewise.
8648         * modules/uninorm/decomposition-table (License): Likewise.
8649         * modules/uninorm/nfc (License): Likewise.
8650         * modules/uninorm/nfd (License): Likewise.
8651         * modules/uninorm/u32-normalize (License): Likewise.
8652         * modules/unistr/base (License): Likewise.
8653         * modules/unistr/u32-cpy (License): Likewise.
8654         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
8655         * modules/unistr/u32-to-u8 (License): Likewise.
8656         * modules/unistr/u32-uctomb (License): Likewise.
8657         * modules/unistr/u8-check (License): Likewise.
8658         * modules/unistr/u8-mblen (License): Likewise.
8659         * modules/unistr/u8-mbtouc (License): Likewise.
8660         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
8661         * modules/unistr/u8-mbtoucr (License): Likewise.
8662         * modules/unistr/u8-prev (License): Likewise.
8663         * modules/unistr/u8-strlen (License): Likewise.
8664         * modules/unistr/u8-to-u32 (License): Likewise.
8665         * modules/unistr/u8-uctomb (License): Likewise.
8666         * modules/unitypes (License): Likewise.
8667         Requested by Simon Josefsson.
8668
8669 2011-03-29  Simon Josefsson  <simon@josefsson.org>
8670
8671         lib-symbol-visibility: Add a notice.
8672         * modules/lib-symbol-visibility (Notice): New field.
8673
8674 2011-03-29  Bruno Haible  <bruno@clisp.org>
8675
8676         getaddrinfo: Doc fix.
8677         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
8678         section "fixed in Gnulib".
8679
8680 2011-03-28  Simon Josefsson  <simon@josefsson.org>
8681
8682         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
8683         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
8684
8685 2011-03-26  Bruno Haible  <bruno@clisp.org>
8686
8687         unictype/property-byname: Reduce the number of load-time relocations.
8688         * lib/unictype/pr_byname.c: Include <stdlib.h>.
8689         (UC_PROPERTY_INDEX_*): New enumeration values.
8690         (uc_property_byname): Convert an index from the lookup table to an
8691         uc_property_t.
8692         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
8693         values.
8694
8695 2011-03-26  Bruno Haible  <bruno@clisp.org>
8696
8697         unictype/property-byname: Allow omitted word separators and aliases.
8698         * lib/unictype/pr_byname.gperf: Add property names without word
8699         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
8700         for 'space'.
8701
8702 2011-03-26  Bruno Haible  <bruno@clisp.org>
8703
8704         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
8705         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
8706         also hyphens to space.
8707         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
8708         without spaces.
8709         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
8710
8711 2011-03-26  Bruno Haible  <bruno@clisp.org>
8712
8713         unictype/joiningtype-byname: Recognize long names as well.
8714         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
8715         a long name.
8716         * lib/unictype/joiningtype_byname.c: Include <string.h>,
8717         unictype/joiningtype_byname.h.
8718         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
8719         * lib/unictype/joiningtype_byname.gperf: New file.
8720         * modules/unictype/joiningtype-byname (Files): Add
8721         lib/unictype/joiningtype_byname.gperf.
8722         (Depends-on): Add gperf.
8723         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
8724         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
8725         long names.
8726
8727         Tests for module 'unictype/joiningtype-longname'.
8728         * modules/unictype/joiningtype-longname-tests: New file.
8729         * tests/unictype/test-joiningtype_longname.c: New file.
8730
8731         New module 'unictype/joiningtype-longname'.
8732         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
8733         * lib/unictype/joiningtype_longname.c: New file.
8734         * modules/unictype/joiningtype-longname: New file.
8735         * modules/unictype/joiningtype-all (Depends-on): Add
8736         unictype/joiningtype-longname.
8737
8738 2011-03-26  Bruno Haible  <bruno@clisp.org>
8739
8740         unictype/bidiclass-byname: Recognize long names as well.
8741         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
8742         name.
8743         * lib/unictype/bidi_byname.c: Include <string.h>,
8744         unictype/bidi_byname.h.
8745         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
8746         * lib/unictype/bidi_byname.gperf: New file.
8747         * modules/unictype/bidiclass-byname (Files): Add
8748         lib/unictype/bidi_byname.gperf.
8749         (Depends-on): Add gperf.
8750         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
8751         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
8752         long names.
8753
8754         Tests for module 'unictype/bidiclass-longname'.
8755         * modules/unictype/bidiclass-longname-tests: New file.
8756         * tests/unictype/test-bidi_longname.c: New file.
8757
8758         New module 'unictype/bidiclass-longname'.
8759         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
8760         * lib/unictype/bidi_longname.c: New file.
8761         * modules/unictype/bidiclass-longname: New file.
8762         * modules/unictype/bidiclass-all (Depends-on): Add
8763         unictype/bidiclass-longname.
8764
8765 2011-03-26  Bruno Haible  <bruno@clisp.org>
8766
8767         unictype/bidi*: Rename modules.
8768         * modules/unictype/bidiclass-all: Renamed from
8769         modules/unictype/bidicategory-all.
8770         * modules/unictype/bidiclass-name: Renamed from
8771         modules/unictype/bidiclass-name.
8772         (Description): Update.
8773         * modules/unictype/bidiclass-name-tests: Renamed from
8774         modules/unictype/bidicategory-name-tests.
8775         * modules/unictype/bidiclass-byname: Renamed from
8776         modules/unictype/bidicategory-byname.
8777         (Description): Update.
8778         * modules/unictype/bidiclass-byname-tests: Renamed from
8779         modules/unictype/bidicategory-byname-tests.
8780         * modules/unictype/bidiclass-of: Renamed from
8781         modules/unictype/bidicategory-of.
8782         (Description): Update.
8783         * modules/unictype/bidiclass-of-tests: Renamed from
8784         modules/unictype/bidicategory-of-tests.
8785         * modules/unictype/bidiclass-test: Renamed from
8786         modules/unictype/bidicategory-test.
8787         (Description): Update.
8788         * modules/unictype/bidiclass-test-tests: Renamed from
8789         modules/unictype/bidicategory-test-tests.
8790         * modules/unictype/bidicategory-all: New file, a simple redirection.
8791         * modules/unictype/bidicategory-name: Likewise.
8792         * modules/unictype/bidicategory-byname: Likewise.
8793         * modules/unictype/bidicategory-of: Likewise.
8794         * modules/unictype/bidicategory-test: Likewise.
8795         * modules/unictype/property-bidi-* (Dependencies): Update.
8796         * lib/unictype/bidi_*.c: Update comment.
8797
8798 2011-03-26  Bruno Haible  <bruno@clisp.org>
8799
8800         unictype/bidi*: Rename functions, part 2.
8801         * modules/unictype/bidicategory-name (configure.ac): Update required
8802         libunistring version.
8803         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
8804
8805 2011-03-25  Bruno Haible  <bruno@clisp.org>
8806
8807         New module 'unictype/combining-class-all'.
8808         * modules/unictype/combining-class-all: New file.
8809
8810         Tests for module 'unictype/combining-class-byname'.
8811         * modules/unictype/combining-class-byname-tests: New file.
8812         * tests/unictype/test-combiningclass_byname.c: New file.
8813
8814         New module 'unictype/combining-class-byname'.
8815         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
8816         * lib/unictype/combiningclass_byname.c: New file.
8817         * lib/unictype/combiningclass_byname.gperf: New file.
8818         * modules/unictype/combining-class-byname: New file.
8819
8820         Tests for module 'unictype/combining-class-longname'.
8821         * modules/unictype/combining-class-longname-tests: New file.
8822         * tests/unictype/test-combiningclass_longname.c: New file.
8823
8824         New module 'unictype/combining-class-longname'.
8825         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
8826         * lib/unictype/combiningclass_longname.c: New file.
8827         * modules/unictype/combining-class-longname: New file.
8828
8829         Tests for module 'unictype/combining-class-name'.
8830         * modules/unictype/combining-class-name-tests: New file.
8831         * tests/unictype/test-combiningclass_name.c: New file.
8832
8833         New module 'unictype/combining-class-name'.
8834         * lib/unictype.in.h (uc_combining_class_name): New declaration.
8835         * lib/unictype/combiningclass_name.c: New file.
8836         * modules/unictype/combining-class-name: New file.
8837
8838 2011-03-25  Bruno Haible  <bruno@clisp.org>
8839
8840         unictype/combining-class: Rename source files.
8841         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
8842         of unictype/combining.h.
8843         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
8844         Update.
8845         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
8846         * modules/unictype/combining-class (Description): Fix.
8847         (Files, Makefile.am): Update.
8848         * tests/unictype/test-combiningclass.c: Renamed from
8849         tests/unictype/test-combining.c.
8850         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
8851
8852 2011-03-25  Bruno Haible  <bruno@clisp.org>
8853
8854         unictype: Update list of canonical combining classes.
8855         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
8856
8857 2011-03-25  Bruno Haible  <bruno@clisp.org>
8858
8859         unictype/category-byname: Recognize long names as well.
8860         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
8861         a long name.
8862         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
8863         unictype/categ_byname.h.
8864         (UC_CATEGORY_INDEX_*): New enumeration values.
8865         (uc_general_category_byname): Use uc_general_category_lookup and
8866         convert from index to value.
8867         * lib/unictype/categ_byname.gperf: New file.
8868         * modules/unictype/category-byname (Files): Add
8869         lib/unictype/categ_byname.gperf.
8870         (Depends-on): Add gperf.
8871         (Makefile.am): Add rule for generating unictype/categ_byname.h.
8872         * tests/unictype/test-categ_byname.c (main): Test the recognition of
8873         long names.
8874
8875         Tests for module 'unictype/category-longname'.
8876         * modules/unictype/category-longname-tests: New file.
8877         * tests/unictype/test-categ_longname.c: New file.
8878
8879         New module 'unictype/category-longname'.
8880         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
8881         * lib/unictype/categ_longname.c: New file.
8882         * modules/unictype/category-longname: New file.
8883         * modules/unictype/category-all (Depends-on): Add it.
8884
8885 2011-03-25  Bruno Haible  <bruno@clisp.org>
8886
8887         Tests for module 'unictype/category-LC'.
8888         * modules/unictype/category-LC-tests: New file.
8889         * tests/unictype/test-categ_LC.c: New file, automatically generated.
8890
8891         New module 'unictype/category-LC'.
8892         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
8893         (UC_CATEGORY_LC): New declaration.
8894         (UC_CASED_LETTER): New macro.
8895         * lib/gen-uni-tables.c (is_category_LC): New function.
8896         (output_categories): Also handle category LC.
8897         (UC_CATEGORY_MASK_LC): New enumeration value.
8898         (general_category_byname): Also handle category LC.
8899         * lib/unictype/categ_LC.c: New file.
8900         * lib/unictype/categ_LC.h: New file, automatically generated.
8901         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
8902         category LC.
8903         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
8904         * modules/unictype/category-LC: New file.
8905         * modules/unictype/category-byname (Depends-on): Add
8906         unictype/category-LC.
8907         * modules/unictype/category-all (Depends-on): Likewise.
8908
8909 2011-03-25  Eric Blake  <eblake@redhat.com>
8910
8911         xmalloc: revert yesterday's regression
8912         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
8913         realloc's underlying behavior (allowing allocation of zero-size
8914         objects, especially if malloc-gnu is also in use).
8915
8916 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
8917
8918         maint.mk: add missing version to VC-tag
8919         * top/maint.mk: git tag was missing actual tag name; add it.
8920
8921         valgrind: do leak checking, and exit with code 1 on error (not 0)
8922         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
8923         to VALGRIND.
8924
8925 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
8926
8927         posix-modules: say what it does.
8928         * posix-modules: Add a line to the --help output saying what it does.
8929
8930 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
8931
8932         xmalloc: Do not leak if underlying realloc is C99 compatible.
8933         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
8934         This avoids a leak on C99-based systems.  See
8935         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
8936
8937 2011-03-24  Eric Blake  <eblake@redhat.com>
8938
8939         realloc: document portability problem
8940         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
8941         passing 0 size to realloc.
8942
8943 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
8944
8945         doc: update users.txt
8946         * users.txt: Add cvsps, tmpwatch
8947
8948 2011-03-23  Matt Rice  <ratmice@gmail.com>
8949
8950         doc: update users.txt
8951         * users.txt: Add gdb.
8952
8953 2011-03-23  Jim Meyering  <meyering@redhat.com>
8954
8955         doc: update users.txt
8956         Looking through matches up to the following URL (there are still
8957         several more pages), I found several projects that use gnulib:
8958         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
8959         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
8960         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
8961
8962 2011-03-22  Bruno Haible  <bruno@clisp.org>
8963
8964         unictype/bidi*: Rename functions.
8965         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
8966         uc_bidi_class, uc_is_bidi_class): New declarations.
8967         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
8968         uc_bidi_category_byname.
8969         (uc_bidi_category_byname): New function.
8970         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
8971         u_bidi_category_name.
8972         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
8973         (uc_bidi_category_name): New function.
8974         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
8975         uc_bidi_category.
8976         (uc_bidi_category): New function.
8977         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
8978         uc_is_bidi_category. Invoke uc_bidi_class.
8979         (uc_is_bidi_category): New function.
8980         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
8981         instead of uc_bidi_category_byname.
8982         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
8983         instead of uc_bidi_category_name.
8984         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
8985         uc_bidi_category.
8986         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
8987         instead of uc_is_bidi_category.
8988
8989 2011-03-21  Bruno Haible  <bruno@clisp.org>
8990
8991         New module 'unictype/joininggroup-all'.
8992         * modules/unictype/joininggroup-all: New file.
8993
8994         Tests for module 'unictype/joininggroup-of'.
8995         * modules/unictype/joininggroup-of-tests: New file.
8996         * tests/unictype/test-joininggroup_of.c: New file.
8997         * tests/unictype/test-joininggroup_of.h: New file, automatically
8998         generated by gen-uni-tables.
8999
9000         New module 'unictype/joininggroup-of'.
9001         * modules/unictype/joininggroup-of: New file.
9002         * lib/unictype/joininggroup_of.c: New file.
9003         * lib/unictype/joininggroup_of.h: New file, automatically generated by
9004         gen-uni-tables.
9005
9006         Tests for module 'unictype/joininggroup-byname'.
9007         * modules/unictype/joininggroup-byname-tests: New file.
9008         * tests/unictype/test-joininggroup_byname.c: New file.
9009
9010         New module 'unictype/joininggroup-byname'.
9011         * modules/unictype/joininggroup-byname: New file.
9012         * lib/unictype/joininggroup_byname.c: New file.
9013         * lib/unictype/joininggroup_byname.gperf: New file.
9014
9015         Tests for module 'unictype/joininggroup-name'.
9016         * modules/unictype/joininggroup-name-tests: New file.
9017         * tests/unictype/test-joininggroup_name.c: New file.
9018
9019         New module 'unictype/joininggroup-name'.
9020         * modules/unictype/joininggroup-name: New file.
9021         * lib/unictype/joininggroup_name.c: New file.
9022         * lib/unictype/joininggroup_name.h: New file.
9023
9024         New module 'unictype/joiningtype-all'.
9025         * modules/unictype/joiningtype-all: New file.
9026
9027         Tests for module 'unictype/joiningtype-of'.
9028         * modules/unictype/joiningtype-of-tests: New file.
9029         * tests/unictype/test-joiningtype_of.c: New file.
9030         * tests/unictype/test-joiningtype_of.h: New file, automatically
9031         generated by gen-uni-tables.
9032
9033         New module 'unictype/joiningtype-of'.
9034         * modules/unictype/joiningtype-of: New file.
9035         * lib/unictype/joiningtype_of.c: New file.
9036         * lib/unictype/joiningtype_of.h: New file, automatically generated by
9037         gen-uni-tables.
9038
9039         Tests for module 'unictype/joiningtype-byname'.
9040         * modules/unictype/joiningtype-byname-tests: New file.
9041         * tests/unictype/test-joiningtype_byname.c: New file.
9042
9043         New module 'unictype/joiningtype-byname'.
9044         * modules/unictype/joiningtype-byname: New file.
9045         * lib/unictype/joiningtype_byname.c: New file.
9046
9047         Tests for module 'unictype/joiningtype-name'.
9048         * modules/unictype/joiningtype-name-tests: New file.
9049         * tests/unictype/test-joiningtype_name.c: New file.
9050
9051         New module 'unictype/joiningtype-name'.
9052         * modules/unictype/joiningtype-name: New file.
9053         * lib/unictype/joiningtype_name.c: New file.
9054
9055         unictype: Add support for Arabic shaping properties.
9056         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
9057         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
9058         declarations.
9059         (UC_JOINING_GROUP_*): New enumeration values.
9060         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
9061         declarations.
9062         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
9063         (unicode_joining_type): New variable.
9064         (UC_JOINING_GROUP_*): New enumeration values.
9065         (unicode_joining_group): New variable.
9066         (fill_arabicshaping, joining_type_as_c_identifier,
9067         output_joining_type_test, output_joining_type,
9068         joining_group_as_c_identifier, output_joining_group_test,
9069         output_joining_group): New functions.
9070         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
9071         fill_arabicshaping and output_joining_type_test, output_joining_type,
9072         output_joining_group_test, output_joining_group.
9073         Reported by Simon Josefsson.
9074
9075 2011-03-21  Jim Meyering  <meyering@redhat.com>
9076
9077         strftime: fix a bug in yesterday's change
9078         * lib/strftime.c (add): Accommodate width's initial value of -1.
9079         Otherwise, nstrftime would copy uninitialized data into
9080         the result buffer.
9081
9082 2011-03-21  Jim Meyering  <meyering@redhat.com>
9083
9084         tests: add strftime-tests module
9085         * tests/test-strftime.c: New file.
9086         * modules/strftime-tests: New module.
9087
9088 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9089
9090         strftime: don't assume a byte count fits in 'int'
9091         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
9092         found this problem by static analysis, using gcc -Wstrict-overflow
9093         (GCC 4.5.2, x86-64).  This reported an optimization that depended
9094         on an integer overflow having undefined behavior, but it turns out
9095         that the argument is a size, which might not fit in 'int' anyway,
9096
9097 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9098
9099         stdio: don't require ignore_value around fwrite
9100
9101         This patch works around libc bug 11959
9102         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
9103         Without this patch, applications must often write
9104         ignore_value (fwrite (...)) even though the ignore_value is
9105         not helpful here.  It's common to write many objects, using
9106         fwrite/printf/etc., and then use ferror to detect output error.
9107
9108         I considered making this patch optional, but decided against it,
9109         because libc is obviously being inconsistent here: there is no
9110         reason libc should insist that user code must inspect fwrite
9111         return's value without also insisting that it inspect printf's,
9112         putchar's, etc.  If user code wants to have a strict style where
9113         all these functions' values are checked (so that ferror need not
9114         be checked), we could add support for that style in a new gnulib
9115         module, but in the meantime it's better to be consistent and to
9116         support common usage.
9117
9118         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
9119         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
9120         that we are compiling in checking mode, and if not C++, and
9121         if not already wrapping fwrite for some other reason.
9122         (fwrite): #define to rpl_fwrite if the latter is defined.
9123
9124 2011-03-20  Bruno Haible  <bruno@clisp.org>
9125
9126         verror: Fix compilation error introduced on 2011-02-13.
9127         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
9128         instead of __attribute__.
9129         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9130
9131 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9132             Bruno Haible  <bruno@clisp.org>
9133
9134         socklen: do not depend on sys_socket
9135         While trying to modify Emacs to use gnulib's socklen module,
9136         I discovered a circular dependency: socklen depends on sys_socket
9137         and vice versa.  Emacs can use socklen, but it does not need
9138         sys_socket because it has its own substitute for sys/socket.h.
9139         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
9140         gl_TYPE_SOCKLEN_T.
9141         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
9142         gl_PREREQ_SYS_H_SOCKET.
9143         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
9144         gl_PREREQ_SYS_H_SOCKET.
9145         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
9146         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
9147         * modules/socklen (Depends-on): Do not depend on sys_socket.
9148         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
9149
9150 2011-03-20  Jim Meyering  <meyering@redhat.com>
9151
9152         maint.mk: sort file names *after* new transformation
9153         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
9154         prefix would have led to an unwarranted failure in GNU parted.
9155         Sort after that transformation.
9156
9157 2011-03-19  Jim Meyering  <meyering@redhat.com>
9158
9159         maint.mk: fix po-file syntax-check rule
9160         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
9161         Patch by Bruno Haible.
9162
9163 2011-03-19  Bruno Haible  <bruno@clisp.org>
9164
9165         socklen: Update comment.
9166         * m4/socklen.m4: Update comment about platforms.
9167
9168 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9169             Bruno Haible  <bruno@clisp.org>
9170
9171         inet_ntop, inet_pton: Simplify.
9172         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
9173         documented to provide socklen_t and we already depend on sys_socket.
9174         * modules/inet_pton (Depends-on): Likewise.
9175         * lib/arpa_inet.in.h: Adjust comment.
9176
9177 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9178             Bruno Haible  <bruno@clisp.org>
9179
9180         netdb: Simplify.
9181         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
9182         documented to provide socklen_t and we already depend on sys_socket.
9183         * lib/netdb.in.h: Adjust comment.
9184
9185 2011-03-19  Bruno Haible  <bruno@clisp.org>
9186
9187         sys_socket, netdb: Document problem with socklen_t.
9188         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
9189         platforms.
9190         * doc/posix-headers/netdb.texi: Likewise.
9191
9192 2011-03-18  Eric Blake  <eblake@redhat.com>
9193
9194         maint.mk: let po check work in VPATH build
9195         * top/maint.mk (po_file): Allow cfg.mk override.
9196         (sc_po_check): Allow VPATH use.
9197         Reported by Jiri Denemark.
9198
9199 2011-03-16  Jim Meyering  <meyering@redhat.com>
9200
9201         maint.mk: allow fine-grained syntax-check exclusion via Make variables
9202         Before, you would have had to create one .x-sc_ file per rule in order
9203         to exempt offending files.  Now, you may instead use a Make variable --
9204         usually defined in cfg.mk -- whose name identifies the affected rule.
9205         * top/maint.mk (_sc_excl): Define.
9206         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
9207         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
9208
9209 2011-03-13  Bruno Haible  <bruno@clisp.org>
9210
9211         ignore-value tests: Avoid warnings.
9212         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
9213         empty for gcc < 3.4.
9214
9215 2011-03-13  Bruno Haible  <bruno@clisp.org>
9216
9217         passfd: Fix link error on Solaris.
9218         * modules/passfd (Description): Correct.
9219         (Depends-on): Add socketlib.
9220         (Link): New section.
9221         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
9222
9223 2011-03-13  Bruno Haible  <bruno@clisp.org>
9224
9225         passfd: Fix link error on AIX 5.2.
9226         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
9227
9228 2011-03-13  Bruno Haible  <bruno@clisp.org>
9229
9230         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
9231         * lib/sys_socket.in.h: Include <stddef.h>.
9232         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
9233         CMSG_FIRSTHDR. Remove unused variable.
9234
9235 2011-03-13  Bruno Haible  <bruno@clisp.org>
9236
9237         passfd: Fix compilation error on OpenBSD.
9238         * lib/passfd.c: Include <sys/uio.h>.
9239
9240 2011-03-13  Bruno Haible  <bruno@clisp.org>
9241
9242         passfd test: Fix warnings.
9243         * tests/test-passfd.c: Include <sys/wait.h>.
9244         (main): Fix typo.
9245
9246 2011-03-13  Bruno Haible  <bruno@clisp.org>
9247
9248         passfd module, part 4, tweaks.
9249         * tests/test-passfd.c: Reorder includes.
9250         (main): Fix perror and printf calls.
9251
9252 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9253
9254         passfd module, part 4.
9255         * modules/passfd-tests: New file.
9256         * tests/test-passfd.c: New file.
9257
9258 2011-03-13  Jim Meyering  <meyering@redhat.com>
9259
9260         Makefile: rely on GNU make; derive syntax-check rule names
9261         Rather than requiring that each sc_ rule be listed as a dependent
9262         of "check", use features of GNU make to derive the list.
9263         * Makefile (syntax-check-rules): Define.
9264         (check): Depend on the new variable, not the hard-coded list.
9265
9266 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
9267             Bruno Haible  <bruno@clisp.org>
9268
9269         passfd module, part 3.
9270         * lib/passfd.h (recvfd): Add a flags argument.
9271         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
9272         (recvfd): Add a flags argument.
9273         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
9274         exists.
9275         * modules/passfd (Depends-on): Add cloexec.
9276         Suggested by Eric Blake.
9277
9278 2011-03-13  Bruno Haible  <bruno@clisp.org>
9279
9280         passfd module, part 2, tweaks.
9281         * modules/passfd (Files): Reorder.
9282         (Depends-on): Remove errno.
9283         (Include): Remove <sys/socket.h>, <sys/un.h>.
9284         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
9285         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
9286         specification header. Include <sys/socket.h> always. Don't include
9287         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
9288         (sendfd): Clarify that it sets errno when it fails.
9289         (recvfd): Fix specification.
9290
9291 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9292
9293         passfd module, part 2.
9294         * modules/passfd: New file.
9295         * lib/passfd.h: New file.
9296         * lib/passfd.c: New file.
9297
9298 2011-03-12  Bruno Haible  <bruno@clisp.org>
9299
9300         wcswidth, mbswidth: Avoid integer overflow.
9301         * lib/wcswidth.c: Include <limits.h>.
9302         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
9303         * lib/mbswidth.c: Include <limits.h>.
9304         (mbsnwidth): Avoid 'int' overflow.
9305         Reported by Jim Meyering.
9306
9307 2011-03-12  Bruno Haible  <bruno@clisp.org>
9308
9309         futimens, utimensat: Avoid endless recursion on Solaris 10.
9310         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
9311         Solaris.
9312         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
9313         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
9314
9315 2011-03-11  Jim Meyering  <meyering@redhat.com>
9316
9317         maint.mk: relax a regexp to accommodate other formatting styles
9318         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
9319         between "ngettext" and the following "(".
9320
9321 2011-03-11  Pádraig Brady <P@draigBrady.com>
9322
9323         maint.mk: suppress a false positive warning
9324         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
9325         diagnostics are marked with ngettext.
9326
9327 2011-03-10  Eric Blake  <eblake@redhat.com>
9328
9329         wchar: add explicit dependencies, for Tru64
9330         * modules/mbmemcasecoll (Depends-on): Add wchar.
9331         * modules/mbtowc (Depends-on): Likewise.
9332         * modules/vasnprintf (Depends-on): Likewise.
9333         * modules/unistdio/u-printf-args (Depends-on): Likewise.
9334         * modules/wctomb (Depends-on): Likewise.
9335         Reported by Peter O'Gorman.
9336
9337 2011-03-08  Bruno Haible  <bruno@clisp.org>
9338
9339         passfd module, part 1, tweaks.
9340         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
9341         Improve indentation. Improve AC_MSG_CHECKING messages.
9342         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
9343         gl_SOCKET_FAMILIES.
9344
9345 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9346
9347         passfd module, part 1.
9348         * m4/afunix.m4: New file.
9349         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
9350         sockets.
9351
9352 2011-03-08  Bruno Haible  <bruno@clisp.org>
9353
9354         regex-quote: New API.
9355         * lib/regex-quote.h: Include <stdbool.h>.
9356         (struct regex_quote_spec): New type.
9357         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9358         New declarations.
9359         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9360         'const struct regex_quote_spec *' argument.
9361         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
9362         (pcre_special): New constant.
9363         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9364         New functions.
9365         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9366         'const struct regex_quote_spec *' argument.
9367         * modules/regex-quote (Depends-on): Add stdbool.
9368         * tests/test-regex-quote.c (check): Update for new API. Add test for
9369         anchored results.
9370         * NEWS: Mention the API change.
9371         Reported by Reuben Thomas and Eric Blake.
9372
9373 2011-03-06  Bruno Haible  <bruno@clisp.org>
9374
9375         regex-quote: Fix creation of POSIX extended regular expressions.
9376         * lib/regex-quote.c (ere_special): Add grouping and alternation
9377         operators.
9378
9379 2011-03-05  Bruno Haible  <bruno@clisp.org>
9380
9381         doc: Improve doc regarding autopoint vs. gnulib.
9382         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
9383         disable autopoint while running autoreconf.
9384         Suggested by Ralf Wildenhues.
9385
9386 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9387
9388         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
9389         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
9390
9391 2011-03-03  Bruce Korb  <bkorb@gnu.org>
9392
9393         parse-duration: remove xalloc.h dependency
9394         * lib/parse-duration.c (parse_period): handle NULL return from
9395         strdup instead of calling xstrdup().
9396         * modules/parse-duration: remove "xalloc" dependency
9397
9398 2011-03-03  Matthew Booth  <mbooth@redhat.com>
9399
9400         bootstrap: honor m4_base when running aclocal
9401         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
9402
9403 2011-03-02  Jim Meyering  <meyering@redhat.com>
9404
9405         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
9406         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
9407         on request from Matt Booth.
9408
9409 2011-03-01  Eric Blake  <eblake@redhat.com>
9410
9411         test-link: work on Hurd
9412         * tests/test-link.h (test_link): Hurd rejects linking directories
9413         with EISDIR instead of the POSIX-mandated EPERM.
9414
9415 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
9416
9417         stdio: simplify by moving files to printf-posix, sigpipe
9418         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
9419         since this symbol is needed only if printf is replaced.
9420         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
9421         Require gl_ASM_SYMBOL_PREFIX.
9422         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
9423         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
9424         (Depends-on): Add 'raise'.
9425         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
9426         * modules/stdio (Files): Remove lib/stdio-write.c,
9427         m4/asm-underscore.m4.
9428         (Depends-on): Remove 'raise'.
9429
9430         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
9431         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
9432         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
9433         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
9434
9435 2011-02-28  Bruno Haible  <bruno@clisp.org>
9436
9437         localcharset: Assume ANSI C behaviour of free().
9438         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
9439         calling free().
9440         Suggested by Simon Josefsson <simon@josefsson.org>.
9441
9442 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
9443             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
9444             Bruno Haible  <bruno@clisp.org>  (tiny change)
9445
9446         On Cygwin, use /proc file system instead of win32 API.
9447         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
9448         Win32 file names.
9449         (DllMain): Simplify by removing Cygwin specific code.
9450         (find_shared_library_fullname): Use Linux specific implementation also
9451         for Cygwin.
9452         (get_shared_library_fullname): Update accordingly.
9453         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
9454         Win32 file names.
9455         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
9456         Cygwin specific code.
9457
9458 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
9459             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
9460
9461         Fix OpenMP flag detection for various Fortran compilers.
9462         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
9463         OpenMP-conditional compilation construct, to force compile
9464         failure with missing OpenMP flag.
9465         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
9466
9467 2011-02-25  Eric Blake  <eblake@redhat.com>
9468
9469         strstr: expand test coverage
9470         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
9471         compilation.
9472         * tests/test-memmem.c (main): Duplicate tests.
9473         * tests/test-strcasestr.c (main): Likewise.
9474         * tests/test-c-strcasestr.c (main): Likewise.
9475
9476 2011-02-25  Jim Meyering  <meyering@redhat.com>
9477
9478         maint.mk: detect missing-NL-at-EOF, too
9479         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
9480         it also detects when a file lacks a newline at EOF.
9481         (require_exactly_one_NL_at_EOF_): Renamed from
9482         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
9483         since people may well have .x-sc_... file names tied to the
9484         existing name.  Suggested by Eric Blake.
9485
9486 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
9487
9488         dirname: move m4/dos.m4 functionality into lib/dosname.h
9489
9490         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
9491         extracts symbols from it, puts them into config.h; but it's much
9492         easier to use the symbols directly.  filename.h already does this,
9493         but it disagrees with dos.m4 in some respects.  This patch
9494         introduces a different include file dosname.h that packages up
9495         dos.m4, and then later we can work on merging filename.h and
9496         dosname.h.  Applications that need only the easy-to-configure
9497         symbols should consider including dosname.h rather than dirname.h.
9498         * NEWS: Mention incompatible changes.
9499         * m4/dos.m4: Remove.
9500         * lib/dosname.h, modules/dosname: New files.
9501         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
9502         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
9503         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
9504         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
9505         Include dosname.h, not dirname.h.
9506         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
9507         Include dosname.h, for definitions of symbols like ISSLASH
9508         that used to be in config.h.
9509         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
9510         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9511         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9512         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9513         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
9514         * modules/rmdir (Files): Likewise.
9515         * modules/stat (Files): Likewise.
9516         * modules/unlink (Files): Likewise.
9517         * modules/dirname-lgpl (Depends-on): Add dosname.
9518         * modules/lstat (Depends-on): Likewise.
9519         * modules/openat (Depends-on): Likewise.
9520         * modules/rmdir (Depends-on): Likewise.
9521         * modules/savewd (Depends-on): Likewise.
9522         * modules/stat (Depends-on): Likewise.
9523         * modules/unlink (Depends-on): Likewise.
9524         * modules/openat (Depends-on): Remove dirname-lgpl.
9525         * modules/savewd (Depends-on): Likewise.
9526         * tests/test-dirname.c: Do not use removed symbols like
9527         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
9528         the remaining symbols, e.g., ISSLASH ('\\').
9529
9530 2011-02-25  Eric Blake  <eblake@redhat.com>
9531
9532         strstr: revert patches that introduced bug and pessimization
9533         * lib/str-two-way.h: Add another reference.
9534         (two_way_short_needle, two_way_long_needle): Revert changes from
9535         2011-02-24; they pessimize search speed.
9536         (critical_factorization): Partially revert changes from
9537         2010-06-22; they violate the requirement that the left half of the
9538         needle be smaller than the period of the needle.
9539
9540 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9541
9542         filenamecat: remove unnecessary dependency on dirname-lgpl
9543         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
9544         is no direct dependency, just an indirect one via filenamecat-lgpl.
9545
9546         remove: remove unnecessary use of m4/dos.m4
9547         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
9548         * modules/remove (FILES): Remove m4/dos.m4.
9549
9550         * lib/openat-proc.c: Don't include dirname.h; not needed.
9551
9552         backupfile: remove unnecessary use of m4/dos.m4
9553         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
9554         of its symbols are used by the backupfile code.  backupfile.c does
9555         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
9556         for the rare case of programs that want all their backup file
9557         names to live within 8+3 limits, and dos.m4 doesn't address that.
9558         * modules/backupfile (Files): Remove m4/dos.m4.
9559
9560 2011-02-24  Jim Meyering  <meyering@redhat.com>
9561
9562         strstr: fix a bug whereby strstr would mistakenly return NULL
9563         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
9564         in period calculation.
9565         (two_way_long_needle): Likewise.
9566         The original problem was reported by Mike Stump in
9567         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
9568         Ralf Wildenhues provided the short needle and haystack.
9569         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
9570         Add a more involved test to trigger the bug in two_way_long_needle.
9571
9572 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9573
9574         gnulib-tool: remove use of bold display in help screen
9575         * gnulib-tool (func_usage): Do not use bold display anymore in the
9576         help screen.  That was just meant to be a temporary emphasis for a
9577         backward-incompatible change.
9578
9579 2011-02-23  Bruno Haible  <bruno@clisp.org>
9580
9581         Fix misindentation of preprocessor directives.
9582         * lib/argp-namefrob.h: Reindent preprocessor directives.
9583         * lib/getopt_int.h (struct _getopt_data): Likewise.
9584         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
9585         * lib/vasnprintf.c (decode_long_double): Likewise.
9586         * tests/test-argmatch.c: Insert blank lines, for clarity.
9587         * tests/test-exclude.c: Likewise.
9588
9589 2011-02-22  Bruno Haible  <bruno@clisp.org>
9590
9591         ioctl: Fix for MacOS X in 64-bit mode.
9592         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
9593         value.
9594         Suggested by Eric Blake.
9595         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
9596
9597 2011-02-22  Jim Meyering  <meyering@redhat.com>
9598
9599         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
9600         * Makefile (sc_cpp_indent_check): Don't limit the check to files
9601         in lib/.
9602
9603 2011-02-22  Eric Blake  <eblake@redhat.com>
9604
9605         maint: avoid any CDPATH issue
9606         * Makefile (sc_cpp_indent_check): Anchor cd argument.
9607
9608         maint: adjust cpp indentation for my modules, as well
9609         * Makefile (sc_cpp_indent_check): Add my name.
9610         * lib/fbufmode.c: Filter through cppi.
9611         * lib/fpurge.c: Likewise.
9612         * lib/freadable.c: Likewise.
9613         * lib/freading.c: Likewise.
9614         * lib/fwritable.c: Likewise.
9615         * lib/fwriting.c: Likewise.
9616         * lib/sigaction.c: Likewise.
9617
9618 2011-02-22  Jim Meyering  <meyering@redhat.com>
9619
9620         maint: adjust cpp indentation to reflect nesting depth
9621         I.e., in a block of code that begins with an unnested "#if",
9622         put one space between the "#" in column 1 and following token.
9623         For example,
9624         -#include <sys/vfs.h>
9625         +# include <sys/vfs.h>
9626         Do this only in .c files that are part of a module I maintain.
9627         * lib/linkat.c: Filter through cppi.
9628         * lib/nanosleep.c: Likewise.
9629         * lib/openat.c: Likewise.
9630         * lib/openat-die.c: Likewise.
9631         * lib/dup3.c: Likewise.
9632         * lib/fchownat.c: Likewise.
9633         * lib/flock.c: Likewise.
9634         * lib/fsync.c: Likewise.
9635         * lib/fts.c: Likewise.
9636         * lib/getpass.c: Likewise.
9637         * lib/gettimeofday.c: Likewise.
9638         * lib/userspec.c: Likewise.
9639         * Makefile (sc_cpp_indent_check): New rule, to check this.
9640
9641 2011-02-22  Bruno Haible  <bruno@clisp.org>
9642
9643         New module 'wctomb'.
9644         * lib/stdlib.in.h (wctomb): New declaration.
9645         * lib/wctomb.c: New file.
9646         * lib/wctomb-impl.h: New file.
9647         * m4/wctomb.m4: New file.
9648         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
9649         REPLACE_WCTOMB.
9650         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
9651         REPLACE_WCTOMB.
9652         * modules/wctomb: New file.
9653         * tests/test-stdlib-c++.cc: Test signature of wctomb.
9654         * doc/posix-functions/wctomb.texi: Mention the new module.
9655         * modules/wctob (Depends-on): Add wctomb.
9656
9657 2011-02-22  Bruno Haible  <bruno@clisp.org>
9658
9659         New module 'mbtowc'.
9660         * lib/stdlib.in.h (mbtowc): New declaration.
9661         * lib/mbtowc.c: New file.
9662         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
9663         * m4/mbtowc.m4: New file.
9664         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
9665         REPLACE_MBTOWC.
9666         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
9667         REPLACE_MBTOWC.
9668         * modules/mbtowc: New file.
9669         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
9670         * doc/posix-functions/mbtowc.texi: Mention the new module.
9671         * modules/btowc (Depends-on): Add mbtowc.
9672
9673 2011-02-22  Bruno Haible  <bruno@clisp.org>
9674
9675         wcrtomb: Add more tests for native Windows platforms.
9676         * tests/test-wcrtomb-w32-1.sh: New file.
9677         * tests/test-wcrtomb-w32-2.sh: New file.
9678         * tests/test-wcrtomb-w32-3.sh: New file.
9679         * tests/test-wcrtomb-w32-4.sh: New file.
9680         * tests/test-wcrtomb-w32-5.sh: New file.
9681         * tests/test-wcrtomb-w32.c: New file.
9682         * modules/wcrtomb-tests (Files): Add them.
9683         (Makefile.am): Arrange to run these tests.
9684         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
9685         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
9686
9687 2011-02-20  Bruno Haible  <bruno@clisp.org>
9688
9689         wcrtomb: Enhance test.
9690         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
9691
9692 2011-02-20  Bruno Haible  <bruno@clisp.org>
9693
9694         mbrtowc: Tiny optimization.
9695         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
9696
9697 2011-02-20  Jim Meyering  <meyering@redhat.com>
9698
9699         test-exclude.c: remove unmatched #endif
9700         * tests/test-exclude.c: Remove stray #endif, left over from
9701         the change of a week ago.
9702
9703 2011-02-19  Jim Meyering  <meyering@redhat.com>
9704
9705         git-version-gen: skip "-dirty" check when appropriate
9706         * build-aux/git-version-gen: Don't run any git commands when the
9707         version string comes from .tarball-version.  Prior to this, we
9708         would run git update-index --refresh even from a just-unpacked
9709         tarball directory, and that could affect a .git/ directory in a
9710         parent of the build directory.  Reported by Mike Frysinger.
9711
9712 2011-02-19  Bruno Haible  <bruno@clisp.org>
9713
9714         unictype/property-byname: Reduce the size of the 'data' segment.
9715         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
9716
9717 2011-02-19  Bruno Haible  <bruno@clisp.org>
9718
9719         unictype/scripts: Reduce the size of the 'data' segment.
9720         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
9721         '%pic'.
9722         * lib/unictype/scripts_byname.gperf: Regenerated.
9723
9724 2011-02-19  Bruno Haible  <bruno@clisp.org>
9725
9726         stdint: Update documentation.
9727         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
9728
9729 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
9730
9731         stdint: omit redundant check for wchar.h
9732         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
9733         always tests whether wchar.h exists, so remove the now-redundant test.
9734
9735 2011-02-18  Bruno Haible  <bruno@clisp.org>
9736
9737         stdint: Cut dependency to module 'wchar'.
9738         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
9739         include the necessary prerequisites.
9740         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
9741         * modules/stdint (Depends-on): Remove wchar.
9742         (Makefile.am): Substitute HAVE_WCHAR_H.
9743         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
9744
9745 2011-02-18  Eric Blake  <eblake@redhat.com>
9746
9747         longlong: skip, rather than fail, on cross-compilation
9748         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
9749         when cross-compiling; regression from 2011-02-16.
9750
9751 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9752
9753         * NEWS: Mention 2011-02-08 change to stdlib.
9754
9755 2011-02-17  Bruno Haible  <bruno@clisp.org>
9756
9757         getloadavg: Add comments about platforms.
9758         * m4/getloadavg.m4: Add comment.
9759         * lib/getloadavg.c: Likewise.
9760
9761 2011-02-17  Bruno Haible  <bruno@clisp.org>
9762
9763         getloadavg: Fix link error on Solaris 2.6.
9764         * modules/getloadavg (Link): New section.
9765         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
9766         linking test-getloadavg.
9767         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
9768         getloadavg.
9769
9770 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9771
9772         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
9773         It was 'int', but this doesn't match the IRIX 6.5 manual.
9774         Suggested by Bruno Haible in
9775         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
9776
9777 2011-02-17  Bruno Haible  <bruno@clisp.org>
9778
9779         havelib: Fix comments.
9780         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
9781         change.
9782
9783 2011-02-17  Bruno Haible  <bruno@clisp.org>
9784
9785         havelib: Update config.rpath.
9786         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
9787
9788 2011-02-17  Bruno Haible  <bruno@clisp.org>
9789
9790         getloadavg test: Add some plausibility checks.
9791         * tests/test-getloadavg.c (check_avg): Print a warning when the value
9792         is improbable.
9793
9794 2011-02-16  Eric Blake  <eblake@redhat.com>
9795
9796         maintainer-makefile: make syntax-check a no-op from tarballs
9797         * top/maint.mk (no-vc-detected): New rule.
9798         (local-checks-available): Use it to avoid hanging if someone tries
9799         'make syntax-check' from a tarball.  Also append to any non-syntax
9800         checks already defined in cfg.mk.
9801
9802 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9803
9804         longlong: tune, particularly for common case of c99
9805
9806         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
9807         or running anything if c99, or if unsigned long long int does not
9808         work.  In either case, we know the answer without further tests.
9809         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
9810         it at most once, and use its results for both long long int and
9811         unsigned long long int.  This is more likely to be efficient in
9812         the common case where the program wants to check for both long
9813         long int and unsigned long long int.
9814         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
9815         since the answer is already known.
9816
9817 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
9818
9819         getloadavg: set errno
9820         * lib/getloadavg.c: Set errno when returning -1.  If no other
9821         error number looks appropriate, set it to ENOSYS if the getloadavg
9822         looks like it can't possibly ever work, ENOTSUP otherwise.
9823         Suggested by Bruno Haible in
9824         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
9825
9826         getloadavg: trim unused parts and speed up 'configure'
9827         * NEWS: Document this.
9828         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
9829         always compiled if getloadavg is absent.
9830         Move test code to ...
9831         * tests/test-getloadavg.c: New file, containing previous
9832         contents of test from lib/getloadavg.c.  It also contains
9833         suggestions by Bruno Haible in
9834         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
9835         * modules/getloadavg-tests: New file.
9836         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
9837         Do tests in the same order as they're needed for getloadavg.c.
9838         Omit setgid-related tests that generate symbols KMEM_GROUP,
9839         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
9840         Do only the tests that are needed to see whether the system has
9841         getloadavg, moving the other tests into ...
9842         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
9843         NLIST_NAME_UNION; nobody should be using it.  Do not define
9844         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
9845         relevant, as the user of this module shouldn't care how getloadavg
9846         is implemented.
9847
9848         getloadavg: omit unused var
9849         * lib/getloadavg.c (getloadavg): Omit unused local variable.
9850
9851 2011-02-15  Jim Meyering  <meyering@redhat.com>
9852
9853         doc: update users.txt
9854         * users.txt: Update iwhd's URL.
9855
9856 2011-02-13  Bruno Haible  <bruno@clisp.org>
9857
9858         Consistent macro naming for macros that use GCC __attribute__.
9859         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
9860         _ATTRIBUTE_NONNULL_.
9861         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
9862         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
9863         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
9864         ATTRIBUTE_DEPRECATED.
9865         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
9866         ATTRIBUTE_NORETURN.
9867         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9868         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9869         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9870         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9871         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
9872         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
9873         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
9874         ATTRIBUTE_SENTINEL.
9875         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
9876         ATTRIBUTE_RETURN_CHECK.
9877         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
9878         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
9879         ATTRIBUTE_NORETURN.
9880         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
9881         Reported by Paul Eggert.
9882
9883 2011-02-13  Bruno Haible  <bruno@clisp.org>
9884
9885         Don't interfere with a program's definition of __attribute__.
9886         * lib/argp.h (__attribute__): Remove definition.
9887         (_GL_ATTRIBUTE_FORMAT): New macro.
9888         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
9889         * lib/argp-fmtstream.h (__attribute__): Remove definition.
9890         (_GL_ATTRIBUTE_FORMAT): New macro.
9891         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
9892         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
9893         GCC 3 or newer.
9894         * lib/error.h (__attribute__): Remove definition.
9895         (_GL_ATTRIBUTE_FORMAT): New macro.
9896         (error, error_at_line): Use it.
9897         * lib/hash.h (__attribute__): Remove definition.
9898         (ATTRIBUTE_WUR): Update definition. Define always.
9899         * lib/openat.h (__attribute__): Remove definition.
9900         (ATTRIBUTE_NORETURN): Update definition. Define always.
9901         * lib/sigpipe-die.h (__attribute__): Remove definition.
9902         (ATTRIBUTE_NORETURN): Update definition. Define always.
9903         * lib/vasnprintf.h (__attribute__): Remove definition.
9904         (_GL_ATTRIBUTE_FORMAT): New macro.
9905         (asnprintf, vasnprintf): Use it.
9906         * lib/xalloc.h (__attribute__): Remove definition.
9907         (ATTRIBUTE_NORETURN): Update definition. Define always.
9908         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
9909         * lib/xmemdup0.h (__attribute__): Remove definition.
9910         (ATTRIBUTE_NORETURN): Update definition. Define always.
9911         * lib/xprintf.h (__attribute__): Remove definition.
9912         (_GL_ATTRIBUTE_FORMAT): New macro.
9913         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
9914         * lib/xstrtol.h (__attribute__): Remove definition.
9915         (ATTRIBUTE_NORETURN): Update definition. Define always.
9916         * lib/xvasprintf.h (__attribute__): Remove definition.
9917         (_GL_ATTRIBUTE_FORMAT): New macro.
9918         (xasprintf, xvasprintf): Use it.
9919         * tests/test-argmatch.c (__attribute__): Remove definition.
9920         (ATTRIBUTE_NORETURN): Update definition. Define always.
9921         * tests/test-exclude.c (__attribute__): Remove definition.
9922         (ATTRIBUTE_NORETURN): Update definition. Define always.
9923         Reported by Paul Eggert.
9924
9925 2011-02-13  Bruno Haible  <bruno@clisp.org>
9926
9927         mbrtowc: Add more tests for native Windows platforms.
9928         * tests/test-mbrtowc-w32-1.sh: New file.
9929         * tests/test-mbrtowc-w32-2.sh: New file.
9930         * tests/test-mbrtowc-w32-3.sh: New file.
9931         * tests/test-mbrtowc-w32-4.sh: New file.
9932         * tests/test-mbrtowc-w32-5.sh: New file.
9933         * tests/test-mbrtowc-w32.c: New file.
9934         * modules/mbrtowc-tests (Files): Add them.
9935         (Makefile.am): Arrange to run these tests.
9936         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
9937         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
9938
9939 2011-02-13  Bruno Haible  <bruno@clisp.org>
9940
9941         mbrtowc: Work around native Windows bug.
9942         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
9943         guess when no suitable locale for testing was found.
9944         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
9945
9946 2011-02-13  Bruno Haible  <bruno@clisp.org>
9947
9948         mbsinit: Work around mingw bug.
9949         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
9950         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
9951         Windows.
9952         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
9953
9954 2011-02-13  Bruno Haible  <bruno@clisp.org>
9955
9956         mbsinit: Don't crash for a NULL argument.
9957         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
9958         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
9959
9960 2011-02-13  Bruno Haible  <bruno@clisp.org>
9961
9962         Don't interfere with a program's definition of __attribute__.
9963         * lib/stdio.in.h (__attribute__): Remove definition.
9964         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
9965         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
9966         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
9967         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
9968         * lib/string.in.h (__attribute__): Remove definition.
9969         Reported by Paul Eggert.
9970
9971 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9972
9973         stdlib: don't get in the way of non-GCC __attribute__
9974         See thread starting at
9975         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
9976         Revert previous stdlib change, installing the following instead:
9977         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
9978         to get in the way of a non-GCC compiler that supports __attribute__.
9979         (_GL_ATTRIBUTE_RETURN): New macro.
9980         (_Exit): Use it instead of __attribute__.
9981
9982 2011-02-12  Bruno Haible  <bruno@clisp.org>
9983
9984         quotearg test: Avoid test failure on mingw.
9985         * tests/test-quotearg.sh: Convert the locale identifier from native
9986         Windows syntax to Unix syntax.
9987
9988 2011-02-12  Bruno Haible  <bruno@clisp.org>
9989
9990         setlocale: Prefer gnulib's override over libintl's override.
9991         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
9992         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
9993         GNULIB_defined_setlocale is set.
9994
9995 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9996
9997         stdlib: support non-GCC __attribute__
9998
9999         Fix a serious and tricky problem encountered when attempting to
10000         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
10001         5.5, but it crashed due to memory corruption on Solaris 10 with
10002         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
10003         bits that are otherwise zero.  This tagging is optional inside
10004         Emacs but is preferred and is used when __attribute__ ((__aligned
10005         (8))) works, as it does with both recent-enough GCC and with Sun C
10006         5.11.  However, Sun C 5.11 is not GCC and does not #define
10007         __GNUC__ and __GNUC_MINOR__.
10008
10009         When I added the getloadavg module to Emacs, it brought in
10010         stdlib.in.h, which contained this fragment:
10011
10012            #ifndef __attribute__
10013            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
10014            #  define __attribute__(Spec)   /* empty */
10015            # endif
10016            #endif
10017
10018         When files that include <stdlib.h> were compiled with Sun C 5.11,
10019         the above code disabled __attribute__ ((__aligned (8))), which
10020         caused variables to not be properly aligned, which eventually led
10021         to the pointer corruption mentioned above.  (This was a bit hard
10022         to diagnose, unfortunately.)
10023
10024         Several "#define __attribute__(X) /* empty */" code snippets need
10025         to be eradicated from Gnulib to work with non-GCC compilers that
10026         support __attribute__.  The Autoconf way to do this is to test for
10027         each kind of attribute that we want support for, and selectively
10028         enable that in source code.
10029
10030         Fix this problem just for stdlib.h, by adding a test for the
10031         __noreturn__ attribute, and change stdlib.in.h to use that test
10032         when needed.  This technique can be easily generalized to the
10033         other *.in.h files and attributes, and a similar technique can be
10034         used for *.h and *.c files.  This patch is enough to solve the
10035         problem for Emacs + getloadavg, and I thought I'd publish it for
10036         feedback before undertaking further, similar fixes in other
10037         modules.
10038
10039         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
10040         because it's not needed for stdlib.h.  It merely substitutes the
10041         value directly into stdlib.h.  We may well need to #define it, or
10042         similar symbols, for other modules, but it's nice to also have an
10043         option to not #define it for applications like Emacs that do not
10044         need it.
10045
10046         * lib/stdlib.in.h (__attribute__): Do not #define.
10047         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
10048         be defined only if the _Exit module is also used.
10049         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
10050         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
10051         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
10052         platforms.
10053         * modules/_Exit (Files): Add m4/attribute.m4.
10054         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
10055         * m4/attribute.m4: New file.
10056
10057 2011-02-12  Bruno Haible  <bruno@clisp.org>
10058
10059         wcsrtombs: Work around bug on native Windows.
10060         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
10061         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
10062         instead of len.
10063         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
10064
10065 2011-02-12  Bruno Haible  <bruno@clisp.org>
10066
10067         mbsrtowcs: Work around bug on native Windows.
10068         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
10069         against mingw bug.
10070         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
10071
10072 2011-02-12  Bruno Haible  <bruno@clisp.org>
10073
10074         Avoid setlocale bugs in tests.
10075         * modules/btowc (Dependencies): Add setlocale.
10076         * modules/c-strcase (Dependencies): Likewise.
10077         * modules/mbmemcasecmp (Dependencies): Likewise.
10078         * modules/mbmemcasecoll (Dependencies): Likewise.
10079         * modules/mbrtowc (Dependencies): Likewise.
10080         * modules/mbscasecmp (Dependencies): Likewise.
10081         * modules/mbscasestr (Dependencies): Likewise.
10082         * modules/mbschr (Dependencies): Likewise.
10083         * modules/mbscspn (Dependencies): Likewise.
10084         * modules/mbsinit (Dependencies): Likewise.
10085         * modules/mbsncasecmp (Dependencies): Likewise.
10086         * modules/mbsnrtowcs (Dependencies): Likewise.
10087         * modules/mbspbrk (Dependencies): Likewise.
10088         * modules/mbspcasecmp (Dependencies): Likewise.
10089         * modules/mbsrchr (Dependencies): Likewise.
10090         * modules/mbsrtowcs (Dependencies): Likewise.
10091         * modules/mbsspn (Dependencies): Likewise.
10092         * modules/mbsstr (Dependencies): Likewise.
10093         * modules/nl_langinfo (Dependencies): Likewise.
10094         * modules/quotearg (Dependencies): Likewise.
10095         * modules/unicase/locale-language (Dependencies): Likewise.
10096         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
10097         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
10098         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
10099         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
10100         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
10101         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
10102         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
10103         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
10104         * modules/vasnprintf-posix (Dependencies): Likewise.
10105         * modules/wcrtomb (Dependencies): Likewise.
10106         * modules/wcsnrtombs (Dependencies): Likewise.
10107         * modules/wcsrtombs (Dependencies): Likewise.
10108
10109 2011-02-12  Bruno Haible  <bruno@clisp.org>
10110
10111         setlocale: Workaround native Windows bug.
10112         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
10113         succeeds but sets LC_CTYPE to "C", report a failure.
10114         * tests/test-setlocale2.sh: New file.
10115         * tests/test-setlocale2.c: New file.
10116         * modules/setlocale-tests (Files): Add the new files.
10117         (Makefile.am): Enable test-setlocale2.sh test.
10118         * doc/posix-functions/setlocale.texi: Mention workaround.
10119
10120 2011-02-11  Bruno Haible  <bruno@clisp.org>
10121
10122         Tests for module 'setlocale'.
10123         * modules/setlocale-tests: New file.
10124         * tests/test-setlocale1.sh: New file.
10125         * tests/test-setlocale1.c: New file.
10126
10127         New module 'setlocale'.
10128         * lib/locale.in.h (setlocale): New declaration.
10129         * lib/setlocale.c: New file, based on
10130         gettext/gettext-runtime/intl/setlocale.c.
10131         * m4/setlocale.m4: New file.
10132         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
10133         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
10134         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
10135         REPLACE_SETLOCALE.
10136         * modules/setlocale: New file.
10137         * tests/test-locale-c++.cc: Test the declaration of setlocale.
10138         * doc/posix-functions/setlocale.texi: Mention the new module.
10139
10140 2011-02-11  Bruno Haible  <bruno@clisp.org>
10141
10142         Prepare for locale dependent tests on mingw.
10143         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
10144         because it has the wrong locale encoding.
10145         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
10146         French_France.1252 instead of "fr".
10147         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
10148         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
10149         because it has the wrong locale encoding.
10150         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
10151         native Windows, try Turkish_Turkey.65001.
10152         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
10153         Chinese_China.54936.
10154
10155         Prepare for locale dependent tests on mingw.
10156         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
10157         differently.
10158         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
10159         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
10160         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10161         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10162
10163 2011-02-11  Eric Blake  <eblake@redhat.com>
10164
10165         strptime: avoid compiler warnings
10166         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
10167         compiler warnings about dead code.
10168         Reported by Daniel P. Berrange.
10169
10170 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
10171
10172         doc: update users.txt
10173         * users.txt: Add rcs.
10174
10175 2011-02-10  John W. Eaton  <jwe@gnu.org>
10176
10177         doc: update users.txt
10178         * users.txt: Add octave.
10179
10180 2011-02-10  Jim Meyering  <meyering@redhat.com>
10181
10182         doc: update users.txt
10183         * users.txt: Add iwhd.
10184
10185 2011-02-09  Bruno Haible  <bruno@clisp.org>
10186
10187         gnulib-tool: Make copyright notice adjustment more robust.
10188         * gnulib-tool (func_import): In sed_transform_main_lib_file,
10189         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
10190         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
10191         License".
10192         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
10193
10194 2011-02-06  Bruno Haible  <bruno@clisp.org>
10195
10196         New module 'towctrans'.
10197         * modules/towctrans: New file.
10198         * lib/wctype.in.h (towctrans): New declaration.
10199         * lib/towctrans.c: New file.
10200         * lib/towctrans-impl.h: New file.
10201         * m4/towctrans.m4: New file.
10202         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
10203         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
10204         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
10205         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
10206         * doc/posix-functions/towctrans.texi: Mention the new module.
10207
10208 2011-02-06  Bruno Haible  <bruno@clisp.org>
10209
10210         New module 'wctrans'.
10211         * modules/wctrans: New file.
10212         * lib/wctype.in.h (wctrans): New declaration.
10213         * lib/wctrans.c: New file.
10214         * lib/wctrans-impl.h: New file.
10215         * m4/wctrans.m4: New file.
10216         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
10217         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
10218         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
10219         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
10220         * doc/posix-functions/wctrans.texi: Mention the new module.
10221
10222 2011-02-06  Bruno Haible  <bruno@clisp.org>
10223
10224         New module 'iswctype'.
10225         * modules/iswctype: New file.
10226         * lib/wctype.in.h (iswctype): New declaration.
10227         * lib/iswctype.c: New file.
10228         * lib/iswctype-impl.h: New file.
10229         * m4/iswctype.m4: New file.
10230         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
10231         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
10232         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
10233         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
10234         * doc/posix-functions/iswctype.texi: Mention the new module and the
10235         HP-UX 11.00 problem.
10236
10237 2011-02-06  Bruno Haible  <bruno@clisp.org>
10238
10239         New module 'wctype'.
10240         * modules/wctype: Change to represent the wctype() substitute.
10241         * lib/wctype.in.h (wctype): New declaration.
10242         * lib/wctype.c: New file.
10243         * lib/wctype-impl.h: New file.
10244         * m4/wctype.m4: New file.
10245         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
10246         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
10247         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
10248         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
10249         * doc/posix-functions/wctype.texi: Mention the new module and the
10250         HP-UX 11.00 problem.
10251
10252 2011-02-06  Bruno Haible  <bruno@clisp.org>
10253
10254         wctype-h: Ensure wctype_t and wctrans_t are defined.
10255         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
10256         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10257         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10258         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
10259         HAVE_WCTRANS_T.
10260         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
10261
10262 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10263
10264         flock: fix license typo
10265
10266         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
10267         omitted.
10268
10269 2011-02-08  Bruno Haible  <bruno@clisp.org>
10270
10271         Split large sed scripts, for HP-UX sed.
10272         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
10273         to avoid HP-UX limit of 99 commands, in the near future.
10274         * modules/stdlib (Makefile.am): Likewise.
10275         * modules/unistd (Makefile.am): Likewise.
10276         * modules/wchar (Makefile.am): Likewise.
10277         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10278         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
10279         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
10280
10281 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10282             Bruno Haible  <bruno@clisp.org>
10283
10284         stdlib: improve random_r modularization
10285         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
10286         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
10287         you also need the random_r module to get this material right.
10288         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
10289         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
10290         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
10291
10292 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10293
10294         stdlib: don't depend on stdint
10295         * lib/stdlib.in.h: Don't include <stdint.h> merely because
10296         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
10297         be independent of whether stdint.h is needed.
10298         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
10299         here, instead of ...
10300         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
10301         struct random_data should be using the random_r module, not just
10302         the stdlib module (which wouldn't make sense: what package needs
10303         just struct random_data without also needing random_r?).
10304         * modules/stdlib (Depends-on): Remove stdint.
10305
10306         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
10307         See the thread rooted at
10308         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
10309         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
10310         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
10311         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
10312         __VMS)); previously it was always included (via fcntl--.h).
10313         (getloadavg): Do not use c_strtod.  Instead, approximate it by
10314         hand; this is good enough for load averages.  Also, do not use
10315         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
10316         flags directly if available and don't bother otherwise.  (Packages
10317         that need the extra reliability should use the modules that define
10318         these flags on older platforms that lack them.)
10319         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
10320         fcntl-safer.
10321
10322 2011-02-08  Jim Meyering  <meyering@redhat.com>
10323
10324         di-set.h, ino-map.h: add multiple-inclusion guard
10325         Technically, the guard is required only for ino-map.h, due to its
10326         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
10327         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
10328         * lib/ino-map.h: Likewise.
10329
10330 2011-02-06  Bruno Haible  <bruno@clisp.org>
10331
10332         iswblank: Ensure declaration on glibc systems.
10333         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
10334         * modules/iswblank (Dependencies): Add 'extensions'.
10335         * doc/posix-functions/iswblank.texi: Document the glibc problem.
10336
10337 2011-02-06  Bruno Haible  <bruno@clisp.org>
10338
10339         New module 'iswblank'.
10340         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
10341         * modules/iswblank: New file.
10342         * modules/wctype-h (Files): Remove lib/iswblank.c.
10343         (Makefile.am): Substitute GNULIB_ISWBLANK.
10344         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
10345         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
10346         (gl_WCTYPE_H_DEFAULTS): New macro.
10347         (gl_WCTYPE_H): Require it. Remove iswblank related code.
10348         * modules/iswblank-tests: New file.
10349         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
10350         * tests/test-wctype-h.c (main): Remove iswblank tests.
10351         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
10352         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
10353         of 'wctype-h'.
10354         * NEWS: Mention the change.
10355         * modules/mbchar (Depends-on): Add iswblank.
10356
10357 2011-02-08  Bruno Haible  <bruno@clisp.org>
10358
10359         di-set tests: Refactor.
10360         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
10361         unnecessary includes.
10362         (ASSERT): Remove macro.
10363         (main): Make C90 compliant by avoiding variable declaration after
10364         statement.
10365         * modules/di-set-tests (Files): Add tests/macros.h.
10366
10367 2011-02-08  Bruno Haible  <bruno@clisp.org>
10368
10369         ino-map tests: Refactor.
10370         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
10371         unnecessary includes.
10372         (ASSERT): Remove macro.
10373         (main): Make C90 compliant by avoiding variable declaration after
10374         statement.
10375         * modules/ino-map-tests (Files): Add tests/macros.h.
10376
10377 2011-02-08  Jim Meyering  <meyering@redhat.com>
10378
10379         di-set: add "const" to a cast
10380         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
10381         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
10382
10383 2011-02-06  Bruno Haible  <bruno@clisp.org>
10384
10385         Rename module 'wctype' to 'wctype-h'.
10386         * modules/wctype-h: Renamed from modules/wctype.
10387         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
10388         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
10389         (Files, Depends-on, Makefile.am): Update.
10390         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
10391         (Files, Makefile.am): Update.
10392         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
10393         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
10394         * doc/posix-headers/wctype.texi: Update.
10395         * doc/posix-functions/iswalnum.texi: Update.
10396         * doc/posix-functions/iswalpha.texi: Update.
10397         * doc/posix-functions/iswblank.texi: Update.
10398         * doc/posix-functions/iswcntrl.texi: Update.
10399         * doc/posix-functions/iswdigit.texi: Update.
10400         * doc/posix-functions/iswgraph.texi: Update.
10401         * doc/posix-functions/iswlower.texi: Update.
10402         * doc/posix-functions/iswprint.texi: Update.
10403         * doc/posix-functions/iswpunct.texi: Update.
10404         * doc/posix-functions/iswspace.texi: Update.
10405         * doc/posix-functions/iswupper.texi: Update.
10406         * doc/posix-functions/iswxdigit.texi: Update.
10407         * doc/posix-functions/towlower.texi: Update.
10408         * doc/posix-functions/towupper.texi: Update.
10409         * NEWS: Mention the change.
10410         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
10411         * modules/mbchar (Dependencies): Likewise.
10412         * modules/mbswidth (Dependencies): Likewise.
10413         * modules/quotearg (Dependencies): Likewise.
10414         * modules/regex (Dependencies): Likewise.
10415         * modules/wcscasecmp (Dependencies): Likewise.
10416         * modules/wcsncasecmp (Dependencies): Likewise.
10417         * modules/wcwidth (Dependencies): Likewise.
10418
10419 2011-02-06  Bruno Haible  <bruno@clisp.org>
10420
10421         New module 'wcswidth'.
10422         * modules/wcswidth: New file.
10423         * lib/wchar.in.h (wcswidth): New declaration.
10424         * lib/wcswidth.c: New file.
10425         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
10426         * m4/wcswidth.m4: New file.
10427         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
10428         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
10429         REPLACE_WCSWIDTH.
10430         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
10431         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
10432         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
10433         * doc/posix-functions/wcswidth.texi: Mention the new module.
10434
10435 2011-02-06  Bruno Haible  <bruno@clisp.org>
10436
10437         New module 'wcstok'.
10438         * modules/wcstok: New file.
10439         * lib/wchar.in.h (wcstok): New declaration.
10440         * lib/wcstok.c: New file.
10441         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
10442         * m4/wcstok.m4: New file.
10443         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
10444         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
10445         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
10446         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
10447         * doc/posix-functions/wcstok.texi: Mention the new module.
10448
10449 2011-02-06  Bruno Haible  <bruno@clisp.org>
10450
10451         New module 'wcsstr'.
10452         * modules/wcsstr: New file.
10453         * lib/wchar.in.h (wcsstr): New declaration.
10454         * lib/wcsstr.c: New file.
10455         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
10456         * m4/wcsstr.m4: New file.
10457         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
10458         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
10459         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
10460         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
10461         * doc/posix-functions/wcsstr.texi: Mention the new module.
10462
10463 2011-02-06  Bruno Haible  <bruno@clisp.org>
10464
10465         New module 'wcspbrk'.
10466         * modules/wcspbrk: New file.
10467         * lib/wchar.in.h (wcspbrk): New declaration.
10468         * lib/wcspbrk.c: New file.
10469         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
10470         * m4/wcspbrk.m4: New file.
10471         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
10472         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
10473         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
10474         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
10475         * doc/posix-functions/wcspbrk.texi: Mention the new module.
10476
10477 2011-02-06  Bruno Haible  <bruno@clisp.org>
10478
10479         New module 'wcsspn'.
10480         * modules/wcsspn: New file.
10481         * lib/wchar.in.h (wcsspn): New declaration.
10482         * lib/wcsspn.c: New file.
10483         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
10484         * m4/wcsspn.m4: New file.
10485         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
10486         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
10487         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
10488         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
10489         * doc/posix-functions/wcsspn.texi: Mention the new module.
10490
10491 2011-02-06  Bruno Haible  <bruno@clisp.org>
10492
10493         New module 'wcscspn'.
10494         * modules/wcscspn: New file.
10495         * lib/wchar.in.h (wcscspn): New declaration.
10496         * lib/wcscspn.c: New file.
10497         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
10498         * m4/wcscspn.m4: New file.
10499         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
10500         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
10501         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
10502         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
10503         * doc/posix-functions/wcscspn.texi: Mention the new module.
10504
10505 2011-02-06  Bruno Haible  <bruno@clisp.org>
10506
10507         New module 'wcsrchr'.
10508         * modules/wcsrchr: New file.
10509         * lib/wchar.in.h (wcsrchr): New declaration.
10510         * lib/wcsrchr.c: New file.
10511         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
10512         * m4/wcsrchr.m4: New file.
10513         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
10514         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
10515         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
10516         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
10517         * doc/posix-functions/wcsrchr.texi: Mention the new module.
10518
10519 2011-02-06  Bruno Haible  <bruno@clisp.org>
10520
10521         New module 'wcschr'.
10522         * modules/wcschr: New file.
10523         * lib/wchar.in.h (wcschr): New declaration.
10524         * lib/wcschr.c: New file.
10525         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
10526         * m4/wcschr.m4: New file.
10527         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
10528         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
10529         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
10530         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
10531         * doc/posix-functions/wcschr.texi: Mention the new module.
10532
10533 2011-02-06  Bruno Haible  <bruno@clisp.org>
10534
10535         New module 'wcsdup'.
10536         * modules/wcsdup: New file.
10537         * lib/wchar.in.h (wcsdup): New declaration.
10538         * lib/wcsdup.c: New file.
10539         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
10540         * m4/wcsdup.m4: New file.
10541         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
10542         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
10543         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
10544         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
10545         * doc/posix-functions/wcsdup.texi: Mention the new module.
10546
10547 2011-02-06  Bruno Haible  <bruno@clisp.org>
10548
10549         New module 'wcsxfrm'.
10550         * modules/wcsxfrm: New file.
10551         * lib/wchar.in.h (wcsxfrm): New declaration.
10552         * lib/wcsxfrm.c: New file.
10553         * lib/wcsxfrm-impl.h: New file.
10554         * m4/wcsxfrm.m4: New file.
10555         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
10556         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
10557         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
10558         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
10559         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
10560
10561 2011-02-06  Bruno Haible  <bruno@clisp.org>
10562
10563         New module 'wcscoll'.
10564         * modules/wcscoll: New file.
10565         * lib/wchar.in.h (wcscoll): New declaration.
10566         * lib/wcscoll.c: New file.
10567         * lib/wcscoll-impl.h: New file.
10568         * m4/wcscoll.m4: New file.
10569         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
10570         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
10571         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
10572         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
10573         * doc/posix-functions/wcscoll.texi: Mention the new module.
10574
10575 2011-02-06  Bruno Haible  <bruno@clisp.org>
10576
10577         New module 'wcsncasecmp'.
10578         * modules/wcsncasecmp: New file.
10579         * lib/wchar.in.h (wcsncasecmp): New declaration.
10580         * lib/wcsncasecmp.c: New file.
10581         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
10582         * m4/wcsncasecmp.m4: New file.
10583         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
10584         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
10585         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
10586         HAVE_WCSNCASECMP.
10587         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
10588         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
10589
10590 2011-02-06  Bruno Haible  <bruno@clisp.org>
10591
10592         New module 'wcscasecmp'.
10593         * modules/wcscasecmp: New file.
10594         * lib/wchar.in.h (wcscasecmp): New declaration.
10595         * lib/wcscasecmp.c: New file.
10596         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
10597         * m4/wcscasecmp.m4: New file.
10598         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
10599         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
10600         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
10601         HAVE_WCSCASECMP.
10602         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
10603         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
10604
10605 2011-02-05  Bruno Haible  <bruno@clisp.org>
10606
10607         New module 'wcsncmp'.
10608         * modules/wcsncmp: New file.
10609         * lib/wchar.in.h (wcsncmp): New declaration.
10610         * lib/wcsncmp.c: New file.
10611         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
10612         * m4/wcsncmp.m4: New file.
10613         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
10614         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
10615         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
10616         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
10617         * doc/posix-functions/wcsncmp.texi: Mention the new module.
10618
10619 2011-02-05  Bruno Haible  <bruno@clisp.org>
10620
10621         New module 'wcscmp'.
10622         * modules/wcscmp: New file.
10623         * lib/wchar.in.h (wcscmp): New declaration.
10624         * lib/wcscmp.c: New file.
10625         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
10626         * m4/wcscmp.m4: New file.
10627         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
10628         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
10629         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
10630         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
10631         * doc/posix-functions/wcscmp.texi: Mention the new module.
10632
10633 2011-02-05  Bruno Haible  <bruno@clisp.org>
10634
10635         New module 'wcsncat'.
10636         * modules/wcsncat: New file.
10637         * lib/wchar.in.h (wcsncat): New declaration.
10638         * lib/wcsncat.c: New file.
10639         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
10640         * m4/wcsncat.m4: New file.
10641         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
10642         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
10643         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
10644         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
10645         * doc/posix-functions/wcsncat.texi: Mention the new module.
10646
10647 2011-02-05  Bruno Haible  <bruno@clisp.org>
10648
10649         New module 'wcscat'.
10650         * modules/wcscat: New file.
10651         * lib/wchar.in.h (wcscat): New declaration.
10652         * lib/wcscat.c: New file.
10653         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
10654         * m4/wcscat.m4: New file.
10655         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
10656         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
10657         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
10658         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
10659         * doc/posix-functions/wcscat.texi: Mention the new module.
10660
10661 2011-02-05  Bruno Haible  <bruno@clisp.org>
10662
10663         New module 'wcpncpy'.
10664         * modules/wcpncpy: New file.
10665         * lib/wchar.in.h (wcpncpy): New declaration.
10666         * lib/wcpncpy.c: New file.
10667         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
10668         * m4/wcpncpy.m4: New file.
10669         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
10670         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
10671         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
10672         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
10673         * doc/posix-functions/wcpncpy.texi: Mention the new module.
10674
10675 2011-02-05  Bruno Haible  <bruno@clisp.org>
10676
10677         New module 'wcsncpy'.
10678         * modules/wcsncpy: New file.
10679         * lib/wchar.in.h (wcsncpy): New declaration.
10680         * lib/wcsncpy.c: New file.
10681         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
10682         * m4/wcsncpy.m4: New file.
10683         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
10684         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
10685         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
10686         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
10687         * doc/posix-functions/wcsncpy.texi: Mention the new module.
10688
10689 2011-02-05  Bruno Haible  <bruno@clisp.org>
10690
10691         New module 'wcpcpy'.
10692         * modules/wcpcpy: New file.
10693         * lib/wchar.in.h (wcpcpy): New declaration.
10694         * lib/wcpcpy.c: New file.
10695         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
10696         * m4/wcpcpy.m4: New file.
10697         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
10698         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
10699         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
10700         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
10701         * doc/posix-functions/wcpcpy.texi: Mention the new module.
10702
10703 2011-02-05  Bruno Haible  <bruno@clisp.org>
10704
10705         New module 'wcscpy'.
10706         * modules/wcscpy: New file.
10707         * lib/wchar.in.h (wcscpy): New declaration.
10708         * lib/wcscpy.c: New file.
10709         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
10710         * m4/wcscpy.m4: New file.
10711         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
10712         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
10713         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
10714         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
10715         * doc/posix-functions/wcscpy.texi: Mention the new module.
10716
10717 2011-02-05  Bruno Haible  <bruno@clisp.org>
10718
10719         New module 'wcsnlen'.
10720         * modules/wcsnlen: New file.
10721         * lib/wchar.in.h (wcsnlen): New declaration.
10722         * lib/wcsnlen.c: New file.
10723         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
10724         * m4/wcsnlen.m4: New file.
10725         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
10726         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
10727         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
10728         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
10729         * doc/posix-functions/wcsnlen.texi: Mention the new module.
10730
10731 2011-02-05  Bruno Haible  <bruno@clisp.org>
10732
10733         New module 'wcslen'.
10734         * modules/wcslen: New file.
10735         * lib/wchar.in.h (wcslen): New declaration.
10736         * lib/wcslen.c: New file.
10737         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
10738         * m4/wcslen.m4: New file.
10739         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
10740         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
10741         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
10742         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
10743         * doc/posix-functions/wcslen.texi: Mention the new module.
10744
10745 2011-02-05  Bruno Haible  <bruno@clisp.org>
10746
10747         New module 'wmemset'.
10748         * modules/wmemset: New file.
10749         * lib/wchar.in.h (wmemset): New declaration.
10750         * lib/wmemset.c: New file.
10751         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
10752         * m4/wmemset.m4: New file.
10753         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
10754         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
10755         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
10756         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
10757         * doc/posix-functions/wmemset.texi: Mention the new module.
10758
10759 2011-02-05  Bruno Haible  <bruno@clisp.org>
10760
10761         New module 'wmemmove'.
10762         * modules/wmemmove: New file.
10763         * lib/wchar.in.h (wmemmove): New declaration.
10764         * lib/wmemmove.c: New file.
10765         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
10766         * m4/wmemmove.m4: New file.
10767         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
10768         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
10769         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
10770         HAVE_WMEMMOVE.
10771         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
10772         * doc/posix-functions/wmemmove.texi: Mention the new module.
10773
10774 2011-02-05  Bruno Haible  <bruno@clisp.org>
10775
10776         New module 'wmemcpy'.
10777         * modules/wmemcpy: New file.
10778         * lib/wchar.in.h (wmemcpy): New declaration.
10779         * lib/wmemcpy.c: New file.
10780         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
10781         * m4/wmemcpy.m4: New file.
10782         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
10783         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
10784         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
10785         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
10786         * doc/posix-functions/wmemcpy.texi: Mention the new module.
10787
10788 2011-02-05  Bruno Haible  <bruno@clisp.org>
10789
10790         New module 'wmemcmp'.
10791         * modules/wmemcmp: New file.
10792         * lib/wchar.in.h (wmemcmp): New declaration.
10793         * lib/wmemcmp.c: New file.
10794         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
10795         * m4/wmemcmp.m4: New file.
10796         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
10797         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
10798         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
10799         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
10800         * doc/posix-functions/wmemcmp.texi: Mention the new module.
10801
10802 2011-02-07  Jim Meyering  <meyering@redhat.com>
10803
10804         di-set, ino-map: new modules, from coreutils
10805         * lib/di-set.c: New file.
10806         * lib/di-set.h: Likewise.
10807         * lib/ino-map.c: Likewise.
10808         * lib/ino-map.h: Likewise.
10809         * modules/di-set: Likewise.
10810         * modules/di-set-tests: Likewise.
10811         * modules/ino-map: Likewise.
10812         * modules/ino-map-tests: Likewise.
10813         * tests/test-di-set.c: Likewise.
10814         * tests/test-ino-map.c: Likewise.
10815
10816 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
10817
10818         getloadavg: merge minor changes from Emacs
10819
10820         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
10821         (getloadavg): Use memset, not bzero.
10822
10823         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
10824         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10825         clash (bug#86).
10826
10827 2010-11-14  Bruno Haible  <bruno@clisp.org>
10828
10829         Allow multiple gnulib generated replacements to coexist.
10830         * lib/getopt.in.h (struct option): Avoid identical redefinition.
10831         * lib/inttypes.in.h (imaxdiv_t): Likewise.
10832         * lib/langinfo.in.h (nl_item): Likewise.
10833         * lib/math.in.h (_NaN, NAN): Likewise.
10834         * lib/netdb.in.h (struct addrinfo): Likewise.
10835         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
10836         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
10837         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
10838         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
10839         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
10840         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
10841         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
10842         pthread_mutexattr_init, pthread_mutexattr_settype,
10843         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
10844         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
10845         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
10846         pthread_spin_trylock, pthread_spin_unlock): Likewise.
10847         * lib/sched.in.h (struct sched_param): Likewise.
10848         * lib/se-selinux.in.h (security_class_t, security_context_t,
10849         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
10850         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
10851         lsetfilecon, fsetfilecon, security_check_context,
10852         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
10853         Likewise.
10854         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
10855         Likewise.
10856         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
10857         _gl_function_taking_int_returning_void_t, union sigval,
10858         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
10859         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
10860         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10861         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
10862         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
10863         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
10864         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
10865         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
10866         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
10867         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
10868         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
10869         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
10870         socklen_t, rpl_fd_isset): Likewise.
10871         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
10872         * lib/sys_time.in.h (struct timeval): Likewise.
10873         * lib/sys_times.in.h (struct tms): Likewise.
10874         * lib/sys_utsname.in.h (struct utsname):
10875         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
10876         * lib/unistd.in.h (getpagesize): Likewise.
10877         * lib/wchar.in.h (mbstate_t): Likewise.
10878         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
10879         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
10880         towlower, towupper): Likewise.
10881         Reported by Sam Steingold <sds@gnu.org>.
10882
10883 2011-02-05  Eric Blake  <eblake@redhat.com>
10884
10885         unsetenv: work around Haiku issues
10886         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
10887         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
10888
10889 2010-12-30  Bruce Korb  <bkorb@gnu.org>
10890
10891         libposix: avoid calling error() within libposix
10892         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
10893         is defined.
10894
10895 2011-02-05  Eric Blake  <eblake@redhat.com>
10896
10897         strerror_r-posix: port to cygwin
10898         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
10899         implementation.
10900         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
10901         * tests/test-strerror_r.c (main): Fix test.
10902         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10903         issue.
10904
10905 2011-02-05  Bruno Haible  <bruno@clisp.org>
10906
10907         New module 'wmemchr'.
10908         * modules/wmemchr: New file.
10909         * lib/wchar.in.h (wmemchr): New declaration.
10910         * lib/wmemchr.c: New file.
10911         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
10912         * m4/wmemchr.m4: New file.
10913         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
10914         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
10915         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
10916         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
10917         * doc/posix-functions/wmemchr.texi: Mention the new module.
10918
10919 2011-02-04  Eric Blake  <eblake@redhat.com>
10920
10921         fdopendir: detect FreeBSD bug
10922         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
10923         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
10924
10925 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
10926
10927         stdbool: do not define HAVE_STDBOOL_H
10928         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
10929         AC_HEADER_STDBOOL.  All uses changed.  Do not define
10930         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
10931         imported from the latest Autoconf git.  It was motivated by Emacs,
10932         which uses gnulib but does not need HAVE_STDBOOL_H.
10933
10934 2011-02-04  Bruno Haible  <bruno@clisp.org>
10935
10936         wcsnrtombs: Prepare for new module wwcsnrtombs.
10937         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
10938         * lib/wcsnrtombs.c: Include it.
10939         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
10940
10941         wcsrtombs: Prepare for new module wwcsrtombs.
10942         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
10943         * lib/wcsrtombs.c: Include it.
10944         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
10945
10946         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
10947         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
10948         * lib/mbsnrtowcs.c: Include it.
10949         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
10950
10951         mbsrtowcs: Prepare for new module mbsrtowwcs.
10952         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
10953         * lib/mbsrtowcs.c: Include it.
10954         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
10955
10956 2011-02-04  Bruno Haible  <bruno@clisp.org>
10957
10958         vasnprintf: Reduce use of malloc for small format strings.
10959         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
10960         (arguments): Add room for the first 7 arguments.
10961         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
10962         (char_directives, u8_directives, u16_directives, u32_directives): Add
10963         room for the first 7 directives.
10964         * lib/printf-parse.c: Include <string.h>.
10965         (PRINTF_PARSE): Change memory handling code so that it uses the first
10966         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
10967         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
10968         Reported by Pádraig Brady <P@draigbrady.com>.
10969
10970 2011-01-31  Eric Blake  <eblake@redhat.com>
10971
10972         dup2: work around Haiku bug
10973         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
10974         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
10975         * doc/posix-functions/dup2.texi (dup2): Document the bug.
10976         * tests/test-dup2.c (main): Enhance test.
10977
10978 2011-01-31  Simon Josefsson  <simon@josefsson.org>
10979
10980         doc: off_t is not available in eglibc 2.11.2 stdio.h.
10981         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
10982         declared by eglibc 2.11.2.
10983         * lib/stdio.in.h: Likewise.
10984
10985 2011-01-31  Eric Blake  <eblake@redhat.com>
10986
10987         ignore-value: add missing test dependency
10988         * tests/test-ignore-value.c: Revert previous change; stdio.h
10989         provides off_t.
10990         * modules/ignore-value-tests (Depends-on): Add missing dependency.
10991
10992 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
10993
10994         mktime: clarify long_int width checking
10995         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
10996         the top level, to make it clearer that the assumption about
10997         long_int width is being checked.  See
10998         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
10999
11000 2011-01-30  Simon Josefsson  <simon@josefsson.org>
11001
11002         ignore-value: Fix self-test.
11003         * tests/test-ignore-value.c: Include sys/types.h for off_t.
11004
11005 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
11006
11007         TYPE_MAXIMUM: avoid theoretically undefined behavior
11008         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
11009         negative number, which the C Standard says has undefined behavior.
11010         In practice this is not a problem, but might as well do it by the book.
11011         Reported by Rich Felker and Eric Blake; see
11012         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
11013         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
11014         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11015         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11016         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
11017         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11018         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
11019
11020         mktime: #undef mktime before #defining it
11021         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
11022
11023         mktime: systematically normalize tm_isdst comparisons
11024         * lib/mktime.c (isdst_differ): New function.
11025         (__mktime_internal): Use it systematically for all isdst comparisons.
11026         This completes the fix for libc BZ #6723, and removes the need for
11027         normalizing tm_isdst.  See
11028         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
11029         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
11030
11031         mktime: fix some integer overflow issues and sidestep the rest
11032
11033         This was prompted by a bug report by Benjamin Lindner for MinGW
11034         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
11035         His bug is due to signed integer overflow (0 - INT_MIN), and I
11036         I scanned through mktime.c looking for other integer overflow
11037         problems, fixing all the bugs I found.
11038
11039         Although the C Standard says the resulting code is still not safe
11040         in the presence of integer overflow, in practice it should be good
11041         enough for all real-world two's-complement implementations, except
11042         for debugging environments that deliberately trap on integer
11043         overflow (e.g., gcc -ftrapv).
11044
11045         * lib/mktime.c (WRAPV): New macro.
11046         (SHR): Also check that long_int and time_t shift right in the
11047         usual way, before using the fast-but-unportable method.
11048         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
11049         used.  The code already assumed two's complement, so there's
11050         no need to test for alternatives.  All uses removed.
11051         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
11052         the C standard.  Problem reported by Rich Felker in
11053         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
11054         (twos_complement_arithmetic): Also check long_int and time_t.
11055         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
11056         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
11057         (__mktime_internal): Avoid integer overflow with unary subtraction
11058         in two instances where -1 - X is an adequate replacement for -X,
11059         since the calculations are approximate.
11060
11061 2011-01-29  Eric Blake  <eblake@redhat.com>
11062
11063         mktime: avoid infinite loop
11064         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
11065         type; behavior is still undefined but portable to all known targets.
11066         Reported by Rich Felker.
11067
11068 2011-01-29  Simon Josefsson  <simon@josefsson.org>
11069
11070         rename, unlink, same-inode: Relicense.
11071         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
11072         * modules/unlink (License): Likewise.
11073         * modules/same-inode (License): Likewise.
11074
11075 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11076
11077         mktime: avoid problems on NetBSD 5 / i386
11078         * lib/mktime.c (long_int): New type.  This works around a problem
11079         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
11080         but time_t is 64 bits, and where I expect the existing code is
11081         wrong in some cases.
11082         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
11083         (ydhms_diff): Bring back the compile-time check for wide-enough
11084         year and yday.
11085
11086         mktime: fix misspelling in comment
11087         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
11088         This merges all recent glibc changes of importance.
11089
11090 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11091
11092         move-if-change: cope with concurrent mv of identical file.
11093         * build-aux/move-if-change (CMPPROG): Accept environment
11094         variable as an override for `cmp'.
11095         (usage): Document CMPPROG.
11096         Adjust comparison to drop stdout.  Cope with failure of mv if
11097         the target file exists and is identical to the source, for
11098         parallel builds.
11099         Report from H.J. Lu against binutils in PR binutils/12283.
11100
11101 2011-01-28  Bruce Korb  <bkorb@gnu.org>
11102
11103         * users.txt: Mention sharutils.
11104
11105 2011-01-28  Simon Josefsson  <simon@josefsson.org>
11106
11107         * users.txt: Mention OATH Toolkit.
11108
11109 2011-01-27  Bruno Haible  <bruno@clisp.org>
11110
11111         Prepare for supporting FreeBSD 10.
11112         * build-aux/config.libpath: Remove handling of freebsd1*.
11113
11114 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
11115
11116         Prepare for supporting FreeBSD 10.
11117         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
11118         match FreeBSD 10.0.
11119
11120 2011-01-27  Bruno Haible  <bruno@clisp.org>
11121
11122         vma-iter, get-rusage-as: Add OpenBSD support.
11123         * modules/vma-iter (configure.ac): Test for mquery.
11124         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
11125         * lib/vma-iter.c: Include <sys/mman.h>.
11126         (vma_iterate): Add an implementation based on mquery().
11127         * lib/resource-ext.h (get_rusage_as): Update comments.
11128         * lib/get-rusage-as.c: Likewise.
11129         * lib/get-rusage-data.c: Likewise.
11130
11131 2011-01-26  Karl Berry  <karl@gnu.org>
11132
11133         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
11134         variables to make it easier to override the makeinfo program used.
11135
11136 2011-01-26  Eric Blake  <eblake@redhat.com>
11137
11138         fcntl: work around Haiku F_DUPFD bugs
11139         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
11140         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
11141         cloexec bit on duplication.
11142         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
11143
11144 2011-01-26  Bruno Haible  <bruno@clisp.org>
11145
11146         Enable memory leak tests on AIX.
11147         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
11148         * tests/test-fprintf-posix3.c (main): Likewise.
11149
11150 2011-01-26  Bruno Haible  <bruno@clisp.org>
11151
11152         Tests for module 'get-rusage-data'.
11153         * modules/get-rusage-data-tests: New file.
11154         * tests/test-get-rusage-data.c: New file.
11155
11156         New module 'get-rusage-data'.
11157         * lib/resource-ext.h (get_rusage_data): New declaration.
11158         * lib/get-rusage-data.c: New file.
11159         * modules/get-rusage-data: New file.
11160
11161 2011-01-25  Bruno Haible  <bruno@clisp.org>
11162
11163         get-rusage-as: Allow for easier testing.
11164         * lib/resource-ext.h (get_rusage_as): Add comment.
11165         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
11166         (main): New function for interactive testing.
11167
11168 2011-01-25  Bruno Haible  <bruno@clisp.org>
11169
11170         vma-iter: Treat Haiku like BeOS.
11171         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
11172         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
11173
11174 2011-01-25  Eric Blake  <eblake@redhat.com>
11175
11176         c-stack: fix regression on cygwin when libsigsegv is present
11177         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
11178
11179 2011-01-24  Bruno Haible  <bruno@clisp.org>
11180
11181         vma-iter: Avoid empty intervals.
11182         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
11183         on an empty interval.
11184
11185 2011-01-24  Jim Meyering  <meyering@redhat.com>
11186
11187         u64: remove unnecessary #include
11188         * lib/u64.h: Don't include <stddef.h>.  It was not used.
11189
11190 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11191
11192         Allow the user to avoid the HAVE_RAW_DECL_* macros.
11193         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
11194
11195 2011-01-23  Bruno Haible  <bruno@clisp.org>
11196
11197         New module 'vma-iter'.
11198         * lib/vma-iter.h: New file.
11199         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
11200         * modules/vma-iter: New file.
11201         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
11202         for get_rusage_as_via_iterator.
11203         (vma_iterate_callback): New function.
11204         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
11205         * modules/get-rusage-as (Depends-on): Add vma-iter.
11206
11207 2011-01-23  Bruno Haible  <bruno@clisp.org>
11208
11209         uninorm: Tweak includes.
11210         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
11211         Reported by Jim Meyering.
11212
11213 2011-01-23  Bruno Haible  <bruno@clisp.org>
11214
11215         get-rusage-as: Improve on NetBSD.
11216         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
11217         /proc, like on FreeBSD.
11218
11219 2011-01-23  Jim Meyering  <meyering@redhat.com>
11220
11221         xreadlink.h: remove unnecessary #include
11222         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
11223
11224         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
11225         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
11226
11227 2011-01-23  Bruno Haible  <bruno@clisp.org>
11228
11229         get-rusage-as: Fix bug.
11230         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
11231         original limit when aborting the first loop.
11232
11233 2011-01-23  Bruno Haible  <bruno@clisp.org>
11234
11235         wctype: Ensure valid C syntax.
11236         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
11237         unconditionally, instead of gl_NEXT_HEADERS conditionally.
11238
11239 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11240
11241         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
11242         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
11243         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
11244         as they are needed only for configure's test case.
11245         This removes two unnecessary symbols from config.h.
11246
11247         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
11248         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
11249         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
11250         AC_CHECK_HEADERS_ONCE on a header that we also invoke
11251         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
11252         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
11253         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
11254         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11255         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11256         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11257         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11258         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11259         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11260         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11261         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11262         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11263         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11264         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11265
11266 2011-01-21  Eric Blake  <eblake@redhat.com>
11267
11268         maintainer-makefile: work with older git for submodule check
11269         * top/maint.mk (public-submodule-commit): Rewrite to avoid
11270         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
11271         Reported by Matthias Bolte.
11272
11273         bootstrap: minor portability fixes
11274         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
11275         (usage): Omit leading capital and trailing . on help phrases, per
11276         GNU Coding Standards.
11277         (check_versions, top level): Prefix messages with script name.
11278
11279 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
11280
11281         bootstrap: support --no-git option
11282         * build-aux/bootstrap: Add --no-git option, to be used when
11283         --gnulib-srcdir points to the exact desired checkout.
11284
11285 2011-01-21  Eric Blake  <eblake@redhat.com>
11286
11287         strerror_r-posix: work with glibc 2.13
11288         * lib/strerror_r.c (strerror_r): Fix return type.
11289
11290 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11291             Bruno Haible  <bruno@clisp.org>
11292
11293         uN_strstr: New unit tests.
11294         * modules/unistr/u8-strstr-tests: New file.
11295         * modules/unistr/u16-strstr-tests: New file.
11296         * modules/unistr/u32-strstr-tests: New file.
11297         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
11298         * tests/unistr/test-u8-strstr.c: New file.
11299         * tests/unistr/test-u16-strstr.c: New file.
11300         * tests/unistr/test-u32-strstr.c: New file.
11301
11302 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11303             Bruno Haible  <bruno@clisp.org>
11304
11305         Make uN_strstr functions O(n) worst-case.
11306         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
11307         16-bit and 32-bit unit cases, use the unibyte algorithm from
11308         lib/mbsstr.c.
11309         * lib/unistr/u8-strstr.c: Include <string.h>.
11310         (UNIT_IS_UINT8_T): New macro.
11311         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
11312         (U_STRLEN, U_STRNLEN): New macros.
11313         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
11314         (U_STRLEN, U_STRNLEN): New macros.
11315         * modules/unistr/u8-strstr (Depends-on): Add strstr.
11316         (configure.ac): Update required libunistring version.
11317         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
11318         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
11319         malloca.
11320         (configure.ac): Update required libunistring version.
11321         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
11322         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
11323         malloca.
11324         (configure.ac): Update required libunistring version.
11325
11326 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11327             Bruno Haible  <bruno@clisp.org>
11328
11329         Prepare for faster uN_strstr functions.
11330         * lib/str-kmp.h: Support definable UNITs.
11331         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
11332         needle_len argument.
11333         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
11334         * lib/mbscasestr.c (mbscasestr): Likewise.
11335
11336 2011-01-21  Pádraig Brady <P@draigBrady.com>
11337
11338         malloca-tests: make faster by unsetting MALLOC_PERTURB_
11339         * tests/test-malloca.c (main): Unset the environment variable
11340         to greatly speed up the test.
11341         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
11342         * modules/malloca-tests: Depend on unsetenv.
11343
11344 2011-01-21  Pádraig Brady <P@draigBrady.com>
11345
11346         ignore-value: remove stdint dependency
11347         * lib/ignore-value.h: Remove <stdint.h>
11348         * modules/ignore-value: Remove stdint dependency.
11349
11350 2011-01-21  Jim Meyering  <meyering@redhat.com>
11351
11352         maint.mk: adjust variable name to be consistent with other gl_ vars
11353         * top/maint.mk (gl_public_submodule_commit): Rename the variable
11354         to be lower case.
11355
11356 2011-01-20  Jim Meyering  <meyering@redhat.com>
11357
11358         maint.mk: make "check" depend on public-submodule-commit by default
11359         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
11360
11361 2011-01-20  Bruno Haible  <bruno@clisp.org>
11362
11363         mbfile, mbiter: Complete change from 2008-12-21.
11364         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
11365         * m4/mbiter.m4 (gl_MBITER): Likewise.
11366
11367 2011-01-20  Jim Meyering  <meyering@redhat.com>
11368
11369         init.sh: insert space between each function name and "()"
11370         * tests/init.sh: Make it a little easier to see that a function's
11371         name is "warn_", and not "warn" when looking at the first part of
11372         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
11373
11374 2011-01-20  Jim Meyering  <meyering@redhat.com>
11375
11376         mountlist: clean up code formatting
11377         * lib/mountlist.c (read_file_system_list): Split a long line,
11378         correct bracing style, use NULL in place of "(struct statfs *)0",
11379         don't parenthesize return value, add spaces around "=" and after
11380         ";-in-for-stmt".
11381
11382 2011-01-14  Markus Duft <mduft@gentoo.org>
11383
11384         mountlist: add support for Interix
11385         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
11386         Apply statvfs to all entries of /dev/fs.
11387         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
11388         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
11389
11390 2011-01-20  Jim Meyering  <meyering@redhat.com>
11391
11392         maint.mk: improve the public-submodule-commit rule
11393         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
11394         to suppress printing of its commands... unless V=1.
11395         Add git submodule's --quiet option to suppress printing of e.g.,
11396         "Entering gnulib" output.
11397         "cd" into $(srcdir) before running git submodule.
11398
11399 2011-01-20  Bruno Haible  <bruno@clisp.org>
11400
11401         include_next: Fix bug introduced on 2011-01-18.
11402         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
11403         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
11404         ac_cv_header_... variable if the second argument is not 'check'.
11405         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
11406         gl_NEXT_HEADERS_INTERNAL.
11407
11408 2011-01-20  Bruno Haible  <bruno@clisp.org>
11409
11410         Allow the user to avoid the GNULIB_TEST_* macros.
11411         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
11412         Suggested by Paul Eggert.
11413
11414 2011-01-14  Jim Meyering  <meyering@redhat.com>
11415
11416         bootstrap: avoid failure when there is no .gitmodules file
11417         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
11418         has been assigned to, even when its value is the empty string.
11419         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
11420         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
11421         Reported by John W. Eaton <jwe@gnu.org>.
11422
11423 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
11424
11425         assume <ctype.h>, ..., <time.h> exist
11426         For years gnulib has been assuming the existence of the headers
11427         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
11428         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
11429         them, since they don't appear to be needed.
11430         * README (Portability guidelines): Document this.
11431         * lib/flock.c: Assume <fcntl.h> exists.
11432         * lib/regex_internal.h: Assume <locale.h> exists.
11433         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
11434         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
11435         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
11436         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
11437         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
11438         * m4/regex.m4 (gl_REGEX): Likewise.
11439         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
11440         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
11441         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
11442         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
11443         * tests/test-argp.c: Likewise.
11444         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
11445
11446         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
11447         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
11448         AA_APPLE_UNIVERSAL_BUILD.  See
11449         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
11450         * NEWS: Document this.
11451
11452 2011-01-19  Eric Blake  <eblake@redhat.com>
11453
11454         c-stack: assume stack overflow if SA_SIGINFO unsupported
11455         * lib/c-stack.c (SIGACTION_WORKS): Rename...
11456         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
11457         sigaction will work.
11458         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
11459         behavior match Linux.
11460         * tests/test-c-stack.c (main): Prefer NULL for pointers.
11461
11462         stdbool-tests: accomodate Haiku
11463         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
11464
11465         binary-io: fix O_TEXT on Haiku
11466         * modules/binary-io (Depends-on): Add fcntl-h.
11467         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
11468         than blindly undefining O_TEXT.
11469         Reported by Scott McCreary.
11470
11471 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11472
11473         include_next: do not check for standard headers like stddef.h
11474
11475         I found this problem when modifying Emacs to use gnulib.
11476         I noticed that it added HAVE_STDDEF_H to config.h, even though
11477         gnulib always assumes <stddef.h> exists as per README and this
11478         symbol is unnecessary.
11479         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
11480         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
11481         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
11482         faster for headers like stddef.h that are known to exist.
11483         (gl_CHECK_NEXT_HEADERS): Use it.
11484         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
11485         rather than gl_CHECK_NEXT_HEADERS.
11486         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
11487         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
11488
11489 2011-01-18  Eric Blake  <eblake@redhat.com>
11490
11491         ansi-c++-opt: skip C++ dependency style if C++ is unused
11492         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
11493         tests when we know C++ compilation is not desired.
11494         Reported by Scott McCreary.
11495
11496 2011-01-18  Bruno Haible  <bruno@clisp.org>
11497
11498         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
11499         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
11500         (main): Perform test also when getrlimit and setrlimit don't exist or
11501         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
11502         limiting the address space size using setrlimit, compare the address
11503         space size before and after the the test.
11504         * tests/test-dprintf-posix2.c: Likewise.
11505         * tests/test-fprintf-posix3.sh: Update skip messages.
11506         * tests/test-dprintf-posix2.sh: Likewise.
11507         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
11508         * modules/dprintf-posix-tests (Depends-on): Likewise.
11509         Reported by Bruce Korb <bkorb@gnu.org> and
11510         Gary V. Vaughan <gary@gnu.org>.
11511
11512 2011-01-18  Bruno Haible  <bruno@clisp.org>
11513
11514         get-rusage-as: Improvement for Cygwin.
11515         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
11516         areas that are merely reserved.
11517
11518 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11519
11520         strftime: remove dependencies on multibyte modules
11521
11522         strftime depended on mbrlen, mbsinit, and wchar, but these modules
11523         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
11524         only if __osf__ is defined, and I suspect OSF doesn't need these
11525         other modules.  If my guess is wrong, we'll need to come up with a
11526         variant of strftime that doesn't need the multibyte modules.
11527
11528         I discovered this problem when attempting modify Emacs to use the
11529         strftime module.  With the previous gnulib, this caused Emacs to
11530         need 31 new files, ranging from lib/config.charset to
11531         m4/wint_t.m4.  This was overkill and I expect would be offputting
11532         to the Emacs maintainers.  After this change, only 6 new files are
11533         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
11534         stdbool.m4, and tm_gmtoff.m4.
11535
11536         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
11537         Suggested by Bruno Haible in
11538         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
11539         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
11540         and do not check for wchar.h.
11541         * modules/strftime (Files): Remove m4/mbstate_t.m4.
11542         (Depends-on): Remove mbrlen, mbsinit, wchar.
11543
11544 2011-01-18  Bruno Haible  <bruno@clisp.org>
11545
11546         Tests for module 'get-rusage-as'.
11547         * modules/get-rusage-as-tests: New file.
11548         * tests/test-get-rusage-as.c: New file.
11549
11550         New module 'get-rusage-as'.
11551         * modules/get-rusage-as: New file.
11552         * lib/resource-ext.h: New file.
11553         * lib/get-rusage-as.c: New file.
11554
11555 2011-01-17  Eric Blake  <eblake@redhat.com>
11556
11557         sigaction: relax license from LGPLv3+ to LGPLv2+
11558         * modules/sigaction (License): Relax to LGPLv2+.
11559
11560 2011-01-14  Bruno Haible  <bruno@clisp.org>
11561
11562         filemode: Make function declarations usable in C++ mode.
11563         * lib/filemode.h: Enclose function declarations in extern "C" block.
11564         Reported by John W. Eaton <jwe@gnu.org>.
11565
11566 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
11567
11568         save-cwd: no longer include "xgetcwd.h"
11569         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
11570         This avoids a compilation failure in projects that use save-cwd
11571         without also using the xgetcwd module.
11572
11573 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11574
11575         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
11576         This is so that a program like Emacs, which needs only dtoastr,
11577         does not have to bother with distributing and compiling ftoastr
11578         and ldtoastr.
11579         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
11580         * modules/dtoastr, modules/ldtoastr: New files.
11581         * modules/ftoastr: Now works just for 'float'.
11582         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
11583         (Makefile.am): Remove ftoastr.h (not needed and no effect),
11584         dtoastr.c, ldtoastr.c.
11585
11586 2011-01-11  Jim Meyering  <meyering@redhat.com>
11587
11588         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
11589         There is no need to work around the lack of the fchdir function,
11590         since gnulib can now provide a replacement when required.
11591         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
11592         * modules/save-cwd (Depends-on): Add fchdir.
11593
11594 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11595
11596         openat, save-cwd: avoid xmalloc
11597
11598         This removes a direct (but undocumented) dependency of openat on
11599         xalloc, along with an indirect dependency via save-cwd.  It also
11600         removes a dependency of save-cwd on xgetcwd, and thereby
11601         indirectly on xalloc.  This change causes the openat substitute
11602         to fall back on save_cwd when memory is tight, and for save_cwd to
11603         fail instead of dying when memory is tight, but that's good enough.
11604         Problem and initial idea for fix reported by Bastien Roucaries in
11605         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
11606
11607         * lib/openat-proc.c: Include stdlib.h (for malloc), not
11608         xalloc.h (for xmalloc).
11609         (openat_proc_name): Use malloc, not xmalloc.
11610         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
11611         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
11612
11613         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
11614         This avoids heap allocation for file names whose lengths are in
11615         the range 512..1023, with the upper bound increasing to at most
11616         4031 depending on the platform's PATH_MAX.  (We do not want
11617         pathmax.h here as it might supply a non-constant PATH_MAX.)
11618         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
11619         Perhaps they should be moved to malloca.h?
11620         (OPENAT_BUFFER_SIZE): Use them.
11621
11622 2011-01-10  Bruno Haible  <bruno@clisp.org>
11623
11624         doc: Update users.txt.
11625         * users.txt: Add recutils.
11626
11627 2011-01-09  Karl Berry  <karl@gnu.org>
11628
11629         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
11630
11631         * doc/configmake.texi: New file.
11632         * doc/gnulib.texi: Include it.
11633         * modules/configmake: Move documentation from here.
11634
11635 2011-01-09  Bruno Haible  <bruno@clisp.org>
11636
11637         Update to Unicode 6.0.0.
11638         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
11639         (get_lbp): Update for Unicode 6.0.0.
11640         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
11641         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
11642         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
11643         U+11001, U+11038..U+11046. Remove U+06DE.
11644         (uc_width): Fix bounds of planes.
11645         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11646         lib/uniwidth/width.c.
11647         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
11648         trailing whitespace removed.
11649         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
11650         without comments, but with the original copyright notice.
11651         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
11652         * lib/unicase/ignorable.h: Likewise.
11653         * lib/unicase/tocasefold.h: Likewise.
11654         * lib/unicase/tolower.h: Likewise.
11655         * lib/unicase/totitle.h: Likewise.
11656         * lib/unicase/toupper.h: Likewise.
11657         * lib/unictype/bidi_of.h: Likewise.
11658         * lib/unictype/blocks.h: Likewise.
11659         * lib/unictype/categ_C.h: Likewise.
11660         * lib/unictype/categ_Cn.h: Likewise.
11661         * lib/unictype/categ_L.h: Likewise.
11662         * lib/unictype/categ_Ll.h: Likewise.
11663         * lib/unictype/categ_Lm.h: Likewise.
11664         * lib/unictype/categ_Lo.h: Likewise.
11665         * lib/unictype/categ_Lu.h: Likewise.
11666         * lib/unictype/categ_M.h: Likewise.
11667         * lib/unictype/categ_Mc.h: Likewise.
11668         * lib/unictype/categ_Me.h: Likewise.
11669         * lib/unictype/categ_Mn.h: Likewise.
11670         * lib/unictype/categ_N.h: Likewise.
11671         * lib/unictype/categ_Nd.h: Likewise.
11672         * lib/unictype/categ_No.h: Likewise.
11673         * lib/unictype/categ_P.h: Likewise.
11674         * lib/unictype/categ_Po.h: Likewise.
11675         * lib/unictype/categ_S.h: Likewise.
11676         * lib/unictype/categ_Sc.h: Likewise.
11677         * lib/unictype/categ_Sk.h: Likewise.
11678         * lib/unictype/categ_Sm.h: Likewise.
11679         * lib/unictype/categ_So.h: Likewise.
11680         * lib/unictype/categ_of.h: Likewise.
11681         * lib/unictype/combining.h: Likewise.
11682         * lib/unictype/ctype_alnum.h: Likewise.
11683         * lib/unictype/ctype_alpha.h: Likewise.
11684         * lib/unictype/ctype_graph.h: Likewise.
11685         * lib/unictype/ctype_lower.h: Likewise.
11686         * lib/unictype/ctype_print.h: Likewise.
11687         * lib/unictype/ctype_punct.h: Likewise.
11688         * lib/unictype/ctype_upper.h: Likewise.
11689         * lib/unictype/decdigit.h: Likewise.
11690         * lib/unictype/digit.h: Likewise.
11691         * lib/unictype/numeric.h: Likewise.
11692         * lib/unictype/pr_alphabetic.h: Likewise.
11693         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11694         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11695         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11696         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11697         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11698         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11699         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11700         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11701         * lib/unictype/pr_case_ignorable.h: Likewise.
11702         * lib/unictype/pr_cased.h: Likewise.
11703         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
11704         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
11705         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
11706         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
11707         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
11708         * lib/unictype/pr_combining.h: Likewise.
11709         * lib/unictype/pr_composite.h: Likewise.
11710         * lib/unictype/pr_currency_symbol.h: Likewise.
11711         * lib/unictype/pr_decimal_digit.h: Likewise.
11712         * lib/unictype/pr_deprecated.h: Likewise.
11713         * lib/unictype/pr_format_control.h: Likewise.
11714         * lib/unictype/pr_grapheme_base.h: Likewise.
11715         * lib/unictype/pr_grapheme_extend.h: Likewise.
11716         * lib/unictype/pr_grapheme_link.h: Likewise.
11717         * lib/unictype/pr_id_continue.h: Likewise.
11718         * lib/unictype/pr_id_start.h: Likewise.
11719         * lib/unictype/pr_ideographic.h: Likewise.
11720         * lib/unictype/pr_lowercase.h: Likewise.
11721         * lib/unictype/pr_math.h: Likewise.
11722         * lib/unictype/pr_numeric.h: Likewise.
11723         * lib/unictype/pr_other_alphabetic.h: Likewise.
11724         * lib/unictype/pr_other_id_continue.h: Likewise.
11725         * lib/unictype/pr_other_math.h: Likewise.
11726         * lib/unictype/pr_punctuation.h: Likewise.
11727         * lib/unictype/pr_sentence_terminal.h: Likewise.
11728         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11729         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11730         * lib/unictype/pr_unified_ideograph.h: Likewise.
11731         * lib/unictype/pr_uppercase.h: Likewise.
11732         * lib/unictype/pr_xid_continue.h: Likewise.
11733         * lib/unictype/pr_xid_start.h: Likewise.
11734         * lib/unictype/scripts.h: Likewise.
11735         * lib/unictype/scripts_byname.gperf: Likewise.
11736         * lib/unictype/sy_java_ident.h: Likewise.
11737         * lib/unigbrk/gbrkprop.h: Likewise.
11738         * lib/unilbrk/lbrkprop1.h: Likewise.
11739         * lib/unilbrk/lbrkprop2.h: Likewise.
11740         * lib/uninorm/decomposition-table2.h: Likewise.
11741         * lib/uniwbrk/wbrkprop.h: Likewise.
11742         * tests/unicase/test-cased.c: Likewise.
11743         * tests/unicase/test-ignorable.c: Likewise.
11744         * tests/unicase/test-uc_tolower.c: Likewise.
11745         * tests/unicase/test-uc_totitle.c: Likewise.
11746         * tests/unicase/test-uc_toupper.c: Likewise.
11747         * tests/unictype/test-categ_C.c: Likewise.
11748         * tests/unictype/test-categ_Cn.c: Likewise.
11749         * tests/unictype/test-categ_L.c: Likewise.
11750         * tests/unictype/test-categ_Ll.c: Likewise.
11751         * tests/unictype/test-categ_Lm.c: Likewise.
11752         * tests/unictype/test-categ_Lo.c: Likewise.
11753         * tests/unictype/test-categ_Lu.c: Likewise.
11754         * tests/unictype/test-categ_M.c: Likewise.
11755         * tests/unictype/test-categ_Mc.c: Likewise.
11756         * tests/unictype/test-categ_Me.c: Likewise.
11757         * tests/unictype/test-categ_Mn.c: Likewise.
11758         * tests/unictype/test-categ_N.c: Likewise.
11759         * tests/unictype/test-categ_Nd.c: Likewise.
11760         * tests/unictype/test-categ_No.c: Likewise.
11761         * tests/unictype/test-categ_P.c: Likewise.
11762         * tests/unictype/test-categ_Po.c: Likewise.
11763         * tests/unictype/test-categ_S.c: Likewise.
11764         * tests/unictype/test-categ_Sc.c: Likewise.
11765         * tests/unictype/test-categ_Sk.c: Likewise.
11766         * tests/unictype/test-categ_Sm.c: Likewise.
11767         * tests/unictype/test-categ_So.c: Likewise.
11768         * tests/unictype/test-ctype_alnum.c: Likewise.
11769         * tests/unictype/test-ctype_alpha.c: Likewise.
11770         * tests/unictype/test-ctype_graph.c: Likewise.
11771         * tests/unictype/test-ctype_lower.c: Likewise.
11772         * tests/unictype/test-ctype_print.c: Likewise.
11773         * tests/unictype/test-ctype_punct.c: Likewise.
11774         * tests/unictype/test-ctype_upper.c: Likewise.
11775         * tests/unictype/test-decdigit.h: Likewise.
11776         * tests/unictype/test-digit.h: Likewise.
11777         * tests/unictype/test-numeric.h: Likewise.
11778         * tests/unictype/test-pr_alphabetic.c: Likewise.
11779         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
11780         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
11781         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
11782         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
11783         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
11784         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
11785         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
11786         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
11787         * tests/unictype/test-pr_case_ignorable.c: Likewise.
11788         * tests/unictype/test-pr_cased.c: Likewise.
11789         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
11790         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
11791         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
11792         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
11793         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
11794         * tests/unictype/test-pr_combining.c: Likewise.
11795         * tests/unictype/test-pr_composite.c: Likewise.
11796         * tests/unictype/test-pr_currency_symbol.c: Likewise.
11797         * tests/unictype/test-pr_decimal_digit.c: Likewise.
11798         * tests/unictype/test-pr_deprecated.c: Likewise.
11799         * tests/unictype/test-pr_format_control.c: Likewise.
11800         * tests/unictype/test-pr_grapheme_base.c: Likewise.
11801         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
11802         * tests/unictype/test-pr_grapheme_link.c: Likewise.
11803         * tests/unictype/test-pr_id_continue.c: Likewise.
11804         * tests/unictype/test-pr_id_start.c: Likewise.
11805         * tests/unictype/test-pr_ideographic.c: Likewise.
11806         * tests/unictype/test-pr_lowercase.c: Likewise.
11807         * tests/unictype/test-pr_math.c: Likewise.
11808         * tests/unictype/test-pr_numeric.c: Likewise.
11809         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
11810         * tests/unictype/test-pr_other_id_continue.c: Likewise.
11811         * tests/unictype/test-pr_other_math.c: Likewise.
11812         * tests/unictype/test-pr_punctuation.c: Likewise.
11813         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
11814         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
11815         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
11816         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
11817         * tests/unictype/test-pr_uppercase.c: Likewise.
11818         * tests/unictype/test-pr_xid_continue.c: Likewise.
11819         * tests/unictype/test-pr_xid_start.c: Likewise.
11820         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
11821         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
11822         changes.
11823         * lib/unictype/categ_Cc.h: Likewise.
11824         * lib/unictype/categ_Cf.h: Likewise.
11825         * lib/unictype/categ_Co.h: Likewise.
11826         * lib/unictype/categ_Cs.h: Likewise.
11827         * lib/unictype/categ_Lt.h: Likewise.
11828         * lib/unictype/categ_Nl.h: Likewise.
11829         * lib/unictype/categ_Pc.h: Likewise.
11830         * lib/unictype/categ_Pd.h: Likewise.
11831         * lib/unictype/categ_Pe.h: Likewise.
11832         * lib/unictype/categ_Pf.h: Likewise.
11833         * lib/unictype/categ_Pi.h: Likewise.
11834         * lib/unictype/categ_Ps.h: Likewise.
11835         * lib/unictype/categ_Z.h: Likewise.
11836         * lib/unictype/categ_Zl.h: Likewise.
11837         * lib/unictype/categ_Zp.h: Likewise.
11838         * lib/unictype/categ_Zs.h: Likewise.
11839         * lib/unictype/ctype_blank.h: Likewise.
11840         * lib/unictype/ctype_cntrl.h: Likewise.
11841         * lib/unictype/ctype_digit.h: Likewise.
11842         * lib/unictype/ctype_space.h: Likewise.
11843         * lib/unictype/ctype_xdigit.h: Likewise.
11844         * lib/unictype/mirror.h: Likewise.
11845         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
11846         * lib/unictype/pr_bidi_block_separator.h: Likewise.
11847         * lib/unictype/pr_bidi_common_separator.h: Likewise.
11848         * lib/unictype/pr_bidi_control.h: Likewise.
11849         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
11850         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
11851         * lib/unictype/pr_bidi_european_digit.h: Likewise.
11852         * lib/unictype/pr_bidi_pdf.h: Likewise.
11853         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
11854         * lib/unictype/pr_bidi_whitespace.h: Likewise.
11855         * lib/unictype/pr_dash.h: Likewise.
11856         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
11857         * lib/unictype/pr_diacritic.h: Likewise.
11858         * lib/unictype/pr_extender.h: Likewise.
11859         * lib/unictype/pr_hex_digit.h: Likewise.
11860         * lib/unictype/pr_hyphen.h: Likewise.
11861         * lib/unictype/pr_ids_binary_operator.h: Likewise.
11862         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
11863         * lib/unictype/pr_ignorable_control.h: Likewise.
11864         * lib/unictype/pr_iso_control.h: Likewise.
11865         * lib/unictype/pr_join_control.h: Likewise.
11866         * lib/unictype/pr_left_of_pair.h: Likewise.
11867         * lib/unictype/pr_line_separator.h: Likewise.
11868         * lib/unictype/pr_logical_order_exception.h: Likewise.
11869         * lib/unictype/pr_non_break.h: Likewise.
11870         * lib/unictype/pr_not_a_character.h: Likewise.
11871         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
11872         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
11873         * lib/unictype/pr_other_id_start.h: Likewise.
11874         * lib/unictype/pr_other_lowercase.h: Likewise.
11875         * lib/unictype/pr_other_uppercase.h: Likewise.
11876         * lib/unictype/pr_paired_punctuation.h: Likewise.
11877         * lib/unictype/pr_paragraph_separator.h: Likewise.
11878         * lib/unictype/pr_pattern_syntax.h: Likewise.
11879         * lib/unictype/pr_pattern_white_space.h: Likewise.
11880         * lib/unictype/pr_private_use.h: Likewise.
11881         * lib/unictype/pr_quotation_mark.h: Likewise.
11882         * lib/unictype/pr_radical.h: Likewise.
11883         * lib/unictype/pr_soft_dotted.h: Likewise.
11884         * lib/unictype/pr_space.h: Likewise.
11885         * lib/unictype/pr_titlecase.h: Likewise.
11886         * lib/unictype/pr_variation_selector.h: Likewise.
11887         * lib/unictype/pr_white_space.h: Likewise.
11888         * lib/unictype/pr_zero_width.h: Likewise.
11889         * lib/unictype/sy_c_ident.h: Likewise.
11890         * lib/unictype/sy_c_whitespace.h: Likewise.
11891         * lib/unictype/sy_java_whitespace.h: Likewise.
11892         * lib/uninorm/composition-table.gperf: Likewise.
11893         * lib/uninorm/decomposition-table1.h: Likewise.
11894         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
11895         LB8.
11896         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
11897         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
11898         * modules/unictype/*: Bump version number of expected libunistring
11899         version.
11900
11901 2011-01-09  Bruno Haible  <bruno@clisp.org>
11902
11903         Update to Unicode 5.2.0.
11904         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
11905         trailing whitespace removed.
11906
11907 2011-01-09  Bruno Haible  <bruno@clisp.org>
11908
11909         New Unicode character properties, from Unicode 5.2.0.
11910         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
11911         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
11912         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
11913         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
11914         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
11915         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
11916         uc_is_property_cased, uc_is_property_case_ignorable,
11917         uc_is_property_changes_when_lowercased,
11918         uc_is_property_changes_when_uppercased,
11919         uc_is_property_changes_when_titlecased,
11920         uc_is_property_changes_when_casefolded,
11921         uc_is_property_changes_when_casemapped): New declarations.
11922         * lib/unictype/pr_byname.gperf: Add the new properties.
11923         * modules/unictype/property-byname (Depends-on): Depend on the new
11924         properties modules.
11925         * modules/unictype/property-all (Depends-on): Likewise.
11926         * MODULES.html.sh (Unicode string functions): Add
11927         unictype/property-case-ignorable, unictype/property-cased,
11928         unictype/property-changes-when-casefolded,
11929         unictype/property-changes-when-casemapped,
11930         unictype/property-changes-when-lowercased,
11931         unictype/property-changes-when-titlecased,
11932         unictype/property-changes-when-uppercased.
11933
11934         New module 'unictype/property-changes-when-casemapped'.
11935         * modules/unictype/property-changes-when-casemapped: New file.
11936         * lib/unictype/pr_changes_when_casemapped.c: New file.
11937         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
11938         generated by gen-uni-tables.
11939         * modules/unictype/property-changes-when-casemapped-tests: New file.
11940         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
11941         automatically generated by gen-uni-tables.
11942
11943         New module 'unictype/property-changes-when-casefolded'.
11944         * modules/unictype/property-changes-when-casefolded: New file.
11945         * lib/unictype/pr_changes_when_casefolded.c: New file.
11946         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
11947         generated by gen-uni-tables.
11948         * modules/unictype/property-changes-when-casefolded-tests: New file.
11949         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
11950         automatically generated by gen-uni-tables.
11951
11952         New module 'unictype/property-changes-when-titlecased'.
11953         * modules/unictype/property-changes-when-titlecased: New file.
11954         * lib/unictype/pr_changes_when_titlecased.c: New file.
11955         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
11956         generated by gen-uni-tables.
11957         * modules/unictype/property-changes-when-titlecased-tests: New file.
11958         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
11959         automatically generated by gen-uni-tables.
11960
11961         New module 'unictype/property-changes-when-uppercased'.
11962         * modules/unictype/property-changes-when-uppercased: New file.
11963         * lib/unictype/pr_changes_when_uppercased.c: New file.
11964         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
11965         generated by gen-uni-tables.
11966         * modules/unictype/property-changes-when-uppercased-tests: New file.
11967         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
11968         automatically generated by gen-uni-tables.
11969
11970         New module 'unictype/property-changes-when-lowercased'.
11971         * modules/unictype/property-changes-when-lowercased: New file.
11972         * lib/unictype/pr_changes_when_lowercased.c: New file.
11973         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
11974         generated by gen-uni-tables.
11975         * modules/unictype/property-changes-when-lowercased-tests: New file.
11976         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
11977         automatically generated by gen-uni-tables.
11978
11979         New module 'unictype/property-case-ignorable'.
11980         * modules/unictype/property-case-ignorable: New file.
11981         * lib/unictype/pr_case_ignorable.c: New file.
11982         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
11983         by gen-uni-tables.
11984         * modules/unictype/property-case-ignorable-tests: New file.
11985         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
11986         generated by gen-uni-tables.
11987
11988         New module 'unictype/property-cased'.
11989         * modules/unictype/property-cased: New file.
11990         * lib/unictype/pr_cased.c: New file.
11991         * lib/unictype/pr_cased.h: New file, automatically generated by
11992         gen-uni-tables.
11993         * modules/unictype/property-cased-tests: New file.
11994         * tests/unictype/test-pr_cased.c: New file, automatically generated by
11995         gen-uni-tables.
11996
11997 2011-01-09  Bruno Haible  <bruno@clisp.org>
11998
11999         Update to Unicode 5.2.0.
12000         * lib/gen-uni-tables.c (output_predicate, output_category,
12001         output_combclass, output_bidi_category, output_decimal_digit_test,
12002         output_decimal_digit, output_digit_test, output_digit,
12003         output_numeric_test, output_numeric, output_mirror, output_scripts,
12004         output_scripts_byname, output_blocks, output_ident_category): Fix
12005         comment header.
12006         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
12007         get_wbp.
12008         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
12009         items.
12010         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
12011         Changes_When_Lowercased, Changes_When_Uppercased,
12012         Changes_When_Titlecased, Changes_When_Casefolded,
12013         Changes_When_Casemapped.
12014         (is_property_alphabetic, is_property_default_ignorable_code_point):
12015         Update for Unicode 5.2.0.
12016         (is_property_cased, is_property_case_ignorable,
12017         is_property_changes_when_lowercased,
12018         is_property_changes_when_uppercased,
12019         is_property_changes_when_titlecased,
12020         is_property_changes_when_casefolded,
12021         is_property_changes_when_casemapped): New functions.
12022         (output_properties): Output also the properties cased, case_ignorable,
12023         changes_when_lowercased, changes_when_uppercased,
12024         changes_when_titlecased, changes_when_casefolded,
12025         changes_when_casemapped.
12026         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
12027         Unicode TR#11 revision 17 -> 19.
12028         (LBP_CP): New enumeration value.
12029         (LBP_*): Adjust values accordingly.
12030         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12031         TR#14 revision 22 -> 24.
12032         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
12033         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
12034         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12035         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
12036         is_WBP_MIDLETTER.
12037         (output_composition_tables): Allow for 24 bits instead of 16 bits in
12038         the code1 and code2 of each composition rule.
12039         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
12040         * lib/unicase/ignorable.h: Likewise.
12041         * lib/unicase/tocasefold.h: Likewise.
12042         * lib/unicase/tolower.h: Likewise.
12043         * lib/unicase/totitle.h: Likewise.
12044         * lib/unicase/toupper.h: Likewise.
12045         * lib/unictype/bidi_of.h: Likewise.
12046         * lib/unictype/blocks.h: Likewise.
12047         * lib/unictype/categ_C.h: Likewise.
12048         * lib/unictype/categ_Cf.h: Likewise.
12049         * lib/unictype/categ_Cn.h: Likewise.
12050         * lib/unictype/categ_L.h: Likewise.
12051         * lib/unictype/categ_Ll.h: Likewise.
12052         * lib/unictype/categ_Lm.h: Likewise.
12053         * lib/unictype/categ_Lo.h: Likewise.
12054         * lib/unictype/categ_Lu.h: Likewise.
12055         * lib/unictype/categ_M.h: Likewise.
12056         * lib/unictype/categ_Mc.h: Likewise.
12057         * lib/unictype/categ_Mn.h: Likewise.
12058         * lib/unictype/categ_N.h: Likewise.
12059         * lib/unictype/categ_Nd.h: Likewise.
12060         * lib/unictype/categ_Nl.h: Likewise.
12061         * lib/unictype/categ_No.h: Likewise.
12062         * lib/unictype/categ_P.h: Likewise.
12063         * lib/unictype/categ_Pd.h: Likewise.
12064         * lib/unictype/categ_Po.h: Likewise.
12065         * lib/unictype/categ_S.h: Likewise.
12066         * lib/unictype/categ_Sc.h: Likewise.
12067         * lib/unictype/categ_So.h: Likewise.
12068         * lib/unictype/categ_of.h: Likewise.
12069         * lib/unictype/combining.h: Likewise.
12070         * lib/unictype/ctype_alnum.h: Likewise.
12071         * lib/unictype/ctype_alpha.h: Likewise.
12072         * lib/unictype/ctype_graph.h: Likewise.
12073         * lib/unictype/ctype_lower.h: Likewise.
12074         * lib/unictype/ctype_print.h: Likewise.
12075         * lib/unictype/ctype_punct.h: Likewise.
12076         * lib/unictype/ctype_upper.h: Likewise.
12077         * lib/unictype/decdigit.h: Likewise.
12078         * lib/unictype/digit.h: Likewise.
12079         * lib/unictype/numeric.h: Likewise.
12080         * lib/unictype/pr_alphabetic.h: Likewise.
12081         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12082         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12083         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12084         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12085         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12086         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12087         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12088         * lib/unictype/pr_combining.h: Likewise.
12089         * lib/unictype/pr_composite.h: Likewise.
12090         * lib/unictype/pr_currency_symbol.h: Likewise.
12091         * lib/unictype/pr_dash.h: Likewise.
12092         * lib/unictype/pr_decimal_digit.h: Likewise.
12093         * lib/unictype/pr_deprecated.h: Likewise.
12094         * lib/unictype/pr_diacritic.h: Likewise.
12095         * lib/unictype/pr_extender.h: Likewise.
12096         * lib/unictype/pr_grapheme_base.h: Likewise.
12097         * lib/unictype/pr_grapheme_extend.h: Likewise.
12098         * lib/unictype/pr_grapheme_link.h: Likewise.
12099         * lib/unictype/pr_id_continue.h: Likewise.
12100         * lib/unictype/pr_id_start.h: Likewise.
12101         * lib/unictype/pr_ideographic.h: Likewise.
12102         * lib/unictype/pr_ignorable_control.h: Likewise.
12103         * lib/unictype/pr_logical_order_exception.h: Likewise.
12104         * lib/unictype/pr_lowercase.h: Likewise.
12105         * lib/unictype/pr_numeric.h: Likewise.
12106         * lib/unictype/pr_other_alphabetic.h: Likewise.
12107         * lib/unictype/pr_punctuation.h: Likewise.
12108         * lib/unictype/pr_sentence_terminal.h: Likewise.
12109         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12110         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12111         * lib/unictype/pr_unified_ideograph.h: Likewise.
12112         * lib/unictype/pr_uppercase.h: Likewise.
12113         * lib/unictype/pr_xid_continue.h: Likewise.
12114         * lib/unictype/pr_xid_start.h: Likewise.
12115         * lib/unictype/pr_zero_width.h: Likewise.
12116         * lib/unictype/scripts.h: Likewise.
12117         * lib/unictype/scripts_byname.gperf: Likewise.
12118         * lib/unictype/sy_java_ident.h: Likewise.
12119         * lib/unigbrk/gbrkprop.h: Likewise.
12120         * lib/unilbrk/lbrkprop1.h: Likewise.
12121         * lib/unilbrk/lbrkprop2.h: Likewise.
12122         * lib/unilbrk/lbrktables.h: Likewise.
12123         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
12124         LBP_CP. Implement rule LB30.
12125         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
12126         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
12127         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
12128         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
12129         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
12130         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
12131         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
12132         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
12133         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
12134         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
12135         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
12136         bits instead of 16 bits in the code1 and code2 of each composition
12137         rule.
12138         (uc_composition): Update for Unicode 5.2.0.
12139         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
12140         * lib/uninorm/decomposition-table2.h: Likewise.
12141         * lib/uniwbrk/wbrkprop.h: Likewise.
12142         * tests/unicase/test-cased.c: Likewise.
12143         * tests/unicase/test-ignorable.c: Likewise.
12144         * tests/unicase/test-uc_tolower.c: Likewise.
12145         * tests/unicase/test-uc_totitle.c: Likewise.
12146         * tests/unicase/test-uc_toupper.c: Likewise.
12147         * tests/unictype/test-categ_C.c: Likewise.
12148         * tests/unictype/test-categ_Cf.c: Likewise.
12149         * tests/unictype/test-categ_Cn.c: Likewise.
12150         * tests/unictype/test-categ_L.c: Likewise.
12151         * tests/unictype/test-categ_Ll.c: Likewise.
12152         * tests/unictype/test-categ_Lm.c: Likewise.
12153         * tests/unictype/test-categ_Lo.c: Likewise.
12154         * tests/unictype/test-categ_Lu.c: Likewise.
12155         * tests/unictype/test-categ_M.c: Likewise.
12156         * tests/unictype/test-categ_Mc.c: Likewise.
12157         * tests/unictype/test-categ_Mn.c: Likewise.
12158         * tests/unictype/test-categ_N.c: Likewise.
12159         * tests/unictype/test-categ_Nd.c: Likewise.
12160         * tests/unictype/test-categ_Nl.c: Likewise.
12161         * tests/unictype/test-categ_No.c: Likewise.
12162         * tests/unictype/test-categ_P.c: Likewise.
12163         * tests/unictype/test-categ_Pd.c: Likewise.
12164         * tests/unictype/test-categ_Po.c: Likewise.
12165         * tests/unictype/test-categ_S.c: Likewise.
12166         * tests/unictype/test-categ_Sc.c: Likewise.
12167         * tests/unictype/test-categ_So.c: Likewise.
12168         * tests/unictype/test-ctype_alnum.c: Likewise.
12169         * tests/unictype/test-ctype_alpha.c: Likewise.
12170         * tests/unictype/test-ctype_graph.c: Likewise.
12171         * tests/unictype/test-ctype_lower.c: Likewise.
12172         * tests/unictype/test-ctype_print.c: Likewise.
12173         * tests/unictype/test-ctype_punct.c: Likewise.
12174         * tests/unictype/test-ctype_upper.c: Likewise.
12175         * tests/unictype/test-decdigit.h: Likewise.
12176         * tests/unictype/test-digit.h: Likewise.
12177         * tests/unictype/test-numeric.h: Likewise.
12178         * tests/unictype/test-pr_alphabetic.c: Likewise.
12179         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12180         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12181         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
12182         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12183         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12184         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12185         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12186         * tests/unictype/test-pr_combining.c: Likewise.
12187         * tests/unictype/test-pr_composite.c: Likewise.
12188         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12189         * tests/unictype/test-pr_dash.c: Likewise.
12190         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12191         * tests/unictype/test-pr_deprecated.c: Likewise.
12192         * tests/unictype/test-pr_diacritic.c: Likewise.
12193         * tests/unictype/test-pr_extender.c: Likewise.
12194         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12195         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12196         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12197         * tests/unictype/test-pr_id_continue.c: Likewise.
12198         * tests/unictype/test-pr_id_start.c: Likewise.
12199         * tests/unictype/test-pr_ideographic.c: Likewise.
12200         * tests/unictype/test-pr_ignorable_control.c: Likewise.
12201         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
12202         * tests/unictype/test-pr_lowercase.c: Likewise.
12203         * tests/unictype/test-pr_numeric.c: Likewise.
12204         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12205         * tests/unictype/test-pr_punctuation.c: Likewise.
12206         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12207         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12208         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12209         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12210         * tests/unictype/test-pr_uppercase.c: Likewise.
12211         * tests/unictype/test-pr_xid_continue.c: Likewise.
12212         * tests/unictype/test-pr_xid_start.c: Likewise.
12213         * tests/unictype/test-pr_zero_width.c: Likewise.
12214         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12215         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
12216         changed behaviour: line breaking is now disallowed between a letter
12217         or '=' and '('.
12218         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12219         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12220         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12221         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
12222         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12223         lib/uniwidth/width.c.
12224         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
12225         without comments, but with the original copyright notice.
12226         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12227         changes.
12228         * lib/unictype/categ_Cc.h: Likewise.
12229         * lib/unictype/categ_Co.h: Likewise.
12230         * lib/unictype/categ_Cs.h: Likewise.
12231         * lib/unictype/categ_Lt.h: Likewise.
12232         * lib/unictype/categ_Me.h: Likewise.
12233         * lib/unictype/categ_Pc.h: Likewise.
12234         * lib/unictype/categ_Pe.h: Likewise.
12235         * lib/unictype/categ_Pf.h: Likewise.
12236         * lib/unictype/categ_Pi.h: Likewise.
12237         * lib/unictype/categ_Ps.h: Likewise.
12238         * lib/unictype/categ_Sk.h: Likewise.
12239         * lib/unictype/categ_Sm.h: Likewise.
12240         * lib/unictype/categ_Z.h: Likewise.
12241         * lib/unictype/categ_Zl.h: Likewise.
12242         * lib/unictype/categ_Zp.h: Likewise.
12243         * lib/unictype/categ_Zs.h: Likewise.
12244         * lib/unictype/ctype_blank.h: Likewise.
12245         * lib/unictype/ctype_cntrl.h: Likewise.
12246         * lib/unictype/ctype_digit.h: Likewise.
12247         * lib/unictype/ctype_space.h: Likewise.
12248         * lib/unictype/ctype_xdigit.h: Likewise.
12249         * lib/unictype/mirror.h: Likewise.
12250         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12251         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12252         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12253         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12254         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12255         * lib/unictype/pr_bidi_control.h: Likewise.
12256         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12257         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12258         * lib/unictype/pr_bidi_pdf.h: Likewise.
12259         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12260         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12261         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12262         * lib/unictype/pr_format_control.h: Likewise.
12263         * lib/unictype/pr_hex_digit.h: Likewise.
12264         * lib/unictype/pr_hyphen.h: Likewise.
12265         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12266         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12267         * lib/unictype/pr_iso_control.h: Likewise.
12268         * lib/unictype/pr_join_control.h: Likewise.
12269         * lib/unictype/pr_left_of_pair.h: Likewise.
12270         * lib/unictype/pr_line_separator.h: Likewise.
12271         * lib/unictype/pr_math.h: Likewise.
12272         * lib/unictype/pr_non_break.h: Likewise.
12273         * lib/unictype/pr_not_a_character.h: Likewise.
12274         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12275         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12276         * lib/unictype/pr_other_id_continue.h: Likewise.
12277         * lib/unictype/pr_other_id_start.h: Likewise.
12278         * lib/unictype/pr_other_lowercase.h: Likewise.
12279         * lib/unictype/pr_other_math.h: Likewise.
12280         * lib/unictype/pr_other_uppercase.h: Likewise.
12281         * lib/unictype/pr_paired_punctuation.h: Likewise.
12282         * lib/unictype/pr_paragraph_separator.h: Likewise.
12283         * lib/unictype/pr_pattern_syntax.h: Likewise.
12284         * lib/unictype/pr_pattern_white_space.h: Likewise.
12285         * lib/unictype/pr_private_use.h: Likewise.
12286         * lib/unictype/pr_quotation_mark.h: Likewise.
12287         * lib/unictype/pr_radical.h: Likewise.
12288         * lib/unictype/pr_soft_dotted.h: Likewise.
12289         * lib/unictype/pr_space.h: Likewise.
12290         * lib/unictype/pr_titlecase.h: Likewise.
12291         * lib/unictype/pr_variation_selector.h: Likewise.
12292         * lib/unictype/pr_white_space.h: Likewise.
12293         * lib/unictype/sy_c_ident.h: Likewise.
12294         * lib/unictype/sy_c_whitespace.h: Likewise.
12295         * lib/unictype/sy_java_whitespace.h: Likewise.
12296         * modules/uni*/*: Bump version number of expected libunistring version.
12297         Reported by Simon Josefsson.
12298
12299 2011-01-09  Karl Heuer  <kwzh@gnu.org>
12300
12301         useless-if-before-free: fix typo in --help and make the internal,
12302         automatic version date update process work once again.
12303         --help output contained a NUL character instead of the
12304         backslash-zero that was intended.  Also, the "must lie within
12305         the first 8 lines" line is on line 9, and hence not getting
12306         automatically updated.
12307         * build-aux/useless-if-before-free: Fix the former by adding a
12308         backslash, and the latter by condensing the three lines of what-it-does
12309         to a single line, leaving one line of slack for the future.
12310
12311 2011-01-09  Bruno Haible  <bruno@clisp.org>
12312
12313         uniwidth/width: Fix width of U+1D173..U+1D17A.
12314         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
12315         symbolic_width, output_width_property_test): New functions.
12316         (main): Invoke output_nonspacing_property, output_width_property_test.
12317         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
12318         U+1D173..U+1D17A.
12319         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
12320         1.
12321         * modules/uniwidth/*: Bump version number of expected libunistring
12322         version.
12323         * modules/unilbrk/*: Likewise.
12324
12325 2011-01-08  Bruno Haible  <bruno@clisp.org>
12326
12327         uninorm tests: Preserve copyright of Unicode data file.
12328         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
12329         Mention modifications.
12330
12331 2011-01-08  Bruno Haible  <bruno@clisp.org>
12332
12333         gen-uni-tables: Prepare for Unicode 5.2.0.
12334         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
12335         (debug_output_lbp, output_lbp): Update.
12336
12337 2011-01-08  Bruno Haible  <bruno@clisp.org>
12338
12339         unilbrk: Clarify gen-uni-tables.c code.
12340         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
12341         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
12342         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
12343
12344 2011-01-07  Bruno Haible  <bruno@clisp.org>
12345
12346         strtod: Restore errno when successfully parsing Infinity or NaN.
12347         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
12348         restore the original errno.
12349
12350 2011-01-07  Bruno Haible  <bruno@clisp.org>
12351
12352         remove test: Avoid failure on HP-UX 11.
12353         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
12354
12355 2011-01-07  Bruno Haible  <bruno@clisp.org>
12356
12357         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
12358         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
12359         error code.
12360
12361 2011-01-07  Pádraig Brady <P@draigBrady.com>
12362
12363         ignore-value: fixup comments, and add Eric Blake
12364         as an author since he rewrote the macros.
12365         * lib/ignore-value.h (ignore_value):  State that
12366         we now support aggregates.  Also specify exactly
12367         when the GCC warn_unused_result feature was added.
12368
12369 2011-01-06  Eric Blake  <eblake@redhat.com>
12370
12371         ignore-value: support aggregate types
12372         * lib/ignore-value.h (ignore_value): Provide separate gcc
12373         definition.
12374         * modules/ignore-value-tests: New test module.
12375         * tests/test-ignore-value.c: New test.
12376
12377         maint.mk: improve sc_prohibit_strcmp regex
12378         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
12379         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
12380         definition of STRNEQ.
12381
12382         signal: work around Haiku issue with SIGBUS
12383         * lib/siglist.h: Add comment.
12384         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
12385         strsignal's favoring of SIGSEGV.
12386         * tests/test-signal.c (main): Avoid test failure.
12387         * doc/posix-headers/signal.texi (signal.h): Document the issue.
12388         Reported by Scott McCreary.
12389
12390         maint.mk: add pre-release check to ensure submodule commits are public
12391         * top/maint.mk (public-submodule-commit): New rule.
12392         (submodule-checks): New variable.
12393         (alpha beta stable): Depend on the variable.
12394
12395 2011-01-05  Pádraig Brady <P@draigBrady.com>
12396         and Jim Meyering  <meyering@redhat.com>
12397
12398         ignore-value: make ignore_value more generic; deprecate ignore_ptr
12399         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
12400         (ATTRIBUTE_DEPRECATED): Define.
12401         (_ignore_case): New function.
12402         (ignore_value): New macro, to replace the old function.
12403         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
12404         * modules/ignore-value (Depends-on): Add stdint.
12405
12406 2011-01-04  Eric Blake  <eblake@redhat.com>
12407
12408         doc: regenerate INSTALL
12409         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
12410         @firstparagraphindent support, now that autoconf dropped it.
12411         (INSTALL_PRELUDE): Reinstate old macro.
12412         * doc/install.texi: Resync from autoconf.
12413         * doc/INSTALL: Reflect recent autoconf update.
12414         * doc/INSTALL.ISO: Likewise.
12415         * doc/INSTALL.UTF-8: Likewise.
12416         Reported by Karl Berry.
12417
12418 2011-01-04  Bruce Korb  <address@hidden>
12419
12420         git-version-gen: avoid a sub-shell
12421         * build-aux/git-version-gen: Redirect stderr in `...` via
12422         "exec 2>...", rather than via an added sub-shell.
12423
12424 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
12425
12426         git-version-gen: use (...) rather than sh -c '...'
12427         * build-aux/git-version-gen: Rather than hard-coding a shell's name
12428         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
12429
12430 2011-01-03  Jim Meyering  <meyering@redhat.com>
12431
12432         git-version-gen: convert leading TABs to spaces
12433         * build-aux/git-version-gen: Expand leading TABs.
12434
12435         git-version-gen: handle failed "git rev-list"
12436         * build-aux/git-version-gen: Rather than leaking a "fatal" error
12437         from git and proceeding as if it had succeeded but printed no SHA1
12438         checksums, suppress the diagnostic and handle the failure.
12439         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
12440
12441         git-version-gen: include command name in one more diagnostic
12442         * build-aux/git-version-gen: When the required .tarball-version file
12443         was missing or unreadable, you might see the diagnostic from "cat",
12444         but no trace of the name of the invoking script.  Now, you still see
12445         the diagnostic from cat, but also get one from "git-version-gen: ".
12446         Inspired by a patch from Bruce Korb.
12447
12448         update-copyright: adjust test to match changed code
12449         * tests/test-update-copyright.sh: Change test's expected output
12450         to match new actual output.
12451
12452 2011-01-02  Bruno Haible  <bruno@clisp.org>
12453
12454         getlogin_r: Avoid test failure on HP-UX 11.
12455         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
12456         ERANGE when the second argument is zero.
12457         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
12458         portability problem.
12459
12460 2011-01-02  Bruce Korb  <bkorb@gnu.org>
12461
12462         * build-aux/update-copyright: doc Simon's changes
12463
12464 2011-01-02  Simon Josefsson  <simon@josefsson.org>
12465
12466         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
12467         environment variable.
12468
12469 2011-01-02  Bruno Haible  <bruno@clisp.org>
12470
12471         unigbrk: Avoid gcc warnings.
12472         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
12473         unused variable.
12474         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
12475         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
12476         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
12477         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
12478         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
12479         Change type of first argument to 'const char *'.
12480         (main): Remove unused variable.
12481         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
12482         type of first argument to 'const char *'.
12483         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
12484         Likewise.
12485         (main): Change type of variable 's'.
12486         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
12487         to 'int'.
12488
12489 2011-01-02  Bruno Haible  <bruno@clisp.org>
12490
12491         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
12492         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
12493         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
12494         bug.
12495         * lib/pwrite.c: Undo 2010-12-31 patch.
12496         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
12497
12498 2011-01-02  Bruno Haible  <bruno@clisp.org>
12499
12500         pread: Fix test whether it works.
12501         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
12502
12503 2011-01-02  Bruno Haible  <bruno@clisp.org>
12504
12505         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
12506         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
12507         ends in "6". Don't require a specific month name. Try also the locale
12508         names found on HP-UX 11 and Solaris 7.
12509
12510 2011-01-02  Bruno Haible  <bruno@clisp.org>
12511
12512         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
12513         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
12514         C linkage.
12515         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
12516
12517 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12518
12519         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
12520         for consistency, since the "cluster" term is not used elsewhere.
12521         * lib/unigbrk.in.h: Update name.
12522         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
12523         * lib/unigbrk/u16-grapheme-next.c: Update name.
12524         * lib/unigbrk/u16-grapheme-prev.c: Update name.
12525         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
12526         * lib/unigbrk/u32-grapheme-next.c: Update name.
12527         * lib/unigbrk/u32-grapheme-prev.c: Update name.
12528         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
12529         * lib/unigbrk/u8-grapheme-next.c: Update name.
12530         * lib/unigbrk/u8-grapheme-prev.c: Update name.
12531         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
12532         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
12533         Suggested by Bruno Haible.
12534
12535 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12536
12537         Remove module 'u8-grapheme-len' as too redundant with
12538         'u8-grapheme-next'.
12539         * modules/unigbrk/u8-grapheme-len: Delete file.
12540         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
12541         * lib/unigbrk.in.h: Remove prototype for deleted function.
12542         * lib/unigbrk/u8-grapheme-len.c: Delete file.
12543         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
12544
12545         Remove module 'u16-grapheme-len' as too redundant with
12546         'u16-grapheme-next'.
12547         * modules/unigbrk/u16-grapheme-len: Delete file.
12548         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
12549         * lib/unigbrk.in.h: Remove prototype for deleted function.
12550         * lib/unigbrk/u16-grapheme-len.c: Delete file.
12551         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
12552
12553         Remove module 'u32-grapheme-len' as too redundant with
12554         'u32-grapheme-next'.
12555         * modules/unigbrk/u32-grapheme-len: Delete file.
12556         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
12557         * lib/unigbrk.in.h: Remove prototype for deleted function.
12558         * lib/unigbrk/u32-grapheme-len.c: Delete file.
12559         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
12560
12561         Suggested by Bruno Haible.
12562
12563 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12564
12565         * unigbrk.in.h: Fix typo: "ben" => "been".
12566         Reported by Bruno Haible.
12567
12568 2011-01-01  Jim Meyering  <meyering@redhat.com>
12569
12570         maint: update almost all copyright ranges to include 2011
12571         Run the new "make update-copyright" rule.
12572
12573 2011-01-01  Jim Meyering  <meyering@redhat.com>
12574
12575         maint: update-copyright: exempt doc/INSTALL*
12576         * Makefile (update-copyright): Also exclude doc/INSTALL*,
12577         since they are generated.  Suggested by Bruno Haible.
12578
12579 2011-01-01  Jim Meyering  <meyering@redhat.com>
12580
12581         maint: refine the update-copyright rule
12582         * Makefile (update-copyright): Also exclude any file that includes
12583         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
12584         code that merely generates the comment.
12585
12586 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12587
12588         New module 'u8-grapheme-len'.
12589         * modules/unigbrk/u8-grapheme-len: New file.
12590         * modules/unigbrk/u8-grapheme-len-tests: New file.
12591         * lib/unigbrk.in.h: Add prototype for new function.
12592         * lib/unigbrk/u8-grapheme-len.c: New file.
12593         * tests/unigbrk/test-u8-grapheme-len.c: New file.
12594
12595         New module 'u16-grapheme-len'.
12596         * modules/unigbrk/u16-grapheme-len: New file.
12597         * modules/unigbrk/u16-grapheme-len-tests: New file.
12598         * lib/unigbrk.in.h: Add prototype for new function.
12599         * lib/unigbrk/u16-grapheme-len.c: New file.
12600         * tests/unigbrk/test-u16-grapheme-len.c: New file.
12601
12602         New module 'u32-grapheme-len'.
12603         * modules/unigbrk/u32-grapheme-len: New file.
12604         * modules/unigbrk/u32-grapheme-len-tests: New file.
12605         * lib/unigbrk.in.h: Add prototype for new function.
12606         * lib/unigbrk/u32-grapheme-len.c: New file.
12607         * tests/unigbrk/test-u32-grapheme-len.c: New file.
12608
12609         New module 'u8-grapheme-next'.
12610         * modules/unigbrk/u8-grapheme-next: New file.
12611         * modules/unigbrk/u8-grapheme-next-tests: New file.
12612         * lib/unigbrk.in.h: Add prototype for new function.
12613         * lib/unigbrk/u8-grapheme-next.c: New file.
12614         * tests/unigbrk/test-u8-grapheme-next.c: New file.
12615
12616         New module 'u16-grapheme-next'.
12617         * modules/unigbrk/u16-grapheme-next: New file.
12618         * modules/unigbrk/u16-grapheme-next-tests: New file.
12619         * lib/unigbrk.in.h: Add prototype for new function.
12620         * lib/unigbrk/u16-grapheme-next.c: New file.
12621         * tests/unigbrk/test-u16-grapheme-next.c: New file.
12622
12623         New module 'u32-grapheme-next'.
12624         * modules/unigbrk/u32-grapheme-next: New file.
12625         * modules/unigbrk/u32-grapheme-next-tests: New file.
12626         * lib/unigbrk.in.h: Add prototype for new function.
12627         * lib/unigbrk/u32-grapheme-next.c: New file.
12628         * tests/unigbrk/test-u32-grapheme-next.c: New file.
12629
12630         New module 'u8-grapheme-prev'.
12631         * modules/unigbrk/u8-grapheme-prev: New file.
12632         * modules/unigbrk/u8-grapheme-prev-tests: New file.
12633         * lib/unigbrk.in.h: Add prototype for new function.
12634         * lib/unigbrk/u8-grapheme-prev.c: New file.
12635         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
12636
12637         New module 'u16-grapheme-prev'.
12638         * modules/unigbrk/u16-grapheme-prev: New file.
12639         * modules/unigbrk/u16-grapheme-prev-tests: New file.
12640         * lib/unigbrk.in.h: Add prototype for new function.
12641         * lib/unigbrk/u16-grapheme-prev.c: New file.
12642         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
12643
12644         New module 'u32-grapheme-prev'.
12645         * modules/unigbrk/u32-grapheme-prev: New file.
12646         * modules/unigbrk/u32-grapheme-prev-tests: New file.
12647         * lib/unigbrk.in.h: Add prototype for new function.
12648         * lib/unigbrk/u32-grapheme-prev.c: New file.
12649         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
12650
12651         New module 'u8-grapheme-breaks'.
12652         * modules/unigbrk/u8-grapheme-breaks: New file.
12653         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
12654         * lib/unigbrk.in.h: Add prototype for new function.
12655         * lib/unigbrk/u8-grapheme-breaks.c: New file.
12656         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
12657
12658         New module 'u16-grapheme-breaks'.
12659         * modules/unigbrk/u16-grapheme-breaks: New file.
12660         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
12661         * lib/unigbrk.in.h: Add prototype for new function.
12662         * lib/unigbrk/u16-grapheme-breaks.c: New file.
12663         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
12664
12665         New module 'u32-grapheme-breaks'.
12666         * modules/unigbrk/u32-grapheme-breaks: New file.
12667         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
12668         * lib/unigbrk.in.h: Add prototype for new function.
12669         * lib/unigbrk/u32-grapheme-breaks.c: New file.
12670         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
12671
12672         New module 'ulc-grapheme-breaks'.
12673         * modules/unigbrk/ulc-grapheme-breaks: New file.
12674         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
12675         * m4/locale-ar.m4: New file.
12676         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
12677         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
12678         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
12679
12680 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12681
12682         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
12683         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
12684         modified how this file was generated before I initially submitted
12685         the module, but failed to regenerate it.  This meant that several
12686         of the level2 entries were wrong.
12687         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
12688         Remove the division-by-2 that is folded into the table now that
12689         gbrkprop.h has been regenerated properly.  Now -1 entries are
12690         handled correctly.
12691
12692         New module 'unigbrk/uc-gbrk-prop-tests'.
12693         * modules/unigbrk/uc-gbrk-prop-tests: New file.
12694         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
12695         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
12696         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
12697
12698 2011-01-01  Bruno Haible  <bruno@clisp.org>
12699
12700         Avoid use of hexadecimal escapes.
12701         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
12702         instead of hexadecimal escapes.
12703
12704 2011-01-01  Jim Meyering  <meyering@redhat.com>
12705
12706         maint: new rule to update copyright year ranges
12707         * Makefile (update-copyright): New rule.
12708
12709         maint: indent with TABs in Makefile
12710         * Makefile: Expand leading sequences of spaces to TABs
12711
12712         version-etc: update the copyright year it reports
12713         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
12714
12715 2010-12-31  Bruno Haible  <bruno@clisp.org>
12716
12717         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
12718         * lib/isfinite.c (zerof, zerod, zerol): New variables.
12719         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
12720         zero.
12721
12722 2010-12-31  Bruno Haible  <bruno@clisp.org>
12723
12724         pwrite: Work around HP-UX 11.11 bug.
12725         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
12726         works and set REPLACE_PWRITE if not.
12727         * lib/pwrite.c (pwrite): Add an implementation that uses the system
12728         function.
12729         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
12730
12731 2010-12-31  Bruno Haible  <bruno@clisp.org>
12732
12733         pread: Work around HP-UX 11 bugs.
12734         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
12735         and set REPLACE_PREAD if not.
12736         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
12737
12738 2010-12-31  Eric Blake  <eblake@redhat.com>
12739
12740         nl_langinfo: fix YESEXPR on Irix 6.5
12741         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
12742         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
12743         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
12744         it.
12745
12746 2010-12-31  Bruno Haible  <bruno@clisp.org>
12747
12748         iconv: Document HP-UX 11 bug.
12749         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
12750
12751 2010-12-31  Bruno Haible  <bruno@clisp.org>
12752
12753         ldexpl: Fix link error on HP-UX 11.
12754         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
12755         LDEXPL_LIBM, using $ISNANL_LIBM.
12756
12757 2010-12-31  Eric Blake  <eblake@redhat.com>
12758
12759         ftello: avoid compilation failure with SunStudio c89
12760         * lib/ftello.c (ftello): Use lseek, not llseek.
12761
12762         tests: avoid failing coreutils tests on cygwin
12763         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
12764         (create_exe_shims_): Return 0 when skipping.
12765
12766 2010-12-31  Bruno Haible  <bruno@clisp.org>
12767
12768         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
12769         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
12770
12771 2010-12-31  Bruno Haible  <bruno@clisp.org>
12772
12773         waitpid: Fix link error in C++ mode.
12774         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
12775
12776 2010-12-31  Bruno Haible  <bruno@clisp.org>
12777
12778         isnan: Use GCC built-ins when possible.
12779         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
12780         __builtin_isnan.
12781         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
12782         (isnan): Define using GCC built-ins for GCC >= 4.0.
12783
12784 2010-12-31  Bruno Haible  <bruno@clisp.org>
12785
12786         isnand: Fix mistake.
12787         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
12788         __builtin_isnand.
12789
12790 2010-12-31  Bruno Haible  <bruno@clisp.org>
12791
12792         open: Avoid C++ error on HP-UX 11.
12793         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
12794
12795 2010-12-31  Bruno Haible  <bruno@clisp.org>
12796
12797         time_r: Add missing declarations on HP-UX 11.
12798         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
12799         instead of HAVE_LOCALTIME_R.
12800         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
12801         HAVE_LOCALTIME_R always.
12802         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
12803         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
12804         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
12805         HAVE_LOCALTIME_R.
12806         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
12807         * doc/posix-functions/localtime_r.texi: Likewise.
12808
12809 2010-12-29  Eric Blake  <eblake@redhat.com>
12810
12811         mountlist: tweak previous commit
12812         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
12813         Reported by Paul Eggert.
12814
12815         mountlist: fix local drive detection on cygwin
12816         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
12817         that works for cygwin.
12818
12819 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
12820
12821         ftoastr, snprintf: ftoastr + snprintf module
12822         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
12823         since the snprintf module now should be good enough here.
12824         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
12825         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
12826         and gl_MODULE_INDICATOR([snprintf]), but the former enables
12827         GNULIB_SNPRINTF only for the test directory, and the latter
12828         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
12829         seems to suffice by itself.
12830
12831 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12832
12833         alloca: one step towards thread-safety
12834         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
12835         need for a static variable.  All callers changed.  This does not
12836         make the alloca replacement thread-safe, but it's one step.
12837
12838         tests: minor indenting change
12839         * tests/init.sh: Sync from coreutils housekeeping patch
12840         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
12841         to keep lines within 80 columns.
12842
12843 2010-12-28  Jim Meyering  <meyering@redhat.com>
12844
12845         regex: don't infloop on persistent failing calloc
12846         * lib/regexec.c (build_trtable): Return failure indication upon
12847         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
12848         In glibc, this was fixed for version 2.13:
12849         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
12850
12851 2010-12-28  Bruno Haible  <bruno@clisp.org>
12852             Paul Eggert <eggert@cs.ucla.edu>
12853
12854         linkat: Make implementation robust against system behaviour variations.
12855         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
12856         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
12857         way, and to -2 if it needs a generic runtime test.
12858         * lib/linkat.c (solaris_optimized_link_immediate,
12859         solaris_optimized_link_follow): New functions.
12860         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
12861         (check_same_link): Use it.
12862
12863 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
12864
12865         New module 'unigbrk/base'.
12866         * modules/unigbrk/base: New file.
12867         * lib/unigbrk.in.h: New file.
12868
12869         New module 'unigbrk/uc-gbrk-prop'.
12870         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
12871         * modules/unigbrk/uc-gbrk-prop: New file.
12872         * lib/unigbrk/gbrkprop.h: New file.
12873         * lib/unigbrk/uc-gbrk-prop.c: New file.
12874
12875         New module 'unigbrk/uc-is-grapheme-break'.
12876         * modules/unigbrk/uc-is-grapheme-break: New file.
12877         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
12878         * lib/unigbrk/uc-is-grapheme-break.c: New file.
12879         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
12880         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
12881         * tests/unigbrk/GraphemeBreakTest.txt: New file.
12882
12883         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
12884
12885 2010-12-27  Bruno Haible  <bruno@clisp.org>
12886
12887         linkat test: Avoid failure on Solaris 11 2010-11.
12888         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
12889
12890 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12891
12892         utimens: work around glibc rounding bug on more platforms
12893         * lib/utimens.c (fdutimens): Work around rounding bug even if
12894         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
12895         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
12896
12897 2010-12-27  Bruno Haible  <bruno@clisp.org>
12898
12899         select tests: Improve comments.
12900         * tests/test-select.c (do_select): Add comments.
12901
12902 2010-12-27  Bruno Haible  <bruno@clisp.org>
12903
12904         select tests: Safer way of handling timeout.
12905         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
12906         at every invocation.
12907
12908 2010-12-27  Bruno Haible  <bruno@clisp.org>
12909
12910         select tests: Use 'bool' where appropriate.
12911         * tests/test-select.c (connect_to_socket): Change argument type to
12912         'bool'.
12913
12914 2010-12-27  Bruno Haible  <bruno@clisp.org>
12915
12916         select tests: Use existing modules.
12917         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
12918         (configure.ac): Don't test for unistd.h.
12919         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
12920         declared in <unistd.h>.
12921
12922 2010-12-27  Bruno Haible  <bruno@clisp.org>
12923
12924         mbrtowc: Work around a Solaris 7 bug.
12925         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
12926         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
12927         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
12928         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
12929         MBRTOWC_NULL_ARG1_BUG.
12930         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
12931         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
12932         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
12933         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
12934
12935 2010-12-27  Jim Meyering  <meyering@redhat.com>
12936
12937         read-file.c: tweak syntax
12938         * lib/read-file.c (fread_file): Remove space after "*" in function
12939         definitions.
12940
12941 2010-12-27  Bruno Haible  <bruno@clisp.org>
12942
12943         times test: Avoid gcc warnings on OSF/1.
12944         * tests/test-times.c (main): Cast printf arguments from clock_t to
12945         'long int'.
12946
12947 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12948
12949         utimens: work around glibc rounding bug on older Linux kernels
12950         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
12951         on Linux with a glibc whose utimes might not work, then work
12952         around a longstanding glibc bug involving rounding rather than
12953         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
12954         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
12955
12956 2010-12-26  Bruno Haible  <bruno@clisp.org>
12957
12958         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
12959         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
12960         _GL_CXXALIAS_SYS.
12961         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12962
12963 2010-12-26  Bruno Haible  <bruno@clisp.org>
12964
12965         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
12966         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
12967         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
12968         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
12969         looking for the declaration.
12970         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
12971         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
12972         problem.
12973         * doc/posix-functions/inet_pton.texi: Likewise.
12974
12975 2010-12-26  Bruno Haible  <bruno@clisp.org>
12976
12977         arpa_inet: Use the common idioms with C++ support.
12978         * lib/arpa_inet.in.h: Include c++defs.h.
12979         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
12980         support.
12981         * modules/arpa_inet (Depends-on): Add c++defs.
12982         (Makefile.am): Substitute the contents of c++defs.h.
12983         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
12984         * modules/arpa_inet-c++-tests: New file.
12985         * tests/test-arpa_inet-c++.cc: New file.
12986
12987 2010-12-25  Bruno Haible  <bruno@clisp.org>
12988
12989         Fix more C++ link errors on Solaris 8.
12990         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
12991         $(LIB_EACCESS).
12992         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
12993         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
12994         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
12995         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
12996         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
12997
12998 2010-12-25  Bruno Haible  <bruno@clisp.org>
12999
13000         printf-posix: Fix link error when a non-GCC compiler is used.
13001         * lib/stdio.in.h (printf): When not using GCC, override printf
13002         correctly.
13003         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13004
13005 2010-12-25  Bruno Haible  <bruno@clisp.org>
13006
13007         strerror_r-posix: Update doc.
13008         * doc/posix-functions/strerror_r.texi: Update doc about the return
13009         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
13010
13011 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13012
13013         utimens: simplify the logic of the previous change
13014         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
13015         This should not affect whether the test succeeds or fails.
13016
13017         utimens: configure better on hosts with NFS clock skew
13018         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
13019         uses the clock of the local host.  It might use the clock of the
13020         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
13021         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13022
13023 2010-12-25  Bruno Haible  <bruno@clisp.org>
13024
13025         ptsname test: Avoid failure on Solaris.
13026         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
13027         open a pseudo-terminal; don't use BSD-style ptys.
13028         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
13029
13030 2010-12-25  Bruno Haible  <bruno@clisp.org>
13031
13032         ptsname: Avoid ERANGE failure on some systems.
13033         * lib/ptsname.c (buffer): Increase size.
13034
13035 2010-12-25  Bruno Haible  <bruno@clisp.org>
13036
13037         rename, renameat: Avoid test failures at NFS mounted locations.
13038         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
13039         so that subsequent mkdir calls succeed.
13040
13041 2010-12-25  Bruno Haible  <bruno@clisp.org>
13042
13043         iswblank: Fix C++ link error on Solaris 8.
13044         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
13045         _GL_FUNCDECL_SYS.
13046
13047 2010-12-25  Bruno Haible  <bruno@clisp.org>
13048
13049         unistd: Fix C++ link error on Solaris 8.
13050         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
13051
13052 2010-12-25  Bruno Haible  <bruno@clisp.org>
13053
13054         readlink doc: Mention an old glibc bug.
13055         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
13056
13057 2010-12-25  Bruno Haible  <bruno@clisp.org>
13058
13059         fcntl-h: Fix for use of C++ on glibc systems.
13060         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13061         also on glibc systems in C++ mode.
13062         Reported by Gary V. Vaughan <gary@gnu.org>.
13063
13064 2010-12-25  Bruno Haible  <bruno@clisp.org>
13065
13066         roundl-ieee: Make it work on OSF/1 5.1 with cc.
13067         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
13068
13069 2010-12-25  Bruno Haible  <bruno@clisp.org>
13070
13071         truncl-ieee: Make it work on OSF/1 5.1 with cc.
13072         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
13073         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
13074         test whether truncl works according to ISO C 99 with IEC 60559.
13075         * m4/truncl-ieee.m4: New file.
13076         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
13077         m4/signbit.m4.
13078         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
13079
13080 2010-12-25  Bruno Haible  <bruno@clisp.org>
13081
13082         ceill-ieee: Make it work on OSF/1 5.1 with cc.
13083         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
13084         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
13085         test whether ceill works according to ISO C 99 with IEC 60559.
13086         * m4/ceill-ieee.m4: New file.
13087         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
13088         m4/signbit.m4.
13089         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
13090
13091 2010-12-25  Bruno Haible  <bruno@clisp.org>
13092
13093         Ensure all prerequisites of <wchar.h> are included.
13094         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
13095         before <wchar.h>.
13096         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13097         gl_MBRLEN_NUL_RETVAL): Likewise.
13098         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13099         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
13100         AC_FUNC_MBRTOWC): Likewise.
13101         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13102         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13103         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13104         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13105         Likewise.
13106         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13107         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
13108         (gl_WCHAR_H): Improve comments.
13109         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13110
13111 2010-12-25  Bruno Haible  <bruno@clisp.org>
13112
13113         strtok_r: Fix C syntax error in autoconf macro.
13114         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
13115         characters in test program.
13116
13117 2010-12-24  Bruno Haible  <bruno@clisp.org>
13118
13119         ceil, trunc, round: Fix gcc warnings.
13120         * lib/ceil.c (MIN): Undefine before redefining.
13121         * lib/trunc.c (MIN): Likewise.
13122         * lib/round.c (MIN): Likewise.
13123         Include <math.h> first.
13124
13125 2010-12-24  Bruno Haible  <bruno@clisp.org>
13126
13127         select tests: Avoid failures on OSF/1 5.1.
13128         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
13129         failure of closing the last socket; it may fail with ECONNRESET.
13130
13131 2010-12-24  Eric Blake  <eblake@redhat.com>
13132
13133         stdint: avoid HP-UX 10.20 preprocessor bug
13134         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
13135         than #if.
13136         * tests/test-floor2.c (main): Likewise.
13137         Reported by Peter O'Gorman.
13138
13139         pipe: make obsoletion transition easier
13140         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
13141         * modules/pipe (Files): Include revived file.
13142         (Include): Drop reference, to mirror getdate's behavior.
13143
13144 2010-12-24  Bruno Haible  <bruno@clisp.org>
13145
13146         sys_socket: Hide mismatch of declarations on NonStop Kernel.
13147         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
13148         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
13149         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13150
13151 2010-12-24  Bruno Haible  <bruno@clisp.org>
13152
13153         gethostname: Ensure declaration on NonStop Kernel.
13154         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
13155         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13156
13157 2010-12-24  Bruno Haible  <bruno@clisp.org>
13158
13159         sys_select: Ensure all necessary types on NonStop Kernel.
13160         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
13161         include <sys/time.h>.
13162         * doc/posix-headers/sys_select.texi: Mention that it's missing on
13163         NonStop Kernel.
13164         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13165
13166 2010-12-24  Bruno Haible  <bruno@clisp.org>
13167
13168         sys_select: Remove unneeded include.
13169         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
13170         have <sys/select.h>.
13171
13172 2010-12-24  Bruno Haible  <bruno@clisp.org>
13173
13174         gethostname: Provide a fallback for HOST_NAME_MAX.
13175         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
13176         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
13177         instead.
13178         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13179
13180 2010-12-24  Bruno Haible  <bruno@clisp.org>
13181
13182         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
13183         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
13184         (SA_RESTART): Likewise.
13185         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13186
13187 2010-12-24  Bruno Haible  <bruno@clisp.org>
13188
13189         signal: Define NSIG.
13190         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
13191         * tests/test-signal.c (nsig): New variable.
13192         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13193
13194 2010-12-24  Bruno Haible  <bruno@clisp.org>
13195
13196         rename, renameat: Avoid test failures on OSF/1 5.1.
13197         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
13198         alternative error codes.
13199         * tests/test-renameat.c (main): Likewise.
13200
13201 2010-12-24  Bruno Haible  <bruno@clisp.org>
13202
13203         *printf: Detect large precisions bug on Solaris 10/SPARC.
13204         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
13205         by Paul Eggert.
13206         * tests/test-snprintf-posix.h (test_function): Add this test code here
13207         too.
13208         * tests/test-sprintf-posix.h (test_function): Likewise.
13209         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13210         * tests/test-vasprintf-posix.c (test_function): Likewise.
13211         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
13212         around by gnulib.
13213         * doc/posix-functions/printf.texi: Likewise.
13214         * doc/posix-functions/snprintf.texi: Likewise.
13215         * doc/posix-functions/sprintf.texi: Likewise.
13216         * doc/posix-functions/vfprintf.texi: Likewise.
13217         * doc/posix-functions/vprintf.texi: Likewise.
13218         * doc/posix-functions/vsnprintf.texi: Likewise.
13219         * doc/posix-functions/vsprintf.texi: Likewise.
13220         * doc/posix-functions/dprintf.texi: Undo last commit.
13221         * doc/posix-functions/vdprintf.texi: Likewise.
13222
13223 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13224
13225         tests: port test-fdutimensat.c to Solaris 8
13226         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
13227         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
13228         On Solaris 8, it fails with errno == ENOSYS, because there is no
13229         futimens (so it can't use the fd), and there is no lutimens (so it
13230         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
13231
13232         vsnprintf: make more consistent with snprintf; doc fixes
13233
13234         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
13235         the byte count return problem was promoted from the snprintf-posix
13236         to the snprintf module.
13237         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13238         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
13239         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
13240         * tests/test-snprintf.c (main): Check the byte count returned.
13241         * tests/test-vsnprintf.c (main): Likewise.
13242
13243 2010-12-23  Eric Blake  <eblake@redhat.com>
13244
13245         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
13246         * modules/sigpipe (License): Relax license.
13247
13248 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13249
13250         doc: document Solaris printf bug with large float precisions
13251         * doc/posix-functions/dprintf.texi (dprintf):
13252         * doc/posix-functions/fprintf.texi (fprintf):
13253         * doc/posix-functions/printf.texi (printf):
13254         * doc/posix-functions/snprintf.texi (snprintf):
13255         * doc/posix-functions/sprintf.texi (sprintf):
13256         * doc/posix-functions/vdprintf.texi (vdprintf):
13257         * doc/posix-functions/vfprintf.texi (vfprintf):
13258         * doc/posix-functions/vprintf.texi (vprintf):
13259         * doc/posix-functions/vsnprintf.texi (vsnprintf):
13260         * doc/posix-functions/vsprintf.texi (vsprintf):
13261         Mention that these functions mishandle large floating point
13262         precisions on Solaris 10.  The same bug is also present in Solaris
13263         8, and I assume earlier.  This causes "cd gnulib-tests; make
13264         check" to fail on Solaris 8 (and I assume, later) when building
13265         the latest coreutils, in test-vasprintf-posix's call to
13266         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
13267         the wide flavors (e.g., wprintf) so this patch just updates the
13268         documentation for the narrow ones.
13269
13270         test-posixtm.c: add two tests
13271         * tests/test-posixtm.c: Add two tests, to highlight the
13272         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
13273         around this bug; this is merely to document it.
13274
13275 2010-12-22  Bruno Haible  <bruno@clisp.org>
13276
13277         getlogin_r: Work around portability problem on OSF/1.
13278         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
13279         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
13280         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
13281         test for a truncated result.
13282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
13283         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
13284         * modules/getlogin_r (Depends-on): Add memchr.
13285         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
13286
13287 2010-12-22  Bruno Haible  <bruno@clisp.org>
13288
13289         ptsname: Avoid test failure on OSF/1 5.1.
13290         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
13291         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
13292         (same_slave): New function.
13293         (main): Use it to compare ptsname's result with the expected file name.
13294
13295 2010-12-22  Bruno Haible  <bruno@clisp.org>
13296
13297         Port extended stdio modules to HP NonStop Kernel.
13298         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
13299         macros.
13300         * lib/fbufmode.c: Update comments.
13301         * lib/fflush.c: Likewise.
13302         * lib/fpurge.c: Likewise.
13303         * lib/freadable.c: Likewise.
13304         * lib/freadahead.c: Likewise.
13305         * lib/freading.c: Likewise.
13306         * lib/freadptr.c: Likewise.
13307         * lib/freadseek.c: Likewise.
13308         * lib/fseeko.c: Likewise.
13309         * lib/fseterr.c: Likewise.
13310         * lib/fwritable.c: Likewise.
13311         * lib/fwriting.c: Likewise.
13312         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13313
13314 2010-12-22  Bruno Haible  <bruno@clisp.org>
13315
13316         ttyname_r: Work around bug on OSF/1 5.1.
13317         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
13318         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
13319         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
13320         present.
13321         * lib/ttyname_r.c (ttyname_r): Update comments.
13322
13323 2010-12-22  Bruno Haible  <bruno@clisp.org>
13324
13325         round: Implement result sign according to IEEE 754.
13326         * lib/round.c (MIN, MINUS_ZERO): New macros.
13327         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
13328         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
13329         * tests/test-round-ieee.c (main): Likewise.
13330         * tests/test-roundl-ieee.c (main): Likewise.
13331
13332         trunc: Implement result sign according to IEEE 754.
13333         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
13334         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
13335         * tests/test-trunc2.c: Include minus-zero.h.
13336         (MINUS_ZERO): New macro.
13337         (trunc_reference): Keep in sync with lib/trunc.c.
13338         * tests/test-truncf2.c: Include minus-zero.h.
13339         (MINUS_ZERO): New macro.
13340         (truncf_reference): Keep in sync with lib/trunc.c.
13341         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
13342         * tests/test-trunc-ieee.c (main): Likewise.
13343         * tests/test-truncl-ieee.c (main): Likewise.
13344
13345         ceil: Implement result sign according to IEEE 754.
13346         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
13347         (FUNC): Return -0.0 for -1 < x < 0.
13348         * tests/test-ceil2.c: Include minus-zero.h.
13349         (MINUS_ZERO): New macro.
13350         (ceil_reference): Keep in sync with lib/ceil.c.
13351         * tests/test-ceilf2.c: Include minus-zero.h.
13352         (MINUS_ZERO): New macro.
13353         (ceilf_reference): Keep in sync with lib/ceil.c.
13354         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
13355         * tests/test-ceil-ieee.c (main): Likewise.
13356         * tests/test-ceill-ieee.c (main): Likewise.
13357
13358         floor: Implement result sign according to IEEE 754.
13359         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
13360         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
13361         * tests/test-floorf2.c (floorf_reference): Likewise.
13362         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
13363         * tests/test-floor-ieee.c (main): Likewise.
13364         * tests/test-floorl-ieee.c (main): Likewise.
13365
13366 2010-12-22  Bruno Haible  <bruno@clisp.org>
13367
13368         getaddrinfo: Update doc.
13369         * doc/posix-functions/gai_strerror.texi: Return type is also different
13370         on AIX and HP-UX.
13371
13372 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13373
13374         getaddrinfo, inet_ntop: Update doc for Solaris.
13375         * doc/posix-functions/gai_strerror.texi: Return type is also an
13376         issue on Solaris 9 and earlier.
13377         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
13378         on Solaris 10 and earlier.
13379
13380 2010-12-21  Bruno Haible  <bruno@clisp.org>
13381
13382         New module 'roundl-ieee'.
13383         * modules/roundl-ieee: New file.
13384         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
13385         test whether roundl works according to ISO C 99 with IEC 60559.
13386         * m4/roundl-ieee.m4: New file.
13387         * modules/roundl-ieee-tests: New file.
13388         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
13389         * tests/test-roundl.c (main): Remove signbit tests.
13390         * modules/roundl-tests (Depends-on): Remove signbit.
13391         * doc/posix-functions/roundl.texi: Mention the new module.
13392
13393 2010-12-21  Bruno Haible  <bruno@clisp.org>
13394
13395         New module 'truncl-ieee'.
13396         * modules/truncl-ieee: New file.
13397         * modules/truncl-ieee-tests: New file.
13398         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
13399         * tests/test-truncl.c (main): Remove signbit tests.
13400         * modules/truncl-tests (Depends-on): Remove signbit.
13401         * doc/posix-functions/truncl.texi: Mention the new module.
13402
13403 2010-12-21  Bruno Haible  <bruno@clisp.org>
13404
13405         New module 'ceill-ieee'.
13406         * modules/ceill-ieee: New file.
13407         * modules/ceill-ieee-tests: New file.
13408         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
13409         * tests/test-ceill.c (main): Remove signbit tests.
13410         * modules/ceill-tests (Depends-on): Remove signbit.
13411         * doc/posix-functions/ceill.texi: Mention the new module.
13412
13413 2010-12-21  Bruno Haible  <bruno@clisp.org>
13414
13415         New module 'floorl-ieee'.
13416         * modules/floorl-ieee: New file.
13417         * modules/floorl-ieee-tests: New file.
13418         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
13419         * tests/test-floorl.c (main): Remove signbit tests.
13420         * modules/floorl-tests (Depends-on): Remove signbit.
13421         * doc/posix-functions/floorl.texi: Mention the new module.
13422
13423 2010-12-21  Bruno Haible  <bruno@clisp.org>
13424
13425         New module 'round-ieee'.
13426         * modules/round-ieee: New file.
13427         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
13428         whether round works according to ISO C 99 with IEC 60559.
13429         * m4/round-ieee.m4: New file.
13430         * modules/round-ieee-tests: New file.
13431         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
13432         * tests/test-round1.c (main): Remove signbit tests.
13433         * modules/round-tests (Depends-on): Remove 'signbit'.
13434         * doc/posix-functions/round.texi: Mention the new module.
13435
13436 2010-12-21  Bruno Haible  <bruno@clisp.org>
13437
13438         New module 'trunc-ieee'.
13439         * modules/trunc-ieee: New file.
13440         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
13441         whether trunc works according to ISO C 99 with IEC 60559.
13442         * m4/trunc-ieee.m4: New file.
13443         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
13444         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
13445         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
13446         * modules/trunc-ieee-tests: New file.
13447         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
13448         * tests/test-trunc1.c (main): Remove signbit tests.
13449         * modules/trunc-tests (Depends-on): Remove 'signbit'.
13450         * doc/posix-functions/trunc.texi: Mention the new module.
13451
13452 2010-12-21  Bruno Haible  <bruno@clisp.org>
13453
13454         New module 'ceil-ieee'.
13455         * modules/ceil-ieee: New file.
13456         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
13457         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
13458         ISO C 99 with IEC 60559.
13459         * m4/ceil-ieee.m4: New file.
13460         * modules/ceil (Files): Add lib/ceil.c.
13461         (Depends-on): Add 'float'.
13462         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13463         * lib/math.in.h (ceil): New declaration.
13464         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
13465         REPLACE_CEIL.
13466         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
13467         * modules/ceil-ieee-tests: New file.
13468         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
13469         * tests/test-math-c++.cc: Check the signature of 'ceil'.
13470         * doc/posix-functions/ceil.texi: Mention the new module.
13471
13472 2010-12-21  Bruno Haible  <bruno@clisp.org>
13473
13474         New module 'floor-ieee'.
13475         * modules/floor-ieee: New file.
13476         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
13477         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
13478         ISO C 99 with IEC 60559.
13479         * m4/floor-ieee.m4: New file.
13480         * modules/floor (Files): Add lib/floor.c.
13481         (Depends-on): Add 'float'.
13482         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13483         * lib/math.in.h (floor): New declaration.
13484         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
13485         REPLACE_FLOOR.
13486         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
13487         * modules/floor-ieee-tests: New file.
13488         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
13489         * tests/test-math-c++.cc: Check the signature of 'floor'.
13490         * doc/posix-functions/floor.texi: Mention the new module.
13491
13492 2010-12-21  Bruno Haible  <bruno@clisp.org>
13493
13494         New module 'roundf-ieee'.
13495         * modules/roundf-ieee: New file.
13496         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
13497         test whether roundf works according to ISO C 99 with IEC 60559.
13498         * m4/roundf-ieee.m4: New file.
13499         * modules/roundf-ieee-tests: New file.
13500         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
13501         * tests/test-roundf1.c (main): Remove signbit tests.
13502         * modules/roundf-tests (Depends-on): Remove 'signbit'.
13503         * doc/posix-functions/roundf.texi: Mention the new module.
13504
13505 2010-12-21  Bruno Haible  <bruno@clisp.org>
13506
13507         New module 'truncf-ieee'.
13508         * modules/truncf-ieee: New file.
13509         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
13510         test whether truncf works according to ISO C 99 with IEC 60559.
13511         * m4/truncf-ieee.m4: New file.
13512         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
13513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
13514         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
13515         * modules/truncf-ieee-tests: New file.
13516         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
13517         * tests/test-truncf1.c (main): Remove signbit tests.
13518         * modules/truncf-tests (Depends-on): Remove 'signbit'.
13519         * doc/posix-functions/truncf.texi: Mention the new module.
13520
13521 2010-12-21  Bruno Haible  <bruno@clisp.org>
13522
13523         New module 'ceilf-ieee'.
13524         * modules/ceilf-ieee: New file.
13525         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
13526         test whether ceilf works according to ISO C 99 with IEC 60559.
13527         * m4/ceilf-ieee.m4: New file.
13528         * modules/ceilf-ieee-tests: New file.
13529         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
13530         * tests/test-ceilf1.c (main): Remove signbit tests.
13531         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
13532         * doc/posix-functions/ceilf.texi: Mention the new module.
13533
13534 2010-12-21  Bruno Haible  <bruno@clisp.org>
13535
13536         New module 'floorf-ieee'.
13537         * modules/floorf-ieee: New file.
13538         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
13539         test whether floorf works according to ISO C 99 with IEC 60559.
13540         * m4/floorf-ieee.m4: New file.
13541         * modules/floorf-ieee-tests: New file.
13542         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
13543         * tests/test-floorf1.c (main): Remove signbit tests.
13544         * modules/floorf-tests (Depends-on): Remove 'signbit'.
13545         * doc/posix-functions/floorf.texi: Mention the new module.
13546
13547 2010-12-21  Bruno Haible  <bruno@clisp.org>
13548
13549         Support for minus zero in autoconf macros.
13550         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
13551         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
13552         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
13553         * tests/minus-zero.h: Update comments.
13554
13555 2010-12-21  Bruno Haible  <bruno@clisp.org>
13556
13557         Tests for module 'ceil'.
13558         * modules/ceil-tests: New file.
13559         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
13560         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
13561
13562 2010-12-21  Bruno Haible  <bruno@clisp.org>
13563
13564         Tests for module 'floor'.
13565         * modules/floor-tests: New file.
13566         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
13567         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
13568
13569 2010-12-21  Bruno Haible  <bruno@clisp.org>
13570
13571         math: Fix indentation.
13572         * lib/math.in.h (floorf): Fix indentation.
13573
13574 2010-12-21  Bruno Haible  <bruno@clisp.org>
13575
13576         Fix cross-compilation guesses on Solaris.
13577         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
13578         not match "solaris2.10".
13579         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13580         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
13581         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
13582
13583 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
13584
13585         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
13586         This fixes a problem observed with the latest coreutils snapshot
13587         that caused a test to fail on Solaris 8.  src/csplit.c's call
13588         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
13589         earlier, instead of returning the number of bytes that would have
13590         been generated; this causes csplit to incorrectly report memory
13591         exhaustion.
13592         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
13593         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
13594         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
13595         comments to match.
13596         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
13597         Fix typo in matching older versions of Solaris: "solaris2.10"
13598         is matched by the shell pattern "solaris2.[0-9]*".  This matters
13599         only for guessing while cross-compiling.
13600         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
13601
13602 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13603
13604         ftoastr: fix comment again
13605         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13606         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
13607         Also, simplify example a bit by using flags = 0.
13608
13609 2010-12-20  Bruno Haible  <bruno@clisp.org>
13610
13611         round*, trunc*: Update documentation regarding glibc.
13612         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
13613         * doc/posix-functions/round.texi: Likewise.
13614         * doc/posix-functions/roundl.texi: Likewise.
13615         * doc/posix-functions/truncf.texi: Likewise.
13616         * doc/posix-functions/trunc.texi: Likewise.
13617         * doc/posix-functions/truncl.texi: Likewise.
13618
13619 2010-12-20  Bruno Haible  <bruno@clisp.org>
13620
13621         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
13622         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
13623         * doc/posix-functions/round.texi: Likewise.
13624         * doc/posix-functions/roundl.texi: Likewise.
13625
13626 2010-12-20  Bruno Haible  <bruno@clisp.org>
13627
13628         ttyname_r: Add missing declaration on HP-UX 11.
13629         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
13630         HAVE_TTYNAME_R.
13631         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
13632         declared. Set HAVE_TTYNAME_R always.
13633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13634         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
13635         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
13636         HAVE_TTYNAME_R.
13637         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
13638
13639 2010-12-20  Bruno Haible  <bruno@clisp.org>
13640
13641         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
13642         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
13643         * doc/posix-functions/getlogin_r.texi: Likewise.
13644         * tests/test-getlogin.c: Include <errno.h>.
13645         (main): Avoid test failure on HP-UX 11.11.
13646         * tests/test-getlogin_r.c (main): Likewise.
13647
13648 2010-12-20  Bruno Haible  <bruno@clisp.org>
13649
13650         getlogin_r: Add missing declaration on HP-UX 11.
13651         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
13652         declared also when it exists as a function.
13653         * doc/posix-functions/getlogin_r.texi: Document this workaround.
13654
13655 2010-12-20  Bruno Haible  <bruno@clisp.org>
13656
13657         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
13658         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
13659         through wcrtomb.
13660
13661 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
13662
13663         ftoastr: fix comment
13664         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13665         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
13666
13667 2010-12-19  Bruno Haible  <bruno@clisp.org>
13668
13669         isnan: Ensure it is a macro.
13670         * lib/math.in.h (isnan): Define as a macro if not already a macro.
13671         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
13672         Solaris.
13673
13674 2010-12-19  Bruno Haible  <bruno@clisp.org>
13675
13676         ldexpl test: Fix link error on OSF/1 5.1.
13677         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
13678
13679 2010-12-19  Bruno Haible  <bruno@clisp.org>
13680
13681         wctype: Make it work in C++ mode on OSF/1 5.1.
13682         * lib/wctype.in.h (iswblank): Declare but not define here.
13683         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
13684         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
13685         * modules/wctype (Files): Add lib/iswblank.c.
13686
13687 2010-12-19  Bruno Haible  <bruno@clisp.org>
13688
13689         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
13690         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
13691         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
13692
13693 2010-12-19  Bruno Haible  <bruno@clisp.org>
13694
13695         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
13696         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
13697         _POSIX_PII_SOCKET.
13698         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
13699         * doc/posix-functions/recvfrom.texi: Likewise.
13700         * doc/posix-functions/send.texi: Likewise.
13701         * doc/posix-functions/sendto.texi: Likewise.
13702
13703 2010-12-19  Bruno Haible  <bruno@clisp.org>
13704
13705         tcgetsid: Add missing declaration on OSF/1 5.1.
13706         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
13707         HAVE_TCGETSID.
13708         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
13709         Don't set HAVE_TCGETSID.
13710         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
13711         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
13712         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
13713         HAVE_TCGETSID.
13714         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
13715
13716 2010-12-19  Bruno Haible  <bruno@clisp.org>
13717
13718         stdio: Fix problem with popen() declaration on OSF/1 5.1.
13719         * lib/stdio.in.h: During the include_next statement, let recursive
13720         includes of this file include only the system header file.
13721
13722 2010-12-19  Bruno Haible  <bruno@clisp.org>
13723
13724         iconv_open: Fix regression from 2010-12-04.
13725         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
13726         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
13727
13728 2010-12-19  Bruno Haible  <bruno@clisp.org>
13729
13730         stdbool test: Avoid a gcc warning.
13731         * tests/test-stdbool.c (main): Fail if e1 is false.
13732         Reported by Jim Meyering.
13733
13734 2010-12-19  Jim Meyering  <meyering@redhat.com>
13735
13736         setenv: restore to working order
13737         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
13738         mistakenly removed.
13739         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
13740         HAVE_SETENV.
13741         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
13742         HAVE_SETENV.
13743
13744 2010-12-19  Bruno Haible  <bruno@clisp.org>
13745
13746         Document some different function declarations on OSF/1 5.1.
13747         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
13748         * doc/posix-functions/inet_ntop.texi: Likewise.
13749         * doc/posix-functions/gethostname.texi: Likewise.
13750         * lib/unistd.in.h (gethostname): Update comment.
13751
13752 2010-12-19  Bruno Haible  <bruno@clisp.org>
13753
13754         doc: Mention vasprintf-posix module.
13755         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
13756         the 'vasprintf-posix' module.
13757         * doc/glibc-functions/vasprintf.texi: Likewise.
13758
13759 2010-12-19  Bruno Haible  <bruno@clisp.org>
13760
13761         unsetenv: Add missing declaration on OSF/1 5.1.
13762         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
13763         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
13764         Don't set HAVE_UNSETENV. In the test program, set _BSD.
13765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
13766         not HAVE_UNSETENV.
13767         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
13768         HAVE_UNSETENV.
13769         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
13770
13771 2010-12-19  Bruno Haible  <bruno@clisp.org>
13772
13773         setenv: Add missing declaration on OSF/1 5.1.
13774         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
13775         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
13776         declared. Don't set HAVE_SETENV.
13777         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
13778         not HAVE_SETENV.
13779         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
13780         HAVE_SETENV.
13781         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
13782
13783 2010-12-19  Bruno Haible  <bruno@clisp.org>
13784
13785         nl_langinfo tests: Avoid gcc warning.
13786         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
13787
13788 2010-12-19  Bruno Haible  <bruno@clisp.org>
13789
13790         mknod: Avoid error in C++ mode on OSF/1 with GCC.
13791         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
13792         _GL_CXXALIAS_SYS.
13793
13794 2010-12-19  Bruno Haible  <bruno@clisp.org>
13795
13796         stdbool: Relax test.
13797         * tests/test-stdbool.c (e): Don't require that casts from a variable's
13798         address to 'bool' work in static initializer, for compilers other than
13799         GCC.
13800
13801 2010-12-19  Bruno Haible  <bruno@clisp.org>
13802
13803         ftello: Add missing declaration on OSF/1 5.1.
13804         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
13805         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
13806         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
13807         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
13808         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
13809
13810 2010-12-19  Bruno Haible  <bruno@clisp.org>
13811
13812         fseeko: Add missing declaration on OSF/1 5.1.
13813         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
13814         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
13815         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
13816         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
13817         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
13818
13819 2010-12-19  Bruno Haible  <bruno@clisp.org>
13820
13821         fchdir: Add missing declaration on OSF/1 5.1.
13822         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
13823         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
13824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
13825         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
13826         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
13827
13828 2010-12-19  Bruno Haible  <bruno@clisp.org>
13829
13830         relocatable-prog-wrapper: Separate from relocatable-prog.
13831         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
13832         uninstall-relocwrapper rule here.
13833         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
13834         Reported by Ian Beckwith <ianb@erislabs.net>.
13835
13836 2010-12-19  Bruno Haible  <bruno@clisp.org>
13837
13838         unistr/u8-mbsnlen: Add missing dependency.
13839         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
13840         Reported by Ian Beckwith <ianb@erislabs.net>.
13841
13842 2010-12-19  Bruno Haible  <bruno@clisp.org>
13843
13844         iconv: Make it possible again to use this module without 'iconv-h'.
13845         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
13846         if it is not defined.
13847         Reported by Ian Beckwith <ianb@erislabs.net>.
13848
13849 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13850
13851         acl: port to Solaris 8 when copying from tmpfs to ufs
13852         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
13853         error number.  Problem observed on Solaris 8 with latest
13854         coreutils, with "mv A B", where A is on a tmpfs file system and B
13855         is on a ufs file system.  This caused coreutils' mv/part-symlink
13856         test to fail.
13857
13858         tests: set fail=0 at start
13859         * tests/init.sh (setup_): Move fail=0 initialization here ...
13860         (mktempd_): ... from here, so that tests can rely on fail being
13861         set to 0 initially.  This fixes a problem in coreutils; see:
13862         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
13863
13864 2010-12-18  Bruno Haible  <bruno@clisp.org>
13865
13866         memmem-simple: Stylistic changes.
13867         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
13868         Fix preprocessor directive indentation.
13869
13870 2010-12-15  Pádraig Brady <P@draigBrady.com>
13871
13872         memmem, memmem-simple: reorganize and expand empty needle check
13873         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
13874         functional checks to memmem-simple so that one has a fully functional
13875         memmem by using just this module.
13876         Restrict the performance only check to the memmem module.
13877         Also expand the empty needle check to ensure the correct
13878         pointer is returned, not just a non NULL pointer.
13879         * doc/glibc-functions/memmem.texi: Rearrange the portability
13880         documentation to correlate with the rearranged checks.
13881         Clarify exactly how the memmem and memmem-simple modules
13882         relate to each other.
13883
13884 2010-12-15  Pádraig Brady <P@draigBrady.com>
13885             Bruno Haible  <bruno@clisp.org>
13886
13887         Improve cross-compilation guesses for uClibc.
13888         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
13889         that uClibc does not have the glibc bug.
13890         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
13891         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
13892
13893 2010-12-14  Eric Blake  <eblake@redhat.com>
13894
13895         configmake: provide fallbacks for oldest supported autotools
13896         * m4/configmake.m4: New file.
13897         * modules/configmake (Files): Ship it.
13898         (configure.ac): Use it to guarantee fallbacks.
13899
13900 2010-12-13  Pádraig Brady <P@draigBrady.com>
13901
13902         read-file: Improve handling of large files
13903         * lib/read-file.c (fread_file): Minimize realloc()s
13904         for regular files, and better manage sizes around SIZE_MAX.
13905
13906 2010-12-13  Eric Blake  <eblake@redhat.com>
13907
13908         cloexec, fcntl: relax license
13909         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
13910         consent from all contributors.
13911         * modules/fcntl (License): Likewise.
13912
13913 2010-12-10  Bruno Haible  <bruno@clisp.org>
13914
13915         Tests for module 'pipe-posix'.
13916         * modules/pipe-posix-tests: New file.
13917         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
13918
13919 2010-12-10  Bruno Haible  <bruno@clisp.org>
13920
13921         pipe-posix: Make it work in C++ mode.
13922         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
13923         (pipe): Use common idiom, not a macro definition.
13924         * lib/pipe.c: New file.
13925         * m4/pipe.m4: New file.
13926         * modules/pipe-posix (Description): Enhance.
13927         (Files): Add lib/pipe.c, m4/pipe.m4.
13928         (configure.ac): Invoke gl_FUNC_PIPE.
13929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
13930         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
13931         * tests/test-unistd-c++.cc: Check the signature of pipe.
13932
13933 2010-12-10  Bruno Haible  <bruno@clisp.org>
13934
13935         Rename module 'pipe' to 'spawn-pipe'.
13936         * modules/spawn-pipe: New file, renamed from modules/pipe.
13937         (Files, configure.ac, Makefile.am): Update.
13938         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
13939         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
13940         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
13941         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
13942         "spawn-pipe.h" instead of "pipe.h".
13943         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
13944         to gl_SPAWN_PIPE.
13945         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
13946         (Files, Makefile.am): Update.
13947         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
13948         Update.
13949         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
13950         Include "spawn-pipe.h" instead of "pipe.h".
13951         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
13952         * lib/javacomp.c: Likewise.
13953         * lib/javaversion.c: Likewise.
13954         * lib/pipe-filter-gi.c: Likewise.
13955         * lib/pipe-filter-ii.c: Likewise.
13956         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
13957         * modules/javacomp (Depends-on): Likewise.
13958         * modules/javaversion (Depends-on): Likewise.
13959         * modules/pipe-filter-gi (Depends-on): Likewise.
13960         * modules/pipe-filter-ii (Depends-on): Likewise.
13961         * MODULES.html.sh (Executing programs): Update.
13962         * NEWS: Mention the change.
13963
13964 2010-12-10  Eric Blake  <eblake@redhat.com>
13965
13966         pipe-posix: new module
13967         * modules/pipe-posix: New file.
13968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
13969         (gl_UNISTD_H): Check for declaration.
13970         * modules/unistd (Makefile.am): Substitute it.
13971         * lib/unistd.in.h (pipe): Provide it for mingw.
13972         * doc/posix-functions/pipe.texi (pipe): Update documentation.
13973         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
13974
13975 2010-12-07  Bruno Haible  <bruno@clisp.org>
13976
13977         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
13978         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
13979         u8_strcmp_gnu.
13980         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
13981
13982 2010-12-06  Bruno Haible  <bruno@clisp.org>
13983
13984         Update internal documentation.
13985         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
13986
13987 2010-12-04  Bruno Haible  <bruno@clisp.org>
13988
13989         Put more information about failed tests into the test return codes.
13990         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
13991         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
13992         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
13993         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13994         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
13995         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13996         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13997         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13998         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
13999         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14000         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
14001         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14002         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14003         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14004         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
14005         returns a bit mask.
14006         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14007         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
14008         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
14009         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
14010         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14011         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14012         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14013         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14014         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14015         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14016         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14017         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14018         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14019         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14020         * m4/link.m4 (gl_FUNC_LINK): Likewise.
14021         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14022         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
14023         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
14024         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14025         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
14026         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14027         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14028         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14029         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14030         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14031         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14032         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
14033         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14034         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14035         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
14036         gl_PRINTF_PRECISION): Likewise.
14037         * m4/regex.m4 (gl_REGEX): Likewise.
14038         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14039         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14040         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
14041         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14042         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14043         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14044         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14045         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
14046         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14047         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14048         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14049         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14050         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14051         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14052         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14053         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14054         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14055         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14056         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14057         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
14058         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
14059         enumerated value.
14060         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
14061
14062 2010-12-04  Bruno Haible  <bruno@clisp.org>
14063
14064         Update for Solaris 11 2010-11.
14065         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
14066         Express, released in November 2010.
14067
14068 2010-12-04  Bruno Haible  <bruno@clisp.org>
14069
14070         nproc: Relax license.
14071         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
14072         and Paul Eggert.
14073         Requested by Ludovic Courtès <ludo@gnu.org>.
14074
14075 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
14076
14077         utimecmp: fine-grained src to nearby coarse-grained dest
14078
14079         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
14080         and the source is on a file system with higher-resolution time
14081         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
14082         not work, and the time stamps are close together, the algorithm to
14083         determine the exact resolution from the read-back mtime was buggy:
14084         it had a "!=" where it should have had an "==".  This bug has been
14085         in the code ever since it was introduced to gnulib.
14086         Problem reported by Dan Jacobson in
14087         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
14088
14089 2010-11-30  Bruno Haible  <bruno@clisp.org>
14090
14091         strerror_r-posix: Fix autoconf test.
14092         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
14093
14094 2010-11-28  Bruno Haible  <bruno@clisp.org>
14095             Paul Eggert  <eggert@cs.ucla.edu>
14096
14097         Tests for module 'getdomainname'.
14098         * modules/getdomainname-tests: New file.
14099         * tests/test-getdomainname.c: New file, based on
14100         tests/test-gethostname.c.
14101
14102 2010-11-28  Bruno Haible  <bruno@clisp.org>
14103             Paul Eggert  <eggert@cs.ucla.edu>
14104
14105         getdomainname: Use the system function when possible.
14106         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
14107         (getdomainname): Replace if needed. Provide the declaration if it is
14108         missing. Don't use _GL_CXXALIAS_SYS_CAST.
14109         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
14110         (getdomainname): When the system has getdomainname, call the system
14111         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
14112         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14113         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
14114         found in libnsl. Look for the declaration also in <netdb.h>. Replace
14115         the function if its second argument is of type 'int' or if it is found
14116         in libnsl.
14117         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
14118         <sys/systeminfo.h> and sysinfo().
14119         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
14120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14121         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
14122         HAVE_GETDOMAINNAME.
14123         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
14124         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
14125         * doc/glibc-functions/getdomainname.texi: Document the problems with
14126         the getdomainname declaration.
14127
14128 2010-11-28  Bruno Haible  <bruno@clisp.org>
14129
14130         sys_socket: Ensure ss_family field on AIX.
14131         * lib/sys_socket.in.h (ss_family): New macro definition.
14132         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
14133         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
14134         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14135         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14136         * modules/sys_socket (Makefile.am): Substitute
14137         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14138         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
14139
14140 2010-11-27  Bruno Haible  <bruno@clisp.org>
14141
14142         readline: Improve configure output.
14143         * m4/readline.m4 (gl_FUNC_READLINE): Make the
14144         "checking for readline..." result understandable.
14145
14146 2010-11-27  Bruno Haible  <bruno@clisp.org>
14147
14148         *printf-posix: Detect a bug on Solaris 10/x86.
14149         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
14150         for floating-point output.
14151         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
14152         directive.
14153         * tests/test-snprintf-posix.h (test_function): Likewise.
14154         * tests/test-sprintf-posix.h (test_function): Likewise.
14155         * tests/test-vasprintf-posix.c (test_function): Likewise.
14156         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
14157         * doc/posix-functions/printf.texi: Likewise.
14158         * doc/posix-functions/snprintf.texi: Likewise.
14159         * doc/posix-functions/sprintf.texi: Likewise.
14160         * doc/posix-functions/vfprintf.texi: Likewise.
14161         * doc/posix-functions/vprintf.texi: Likewise.
14162         * doc/posix-functions/vsnprintf.texi: Likewise.
14163         * doc/posix-functions/vsprintf.texi: Likewise.
14164         * doc/glibc-functions/obstack_printf.texi: Likewise.
14165         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14166
14167 2010-11-27  Bruno Haible  <bruno@clisp.org>
14168
14169         Fix link error when module libunistring-optional is in use.
14170         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
14171         * modules/striconveha-tests (Makefile.am): Likewise.
14172
14173 2010-11-27  Bruno Haible  <bruno@clisp.org>
14174
14175         regex: Mention link dependencies.
14176         * modules/regex (Link): New section.
14177         * modules/rpmatch (Link): Likewise.
14178         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
14179
14180 2010-11-27  Bruno Haible  <bruno@clisp.org>
14181
14182         ftoastr: Fix compilation error on Solaris.
14183         * lib/ftoastr.c: Include <config.h>.
14184
14185 2010-11-27  Bruno Haible  <bruno@clisp.org>
14186
14187         getloadavg: Update documentation.
14188         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
14189
14190 2010-11-27  Bruno Haible  <bruno@clisp.org>
14191
14192         sys_socket: Fix test whether the functions are declared.
14193         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
14194         not <sys/select.h>.
14195
14196 2010-11-27  Bruno Haible  <bruno@clisp.org>
14197
14198         getpass: Make sure to get system declaration on some platforms.
14199         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
14200         gl_USE_SYSTEM_EXTENSIONS.
14201         * modules/getpass (Depends-on): Add extensions.
14202
14203 2010-11-26  Bruno Haible  <bruno@clisp.org>
14204
14205         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
14206         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
14207         'iconv' module is present.
14208         (ICONV_CONST): New macro.
14209         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
14210         ICONV_CONST.
14211         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
14212         set ICONV_CONST.
14213         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
14214         here.
14215         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
14216         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
14217         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
14218         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
14219         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
14220         present.
14221
14222 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14223
14224         ftoastr: comment fix
14225         * lib/ftoastr.c: "little" -> "little or no" in comment
14226
14227 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
14228
14229         stdint: port to GCC 4.3 + OSX + Octave
14230         On this platform, stdint.h is buggy and defines int64_t to long
14231         long int.  The replacement defined it to long int, causing
14232         problems with C++ style name mangling.  Instead, trust the system
14233         definition if INT64_MAX is defined, and likewise for the unsigned
14234         variant.   Problem reported by Jarno Rajahalme in
14235         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
14236         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
14237         and don't mess with int64_t and INT64_MAX in this case.
14238         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
14239
14240 2010-11-24  Bruno Haible  <bruno@clisp.org>
14241
14242         doc: Corrections regarding MacOS X 10.4 and 10.5.
14243         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
14244         MacOS X.
14245         Reported by Simon Josefsson.
14246
14247 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
14248
14249         Uninstall ".bin" files installed by relocwrapper.
14250         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
14251         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
14252         unless it is already there.
14253
14254 2010-11-21  Bruno Haible  <bruno@clisp.org>
14255
14256         Update for NetBSD 5.0.
14257         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14258         NetBSD; the test fails on NetBSD 5.0.
14259         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14260         about NetBSD.
14261
14262 2010-11-21  Bruno Haible  <bruno@clisp.org>
14263
14264         Update for HP-UX 11.23 and HP-UX 11.31.
14265         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
14266         HP-UX.
14267
14268 2010-11-21  Bruno Haible  <bruno@clisp.org>
14269
14270         Update for MacOS X 10.5.
14271         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14272         MacOS X; the test fails on MacOS X 10.5.8.
14273         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14274         about MacOS X.
14275
14276 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
14277
14278         bootstrap: add bootstrap_sync option.
14279         See discussion at
14280         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
14281         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
14282         * build-aux/bootstrap: Accept --bootstrap-sync to update
14283         bootstrap if it is not identical to the local gnulib's
14284         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
14285         enable this by default.  Accept --no-bootstrap-sync to disable
14286         it.
14287
14288 2010-11-20  Bruno Haible  <bruno@clisp.org>
14289
14290         Ensure that <features.h> is included before __GLIBC__ is tested.
14291         * lib/printf-parse.h: Include <features.h>.
14292         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
14293         Reported by Mike Frysinger <vapier@gentoo.org>.
14294
14295         Ensure that <features.h> is included before __GLIBC__ is tested.
14296         * lib/wchar.in.h: Include <features.h>.
14297         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
14298         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
14299         Reported by Mike Frysinger <vapier@gentoo.org>.
14300
14301         Ensure that <features.h> is included before __GLIBC__ is tested.
14302         * lib/arpa_inet.in.h: Include <features.h>.
14303         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
14304         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
14305         Reported by Mike Frysinger <vapier@gentoo.org>.
14306
14307         Ensure that <features.h> is included before __GLIBC__ is tested.
14308         * build-aux/link-warning.h: Include <features.h>.
14309         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
14310         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
14311         Reported by Mike Frysinger <vapier@gentoo.org>.
14312
14313         Ensure that <features.h> is included before __GLIBC__ is tested.
14314         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
14315         Reported by Mike Frysinger <vapier@gentoo.org>.
14316
14317 2010-11-20  Bruno Haible  <bruno@clisp.org>
14318
14319         memmem: Fix autoconf test.
14320         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
14321
14322 2010-11-20  Bruno Haible  <bruno@clisp.org>
14323
14324         Port to uClibc.
14325         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
14326         * lib/fcntl.in.h: Likewise.
14327         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
14328         * lib/mbrtowc.c (mbrtowc): Likewise.
14329         * lib/relocatable.c (find_shared_library_fullname): Likewise.
14330         * lib/strerror_r.c: Likewise.
14331         * lib/unistr/u8-strnlen.c: Likewise.
14332         * lib/vasnprintf.c (decimal_point_char): Likewise.
14333         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14334         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14335         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14336         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14337         * tests/test-sigaction.c (handler, main): Likewise.
14338         * lib/freading.h: Treat uClibc like a non-glibc platform.
14339         * lib/freading.c: Likewise.
14340         * lib/gettext.h: Likewise.
14341         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
14342         Likewise.
14343         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
14344         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
14345         * lib/propername.c (proper_name_utf8): Likewise.
14346         * lib/spawn.in.h: Likewise.
14347         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
14348         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
14349         mem_cd_iconveh_internal): Likewise.
14350         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
14351         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14352         strstr, strcasestr): Likewise.
14353         * lib/unicodeio.c (unicode_to_mb): Likewise.
14354         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
14355         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
14356         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
14357         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
14358         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
14359         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
14360         * lib/unistr/u8-stpncpy.c: Likewise.
14361         * lib/vasnprintf.c (VASNPRINTF): Likewise.
14362         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
14363         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14364         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14365         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14366         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
14367         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
14368         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
14369         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14370         Likewise.
14371         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14372         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14373         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
14374         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14375         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14376         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14377         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14378         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14379         * tests/test-getopt.h (OPTIND_MIN): Likewise.
14380         * tests/test-striconveha.c (main): Likewise.
14381         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14382         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
14383         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
14384         * doc/posix-functions/getline.texi: Likewise.
14385         Reported by Mike Frysinger <vapier@gentoo.org>.
14386
14387 2010-11-20  Bruno Haible  <bruno@clisp.org>
14388
14389         nproc: Fix condition.
14390         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
14391         HAVE_PTHREAD_AFFINITY_NP.
14392
14393 2010-11-20  Bruno Haible  <bruno@clisp.org>
14394
14395         Fix a comment.
14396         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
14397
14398 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
14399
14400         ftoastr: don't assume snprintf
14401         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
14402         Implement a subset of snprintf here, by using sprintf safely.
14403         * modules/ftoastr (Depends-on): Remove snprintf.
14404
14405 2010-11-19  Jim Meyering  <meyering@redhat.com>
14406
14407         test-rename.h: fix compilation failure
14408         * tests/test-rename.h (test_rename): Add omitted "}".
14409
14410 2010-11-17  Jim Meyering  <meyering@redhat.com>
14411
14412         maint.mk: add a URL discussing the no-@acronym policy
14413         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
14414
14415 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
14416
14417         ftoastr: depend on snprintf, improve comments
14418         * lib/ftoastr.c: Also mention Loitsch's draft.
14419         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
14420         needed in the current implementation, but it might simplify
14421         speeding up the code later.
14422         * modules/ftoastr: Depend on snprintf; this improves portability.
14423         Suggested by Bruno Haible in the same email.
14424
14425         ftoastr: port to hosts lacking strtof and strtold
14426         Problem reported by Bruno Haible in
14427         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
14428         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
14429         environment and strtold (and presumably strtof) are not available.
14430         * modules/ftoastr (Files): Add m4/c-strtod.m4.
14431         (configure.ac): Require gl_C99_STRTOLD.
14432
14433 2010-11-18  Bruno Haible  <bruno@clisp.org>
14434
14435         c-strtold: Avoid link error on AIX 7.
14436         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
14437         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
14438         (gl_C_STRTOLD): Test whether strtold_l exists.
14439         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14440
14441 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14442
14443         intprops: new macro INT_BITS_STRLEN_BOUND
14444         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
14445         ftoastr.h.  This exposes an internal of intprops.h that was formerly
14446         not exposed.  Also, it uses a slightly tighter bound than before;
14447         though this makes no practical difference, we might as well be as
14448         tight as we easily can.
14449
14450         ftoastr: new module, for lossless conversion of floats to short strings
14451         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
14452         * modules/ftoastr: New files.
14453
14454 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
14455
14456         bootstrap: port to Solaris sed
14457         * build-aux/bootstrap (get_version): Port to Solaris sed.
14458         See Ralf Wildenhues's note in
14459         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
14460
14461 2010-11-14  Jim Meyering  <meyering@redhat.com>
14462
14463         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
14464         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
14465         and move definition closer to sole use.
14466
14467 2010-11-13  Jim Meyering  <meyering@redhat.com>
14468
14469         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
14470         Now we require at least autoconf-2.59, which means the work-around
14471         is no longer needed.
14472         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
14473         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14474         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
14475         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
14476         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14477
14478 2010-11-13  Bruno Haible  <bruno@clisp.org>
14479
14480         rename, renameat: Avoid test failures at NFS mounted locations.
14481         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
14482         functions.
14483         (test_rename): Use assert_nonexistent.
14484         * tests/test-rename.c: Include <dirent.h>.
14485         * tests/test-renameat.c: Likewise.
14486         Reported by Gary V. Vaughan <gary@gnu.org>.
14487
14488         rename, renameat: Document Linux bug with NFS
14489         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
14490         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
14491         * doc/posix-functions/renameat.texi: Likewise.
14492         Suggested by Eric Blake.
14493
14494 2010-11-13  Bruno Haible  <bruno@clisp.org>
14495
14496         rename test: Add comments.
14497         * tests/test-rename.h (test_rename): Add structure and comments.
14498
14499 2010-11-13  Eric Blake  <eblake@redhat.com>
14500
14501         maintainer-makefile: cover a few more files
14502         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
14503         scripts generated within C files, for libvirt.
14504
14505 2010-11-13  Bruno Haible  <bruno@clisp.org>
14506
14507         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
14508         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
14509         character, return the number of bytes that belong together, not always
14510         1.
14511         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
14512         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
14513         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
14514         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
14515         number of bytes of an invalid character.
14516         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
14517         (main): Invoke it.
14518         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
14519         results.
14520         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
14521         malformed byte sequences.
14522         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
14523         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
14524         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
14525         Reported by Ben Pfaff and Paolo Bonzini.
14526
14527 2010-11-13  Bruno Haible  <bruno@clisp.org>
14528
14529         openat: Work around glibc bug with fchownat() and empty file names.
14530         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
14531         (gl_FUNC_FCHOWNAT): Invoke it.
14532         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
14533         * doc/posix-functions/fchownat.texi: Document the glibc bug.
14534         Reported by Gary V. Vaughan <gary@gnu.org>.
14535
14536 2010-11-13  Bruno Haible  <bruno@clisp.org>
14537
14538         openat: Ensure autoconf macro ordering.
14539         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
14540         gl_USE_SYSTEM_EXTENSIONS.
14541         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
14542
14543 2010-11-13  Bruno Haible  <bruno@clisp.org>
14544
14545         Update comments.
14546         * lib/unistr/u8-check.c: Update file name in comments.
14547         * lib/unistr/u8-mblen.c: Likewise.
14548         * lib/unistr/u8-prev.c: Likewise.
14549         * lib/unistr/u8-strmblen.c: Likewise.
14550         * lib/unistr/u8-strmbtouc.c: Likewise.
14551
14552 2010-11-13  Jim Meyering  <meyering@redhat.com>
14553
14554         tests: avoid test failure on Solaris 10 due to lack of PATH export
14555         * tests/test-update-copyright.sh: Don't forget to export PATH.
14556
14557         init.sh: ensure that IFS is defined, just in case...
14558         * tests/init.sh (setup_): Ensure that IFS is defined,
14559         so that saving and restoring it works as expected.  This
14560         appears to be useful at least for an old version of dash
14561         from a long time ago (RH 6).  See here for details:
14562         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
14563
14564         maint.mk: tighten "test a == b" check
14565         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
14566         test to files that contain something like #!/bin/sh.
14567         Without this, coreutils would get two false positives in
14568         the comments of C source files.
14569
14570 2010-11-12  Eric Blake  <eblake@redhat.com>
14571
14572         bootstrap: fix typo in previous attempt
14573         * build-aux/bootstrap (buildreq): Correct the grouping.
14574         Reported by Paul Eggert.
14575
14576         maintainer-makefile: prohibit test x == x
14577         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
14578         Based on a report by Matthias Bolte.
14579
14580         bootstrap: allow FreeBSD gzip
14581         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
14582         which has no '.' and goes to stderr.
14583         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
14584         Reported by Matthias Bolte.
14585
14586         maintainer-makefile: check for i18n setup
14587         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
14588         will likely work.
14589
14590 2010-11-12  Bruno Haible  <bruno@clisp.org>
14591
14592         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
14593         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
14594         * lib/nanosleep.c (nanosleep): Likewise.
14595
14596 2010-11-11  Bruno Haible  <bruno@clisp.org>
14597
14598         fcntl-h: Fix for use of C++ on glibc systems.
14599         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14600         also on glibc systems in C++ mode.
14601         Reported by Gary V. Vaughan <gary@gnu.org>.
14602
14603 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14604
14605         mknod: avoid false failure with dash
14606         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
14607
14608 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
14609
14610         unlink: Fix "is it should" typo in diagnostic.
14611         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
14612         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
14613
14614 2010-11-11  Bruno Haible  <bruno@clisp.org>
14615
14616         Tests for module 'strerror_r-posix'.
14617         * modules/strerror_r-posix-tests: New file.
14618         * tests/test-strerror_r.c: New file.
14619         * tests/test-string-c++.cc: Check the signature of strerror_r.
14620
14621         New module 'strerror_r-posix'.
14622         * lib/string.in.h (strerror_r): New declaration.
14623         * lib/strerror_r.c: New file.
14624         * m4/strerror_r.m4: New file.
14625         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
14626         of strerror_r.
14627         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
14628         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14629         * modules/strerror_r-posix: New file.
14630         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
14631         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14632         * doc/posix-functions/strerror_r.texi: Mention the new module and the
14633         portability problems.
14634
14635 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
14636
14637         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
14638         line is also considered for output. Quoted function name in shell
14639         command, so temporary files for functions like MyClass::operator()
14640         are removed correctly without errors.
14641
14642 2010-11-09  Bruno Haible  <bruno@clisp.org>
14643
14644         * doc/posix-functions/strerror.texi: List more failing platforms.
14645
14646         * doc/posix-functions/strerror.texi: Add a comment.
14647
14648 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
14649
14650         fdopendir: fix bug on MacOS X when low on file descriptors
14651
14652         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
14653         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
14654         All callers changed.
14655         (fdopendir): Invoke save_cwd at the top level, not after using
14656         multiple dup() calls to use up file descriptors.  Then retry
14657         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
14658         less than the maximum number of open file descriptors, because
14659         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
14660         on Mac OS X 10.6.4 for tar 1.24
14661         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
14662         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
14663         and for tar 1.25
14664         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
14665
14666 2010-11-07  Bruno Haible  <bruno@clisp.org>
14667
14668         vasnprintf: Support I flag on glibc systems.
14669         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
14670         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
14671         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
14672         snprintf function.
14673         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
14674         glibc systems.
14675         * tests/test-vasnprintf-posix3.c: New file.
14676         * modules/vasnprintf-posix-tests (Files): Add it.
14677         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
14678
14679 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14680
14681         [html] Fix copy/paste bug: Use unique name for compiler warnings.
14682         * MODULES.html.sh: For compiler warnings, use name
14683         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
14684
14685 2010-11-05  Eric Blake  <eblake@redhat.com>
14686
14687         ceil, floor: avoid spurious failure with icc
14688         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
14689         [denormals-as-zero] when optimizing without -mieee-fp option.
14690         * tests/test-floorf2.c (floorf_reference): Likewise.
14691         * tests/test-ceilf1.c (dummy): New function.
14692         (main): Use it to outsmart icc's optimization.
14693         * tests/test-floorf1.c (dummy, main): Likewise.
14694
14695         tests: require working signbit
14696         * modules/ceilf-tests (Depends-on): Add signbit.
14697         * modules/ceill-tests (Depends-on): Likewise.
14698         * modules/floorf-tests (Depends-on): Likewise.
14699         * modules/floorl-tests (Depends-on): Likewise.
14700         * modules/round-tests (Depends-on): Likewise.
14701         * modules/roundf-tests (Depends-on): Likewise.
14702         * modules/roundl-tests (Depends-on): Likewise.
14703         * modules/trunc-tests (Depends-on): Likewise.
14704         * modules/truncf-tests (Depends-on): Likewise.
14705         * modules/truncl-tests (Depends-on): Likewise.
14706
14707         strtod: work around icc bug
14708         * lib/strtod.c (minus_zero): Define to working value.
14709         (strtod): Use it to avoid icc bug.
14710
14711         copysign: enhance tests
14712         * modules/copysign-tests (Files): Add minus-zero.h.
14713         * tests/test-copysign.c (main): Also test zeros.
14714
14715 2010-11-04  Eric Blake  <eblake@redhat.com>
14716
14717         ceil, floor, round, trunc: enhance tests of -0
14718         * tests/test-ceilf1.c (main): Ensure correct sign of result.
14719         * tests/test-ceill.c (main): Likewise.
14720         * tests/test-floorf1.c (main): Likewise.
14721         * tests/test-floorl.c (main): Likewise.
14722         * tests/test-round1.c (main): Likewise.
14723         * tests/test-roundf1.c (main): Likewise.
14724         * tests/test-roundl.c (main): Likewise.
14725         * tests/test-trunc1.c (main): Likewise.
14726         * tests/test-truncf1.c (main): Likewise.
14727         * tests/test-truncl.c (main): Likewise.
14728
14729 2010-11-04  Eric Blake  <eblake@redhat.com>
14730
14731         frexp, tests: work around ICC bug with -zero
14732         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
14733         works with more compilers.
14734         * tests/minus-zero.h: New file.
14735         * modules/ceilf-tests (Files): Include it.
14736         * modules/ceill-tests (Files): Likewise.
14737         * modules/floorf-tests (Files): Likewise.
14738         * modules/floorl-tests (Files): Likewise.
14739         * modules/frexp-nolibm-tests (Files): Likewise.
14740         * modules/frexp-tests (Files): Likewise.
14741         * modules/frexpl-nolibm-tests (Files): Likewise.
14742         * modules/frexpl-tests (Files): Likewise.
14743         * modules/isnan-tests (Files): Likewise.
14744         * modules/isnand-nolibm-tests (Files): Likewise.
14745         * modules/isnand-tests (Files): Likewise.
14746         * modules/isnanf-nolibm-tests (Files): Likewise.
14747         * modules/isnanf-tests (Files): Likewise.
14748         * modules/isnanl-nolibm-tests (Files): Likewise.
14749         * modules/isnanl-tests (Files): Likewise.
14750         * modules/round-tests (Files): Likewise.
14751         * modules/roundf-tests (Files): Likewise.
14752         * modules/roundl-tests (Files): Likewise.
14753         * modules/ldexpl-tests (Files): Likewise.
14754         * modules/signbit-tests (Files): Likewise.
14755         * modules/snprintf-posix-tests (Files): Likewise.
14756         * modules/sprintf-posix-tests (Files): Likewise.
14757         * modules/strtod-tests (Files): Likewise.
14758         * modules/trunc-tests (Files): Likewise.
14759         * modules/truncf-tests (Files): Likewise.
14760         * modules/truncl-tests (Files): Likewise.
14761         * modules/vsnprintf-posix-tests (Files): Likewise.
14762         * modules/vsprintf-posix-tests (Files): Likewise.
14763         * modules/vasnprintf-posix-tests (Files): Likewise.
14764         * modules/vasprintf-posix-tests (Files): Likewise.
14765         * tests/test-ceilf1.c (main): Use it.
14766         * tests/test-ceill.c (main): Likewise.
14767         * tests/test-floorf1.c (main): Likewise.
14768         * tests/test-floorl.c (main): Likewise.
14769         * tests/test-frexp.c (main): Likewise.
14770         * tests/test-frexpl.c (main): Likewise.
14771         * tests/test-isnan.c (main): Likewise.
14772         * tests/test-isnand.h (main): Likewise.
14773         * tests/test-isnanf.h (main): Likewise.
14774         * tests/test-isnanl.h (main): Likewise.
14775         * tests/test-ldexpl.c (main): Likewise.
14776         * tests/test-round.c (main): Likewise.
14777         * tests/test-roundf.c (main): Likewise.
14778         * tests/test-roundl.c (main): Likewise.
14779         * tests/test-signbit.c (test_signbitf, test_signbitd)
14780         (test_signbitl): Likewise.
14781         * tests/test-snprintf-posix.h (test_function): Likewise.
14782         * tests/test-sprintf-posix.h (test_function): Likewise.
14783         * tests/test-strtod.c (main): Likewise.
14784         * tests/test-trunc1.c (main): Likewise.
14785         * tests/test-truncf1.c (main): Likewise.
14786         * tests/test-truncl.c (main): Likewise.
14787
14788         isnanl: work around icc bug
14789         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
14790
14791 2010-11-03  Eric Blake  <eblake@redhat.com>
14792
14793         tests: fix compiler warnings
14794         * tests/test-getopt.h (test_getopt): Fix condition.
14795         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14796         * tests/test-pipe2.c (main): Likewise.
14797         * tests/test-quotearg-simple.c (main): Avoid icc warning.
14798
14799         utimens: fix broken m4 test
14800         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
14801
14802 2010-10-28  Bruno Haible  <bruno@clisp.org>
14803
14804         posix_spawn*, getdtablesize: Relax license.
14805         * modules/posix_spawn (License): Change to LGPLv2+.
14806         * modules/posix_spawnp (License): Likewise.
14807         * modules/posix_spawn-internal (License): Likewise.
14808         * modules/posix_spawnattr_init (License): Likewise.
14809         * modules/posix_spawnattr_getflags (License): Likewise.
14810         * modules/posix_spawnattr_setflags (License): Likewise.
14811         * modules/posix_spawnattr_getpgroup (License): Likewise.
14812         * modules/posix_spawnattr_setpgroup (License): Likewise.
14813         * modules/posix_spawnattr_getschedparam (License): Likewise.
14814         * modules/posix_spawnattr_setschedparam (License): Likewise.
14815         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
14816         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
14817         * modules/posix_spawnattr_getsigdefault (License): Likewise.
14818         * modules/posix_spawnattr_setsigdefault (License): Likewise.
14819         * modules/posix_spawnattr_getsigmask (License): Likewise.
14820         * modules/posix_spawnattr_setsigmask (License): Likewise.
14821         * modules/posix_spawnattr_destroy (License): Likewise.
14822         * modules/posix_spawn_file_actions_init (License): Likewise.
14823         * modules/posix_spawn_file_actions_addclose (License): Likewise.
14824         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
14825         * modules/posix_spawn_file_actions_addopen (License): Likewise.
14826         * modules/posix_spawn_file_actions_destroy (License): Likewise.
14827         * modules/getdtablesize (License): Likewise.
14828         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
14829
14830 2010-10-26  Bruno Haible  <bruno@clisp.org>
14831
14832         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
14833         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
14834         Cygwin and mingw.
14835         Suggested by Eric Blake.
14836
14837 2010-10-26  Bruno Haible  <bruno@clisp.org>
14838
14839         stdio: Work around compilation error due to renameat() on Solaris 10.
14840         * lib/stdio.in.h: Include <unistd.h> on Solaris.
14841         * lib/renameat.c: Don't include <unistd.h> here.
14842         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
14843         Reported by Paul Eggert and Eric Blake.
14844
14845 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
14846
14847         renameat: port to Solaris 10, which declares renameat in unistd.h
14848
14849         * lib/renameat.c: Include unistd.h before stdio.h, because
14850         Solaris 10 declares renameat in unistd.h.  Problem encountered
14851         when building GNU tar 1.24 on Solaris 10.
14852
14853 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14854
14855         fdopendir: fix C89 compilation
14856         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
14857         compilers.
14858
14859 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
14860
14861         inttostr: simplify by removing unnecessary redundancy
14862         * lib/anytostr.c: Don't include verify.h.
14863         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
14864         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
14865         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
14866         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
14867         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
14868         Likewise.
14869         * modules/inttostr (Depends-on): Remove 'verify'.
14870
14871 2010-10-23  Bruno Haible  <bruno@clisp.org>
14872
14873         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
14874         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
14875         Reported by Eric Blake.
14876
14877 2010-10-23  Bruno Haible  <bruno@clisp.org>
14878
14879         Tests: Fix LOCALE_JA on MirBSD 10.
14880         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
14881         to an UTF-8 locale.
14882         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
14883         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14884         Reported by Eric Blake.
14885
14886 2010-10-21  Bruno Haible  <bruno@clisp.org>
14887
14888         nl_langinfo test: Avoid test failure on NetBSD 5.
14889         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
14890         Reported by Eric Blake.
14891
14892 2010-10-21  Eric Blake  <eblake@redhat.com>
14893
14894         c-stack: work around libsigsegv 2.8 bug
14895         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
14896         overflow on at least PowerPC64.
14897
14898 2010-10-17  Bruno Haible  <bruno@clisp.org>
14899
14900         userspec: Drop redundant file.
14901         * modules/userspec (Files): Remove lib/inttostr.h.
14902
14903 2010-10-17  Bruno Haible  <bruno@clisp.org>
14904
14905         nl_langinfo tests: Silence some warnings.
14906         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
14907         Reported by Jim Meyering.
14908
14909 2010-10-17  Bruno Haible  <bruno@clisp.org>
14910
14911         Make use of GCC's attribute __alloc_size__.
14912         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
14913         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
14914         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
14915         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
14916         __alloc_size__.
14917         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
14918         Suggested by Jim Meyering.
14919
14920 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
14921
14922         bootstrap: anchor .gitignore entries.
14923         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
14924         with...
14925         (insert_vc_ignore): ... this new function, which prepends `/' to
14926         all .gitignore entries before passing them to
14927         insert_sorted_if_absent.
14928
14929 2010-10-16  Bruno Haible  <bruno@clisp.org>
14930
14931         nextafter: Fix configure check.
14932         * modules/nextafter (configure.ac): Correct expected prototype.
14933
14934 2010-10-16  Bruno Haible  <bruno@clisp.org>
14935
14936         termios: Update documentation.
14937         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
14938
14939 2010-10-16  Bruno Haible  <bruno@clisp.org>
14940
14941         tests: Make them compile with TinyCC.
14942         * tests/test-strstr.c (main): Remove parentheses around array
14943         initializer.
14944
14945 2010-10-15  Eric Blake  <eblake@redhat.com>
14946
14947         ignore-value: make header idempotent
14948         * lib/ignore-value.h: Add double-inclusion guards.
14949         Reported by Stefan Berger.
14950
14951 2010-10-15  Jim Meyering  <meyering@redhat.com>
14952
14953         GNUmakefile: handle "stable" target, not "major"
14954         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
14955         lists in maint.mk and announce-gen.  Without this, "make stable"
14956         would fail to ensure that $(VERSION) is up to date.
14957
14958 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
14959
14960         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
14961         & co.
14962
14963 2010-10-14  Bruno Haible  <bruno@clisp.org>
14964
14965         vasnprintf: Don't set errno to 0.
14966         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
14967         block that sets it to 0.
14968         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
14969
14970 2010-10-14  Bruno Haible  <bruno@clisp.org>
14971
14972         socketlib: Fix.
14973         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
14974         gl_PREREQ_SYS_H_WINSOCK2.
14975         Reported by Ian Beckwith <ianb@erislabs.net>.
14976
14977 2010-10-13  Jim Meyering  <meyering@redhat.com>
14978
14979         test-select-stdin.c: avoid warn_unused_result warnings
14980         * tests/test-select-stdin.c: Include "macros.h".
14981         ASSERT that read and fflush succeed.
14982
14983 2010-10-13  Jim Meyering  <meyering@redhat.com>
14984
14985         git-version-gen: do require git-VC'd files in cwd
14986         * build-aux/git-version-gen: Reject a git version string
14987         if there are no commits associated with the current directory.
14988         This avoids an unlikely false-positive (unrelated dir whose parent
14989         repository also contains a tag matching v*), as pointed out
14990         by Giuseppe Scrivano in
14991         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
14992
14993 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
14994
14995         argv-iter: omit nonconforming declaration
14996         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
14997         enum arg_iter_err declaration, which doesn't conform to C99.
14998         Solaris 10 cc warns about this.
14999
15000 2010-10-13  Eric Blake  <eblake@redhat.com>
15001
15002         termios: fix compilation on mingw
15003         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
15004         (gl_TERMIOS_H): Adjust it on mingw.
15005         * modules/termios (Makefile.am): Substitute new key.
15006         * lib/termios.in.h (includes): Make include_next conditional.
15007         * doc/posix-headers/termios.texi (termios.h): Update
15008         documentation.
15009         Reported by Daniel P. Berrange.
15010
15011 2010-10-13  Jim Meyering  <meyering@redhat.com>
15012
15013         git-version-gen: don't require that .git/ be in the current dir
15014         * build-aux/git-version-gen: Adjust this script so that it works
15015         when run from any working directory beneath the top-level .git/-
15016         containing directory.  Inspired by a patch from Giuseppe Scrivano,
15017         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
15018
15019         test-select: avoid warn_unused_result warnings
15020         * tests/test-select.c: Include "macros.h".
15021         ASSERT that each call to read, write, and pipe succeeds.
15022         While not technically required, also check each "close".
15023         * modules/select-tests (Files): Add tests/macros.h.
15024
15025         test-symlinkat: remove declaration of unused local
15026         * tests/test-symlinkat.c (main): Remove unused local, "buf".
15027
15028         test-inttostr: avoid shadowing warnings
15029         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
15030         and use malloc rather than the stack for the same reason as
15031         mentioned in the comment justifying the other allocation.
15032
15033 2010-10-11  Bruno Haible  <bruno@clisp.org>
15034
15035         stdlib: Allow multiple gnulib generated replacements to coexist.
15036         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
15037         Reported by Sam Steingold <sds@gnu.org>.
15038
15039 2010-10-11  Jim Meyering  <meyering@redhat.com>
15040
15041         fix a documentation typo
15042         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
15043
15044 2010-10-11  Eric Blake  <eblake@redhat.com>
15045
15046         futimens: work around Solaris 11 bug
15047         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
15048         * tests/test-futimens.h (test_futimens): Enhance, rather than
15049         weaken test.
15050         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15051
15052 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15053
15054         Indentation.
15055         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
15056         higher-level operators more to the left.
15057
15058 2010-10-11  Jim Meyering  <meyering@redhat.com>
15059
15060         test-futimens: avoid unwarranted test failure on Solaris 5.11
15061         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
15062         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
15063         because it tries to dereference the NULL name argument.
15064
15065 2010-10-11  Bruno Haible  <bruno@clisp.org>
15066
15067         Indentation.
15068         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
15069         indentation.
15070
15071 2010-10-11  Jim Meyering  <meyering@redhat.com>
15072
15073         spawn.in.h: make indentation consistent with parentheses
15074         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
15075         Make indentation consistent with parentheses.
15076
15077 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
15078
15079         Fix mismatched parens in previous commit
15080         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
15081         parens.
15082
15083 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15084
15085         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
15086
15087         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
15088         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
15089         * lib/malloca.c: Include "verify.h".
15090         (verify1): Remove, replacing with a verify call.
15091         * lib/relocwrapper.c (verify1): Likewise.
15092         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
15093         Likewise.
15094         * modules/malloca (Depends-on): Add 'verify'.
15095         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
15096         * modules/vasnprintf (Depends-on): Add 'verify'.
15097         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15098         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15099         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15100         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15101         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15102         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15103         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15104
15105         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
15106
15107         Formerly the style was sometimes 2*X - 1, because the C standard
15108         was wrongly thought to disallow ?: in integral constant expressions.
15109         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
15110         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
15111         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15112         * lib/stdint.in.h (_verify_intmax_size): Likewise.
15113         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
15114         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
15115         verify that time_t cannot be floating.
15116
15117 2010-10-08  Eric Blake  <eblake@redhat.com>
15118
15119         time: enforce recent POSIX ruling that time_t is integral
15120         * lib/time.in.h (__time_t_must_be_integral): Detect any
15121         problematic systems, allowing the rest of gnulib to assume POSIX.
15122
15123 2010-10-08  Jim Meyering  <meyering@redhat.com>
15124
15125         fdopendir: fix a bug on systems lacking openat and /proc support
15126         OpenBSD 4.7 is one such system.  The most noticeable effect was
15127         failure of any application making nontrivial use of fts: rm, du,
15128         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
15129           ./rm: traversal failed: `a': Bad file descriptor
15130         Debugging that, you see that even though FD 6 was closed just
15131         prior to the opendir call in fd_clone_opendir, its resulting
15132         dir->dd_fd was 8, rather than the expected value of 6:
15133
15134         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
15135         93                close (fd);
15136         (gdb) n
15137         94                dir = fd_clone_opendir (dupfd);
15138         (gdb) n
15139         95                saved_errno = errno;
15140         (gdb) p dir->dd_fd
15141         $11 = 8
15142
15143         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
15144         The problem is that on OpenBSD, fd_clone_opendir has to resort
15145         to using the old-style save/restore CWD mechanism, due to its
15146         lack of openat/proc support, and *that* would steal the FD (6)
15147         that opendir was supposed to use.
15148
15149         The fix is to squirrel away the desired FD so that save_cwd uses a
15150         different one, and then free the dest FD right before calling opendir.
15151         That guarantees opendir will use the required file descriptor.
15152
15153         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
15154
15155 2010-10-08  Bruno Haible  <bruno@clisp.org>
15156
15157         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
15158         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
15159
15160 2010-10-08  Bruno Haible  <bruno@clisp.org>
15161
15162         nanosleep: Make replacement POSIX compliant.
15163         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
15164         is out of range.
15165         Reported by Jim Meyering.
15166
15167 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15168
15169         bootstrap: add hook for altering gnulib.mk, for Bison
15170         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
15171         the Bison bootstrapping process can rewrite file names and variables
15172         in this file before later parts of 'bootstrap' use the file.
15173         Bison wants to include lib/gnulib.mk from the top-level makefile,
15174         so it needs the file names in this file to be relative to the top
15175         level, not relative to lib; plus it needs variable names to be
15176         rewritten.
15177         (slurp): Use the new function.
15178
15179         bootstrap: reformat for readability
15180         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
15181
15182 2010-10-08  Eric Blake  <eblake@redhat.com>
15183
15184         docs: update cygwin progress
15185         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
15186         1.7.7.
15187         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
15188         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
15189         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
15190         * doc/posix-functions/carg.texi (carg): Likewise.
15191         * doc/posix-functions/cargf.texi (cargf): Likewise.
15192         * doc/posix-functions/casin.texi (casin): Likewise.
15193         * doc/posix-functions/casinf.texi (casinf): Likewise.
15194         * doc/posix-functions/casinh.texi (casinh): Likewise.
15195         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
15196         * doc/posix-functions/catan.texi (catan): Likewise.
15197         * doc/posix-functions/catanf.texi (catanf): Likewise.
15198         * doc/posix-functions/catanh.texi (catanh): Likewise.
15199         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
15200         * doc/posix-functions/ccos.texi (ccos): Likewise.
15201         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
15202         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
15203         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
15204         * doc/posix-functions/cexp.texi (cexp): Likewise.
15205         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
15206         * doc/posix-functions/cimag.texi (cimag): Likewise.
15207         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
15208         * doc/posix-functions/clog.texi (clog): Likewise.
15209         * doc/posix-functions/clogf.texi (clogf): Likewise.
15210         * doc/posix-functions/conj.texi (conj): Likewise.
15211         * doc/posix-functions/conjf.texi (conjf): Likewise.
15212         * doc/posix-functions/cpow.texi (cpow): Likewise.
15213         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
15214         * doc/posix-functions/cproj.texi (cproj): Likewise.
15215         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
15216         * doc/posix-functions/creal.texi (creal): Likewise.
15217         * doc/posix-functions/crealf.texi (crealf): Likewise.
15218         * doc/posix-functions/csin.texi (csin): Likewise.
15219         * doc/posix-functions/csinf.texi (csinf): Likewise.
15220         * doc/posix-functions/csinh.texi (csinh): Likewise.
15221         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
15222         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
15223         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
15224         * doc/posix-functions/ctan.texi (ctan): Likewise.
15225         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
15226         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
15227         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
15228         * doc/posix-headers/complex.texi (complex.h): Likewise.
15229
15230 2010-10-07  Jim Meyering  <meyering@redhat.com>
15231
15232         parse-datetime: avoid compilation failure on OpenBSD 4.7
15233         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
15234         This works around a compilation failure on OpenBSD 4.7:
15235         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
15236
15237 2010-10-07  Eric Blake  <eblake@redhat.com>
15238
15239         docs: update cygwin progress
15240         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
15241         1.7.6.
15242         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15243         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
15244         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
15245         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
15246         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
15247         Likewise.
15248         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
15249         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
15250         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
15251         Likewise.
15252         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
15253         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
15254         Likewise.
15255         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
15256         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
15257         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
15258         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
15259         Likewise.
15260         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
15261         Likewise.
15262         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
15263
15264         docs: update parse-datetime history
15265         * doc/parse-datetime.texi (Authors of parse_datetime): Better
15266         documentation of this function's history and alternatives.
15267
15268         cygwin: use more robust version check
15269         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
15270         exclude an eventual cygwin 1.9.1.
15271         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15272         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15273         (gl_FUNC_STRCASESTR): Likewise.
15274         Reported by Bruno Haible.
15275
15276 2010-10-06  Bruno Haible  <bruno@clisp.org>
15277
15278         string, sys_select: Avoid #including large headers unless necessary.
15279         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
15280         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
15281         OSF/1, BeOS, Haiku.
15282         Reported by Jim Meyering.
15283
15284 2010-10-05  Eric Blake  <eblake@redhat.com>
15285
15286         memmem, strstr, strcasestr: fix bug with long periodic needle
15287         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
15288         periodic needle having false positive.
15289         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
15290         and cygwin 1.7.7.
15291         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
15292         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15293         (gl_FUNC_STRCASESTR): Likewise.
15294         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15295         * tests/test-memmem.c (main): Expose the bug.
15296         * tests/test-strcasestr.c (main): Likewise.
15297         * tests/test-strstr.c (main): Likewise.
15298         * tests/test-c-strcasestr.c (main): Likewise.
15299         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
15300         * doc/posix-functions/strstr.texi (strstr): Likewise.
15301         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
15302         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
15303
15304 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15305
15306         parse-datetime: do some more renaming
15307         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
15308         parse_datetime, not get_date.  Mention the renaming.
15309         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
15310         in comments.
15311         * m4/bison.m4: Likewise.
15312
15313 2010-10-05  Eric Blake  <eblake@redhat.com>
15314
15315         parse-datetime: better name than get_date
15316         * NEWS: Reword the deprecation notice.
15317         * modules/get_date: Rename to modules/parse-datetime.
15318         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
15319         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
15320         * lib/get_date.y: Rename to lib/parse-datetime.y.
15321         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
15322         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
15323         * doc/getdate.texi: Provide fallback wrapper.
15324         * lib/getdate.h: Move guts, and wrap...
15325         * lib/parse-datetime.h: ...new file.
15326         * lib/parse-datetime.y (get_date): Rename...
15327         (parse_datetime): ...to this.
15328         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
15329         (gl_PARSE_DATETIME): ...to this.
15330         * doc/posix-functions/getdate.texi (get_date): Provide fallback
15331         documentation.
15332         * modules/getdate (Files): Provide fallback docs and header.
15333         (Notice, Depends-on): Update references.
15334         * tests/test-parse-datetime.c: Likewise.
15335         * DEPENDENCIES: Likewise.
15336         * MODULES.html.sh (Date and time <time.h>): Likewise.
15337         * doc/parse-datetime.texi (Date input formats)
15338         (Authors of parse_datetime): Likewise.
15339         * modules/parse-datetime (Files, configure.ac, Makefile.am)
15340         (Include): Likewise.
15341         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
15342         * gnulib-tool: Likewise.
15343         * m4/bison.m4 (gl_BISON): Likewise.
15344         Suggested by Bruno Haible.
15345
15346 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15347
15348         more ports to Solaris tr, which needs [] around ranges
15349         * gnulib-tool: Solaris tr needs [] around ranges.
15350         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15351         * tests/test-pipe-filter-gi1.c (main): Likewise.
15352         * tests/test-pipe-filter-ii1.c (main): Likewise.
15353
15354 2010-10-05  Eric Blake  <eblake@redhat.com>
15355
15356         bootstrap: fix Solaris regression
15357         * build-aux/bootstrap (check_versions): Solaris tr still needs []
15358         around ranges.
15359         Reported by Pádraig Brady.
15360
15361         bootstrap: work with pkg-config
15362         * build-aux/bootstrap (check_versions): Also transliterate - in
15363         prerequisite name.
15364         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
15365         prerequisites that were already found, to avoid confusion.
15366         Reported by Justin Clift.
15367
15368         faccessat: remove unused wrappers
15369         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
15370         presence of these wrappers dragged in -lgen on Solaris.
15371         Reported by Clemens Brogi; fix suggested by Paul Eggert.
15372
15373 2010-10-05  Jim Meyering  <meyering@redhat.com>
15374
15375         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
15376         * Makefile (sc_pragma_columns): New syntax-check rule.
15377
15378 2010-10-04  Bruno Haible  <bruno@clisp.org>
15379
15380         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
15381         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
15382         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
15383         Reported by Bruce Korb and Eric Blake.
15384
15385 2010-10-04  Bruno Haible  <bruno@clisp.org>
15386
15387         threadlib: Make option --with-libpth-prefix work.
15388         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
15389         use $LIBPTH, not just -lpth.
15390
15391 2010-10-04  Bruno Haible  <bruno@clisp.org>
15392
15393         Avoid line length limitation from HP NonStop system header files.
15394         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
15395         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
15396         * lib/ctype.in.h: Likewise.
15397         * lib/dirent.in.h: Likewise.
15398         * lib/errno.in.h: Likewise.
15399         * lib/fcntl.in.h: Likewise.
15400         * lib/float.in.h: Likewise.
15401         * lib/getopt.in.h: Likewise.
15402         * lib/iconv.in.h: Likewise.
15403         * lib/inttypes.in.h: Likewise.
15404         * lib/langinfo.in.h: Likewise.
15405         * lib/locale.in.h: Likewise.
15406         * lib/math.in.h: Likewise.
15407         * lib/netdb.in.h: Likewise.
15408         * lib/netinet_in.in.h: Likewise.
15409         * lib/poll.in.h: Likewise.
15410         * lib/pthread.in.h: Likewise.
15411         * lib/pty.in.h: Likewise.
15412         * lib/sched.in.h: Likewise.
15413         * lib/se-selinux.in.h: Likewise.
15414         * lib/search.in.h: Likewise.
15415         * lib/signal.in.h: Likewise.
15416         * lib/spawn.in.h: Likewise.
15417         * lib/stdarg.in.h: Likewise.
15418         * lib/stddef.in.h: Likewise.
15419         * lib/stdint.in.h: Likewise.
15420         * lib/stdio.in.h: Likewise.
15421         * lib/stdlib.in.h: Likewise.
15422         * lib/string.in.h: Likewise.
15423         * lib/strings.in.h: Likewise.
15424         * lib/sys_file.in.h: Likewise.
15425         * lib/sys_ioctl.in.h: Likewise.
15426         * lib/sys_select.in.h: Likewise.
15427         * lib/sys_socket.in.h: Likewise.
15428         * lib/sys_stat.in.h: Likewise.
15429         * lib/sys_time.in.h: Likewise.
15430         * lib/sys_times.in.h: Likewise.
15431         * lib/sys_utsname.in.h: Likewise.
15432         * lib/sys_wait.in.h: Likewise.
15433         * lib/sysexits.in.h: Likewise.
15434         * lib/termios.in.h: Likewise.
15435         * lib/time.in.h: Likewise.
15436         * lib/unistd.in.h: Likewise.
15437         * lib/wchar.in.h: Likewise.
15438         * lib/wctype.in.h: Likewise.
15439         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
15440         * modules/ctype (Makefile.am): Likewise.
15441         * modules/dirent (Makefile.am): Likewise.
15442         * modules/errno (Makefile.am): Likewise.
15443         * modules/fcntl-h (Makefile.am): Likewise.
15444         * modules/float (Makefile.am): Likewise.
15445         * modules/getopt-posix (Makefile.am): Likewise.
15446         * modules/iconv-h (Makefile.am): Likewise.
15447         * modules/inttypes (Makefile.am): Likewise.
15448         * modules/langinfo (Makefile.am): Likewise.
15449         * modules/locale (Makefile.am): Likewise.
15450         * modules/math (Makefile.am): Likewise.
15451         * modules/netdb (Makefile.am): Likewise.
15452         * modules/netinet_in (Makefile.am): Likewise.
15453         * modules/poll-h (Makefile.am): Likewise.
15454         * modules/pthread (Makefile.am): Likewise.
15455         * modules/pty (Makefile.am): Likewise.
15456         * modules/sched (Makefile.am): Likewise.
15457         * modules/search (Makefile.am): Likewise.
15458         * modules/selinux-h (Makefile.am): Likewise.
15459         * modules/signal (Makefile.am): Likewise.
15460         * modules/spawn (Makefile.am): Likewise.
15461         * modules/stdarg (Makefile.am): Likewise.
15462         * modules/stddef (Makefile.am): Likewise.
15463         * modules/stdint (Makefile.am): Likewise.
15464         * modules/stdio (Makefile.am): Likewise.
15465         * modules/stdlib (Makefile.am): Likewise.
15466         * modules/string (Makefile.am): Likewise.
15467         * modules/strings (Makefile.am): Likewise.
15468         * modules/sys_file (Makefile.am): Likewise.
15469         * modules/sys_ioctl (Makefile.am): Likewise.
15470         * modules/sys_select (Makefile.am): Likewise.
15471         * modules/sys_socket (Makefile.am): Likewise.
15472         * modules/sys_stat (Makefile.am): Likewise.
15473         * modules/sys_time (Makefile.am): Likewise.
15474         * modules/sys_times (Makefile.am): Likewise.
15475         * modules/sys_utsname (Makefile.am): Likewise.
15476         * modules/sys_wait (Makefile.am): Likewise.
15477         * modules/sysexits (Makefile.am): Likewise.
15478         * modules/termios (Makefile.am): Likewise.
15479         * modules/time (Makefile.am): Likewise.
15480         * modules/unistd (Makefile.am): Likewise.
15481         * modules/wchar (Makefile.am): Likewise.
15482         * modules/wctype (Makefile.am): Likewise.
15483
15484 2010-10-04  Bruno Haible  <bruno@clisp.org>
15485
15486         read-file tests: Avoid a test failure on NonStop Kernel.
15487         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
15488         a regular file.
15489         Reported by Joachim Schmitz <schmitz@hp.com>.
15490
15491 2010-10-03  Bruno Haible  <bruno@clisp.org>
15492
15493         gnulib-tool: Fixes for --create-testdir with --libtool.
15494         * gnulib-tool (func_get_automake_snippet): Don't augment
15495         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
15496         an executable.
15497         (func_create_testdir): Handle module 'alloca' like func_import.
15498         Reported by Bruce Korb <bruce.korb@gmail.com>.
15499
15500 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
15501
15502         Avoid some lines longer than 80 characters.
15503         * lib/stdint.in.h: Break long comment lines.
15504         * lib/math.in.h: Likewise.
15505         (_GL_NUM_UINT_WORDS): New macro, for readability.
15506         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
15507         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
15508         * lib/stdlib.in.h: Likewise.
15509         * lib/spawn.in.h: Likewise.
15510         * lib/sys_socket.in.h: Update an URL.
15511         * lib/sys_stat.in.h: Break long line.
15512
15513 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
15514
15515         Improve pmccabe2html.
15516         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
15517         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
15518         when the sources change. Remove the line in the HTML about "Used
15519         ranges" (which implied that there might be other unused ranges),
15520         rename "Resume" to "Summary" (easier to understand for more users).
15521         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
15522         styles, and some unnecessary blank lines.
15523
15524 2010-10-03  Bruno Haible  <bruno@clisp.org>
15525             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15526
15527         acl: Add support for ACLs on NonStop Kernel.
15528         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
15529         Check whether the function aclsort() exists.
15530         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
15531         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
15532         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15533         (acl_nontrivial [HAVE_ACLSORT]: New function.
15534         (file_has_acl): Implement for NonStop Kernel.
15535         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15536         (qset_acl): Implement for NonStop Kernel.
15537         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
15538         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15539         (main): Implement for NonStop Kernel.
15540         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
15541         Kernel. Handle this flavor.
15542         * tests/test-set-mode-acl.sh: Likewise.
15543         * tests/test-copy-acl.sh: Likewise.
15544         * tests/test-copy-file.sh: Likewise.
15545
15546 2010-10-03  Bruno Haible  <bruno@clisp.org>
15547
15548         Info about ACLs on NonStop Kernel.
15549         * doc/acl-resources.txt: Add info about NonStop Kernel.
15550         References by Joachim Schmitz <schmitz@hp.com>.
15551
15552 2010-10-02  Bruno Haible  <bruno@clisp.org>
15553
15554         Define missing EDQUOT on NonStop Kernel.
15555         * lib/errno.in.h (EDQUOT): Assign a value if missing.
15556         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
15557         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
15558         missing.
15559         * doc/posix-headers/errno.texi: Mention the NSK bug.
15560         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
15561         Reported by Joachim Schmitz <schmitz@hp.com>.
15562
15563 2010-10-02  Bruno Haible  <bruno@clisp.org>
15564
15565         Update doc for POSIX:2008.
15566         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
15567         Update URL of POSIX specification.
15568
15569 2010-10-02  Bruno Haible  <bruno@clisp.org>
15570
15571         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
15572         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
15573         from gnulib, not from Automake.
15574
15575 2010-10-02  Bruno Haible  <bruno@clisp.org>
15576
15577         New module 'system-posix'.
15578         * modules/system-posix: New file.
15579         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
15580         module is present.
15581         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
15582         GNULIB_SYSTEM_POSIX.
15583         * modules/stdlib (Depends-on): Remove sys_wait.
15584         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
15585         * doc/posix-functions/system.texi: Mention the new module.
15586         * doc/posix-headers/stdlib.texi: Likewise.
15587         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
15588         define test_sys_wait_macros to a no-op.
15589         Reported by Sam Steingold <sds@gnu.org>.
15590
15591 2010-09-30  Bruno Haible  <bruno@clisp.org>
15592
15593         More renaming from 'getdate' to 'get_date'.
15594         * doc/get_date.texi: Renamed from doc/getdate.texi.
15595         * modules/get_date (Files): Update.
15596         * MODULES.html.sh (Date and time <time.h>): Update.
15597         * DEPENDENCIES: Update.
15598         * gnulib-tool: Update comment.
15599         * m4/bison.m4 (gl_BISON): Likewise.
15600         * m4/get_date.m4 (gl_GET_DATE): Likewise.
15601
15602 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
15603
15604         bootstrap: support ACLOCAL_FLAGS during aclocal
15605         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
15606         can add additional -I dir for third-party .m4 files.
15607
15608 2010-09-30  Eric Blake  <eblake@redhat.com>
15609
15610         bootstrap: use glibtoolize on MacOS
15611         * build-aux/bootstrap (check_versions): Convert libtool into
15612         libtoolize.
15613         (tool search): Move libtool check earlier, and look for
15614         glibtoolize for MacOS.
15615         (gnulib_tool_options): Auto-add --libtool when appropriate.
15616         Reported by Justin Clift.
15617
15618         poll: fix typo that broke test on MacOS
15619         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
15620         Reported by Justin Clift.
15621
15622         getdate: rename to get_date
15623         Note: getdate.h is not renamed, to minimize client impact.
15624         * modules/getdate: Mark obsolete.  Move old contents...
15625         * modules/get_date: ...to new module name.
15626         * modules/getdate-tests: Move...
15627         * modules/get_date-tests: ...here.
15628         * m4/getdate.m4: Move...
15629         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
15630         * lib/getdate.y: Move...
15631         * lib/get_date.y: ...here.
15632         * tests/test-getdate.c: Move...
15633         * tests/test-get_date.c: ...here.
15634         * doc/posix-functions/getdate.texi (getdate): Update name.
15635         * NEWS: Mention the change.
15636
15637 2010-09-29  Bruno Haible  <bruno@clisp.org>
15638
15639         Separate the module 'waitpid' from the module 'sys_wait'.
15640         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
15641         present.
15642         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
15643         gl_MODULE_INDICATOR_FOR_TESTS.
15644         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
15645         * modules/sys_wait (Depends-on): Remove waitpid.
15646         (Makefile.am): Substitute GNULIB_WAITPID.
15647         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
15648         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
15649         signature only if the 'waitpid' module is present.
15650         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
15651         * NEWS: Mention the change.
15652         * modules/grantpt (Depends-on): Add waitpid.
15653         * modules/wait-process (Depends-on): Likewise.
15654
15655 2010-09-29  Bruno Haible  <bruno@clisp.org>
15656
15657         More tests for module 'sys_wait'.
15658         * modules/sys_wait-c++-tests: New file.
15659         * tests/test-sys_wait-c++.cc: New file.
15660         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
15661         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15662
15663 2010-09-29  Bruno Haible  <bruno@clisp.org>
15664
15665         New module 'waitpid'.
15666         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
15667         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
15668         Don't include <process.h>.
15669         (waitpid): Declare only, using modern idiom.
15670         * m4/waitpid.m4: New file.
15671         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
15672         * modules/waitpid: New file.
15673         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
15674         (Makefile.am): Update.
15675         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15676
15677 2010-09-28  Bruno Haible  <bruno@clisp.org>
15678
15679         poll: Assume ANSI C.
15680         * lib/poll.c (poll): Use an ANSI C declaration.
15681
15682 2010-09-28  Bruno Haible  <bruno@clisp.org>
15683
15684         poll-h: Create poll.h on all platforms.
15685         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
15686         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
15687         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
15688         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
15689         (gl_REPLACE_POLL_H): Don't set POLL_H.
15690         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
15691         * modules/poll-h (Depends-on): Add include_next.
15692         (Makefile.am): Create poll.h unconditionally. Substitute also
15693         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
15694
15695 2010-09-28  Bruno Haible  <bruno@clisp.org>
15696
15697         Tests for module 'poll-h'.
15698         * modules/poll-h-c++-tests: New file.
15699         * tests/test-poll-h-c++.cc: New file.
15700
15701         Tests for module 'poll-h'.
15702         * modules/poll-h-tests: New file.
15703         * tests/test-poll-h.c: New file.
15704
15705 2010-09-28  Bruno Haible  <bruno@clisp.org>
15706
15707         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
15708         * modules/poll-h (Depends-on): Add 'extensions'.
15709
15710 2010-09-28  Bruno Haible  <bruno@clisp.org>
15711
15712         New module 'poll-h'.
15713         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
15714         (poll): Use modern idiom.
15715         * modules/poll-h: New file.
15716         * modules/poll (Files): Remove lib/poll.in.h.
15717         (Depends-on): Add poll-h.
15718         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
15719         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
15720         * m4/poll_h.m4: New file.
15721         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
15722         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
15723         and invoke gl_REPLACE_POLL_H.
15724         * lib/poll.c: Use common idiom.
15725         * tests/test-poll.c: Likewise.
15726         * doc/posix-headers/poll.texi: Mention the poll-h module.
15727         Suggested by Eric Blake.
15728
15729 2010-09-26  Bruno Haible  <bruno@clisp.org>
15730
15731         sys_wait: Implement WSTOPSIG.
15732         * lib/sys_wait.in.h (WSTOPSIG): New macro.
15733         Reported by Simon Josefsson.
15734
15735 2010-09-26  Simon Josefsson  <simon@josefsson.org>
15736
15737         stdlib, sys_wait: Avoid compilation error on mingw.
15738         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
15739
15740 2010-09-26  Bruno Haible  <bruno@clisp.org>
15741
15742         stdlib tests: Avoid code duplication.
15743         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
15744         * modules/sys_wait-tests (Files): Likewise.
15745         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
15746         * tests/test-stdlib.c: Include test-sys_wait.h.
15747         (main): Invoke test_sys_wait_macros.
15748         * tests/test-sys_wait.c: Include test-sys_wait.h.
15749         (main): Invoke test_sys_wait_macros.
15750
15751 2010-09-25  Simon Josefsson  <simon@josefsson.org>
15752
15753         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
15754         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
15755         sure Windows sockets are working before calling getaddrinfo.
15756         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
15757         * doc/gnulib.texi (Windows sockets): Fix typo.
15758
15759 2010-09-25  Bruno Haible  <bruno@clisp.org>
15760
15761         Tests for module 'regex-quote'.
15762         * modules/regex-quote-tests: New file.
15763         * tests/test-regex-quote.c: New file.
15764
15765         New module 'regex-quote'.
15766         * lib/regex-quote.h: New file.
15767         * lib/regex-quote.c: New file.
15768         * modules/regex-quote: New file.
15769         Suggested by Reuben Thomas <rrt@sc3d.org>.
15770
15771 2010-09-24  Bruno Haible  <bruno@clisp.org>
15772
15773         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
15774         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
15775
15776 2010-09-23  Bruno Haible  <bruno@clisp.org>
15777
15778         setenv: Relax license.
15779         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
15780         Blake.
15781         Requested by Eric Blake.
15782
15783 2010-09-22  Bruno Haible  <bruno@clisp.org>
15784
15785         termios: Relax license.
15786         * modules/termios (License): Change to LGPLv2+.
15787         Requested by Eric Blake.
15788
15789 2010-09-22  Bruno Haible  <bruno@clisp.org>
15790
15791         threadlib: Allow the package to change the default to 'no'.
15792         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
15793         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
15794         Reported by Paul Eggert.
15795
15796 2010-09-22  Pádraig Brady  <P@draigbrady.com>
15797             Bruno Haible  <bruno@clisp.org>
15798
15799         Fix endless loop in mbmemcasecoll.
15800         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
15801         byte.
15802         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
15803
15804 2010-09-22  Bruno Haible  <bruno@clisp.org>
15805
15806         Tests for module 'memcoll'.
15807         * modules/memcoll-tests: New file.
15808         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
15809
15810         memcoll, xmemcoll: Clarify size vs. length.
15811         * modules/memcoll.c (memcoll0): Clarify specification.
15812         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
15813         passed to collate_error.
15814
15815 2010-09-22  Bruno Haible  <bruno@clisp.org>
15816
15817         Tests for module 'memcasecmp'.
15818         * modules/memcasecmp-tests: New file.
15819         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
15820
15821 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
15822
15823         * lib/pthread.in.h: Add split double-inclusion guard, and include
15824         system <pthread.h> if there is one.  Use @@-style as in other
15825         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
15826         pthread.h doesn't.
15827         (pthread_mutexattr_destroy, pthread_mutexattr_init):
15828         (pthread_mutexattr_settype, pthread_mutex_trylock):
15829         New static inline functions, if there's no system <pthread.h>.
15830         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
15831         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
15832         Approximate with mutexes if the system lacks spinlocks, as in
15833         MacOS.
15834         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
15835         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
15836         @@-style.  Check for spinlocks separately.
15837         (gl_PTHREAD_DEFAULTS): New macro.
15838         * modules/pthread: Redo to use a more typical style for in.h files.
15839
15840 2010-09-21  Eric Blake  <eblake@redhat.com>
15841
15842         net_if: enhance tests
15843         * tests/test-net_if.c (main): Move signature checks earlier.
15844         Print failures to stderr.
15845         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
15846         Document the bug that we do not yet fix.
15847
15848 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
15849
15850         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
15851         about gnulib, not GSS.
15852
15853 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
15854
15855         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
15856         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
15857         for Emacs.
15858         * build-aux/pmccabe2html: Make Makefile.am example code more
15859         cut-and-paste friendly.
15860
15861 2010-09-21  Simon Josefsson  <simon@josefsson.org>
15862
15863         * tests/test-net_if.c: New file.
15864         * modules/net_if-tests: New file.
15865
15866 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15867
15868         pthread: add pthread_spin_destroy
15869         * lib/pthread.in.h (pthread_spin_destroy): New function.
15870
15871 2010-09-19  Bruno Haible  <bruno@clisp.org>
15872
15873         gnulib-tool: Fix --help output.
15874         * gnulib-tool (func_usage): Fix help message.
15875         Reported by Reuben Thomas <rrt@sc3d.org>.
15876
15877 2010-09-18  Jim Meyering  <meyering@redhat.com>
15878
15879         maint.mk: avoid unexpanded \n in two diagnostics
15880         * top/maint.mk (sc_prohibit_always_true_header_tests):
15881         Don't use a literal \n in a halt=... assignment.  It would not be
15882         expanded, and the two \n bytes would appear in the diagnostic output
15883         rather than the desired newline.  Use halt=$$(printf ... instead.
15884         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
15885
15886 2010-09-18  Bruno Haible  <bruno@clisp.org>
15887
15888         netinet_in: Doc tweak.
15889         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
15890         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15891
15892 2010-09-18  Jim Meyering  <meyering@redhat.com>
15893
15894         init.sh: correct an outdated comment
15895         * tests/init.sh (create_exe_shims_):  s/function/alias/
15896
15897         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
15898         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
15899         a file named "*.exe" is removed between the glob expansion and the
15900         processing of that oddly named file.
15901
15902 2010-09-17  Eric Blake  <eblake@redhat.com>
15903
15904         mirbsd: add some more support
15905         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
15906         in BSD family.
15907         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
15908         devices as OpenBSD.
15909         * m4/host-os.m4 (mirbsd): Add MirBSD.
15910
15911         tests: fix unportable assumption on sys/wait.h
15912         * tests/test-sys_wait.c (main): Relax test.
15913         * tests/test-stdlib.c (main): Likewise.
15914
15915         init.sh: accomodate directory with no .exes
15916         * tests/init.sh: Accomodate directory containing only scripts.
15917
15918         tests: avoid compiler warning
15919         * tests/test-stdlib.c (main): Use the variable.
15920
15921         fdutimens, fdutimensat: update signature, again
15922         * lib/utimens.h (gl_futimens): Delete, and move signature...
15923         (fdutimens): ...here.
15924         (fdutimensat): Rearrange signature.
15925         (lutimensat): Rename variable for clarity.
15926         * lib/fdutimensat.c (fdutimensat): Update signature.
15927         * lib/utimens.c (fdutimens): Likewise.
15928         (gl_futimens): Delete.
15929         (utimens, lutimens): Update callers.
15930         * lib/futimens.c (futimens): Likewise.
15931         * tests/test-fdutimensat.c: Likewise.
15932         * tests/test-utimens.c: Likewise.
15933         * tests/test-futimens.h: Update comment.
15934         * NEWS: Mention this.
15935         Suggested by Paul Eggert.
15936
15937 2010-09-17  Bruno Haible  <bruno@clisp.org>
15938
15939         Take over the maintenance of some older macros from Autoconf.
15940         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
15941         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
15942         GNU Autoconf.
15943         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
15944         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
15945
15946 2010-09-17  Eric Blake  <eblake@redhat.com>
15947
15948         fdutimensat: drop atflag validation
15949         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
15950         with valid fd, to close a race scenario where futimens is
15951         unsupported and FILE was replaced by a symlink.
15952         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
15953         accordingly.
15954         Suggested by Paul Eggert.
15955
15956 2010-09-16  Bruno Haible  <bruno@clisp.org>
15957
15958         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
15959         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
15960
15961 2010-09-16  Bruno Haible  <bruno@clisp.org>
15962
15963         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
15964         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
15965         login_tty exists.
15966         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15967
15968 2010-09-16  Bruno Haible  <bruno@clisp.org>
15969
15970         login_tty: Make the replacement code work on BSD systems.
15971         * lib/login_tty.c: Include <sys/ioctl.h>.
15972         (login_tty): Use ioctl TIOCSCTTY when available.
15973         * modules/login_tty (Depends-on): Add sys_ioctl.
15974         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15975
15976 2010-09-16  Bruno Haible  <bruno@clisp.org>
15977
15978         login_tty: Stricter unit test.
15979         * modules/login_tty-tests (Depends-on): Add tcgetsid.
15980         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
15981         and tcgetsid() after login_tty.
15982         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15983
15984 2010-09-16  Bruno Haible  <bruno@clisp.org>
15985
15986         New module 'tcgetsid'.
15987         * lib/tcgetsid.c: New file.
15988         * m4/tcgetsid.m4: New file.
15989         * modules/tcgetsid: New file.
15990         * modules/termios (Depends-on): Add c++defs, warn-on-use.
15991         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
15992         GNULIB_TCGETSID, HAVE_TCGETSID.
15993         * lib/termios.in.h: Include <sys/types.h>.
15994         (tcgetsid): New declaration.
15995         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
15996         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
15997         * doc/posix-functions/tcgetsid.texi: Mention the new module.
15998         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
15999
16000 2010-09-16  Bruno Haible  <bruno@clisp.org>
16001
16002         Tests for module 'termios'.
16003         * modules/termios-c++-tests: New file.
16004         * modules/termios-tests: New file.
16005         * tests/test-termios-c++.cc: New file.
16006         * tests/test-termios.c: New file.
16007
16008         New module 'termios'.
16009         * modules/termios: New file.
16010         * lib/termios.in.h: New file.
16011         * m4/termios_h.m4: New file.
16012         * doc/posix-headers/termios.texi: Mention the new module.
16013
16014 2010-09-16  Eric Blake  <eblake@redhat.com>
16015
16016         fdutimensat: add an atflag parameter
16017         * lib/fdutimensat.c (fdutimensat): Add new parameter.
16018         * lib/utimens.h (fdutimensat): Update prototype.
16019         * tests/test-fdutimensat.c: Adjust test to match.
16020         * NEWS: Document the change.
16021         Suggested by Paul Eggert.
16022
16023 2010-09-16  Bruno Haible  <bruno@clisp.org>
16024
16025         Fix typos in comments.
16026         * lib/striconveh.h: Fix typo in comment.
16027         * lib/login_tty.c (login_tty): Likewise.
16028
16029 2010-09-15  Bruno Haible  <bruno@clisp.org>
16030
16031         stdlib: clarify MirBSD WEXITSTATUS bug
16032         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
16033         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16034
16035 2010-09-15  Eric Blake  <eblake@redhat.com>
16036
16037         stdlib: work around MirBSD WEXITSTATUS bug
16038         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
16039         * modules/stdlib (Depends-on): Add sys_wait.
16040         * tests/test-sys_wait.c (main): Enhance test.
16041         * tests/test-stdlib.c (main): Likewise.
16042         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
16043
16044         docs: mention MacOS issue with WEXITSTATUS(constant)
16045         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
16046         issue.
16047         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16048
16049         strnlen: add tests
16050         * modules/strnlen-tests: New file.
16051         * tests/test-strnlen.c: Likewise.
16052
16053 2010-09-14  Bruno Haible  <bruno@clisp.org>
16054
16055         unistr/base: Avoid link errors when module 'libunistring' is also used.
16056         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
16057         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
16058         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
16059         Declare also when HAVE_LIBUNISTRING is set.
16060         Reported by Pádraig Brady <P@draigbrady.com>.
16061
16062 2010-09-14  Eric Blake  <eblake@redhat.com>
16063
16064         test-rawmemchr: make more robust
16065         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
16066         (Depends-on, configure.ac): Add needed prerequisites to use it.
16067         * modules/memchr-tests (Files, Depends-on, configure.ac):
16068         Likewise, to avoid implicit reliance on memchr module prereqs.
16069         * tests/test-memchr.c (main): Ensure proper masking.
16070         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
16071         reads.
16072
16073         memchr: detect glibc Alpha bug
16074         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
16075         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
16076         Alpha.
16077         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
16078         * tests/test-memchr.c (main): Enhance test.
16079         Reported by Nelson H. F. Beebe.
16080
16081 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16082
16083         fts, getcwd, glob: audit for dirfd returning -1
16084         * lib/fts.c (opendir): Remove #define; no longer used.
16085         (opendirat): New arg PDIR_FD.  All callers changed.
16086         (fts_build, _opendir2): Use new opendirat to avoid the need for
16087         dirfd, or for checking whether dirfd returns a negative value.
16088         Don't use opendir; always use openat followed by fdopendir.
16089         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
16090         it.
16091         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
16092         returns -1 here.
16093         * modules/fts (Depends-on): Remove dirfd.
16094         * modules/getcwd (Depends-on): Likewise.
16095
16096 2010-09-13  Eric Blake  <eblake@redhat.com>
16097
16098         float: fix broken MirBSD header
16099         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
16100         * doc/posix-headers/float.texi (float.h): Document it.
16101
16102 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16103
16104         fts: use O_NOFOLLOW to avoid race condition when opening a directory
16105         * lib/fts.c (opendirat): New arg extra_flags.
16106         (__opendir2): Use it to avoid following symlinks when opening
16107         a directory, if symlinks are not supposed to be followed.  See
16108         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
16109
16110         fdopendir: preserve argument fd before returning
16111         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
16112         (fdopendir_with_dup, fd_clone_opendir): New static functions.
16113         (fdopendir): Use them, arranging for FD to be open to the same
16114         directory that it was when it started.  (It might be temporarily
16115         closed while fdopendir is running, so this not thread- or
16116         signal-safe.)  Be careful to do the right thing even when file
16117         descriptors are scarce and dup fails with errno == EMFILE.  See
16118         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
16119
16120 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
16121
16122         regex: Pass the system regex if its only problem is 32-bit regoff_t.
16123         * NEWS: Document change.
16124         * m4/regex.m4: Disable test for regoff_t size.
16125
16126 2010-09-13  Jim Meyering  <meyering@redhat.com>
16127
16128         fts: don't operate on an invalid file descriptor after failed dup
16129         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
16130         negative file descriptor.
16131
16132 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16133
16134         savedir: add streamsavedir, deprecate fdsavedir
16135         * NEWS: Mention deprecation of fdsavedir.
16136         * lib/savedir.c (streamsavedir): New extern function, whose name
16137         ends in "savedir" to be consistent with the others.  This differs
16138         from savedirstream in that it doesn't close its argument.  The
16139         next version of GNU tar will use this instead of fdsavedir, to
16140         avoid some race conditions and conserve file descriptors.
16141         (savedirstream): Reimplement as a wrapper around streamsavedir.
16142         (fdsavedir): Add a comment deprecating this function.  As far as
16143         I know, only GNU tar used it, and GNU tar doesn't need it any more.
16144         * lib/savedir.h (streamsavedir): New decl.
16145         (fdsavedir): Add a comment deprecating this.
16146
16147 2010-09-10  Bruno Haible  <bruno@clisp.org>
16148
16149         langinfo: Fix last commit.
16150         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
16151         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
16152         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16153
16154 2010-09-10  Bruno Haible  <bruno@clisp.org>
16155
16156         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
16157         * lib/progreloc.c (O_EXEC): Define fallback.
16158
16159 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16160
16161         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
16162         * NEWS: Document recent changes to fcntl-h.
16163         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
16164         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
16165         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
16166         Similarly for O_SEARCH; this last was already true, but not documented.
16167         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
16168         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
16169         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
16170         Likewise.
16171         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
16172         is zero, not whether it is defined.
16173         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
16174         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
16175         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
16176
16177 2010-09-10  Bruno Haible  <bruno@clisp.org>
16178
16179         langinfo, nl_langinfo: Fix for IRIX 5.3.
16180         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
16181         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
16182         HAVE_LANGINFO_YESEXPR.
16183         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
16184         HAVE_LANGINFO_YESEXPR.
16185         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
16186         HAVE_LANGINFO_T_FMT_AMPM is 0.
16187         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
16188         HAVE_LANGINFO_YESEXPR is 0.
16189         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
16190         NOEXPR.
16191         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
16192         * doc/posix-functions/nl_langinfo.texi: Likewise.
16193         Reported by Eric Blake.
16194
16195 2010-09-10  Bruno Haible  <bruno@clisp.org>
16196
16197         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
16198         * doc/glibc-functions/login_tty.texi: Mention the include file problem
16199         on FreeBSD 8.0 and OpenBSD 4.6.
16200         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
16201         * m4/pty_h.m4 (gl_PTY_H): Likewise.
16202         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
16203         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
16204         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
16205         ac_includes_default.
16206         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16207
16208 2010-09-09  Eric Blake  <eblake@redhat.com>
16209
16210         strsignal: work around NetBSD bug
16211         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
16212         * lib/string.in.h (includes): Likewise.
16213         * doc/posix-functions/strsignal.texi (strsignal): Document the
16214         bug.
16215         Reported by Nelson H. F. Beebe.
16216
16217         gnulib-tool: work with NetBSD /bin/sh
16218         * gnulib-tool (func_cache_var, func_cache_lookup_module)
16219         (func_get_description, func_get_comment, func_get_status)
16220         (func_get_notice, func_get_applicability, func_get_filelist)
16221         (func_get_dependencies, func_get_autoconf_early_snippet)
16222         (func_get_autoconf_snippet, func_get_automake_snippet)
16223         (func_get_include_directive, func_get_link_directive)
16224         (func_get_license, func_get_maintainer, func_import): Avoid
16225         shell syntax errors from parsing syntax extensions.
16226
16227 2010-09-09  Bruno Haible  <bruno@clisp.org>
16228
16229         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16230         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
16231         a reliable way to determine whether the 'alias' command works.
16232
16233 2010-09-08  Jim Meyering  <meyering@redhat.com>
16234
16235         init.sh: penalize a set-x-impaired shell; don't disqualify it
16236         * tests/init.sh: Too many shells corrupt application stderr when
16237         you set -x, so we can't afford to disqualify them, since at least
16238         on Irix-6.5, that would disqualify all bourne shells.
16239         Instead, use a two-pass approach.
16240         On the first pass, try to find a shell that meets the stricter
16241         condition that set -x does not corrupt stderr.
16242         If no shell meets the stricter condition, retest each candidate
16243         shell, but without that extra condition.  Finally, when
16244         VERBOSE=yes is requested and set -x might cause trouble, simply
16245         issue a warning and refrain from enabling debug output.
16246
16247 2010-09-08  Eric Blake  <eblake@redhat.com>
16248
16249         unsetenv: fix OpenBSD bug
16250         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
16251         * doc/posix-functions/unsetenv.texi (unsetenv): Update
16252         documentation.
16253         Reported by Jim Meyering.
16254
16255         strtod: work around IRIX 6.5 bug
16256         * lib/strtod.c (strtod): Reparse number on shorter string if
16257         exponent parse was invalid.
16258         * tests/test-strtod.c (main): Add check for "0x1p 2".
16259         Reported by Tom G. Christensen.
16260
16261         getopt: optimize previous patch
16262         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
16263         empty variable.  Speed up awk script.
16264         Reported by Paolo Bonzini.
16265
16266 2010-09-08  Jim Meyering  <meyering@redhat.com>
16267
16268         test.sh: disqualify shells for which set -x corrupts stderr
16269         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
16270         and OpenBSD 4.7.  They make it so with "set -x", environment settings
16271         appear in stderr output.  For example, this command:
16272             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
16273         prints "P=1" on those two systems:
16274
16275 2010-09-08  Bruno Haible  <bruno@clisp.org>
16276
16277         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16278         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
16279         commands, because some shells ignore redirections when there is an
16280         error in the command lookup.
16281         Reported by Eric Blake.
16282
16283 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
16284
16285         * lib/regex.h: Fix a mention of `regex_compile' (should be
16286         `re_compile_pattern').
16287         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
16288         (re_set_registers): Correct name of parameter in comment.
16289
16290         * doc/regex.texi: Add documentation for missing syntax flags.
16291         Remove commented-out documentation of defunct syntax option
16292         RE_NO_EMPTY_ALTS.
16293         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
16294         Add documentation of re_set_registers.
16295         Document trick to re-use a pattern buffer by setting fastmap manually.
16296         Update documentation of struct re_pattern_buffer per public members.
16297         Uncomment documentation of equivalence class operators and
16298         collating symbol operators, since they are now implemented,
16299         Explain leftmost-longest matching in relation to alternatives.
16300         Tidy documentation of substring matching.
16301         Remove POSIX documentation, which is done better in
16302         glibc, and refer the reader there. Keep BSD API documentation, as
16303         that is not readily available elsewhere.
16304
16305 2010-09-07  Eric Blake  <eblake@redhat.com>
16306
16307         getopt: handle POSIXLY_CORRECT set but not exported
16308         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
16309         export state of POSIXLY_CORRECT, due to bash set -o posix.
16310         Reported by Dustin J. Mitchell.
16311
16312 2010-09-05  Bruno Haible  <bruno@clisp.org>
16313
16314         gnulib-tool: Highlight the changed options.
16315         * gnulib-tool (func_usage): Display the --import, --add-import,
16316         --remove-import explanations in bold font.
16317
16318 2010-09-06  Karl Berry  <karl@gnu.org>
16319
16320         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
16321
16322 2010-09-05  Bruno Haible  <bruno@clisp.org>
16323
16324         uniwidth/width: Update comment.
16325         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
16326         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
16327
16328 2010-09-05  Bruno Haible  <bruno@clisp.org>
16329
16330         isinf, isnan: Relax license.
16331         * modules/isinf (License): Change from GPL to LGPL, with consent from
16332         Ben Pfaff.
16333         * modules/isnan (License): Likewise.
16334         Requested by Ludovic Courtès.
16335
16336 2010-09-04  Bruno Haible  <bruno@clisp.org>
16337
16338         gnulib-tool: Help migration from --import to --add-import or --update.
16339         * gnulib-tool: Emit a verbose error message when --import is used
16340         without any module name.
16341
16342 2010-09-04  Bruno Haible  <bruno@clisp.org>
16343
16344         Update doc about gnulib-tool.
16345         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
16346         'gnulib-tool --update' in more detail.
16347         Reported by Eric Blake.
16348
16349 2010-09-04  Bruno Haible  <bruno@clisp.org>
16350
16351         gnulib-tool: Change --import. New options --add/remove-import.
16352         * gnulib-tool: New options --add-import, --remove-import.
16353         (func_usage): Document them.
16354         (have_associative): Define always.
16355         (func_import): In import mode, don't merge the specified settings with
16356         the cached settings. Implement remove-import mode.
16357         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
16358         Explain when to use them versus --import.
16359         (Simple update): Use --add-import instead of --import.
16360         * NEWS: Mention the change.
16361
16362 2010-09-04  Bruno Haible  <bruno@clisp.org>
16363
16364         * doc/gnulib-tool.texi (Initial import): Update paragraph about
16365         separate gnulib.mk.
16366
16367 2010-09-04  Bruno Haible  <bruno@clisp.org>
16368
16369         gnulib-tool: Don't talk about CVS any more.
16370         * gnulib-tool (func_usage, func_import): Write "version control"
16371         instead of CVS.
16372
16373 2010-09-04  Jim Meyering  <meyering@redhat.com>
16374
16375         maint.mk: avoid obscure sc_copyright_check failure in coreutils
16376         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
16377         false positives (whose names may be ill-chosen) when searching
16378         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
16379         would cause a false-positive.
16380
16381         avoid coreutils "make distcheck" failure
16382         Coreutils tests with an absolute build directory name that contains
16383         a space.  Not quoting this directory name caused a failure.
16384         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
16385         * tests/test-vc-list-files-cvs.sh: Likewise.
16386
16387 2010-09-04  Bruno Haible  <bruno@clisp.org>
16388
16389         gnulib-tool: Avoid error when run in a package without Makefile.am.
16390         * gnulib-tool: When collecting the m4dirs in a package that does not
16391         have a Makefile.am, eliminate those directories that contain no
16392         gnulib-cache.m4. Fix expression that counts these directories.
16393
16394 2010-09-04  Bruno Haible  <bruno@clisp.org>
16395
16396         update-copyright test: Improve output when perl is missing or too old.
16397         * tests/test-update-copyright.sh: Move test of Perl version down after
16398         the test whether Perl exists. Provide an explanation relating Perl's
16399         error message to Automake's SKIP: message.
16400
16401 2010-09-04  Bruno Haible  <bruno@clisp.org>
16402
16403         Don't augment PATH in TESTS_ENVIRONMENT.
16404         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
16405         set abs_aux_dir instead of augmenting PATH.
16406         * modules/vc-list-files-tests (Makefile.am): Likewise.
16407         * tests/test-update-copyright.sh: Augment PATH here.
16408         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
16409         path_prepend_.
16410         * tests/test-vc-list-files-git.sh: Likewise.
16411
16412 2010-09-04  Jim Meyering  <meyering@redhat.com>
16413
16414         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
16415         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
16416
16417 2010-09-04  Bruno Haible  <bruno@clisp.org>
16418
16419         strdup: Fix compilation error in C++ mode.
16420         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
16421         the macro.
16422
16423 2010-09-04  Bruno Haible  <bruno@clisp.org>
16424
16425         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
16426         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
16427         macro into a function.
16428         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16429
16430 2010-09-04  Bruno Haible  <bruno@clisp.org>
16431
16432         Set PATH_SEPARATOR the same way autoconf does.
16433         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
16434         the value of PATH_SEPARATOR the same way autoconf-generated configure
16435         scripts do.
16436         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
16437         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16438
16439 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16440
16441         Set PATH_SEPARATOR the same way autoconf does.
16442         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
16443         the same way autoconf-generated configure scripts do.
16444         * posix-modules: Likewise.
16445
16446 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16447
16448         hash: fix safe_hasher const typo
16449         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
16450         const; otherwise, there is a type error later.
16451
16452 2010-09-02  Jim Meyering  <meyering@redhat.com>
16453
16454         test-update-copyright.sh: require perl 5.8.0
16455         * tests/test-update-copyright.sh: Require 5.8.0,
16456         which Tom G. Christensen has confirmed is adequate,
16457         while 5.6.1 is not.
16458
16459 2010-09-02  Eric Blake  <eblake@redhat.com>
16460
16461         tests: init.sh improvements for re-exec'ing with zsh
16462         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
16463         -vx through shell re-exec.
16464         Reported by Tom G. Christensen.
16465
16466         wctype: fix typo in previous commit
16467         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
16468         Reported by Ludovic Courtès.
16469
16470 2010-09-02  Jim Meyering  <meyering@redhat.com>
16471
16472         test-update-copyright.sh: skip test if Perl is too old
16473         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
16474         Reported by Tom G. Christensen.
16475
16476 2010-09-02  Bruno Haible  <bruno@clisp.org>
16477
16478         wctype: Avoid compilation error on IRIX 6.5.30.
16479         * lib/wctype.in.h (iswblank): Declare with a replacement if
16480         REPLACE_ISWBLANK is set.
16481         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
16482         declared. Set REPLACE_ISWBLANK.
16483         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
16484         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
16485         * doc/posix-headers/wctype.texi: Likewise.
16486         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16487
16488 2010-09-01  Bruno Haible  <bruno@clisp.org>
16489
16490         New module 'socketlib'.
16491         * modules/socketlib: New file.
16492         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
16493         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
16494         * modules/sockets (Depends-on): Add socketlib.
16495         Suggested by Sam Steingold <sds@gnu.org>.
16496
16497 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16498
16499         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
16500
16501         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
16502         when one needs search access to a directory but not read access.
16503         On systems where it is available, it works in some cases where
16504         O_RDONLY does not, namely on directories that are searchable but
16505         not readable, and which need only to be searchable.  If O_SEARCH
16506         is not available, fall back to the traditional method of using
16507         O_RDONLY.
16508
16509         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
16510         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
16511         when opening a directory that needs only to be searchable.
16512         * lib/chdir-safer.c (chdir_no_follow): Likewise.
16513         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
16514         * lib/openat-proc.c (openat_proc_name): Likewise.
16515         * lib/openat.c (openat_needs_fchdir): Likewise.
16516         * lib/save-cwd.c (save_cwd): Likewise.
16517         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
16518
16519 2010-08-28  Bruno Haible  <bruno@clisp.org>
16520
16521         New module 'host-cpu-c-abi'.
16522         * modules/host-cpu-c-abi: New file.
16523         * m4/host-cpu-c-abi.m4: New file, based on part of
16524         clisp/src/m4/general.m4.
16525         Requested by Sam Steingold <sds@gnu.org>.
16526
16527 2010-08-31  Eric Blake  <eblake@redhat.com>
16528         and Jim Meyering  <meyering@redhat.com>
16529
16530         hash: factor, and guard against misbehaving hasher function
16531         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
16532         of table->hasher's return value.  Also protect against a hash value
16533         so large that adding it to table->bucket results in a NULL pointer.
16534         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
16535         Use it in place of open-coded check-and-abort.
16536
16537 2010-08-30  Bruno Haible  <bruno@clisp.org>
16538
16539         hash: silence spurious clang warning
16540         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
16541         Reported by Eric Blake.
16542
16543 2010-08-30  Eric Blake  <eblake@redhat.com>
16544
16545         strstr, memmem, strcasestr: avoid leaked shell message
16546         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
16547         FreeBSD.
16548         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16549         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16550
16551         tests: silence clang warning
16552         * tests/test-malloca.c (do_allocation): Avoid dead store.
16553
16554 2010-08-29  Bruno Haible  <bruno@clisp.org>
16555
16556         gettext: Fix recent mistake.
16557         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
16558
16559 2010-08-29  Bruno Haible  <bruno@clisp.org>
16560
16561         selinux-h: Offer a --without-selinux option.
16562         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
16563         --without-selinux was specified, skip all tests and define
16564         HAVE_SELINUX_SELINUX_H to 0.
16565         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
16566         set LIB_SELINUX to empty.
16567         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
16568         gl_LIBSELINUX. If --without-selinux was specified, replace
16569         selinux/context.h.
16570         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
16571
16572 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16573             Bruno Haible  <bruno@clisp.org>
16574
16575         Make the module 'realloc-gnu' work again on AIX and OSF/1.
16576         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
16577         of HAVE_REALLOC.
16578         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
16579         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
16580         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
16581         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16582
16583 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16584             Bruno Haible  <bruno@clisp.org>
16585
16586         Make the module 'calloc-gnu' work again on AIX and OSF/1.
16587         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
16588         HAVE_CALLOC.
16589         * lib/xmalloc.c: Update accordingly.
16590         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
16591         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
16592         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
16593
16594 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16595             Bruno Haible  <bruno@clisp.org>
16596
16597         Make the module 'malloc-gnu' work again on AIX and OSF/1.
16598         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
16599         HAVE_MALLOC.
16600         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
16601         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
16602         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16603
16604 2010-08-29  Bruno Haible  <bruno@clisp.org>
16605
16606         Update modules list.
16607         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16608         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
16609         (String handling <string.h>): Add astrxfrm.
16610         (File system functions): Add readlinkat.
16611
16612 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16613
16614         Tests for module 'realloc-gnu'.
16615         * modules/realloc-gnu-tests: New file.
16616         * tests/test-realloc-gnu.c: New file.
16617
16618         Tests for module 'calloc-gnu'.
16619         * modules/calloc-gnu-tests: New file.
16620         * tests/test-calloc-gnu.c: New file.
16621
16622         Tests for module 'malloc-gnu'.
16623         * modules/malloc-gnu-tests: New file.
16624         * tests/test-malloc-gnu.c: New file.
16625
16626 2010-08-28  Bruno Haible  <bruno@clisp.org>
16627
16628         Rename module 'realloc' -> 'realloc-gnu'.
16629         * modules/realloc-gnu: New file, copied from modules/realloc.
16630         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
16631         obsolete.
16632         * modules/mgetgroups (Depends-on): Update.
16633         * doc/posix-functions/realloc.texi: Update.
16634         * NEWS: Mention the change.
16635
16636         Rename module 'calloc' -> 'calloc-gnu'.
16637         * modules/calloc-gnu: New file, copied from modules/calloc.
16638         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
16639         obsolete.
16640         * doc/posix-functions/calloc.texi: Update.
16641         * NEWS: Mention the change.
16642
16643         Rename module 'malloc' -> 'malloc-gnu'.
16644         * modules/malloc-gnu: New file, copied from modules/malloc.
16645         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
16646         obsolete.
16647         * modules/argp (Depends-on): Update.
16648         * modules/regex (Depends-on): Update.
16649         * doc/posix-functions/malloc.texi: Update.
16650         * NEWS: Mention the change.
16651
16652 2010-08-28  Eric Blake  <eblake@redhat.com>
16653
16654         pread, pwrite: add missing dependency
16655         * modules/pread (Depends-on): Add extensions.
16656         * modules/pwrite (Depends-on): Likewise.
16657
16658 2010-08-28  Bruno Haible  <bruno@clisp.org>
16659
16660         unistr/u*-strchr: Fix tests dependencies.
16661         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
16662         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
16663         Reported by Ian Beckwith <ianb@erislabs.net>.
16664
16665 2010-08-28  Bruno Haible  <bruno@clisp.org>
16666
16667         read-file: Don't occupy too much unused memory.
16668         * lib/read-file.c (fread_file): Shrink the buffer at the end.
16669
16670 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
16671             Eric Blake  <eblake@redhat.com>
16672             Bruno Haible  <bruno@clisp.org>
16673
16674         read-file: Avoid memory reallocations with regular files.
16675         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
16676         (fread_file): With regular files, use the remaining length as the
16677         initial buffer size.  Check against overflow.
16678         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
16679         sys_stat.
16680
16681 2010-08-28  Bruno Haible  <bruno@clisp.org>
16682
16683         ftello: Relax license.
16684         * modules/ftello (License): Relax to LGPLv2+.
16685         Reported by Eric Blake.
16686
16687 2010-08-28  Bruno Haible  <bruno@clisp.org>
16688
16689         Avoid relocwrapper link errors due to gnulib replacement functions.
16690         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
16691         function.
16692         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16693
16694 2010-08-28  Bruno Haible  <bruno@clisp.org>
16695
16696         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
16697         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
16698         defined.
16699         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
16700         Suggested by Eric Blake.
16701
16702 2010-08-28  Bruno Haible  <bruno@clisp.org>
16703
16704         sys_socket, netdb: Ensure socklen_t gets defined.
16705         * modules/sys_socket (Depends-on): Add socklen.
16706         * modules/netdb (Depends-on): Likewise.
16707         * modules/getaddrinfo (Depends-on): Remove socklen.
16708         * modules/getsockopt (Depends-on): Likewise.
16709         * modules/setsockopt (Depends-on): Likewise.
16710         * tests/test-sys_socket.c: Check that socklen_t is defined.
16711         * tests/test-netdb.c: Likewise.
16712         * m4/socklen.m4: Update comments.
16713         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16714
16715 2010-08-27  Eric Blake  <eblake@redhat.com>
16716
16717         login_tty: add missing dependency
16718         * modules/login_tty (Depends-on): Add pty.
16719
16720 2010-08-26  Eric Blake  <eblake@redhat.com>
16721
16722         lib-symbol-versions: fix m4 quoting
16723         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
16724         format for AC_LINK_IFELSE.
16725
16726         glob: fix compile test
16727         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
16728
16729         btowc: fix missing file
16730         * modules/btowc (Files): Also ship locale-fr.m4.
16731
16732         lseek: fix link test
16733         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
16734         AC_LINK_IFELSE.
16735
16736         include_next: silence autoconf 2.68 warning
16737         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
16738         AC_COMPILE_IFELSE as special.
16739         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
16740         autoconf < 2.68.
16741
16742         acl: fix compilation test
16743         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
16744         AC_COMPILE_IFELSE.
16745
16746 2010-08-26  Bruno Haible  <bruno@clisp.org>
16747
16748         Modernize AC_TRY_RUN invocations.
16749         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
16750         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
16751         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
16752         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
16753         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
16754         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
16755         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16756         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16757         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16758         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16759         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16760         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16761         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16762         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16763         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16764         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16765         gl_MBRLEN_NUL_RETVAL): Likewise.
16766         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16767         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
16768         Likewise.
16769         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16770         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16771         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16772         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16773         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
16774         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
16775         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
16776         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
16777         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
16778         Likewise.
16779         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16780         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
16781         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16782         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16783         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16784         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16785         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16786         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
16787         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16788         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16789
16790 2010-08-26  Bruno Haible  <bruno@clisp.org>
16791
16792         Modernize AC_TRY_LINK invocations.
16793         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
16794         AC_TRY_LINK.
16795         * m4/argp.m4 (gl_ARGP): Likewise.
16796         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
16797         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
16798         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
16799         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16800         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16801         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
16802         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
16803         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
16804         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16805         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16806         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16807         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
16808         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
16809         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16810         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16811         * m4/hostent.m4 (gl_HOSTENT): Likewise.
16812         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16813         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
16814         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16815         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
16816         Likewise.
16817         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
16818         Likewise.
16819         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
16820         Likewise.
16821         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16822         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
16823         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
16824         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
16825         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
16826         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16827         * m4/servent.m4 (gl_SERVENT): Likewise.
16828         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
16829         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
16830         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
16831         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
16832         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16833         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16834         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16835         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16836         * modules/tsearch-tests (configure.ac): Likewise.
16837
16838 2010-08-26  Bruno Haible  <bruno@clisp.org>
16839
16840         Modernize AC_TRY_COMPILE invocations.
16841         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
16842         AC_TRY_COMPILE.
16843         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
16844         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
16845         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16846         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
16847         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16848         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16849         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16850         * m4/lock.m4 (gl_LOCK): Likewise.
16851         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
16852         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16853         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
16854         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
16855         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16856         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
16857         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16858         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
16859         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16860         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16861         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16862         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16863         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
16864         extraneous semicolon.
16865
16866 2010-08-26  Jim Meyering  <meyering@redhat.com>
16867
16868         stat-time: relax license LGPL
16869         * modules/stat-time (License): Change from GPL to LGPL,
16870         with consent from all contributors, for use in libguile.
16871         Requested by Ludovic Courtès.
16872
16873 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
16874
16875         poll: return immediately on POLLHUP.
16876         * lib/poll.c (poll): Always set timeout before wait_timeout is
16877         computed.
16878
16879 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16880
16881         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
16882         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
16883         rmdir ("dir/.//"), unlinkat.
16884
16885 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16886
16887         stdbool: avoid spurious failure with modern xlc
16888         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
16889
16890 2010-08-24  Bruno Haible  <bruno@clisp.org>
16891
16892         getloadavg: simplify code
16893         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
16894         gl_have_func. Update comments.
16895
16896 2010-08-24  Eric Blake  <eblake@redhat.com>
16897
16898         getloadavg: don't define SVR4 on cygwin
16899         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
16900         only define SVR4 when -lkvm is required.
16901         Reported by Yaakov Selkowitz.
16902
16903 2010-08-24  Bruno Haible  <bruno@clisp.org>
16904
16905         priv-set: fix comment
16906         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
16907
16908 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
16909
16910         priv-set: fix comments
16911         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
16912         to match code, as suggested by David Bartley in:
16913         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
16914
16915 2010-08-23  Eric Blake  <eblake@redhat.com>
16916
16917         stdbool: avoid rejecting clang
16918         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
16919         * tests/test-stdbool.c: Enable more tests if using the system
16920         <stdbool.h> instead of the gnulib replacement.
16921         (main): Move xlc bug test to a runtime test for all compilers.
16922         Reported by Anders Kaseorg.
16923
16924         argz: fix shell quoting issue
16925         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
16926         Reported by Charles Wilson.
16927
16928 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
16929             Erik Faye-Lund <kusmabite@gmail.com>
16930
16931         poll, select: handle ERROR_BROKEN_PIPE.
16932         * lib/poll.c (win32_compute_revents): Return POLLHUP when
16933         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
16934         * lib/select.c (win32_compute_revents): Do not mark a pipe
16935         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
16936
16937 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
16938
16939         fts: allow compilation with C++
16940         * lib/fts_.h: Specify extern "C" linkage with C++.
16941
16942 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16943
16944         Fix gnulib-tool sed script de-commentation for AIX sed.
16945         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
16946         sed.
16947
16948 2010-08-17  Eric Blake  <eblake@redhat.com>
16949
16950         test-stddef: test for (some) offsetof bugs
16951         * tests/test-stddef.c: Enhance test to ensure correct type of
16952         offsetof.
16953         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
16954         that we are not fixing at this time.
16955
16956 2010-08-15  Bruno Haible  <bruno@clisp.org>
16957
16958         stpncpy: Allow stpncpy to be defined as a macro.
16959         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
16960         if it's already correctly declared.
16961         * lib/string.in.h (stpncpy): Undefine before redefining.
16962         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
16963
16964 2010-08-14  Bruno Haible  <bruno@clisp.org>
16965
16966         Rename module 'memxfrm' to 'amemxfrm'.
16967         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
16968         (amemxfrm): Renamed from memxfrm.
16969         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
16970         (amemxfrm): Renamed from memxfrm.
16971         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
16972         * NEWS: Mention the change.
16973         * MODULES.html.sh (String handling <string.h>): Update.
16974         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
16975         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
16976         * lib/unicase/u16-casexfrm.c: Likewise.
16977         * lib/unicase/u32-casexfrm.c: Likewise.
16978         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
16979         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
16980         * lib/uninorm/u16-normxfrm.c: Likewise.
16981         * lib/uninorm/u32-normxfrm.c: Likewise.
16982         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
16983         memxfrm.
16984         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
16985         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
16986         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
16987         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
16988         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
16989         Suggested by Paul Eggert.
16990
16991 2010-08-14  Bruno Haible  <bruno@clisp.org>
16992
16993         Tests for module 'astrxfrm'.
16994         * modules/astrxfrm-tests: New file.
16995         * tests/test-astrxfrm.c: New file.
16996
16997         New module 'astrxfrm'.
16998         * lib/astrxfrm.h: New file.
16999         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
17000         * modules/astrxfrm: New file.
17001
17002 2010-08-14  Reuben Thomas <rrt@sc3d.org>
17003
17004         regex: Tweak doc.
17005         * doc/regex.texi (Overview): Don't mention regex.c.
17006         (GNU Regular Expression Compiling): Likewise.
17007         (Match-end-of-line Operator): Mention 'not_eol'.
17008
17009 2010-08-14  Brian Gough  <bjg@gnu.org>
17010             Bruno Haible  <bruno@clisp.org>
17011
17012         git-merge-changelog: add doc relating to use with bzr and hg.
17013         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
17014
17015 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
17016
17017         pthread: fix pthread.h creation for srcdir != builddir
17018         * modules/pthread (Makefile.am): Fix the rule to work also in a
17019         non-srcdir build.
17020
17021 2010-08-13  Karl Berry  <karl@gnu.org>
17022
17023         * doc/regex.texi (Predefined Syntaxes): @smallexample.
17024         * doc/posix-*/*: force line break before @url of POSIX
17025         specifications.
17026         Suggested by Werner Lemberg.
17027
17028 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17029
17030         strtod: fix const diagnostic
17031         * lib/strtod.c (strtod): Don't assign const char * to char *,
17032         as this elicits a warning from GCC when warnings are enabled.
17033
17034 2010-08-10  Pádraig Brady <P@draigbrady.com>
17035         and Eric Blake  <eblake@redhat.com>
17036
17037         copy-acl: ignore ENOTSUP on HP-UX
17038         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
17039         so that it is available for HP-UX.
17040         * lib/copy-acl.c (qcopy_acl): Use it.
17041         Reported by Patrick M. Callahan.
17042
17043 2010-08-10  Eric Blake  <eblake@redhat.com>
17044
17045         open, chown: relax license
17046         * modules/open (License): Change to LGPLv2+, with consent by all
17047         authors, for use in augeas.
17048         * modules/chown (License): Likewise.
17049         * modules/lchown (Likewise): Likewise.
17050         Requested by Adam Stokes.
17051
17052 2010-08-09  Karl Berry  <karl@gnu.org>
17053
17054         * build-aux/ar-lib: new file, import from Automake.
17055         * config/srclist.txt: autocheck for updates.
17056
17057 2010-08-09  Eric Blake  <eblake@redhat.com>
17058
17059         readlinkat: adjust client modules
17060         * modules/areadlinkat (Depends-on): Use readlinkat, not
17061         symlinkat.
17062         * modules/areadlinkat-with-size (Depends-on): Likewise.
17063
17064         mknod: be more vocal about danger of running tests as root
17065         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
17066         root, since that is just asking for problems.
17067         Suggested by Bruno Haible, based on a report by Rainer Tammer.
17068
17069         readlinkat: split into its own module
17070         * modules/symlinkat: Split readlinkat...
17071         * modules/readlinkat: ...into separate module.
17072         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
17073         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
17074         * lib/symlinkat.c (readlinkat): Move...
17075         * lib/readlinkat.c: ...into new file.
17076         * modules/symlinkat-tests: Split readlinkat test...
17077         * modules/readlinkat-tests: ...into separate module.
17078         * tests/test-symlinkat.c: Split...
17079         * tests/test-readlinkat.c: ...into new file.
17080         * NEWS: Document the split.
17081         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17082         * lib/unistd.in.h (readlinkat): Likewise.
17083         Suggested by Bruno Haible.
17084
17085 2010-08-08  Bruno Haible  <bruno@clisp.org>
17086
17087         memxfrm: Speed up.
17088         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
17089         that usually only one call to strxfrm is necessary for each string
17090         part.
17091         Reported by Paul Eggert <eggert@cs.ucla.edu>.
17092
17093 2010-08-07  Karl Berry  <karl@gnu.org>
17094
17095         * doc/posix-headers/limits.texi,
17096         * doc/posix-functions/malloc.texi,
17097         * doc/posix-functions/strsignal.texi: missing @item.
17098         * doc/ld-version-script.texi: spurious leading i.
17099         * doc/regex.texi (Interval Operators): no commas inside @var.
17100
17101 2010-08-01  Bruno Haible  <bruno@clisp.org>
17102
17103         Integrate the regex documentation.
17104         * doc/gnulib.texi: Define 'cn' index.
17105         (Regular expressions): New a chapter that includes regex.texi and
17106         regexprops-generic.texi.
17107         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
17108         syntax.
17109
17110         Whitespace cleanup.
17111         * doc/regex.texi: Remove trailing spaces.
17112
17113         Add regex documentation.
17114         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
17115         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
17116         Written by Kathy A. Hargreaves and Karl Berry.
17117
17118 2010-08-01  Bruno Haible  <bruno@clisp.org>
17119
17120         link: Update documentation.
17121         * doc/posix-functions/link.texi: Update regarding Solaris.
17122
17123 2010-07-31  Bruno Haible  <bruno@clisp.org>
17124
17125         Update modules list.
17126         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
17127         (String handling <string.h>): Add memcmp2, memxfrm.
17128         (Container data structures): Add xlist, xsublist, xoset.
17129         (Core language properties): Add alignof, unused-parameter.
17130         (Process control, Numeric conversion functions <stdlib.h>): Renamed
17131         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
17132         (Unibyte characters <ctype.h>): New section.
17133         (String handling <string.h>): New section.
17134         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
17135         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
17136         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
17137         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
17138         tan, tanh, tanl, y0, y1, yn.
17139         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
17140         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
17141         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
17142         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
17143         unlockpt, vdprintf, vdprintf-posix.
17144         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
17145         (File system functions): Add concat-filename, sys_file, sys_ioctl,
17146         xconcat-filename.
17147         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
17148         getdtablesize, pipe2, pipe2-safer.
17149         (Security): New section.
17150         (Networking functions): Add accept4.
17151         (Signal handling): Add sigpipe.
17152         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
17153         mbmemcasecoll.
17154         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
17155         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
17156         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
17157         pipe-filter-ii.
17158         (Misc): Add argp-version-etc, login_tty, parse-duration.
17159
17160 2010-07-31  Bruno Haible  <bruno@clisp.org>
17161
17162         Improve doc in MODULES.html.
17163         * modules/linkat (Description): Add the word "function".
17164         * modules/mkfifo (Description): Likewise.
17165         * modules/mknod (Description): Likewise.
17166         * modules/remove (Description): Likewise.
17167         * modules/renameat (Description): Likewise.
17168         * modules/stat (Description): Likewise.
17169         * modules/symlink (Description): Likewise.
17170         * modules/unlink (Description): Likewise.
17171
17172 2010-07-31  Bruno Haible  <bruno@clisp.org>
17173
17174         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
17175         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
17176         option --enable/disable-c++ instead of --enable/disable-cxx.
17177         * NEWS: Mention the change.
17178
17179 2010-07-31  Bruno Haible  <bruno@clisp.org>
17180
17181         readlink, areadlink: Relax test a bit.
17182         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
17183         alternative to ENOTDIR.
17184         * tests/test-areadlink.h (test_areadlink): Likewise.
17185         Reported by Rainer Tammer.
17186
17187 2010-07-31  Bruno Haible  <bruno@clisp.org>
17188
17189         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
17190         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
17191         character, perform the search using U_STRCHR.
17192         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
17193         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
17194         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
17195         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
17196         Suggested by Paolo Bonzini.
17197
17198 2010-07-31  Bruno Haible  <bruno@clisp.org>
17199
17200         unistr/u*-strstr: Fix dependencies.
17201         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
17202         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
17203         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
17204
17205 2010-07-31  Bruno Haible  <bruno@clisp.org>
17206
17207         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
17208         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
17209         the beginning of the loop.
17210         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
17211         cases in 'switch' statement.
17212
17213         unistr/u8-strchr: Fix several bugs.
17214         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
17215         the string. When not found, return NULL, not a pointer near the end.
17216
17217         More tests for unistr/u8-strchr.
17218         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
17219         that the function does not read past the first occurrence of the byte
17220         being searched.
17221         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
17222         * tests/unistr/test-u16-strchr.c (main): New function.
17223         * tests/unistr/test-u32-strchr.c (main): New function.
17224
17225 2010-07-31  Bruno Haible  <bruno@clisp.org>
17226
17227         posix-modules: Ignore backup files of documentation files.
17228         * posix-modules: grep only through files named *.texi.
17229
17230 2010-07-31  Bruno Haible  <bruno@clisp.org>
17231
17232         symlinkat: Fix documentation.
17233         * doc/posix-functions/readlinkat.texi: Fix module name.
17234
17235 2010-07-31  Bruno Haible  <bruno@clisp.org>
17236
17237         fchownat: Replace also when chown has the trailing slash bug.
17238         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
17239         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
17240         introduced on 2010-04-10.
17241         Reported by Rainer Tammer.
17242
17243 2010-07-31  Bruno Haible  <bruno@clisp.org>
17244
17245         linkat: Work around AIX 7.1 bug.
17246         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
17247         whether linkat handles trailing slash correctly. If not, replace linkat
17248         and define LINKAT_TRAILING_SLASH_BUG.
17249         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
17250         check whether (fd1,file1) points to a directory if file1 or file2 ends
17251         in a slash. Code taken from lib/link.c.
17252         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
17253         Reported by Rainer Tammer.
17254
17255 2010-07-31  Bruno Haible  <bruno@clisp.org>
17256
17257         Correctly determine whether pow is available in libc on AIX 7 with xlc.
17258         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
17259         This disables an xlc optimization that was causing wrong test results.
17260         Reported by Rainer Tammer.
17261
17262 2010-07-31  Bruno Haible  <bruno@clisp.org>
17263
17264         iconv: Work around AIX 6.1..7.1 bug.
17265         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
17266         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
17267         cross-compiling, guess no on all versions of AIX.
17268         Reported by Rainer Tammer.
17269
17270 2010-07-31  Bruno Haible  <bruno@clisp.org>
17271
17272         readlink: Relax test a bit.
17273         * tests/test-readlink.h (test_readlink): Allow different errno value
17274         when readlink is called with a file name that ends in / and refers to
17275         a file.
17276         Suggested by Eric Blake.
17277         Reported by Rainer Tammer.
17278
17279 2010-07-31  Bruno Haible  <bruno@clisp.org>
17280
17281         copysign: Does not require -lm on glibc systems.
17282         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
17283         gl_COMMON_DOUBLE_MATHFUNC.
17284         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
17285
17286 2010-07-31  Bruno Haible  <bruno@clisp.org>
17287
17288         duplocale: Work around AIX 7.1 bug.
17289         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
17290         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
17291         * lib/duplocale.c (rpl_duplocale): Update comment.
17292         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
17293         Reported by Rainer Tammer.
17294
17295 2010-07-30  Bruno Haible  <bruno@clisp.org>
17296
17297         dirfd: Avoid link error on AIX 7.1.
17298         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
17299         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
17300         exist, set REPLACE_DIRFD.
17301         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
17302         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
17303         * doc/posix-functions/dirfd.texi: Update.
17304         Reported by Rainer Tammer.
17305
17306 2010-07-30  Eric Blake  <eblake@redhat.com>
17307
17308         strtod: next round of AIX fixes
17309         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
17310         exponent.
17311         * tests/test-strtod.c (main): Enhance tests.
17312         * doc/posix-functions/strtod.texi (strtod): Document next bug.
17313         Reported by Rainer Tammer.
17314
17315         futimens: fix configure check
17316         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
17317         Reported by Bruno Haible.
17318
17319 2010-07-30  Bruno Haible  <bruno@clisp.org>
17320
17321         getline: Update regarding AIX.
17322         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
17323         Reported by Rainer Tammer.
17324
17325 2010-07-30  Bruno Haible  <bruno@clisp.org>
17326
17327         wcwidth: Drop replacement on AIX 7.
17328         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
17329         AIX 7.
17330         Reported by Rainer Tammer.
17331
17332 2010-07-30  Bruno Haible  <bruno@clisp.org>
17333
17334         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
17335         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
17336         a 'char *'.
17337         Reported by Rainer Tammer.
17338
17339 2010-07-30  Bruno Haible  <bruno@clisp.org>
17340
17341         unlink: Update regarding AIX.
17342         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
17343         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
17344         Reported by Rainer Tammer.
17345
17346 2010-07-30  Bruno Haible  <bruno@clisp.org>
17347
17348         symlink: Update regarding AIX.
17349         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
17350         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
17351         Reported by Rainer Tammer.
17352
17353 2010-07-30  Bruno Haible  <bruno@clisp.org>
17354
17355         strndup: Update regarding AIX.
17356         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
17357         AIX 7.
17358         Reported by Rainer Tammer.
17359
17360 2010-07-30  Bruno Haible  <bruno@clisp.org>
17361
17362         stat: Update regarding AIX.
17363         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
17364         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
17365         Reported by Rainer Tammer.
17366
17367 2010-07-30  Bruno Haible  <bruno@clisp.org>
17368
17369         truncl: Fix autoconf test.
17370         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
17371         whether truncl works.
17372         Reported by Rainer Tammer.
17373
17374 2010-07-30  Bruno Haible  <bruno@clisp.org>
17375
17376         round: Update regarding AIX.
17377         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
17378         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
17379         Reported by Rainer Tammer.
17380
17381 2010-07-30  Bruno Haible  <bruno@clisp.org>
17382
17383         rename: Update regarding AIX.
17384         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
17385         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
17386         Reported by Rainer Tammer.
17387
17388 2010-07-30  Bruno Haible  <bruno@clisp.org>
17389
17390         printf.m4: Update regarding AIX.
17391         * m4/printf.m4: Update comments regarding AIX.
17392         Reported by Rainer Tammer.
17393
17394 2010-07-30  Bruno Haible  <bruno@clisp.org>
17395
17396         iconv: Update regarding AIX.
17397         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
17398         AIX 7.
17399         Reported by Rainer Tammer.
17400
17401 2010-07-30  Bruno Haible  <bruno@clisp.org>
17402
17403         getopt: Update regarding AIX.
17404         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
17405         no on AIX.
17406         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
17407         Reported by Rainer Tammer.
17408
17409 2010-07-30  Bruno Haible  <bruno@clisp.org>
17410
17411         ldexpl; Update regarding AIX.
17412         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
17413         on AIX 7.
17414         Reported by Rainer Tammer.
17415
17416 2010-07-30  Bruno Haible  <bruno@clisp.org>
17417
17418         frexpl: Update regarding AIX.
17419         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
17420         on AIX 7.
17421         Reported by Rainer Tammer.
17422
17423 2010-07-30  Bruno Haible  <bruno@clisp.org>
17424
17425         open, fopen: Update regarding AIX.
17426         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
17427         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17428         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
17429         * doc/posix-functions/fopen.texi: Likewise.
17430         Reported by Rainer Tammer.
17431
17432 2010-07-30  Bruno Haible  <bruno@clisp.org>
17433
17434         chown: Update doc regarding AIX.
17435         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
17436         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
17437         Reported by Rainer Tammer.
17438
17439 2010-07-30  Eric Blake  <eblake@redhat.com>
17440
17441         strtod: fix bug in replacement function on AIX
17442         * lib/strtod.c (strtod): Special case broken "0x" parse in
17443         underlying strtod.
17444         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
17445         * doc/posix-functions/strtod.texi (strtod): Likewise.
17446         Reported by Rainer Tammer.
17447
17448 2010-07-30  Bruno Haible  <bruno@clisp.org>
17449
17450         mbrlen: Fix cross-compilation guess for AIX.
17451         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
17452         guess. Leftover from 2008-12-22.
17453
17454 2010-07-30  Bruno Haible  <bruno@clisp.org>
17455
17456         mbrtowc: Fix cross-compilation guess for AIX.
17457         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
17458         guess. Leftover from 2008-12-21.
17459
17460 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
17461
17462         init.sh: work around trap limitation of some shells
17463         * tests/init.sh (setup_): Move exit trap outside of shell function.
17464
17465 2010-07-29  Eric Blake  <eblake@redhat.com>
17466
17467         strtod: aid debugging
17468         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
17469         understanding why strtod is rejected.
17470
17471 2010-07-28  Bruno Haible  <bruno@clisp.org>
17472
17473         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
17474         * lib/unistr/u8-chr.c: Include <string.h>.
17475         * tests/unistr/test-u8-chr.c: Likewise.
17476         * tests/unistr/test-u16-chr.c: Likewise.
17477         * tests/unistr/test-u32-chr.c: Likewise.
17478         * tests/unistr/test-u8-strchr.c: Likewise.
17479         * tests/unistr/test-u16-strchr.c: Likewise.
17480         * tests/unistr/test-u32-strchr.c: Likewise.
17481         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
17482         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
17483         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
17484         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
17485
17486 2010-07-28  Bruno Haible  <bruno@clisp.org>
17487
17488         Use spaces for indentation, not tabs.
17489         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17490
17491 2010-07-27  Bruno Haible  <bruno@clisp.org>
17492
17493         mbspcasecmp: Fix function specification.
17494         * lib/string.in.h (mbspcasecmp): Fix specification comment.
17495         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
17496         Reported by Eric Blake <eblake@redhat.com>.
17497
17498 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
17499
17500         timespec: use cast and not conditional, as truncation isn't possible
17501         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
17502         instead of a conditional.  Comment about the situation in more detail.
17503         This undoes most of the 2009-10-29 patch.
17504
17505 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
17506
17507         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
17508         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
17509         * lib/unistr/u8-strchr.c: Likewise.
17510         * modules/unistr/u8-chr: Depend on memchr.
17511
17512         unistr/u*-strchr: add tests
17513         * modules/unistr/u8-strchr-tests: New file.
17514         * modules/unistr/u16-strchr-tests: New file.
17515         * modules/unistr/u32-strchr-tests: New file.
17516         * tests/unistr/test-strchr.h: New file.
17517         * tests/unistr/test-u8-strchr.c: New file.
17518         * tests/unistr/test-u16-strchr.c: New file.
17519         * tests/unistr/test-u32-strchr.c: New file.
17520
17521         unistr/u*-chr: test multibyte sequences more
17522         * tests/unistr/test-chr.h: Do complete testing of the characters in the
17523         test vector.
17524         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
17525         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
17526         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
17527
17528         unistr/u*-chr: test multibyte sequences
17529         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
17530
17531         unistr/u*-chr: prepare for multibyte tests
17532         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
17533         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
17534         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
17535         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
17536         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
17537         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
17538
17539 2010-07-18  Bruno Haible  <bruno@clisp.org>
17540
17541         unistr/u8-strchr: Optimize non-ASCII argument case.
17542         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
17543         because the first byte often matches anyway.
17544         Reported by Pádraig Brady <P@draigbrady.com>.
17545
17546 2010-07-15  Karl Berry  <karl@gnu.org>
17547
17548         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
17549
17550 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
17551
17552         getcwd: on Solaris, work better if ancestors are inaccessible
17553         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
17554         buffer and size, try again with a large buffer.  This works better
17555         on Solaris, since its getcwd succeeds even if the path to the root
17556         is inaccessible, and this is helpful in common cases such as .zfs
17557         hidden directories.  Problem reported by J Chapman Flack in
17558         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
17559         Use system getcwd if it's declared, not merely if it's partly
17560         working; use the partly-working test only to avoid needless effort
17561         if the system getcwd fails.
17562         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
17563         comment that was already obsolete and is now even more obsolete.
17564         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
17565         now might call strdup.
17566
17567 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
17568
17569         pthread: Add enough so that coreutils/src/sort.c compiles.
17570         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
17571         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
17572         gnulib. Include <sched.h> and <time.h>, as per POSIX.
17573         Include <sys/types.h>, in case it defines pthread_t.
17574         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
17575         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
17576         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
17577         (pthread_rwlockattr_t, pthread_spinlock_t):
17578         New typedefs, if HAVE_PTHREAD_T is not defined.
17579         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
17580         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
17581         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
17582         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
17583         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
17584         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
17585         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
17586         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
17587         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
17588         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
17589         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
17590         New macros.
17591         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
17592         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
17593         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
17594         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
17595         (pthread_spin_unlock): New dummy functions.
17596         (pthread_create): Return EAGAIN; don't set errno.
17597         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
17598         require AC_C_INLINE.
17599         * modules/pthread (Depends-on): Add sched, time.
17600         (pthread.h): Use AM_V_GEN.
17601
17602 2010-07-13  Bruno Haible  <bruno@clisp.org>
17603
17604         striconveh: Don't malloc memory if the result buffer is sufficient.
17605         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
17606         buffer if its size is sufficient.
17607         Reported by Ludovic Courtès <ludo@gnu.org>.
17608
17609 2010-07-13  Bruno Haible  <bruno@clisp.org>
17610
17611         strtod: Add safety check.
17612         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
17613
17614 2010-07-12  Bruno Haible  <bruno@clisp.org>
17615
17616         Unify tests that set gl_cv_func_ldexpl_no_libm.
17617         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
17618         gl_FUNC_LDEXPL.
17619         (gl_FUNC_LDEXPL): Invoke it.
17620         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17621
17622 2010-07-12  Bruno Haible  <bruno@clisp.org>
17623
17624         Unify tests that set gl_cv_func_ldexp_no_libm.
17625         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
17626         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
17627         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
17628         (configure.ac): Simply invoke gl_FUNC_LDEXP.
17629         * modules/strtod (Files): Add m4/ldexp.m4.
17630
17631 2010-07-12  Bruno Haible  <bruno@clisp.org>
17632
17633         Unify tests that set gl_cv_func_frexpl_no_libm.
17634         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
17635         gl_FUNC_FREXPL_NO_LIBM.
17636         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
17637         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17638
17639 2010-07-12  Bruno Haible  <bruno@clisp.org>
17640
17641         Unify tests that set gl_cv_func_frexp_no_libm.
17642         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
17643         gl_FUNC_FREXP_NO_LIBM.
17644         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
17645         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17646
17647 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17648
17649         memcoll: clarify sizes versus lengths, document better, and tweak perf
17650         * lib/memcoll.c (strcoll_loop, memcoll0):
17651         Improve quality of descriptive comments.  Name variables
17652         consistently as to whether they are lengths (which do not include
17653         terminating null) versus sizes (which do).
17654         * lib/xmemcoll.c (xmemcoll0): Likewise.
17655         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
17656         returned when s1size == 0; this is easier to compile and saves
17657         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
17658
17659 2010-07-12  Bruno Haible  <bruno@clisp.org>
17660
17661         Tests for module '_Exit'.
17662         * modules/_Exit-tests: New file.
17663         * tests/test-_Exit.sh: New file.
17664         * tests/test-_Exit.c: New file.
17665
17666         New module '_Exit'.
17667         * lib/stdlib.in.h (__attribute__): New macro.
17668         (_Exit): New declaration.
17669         * lib/_Exit.c: New file.
17670         * m4/_Exit.m4: New file.
17671         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
17672         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
17673         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
17674         * modules/_Exit: New file.
17675         * tests/test-stdlib-c++.cc (_Exit): Check signature.
17676         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
17677
17678 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17679
17680         strtod: make it more-accurate typically, and don't require libm
17681         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
17682         Include limits.h.  Don't include string.h.
17683         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
17684         (locale_isspace): New function, so that no casts are needed to
17685         check whether *s is a space.
17686         (ldexp): Provide an unused dummy if not available.
17687         (scale_radix_exp, parse_number, underlying_strtod): New functions.
17688         (strtod): Use them.  This implementation prefers to use the
17689         underlying strtod if available, falling back on our own code
17690         only to fix known bugs.  This is more likely to produce an
17691         accurate result.  Also, it avoids the use of libm functions.
17692         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
17693         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
17694         was absent, but it caused a test failure with coreutils.
17695         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
17696         with libm.
17697         * modules/strtod (Makefile.am, Link): libm is no longer needed.
17698         * modules/strtod-tests (Makefile.am): Likewise.
17699
17700 2010-07-11  Pádraig Brady  <P@draigBrady.com>
17701             Bruno Haible  <bruno@clisp.org>
17702
17703         unistr/u8-strchr: Optimize ASCII argument case.
17704         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
17705
17706 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17707
17708         (x)memcoll: minor tweaks
17709         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
17710         is after the type that it qualifies.
17711         (memcoll0): Likewise.
17712         * lib/memcoll.h (memcoll0): Likewise.
17713         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
17714         * lib/xmemcoll.h (xmemcoll0): Likewise.
17715         * lib/memcoll.c (memcoll0): Correct the comment.  This function
17716         differs from memcoll in that the NUL byte is part of the argument.
17717         Omit the abort-checks, as performance is a real issue here.  Plus,
17718         the checks were wrong anyway (an off-by-one error).  Omit local
17719         variable 'diff', as it's a bit clearer that way.
17720         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
17721         no longer needed.
17722
17723 2010-07-08  Chen Guo <chenguo4@yahoo.com>
17724
17725         (x)memcoll: speedup when input is known to be NUL delimited
17726         * lib/memcoll.c: Include stdlib.
17727         (memcoll0): New function.
17728         (strcoll_loop): New function, refactored for use in both memcoll
17729         and memcoll0.
17730         * lib/memcoll.h (memcoll0): Add prototype.
17731         * lib/xmemcoll.c (xmemcoll0): New function.
17732         (collate_error): New function, refactored for use in both xmemcoll
17733         and xmemcoll0.
17734         * lib/xmemcoll.h (xmemcoll0): Add prototype.
17735         * m4/memcoll.m4: add inline invocation.
17736
17737 2010-07-06  Pádraig Brady  <P@draigBrady.com>
17738
17739         * build-aux/bootstrap: Remove any local translations
17740         from the translation project synchronization directory,
17741         so that local only translations are not distributed.
17742
17743 2010-07-04  Bruno Haible  <bruno@clisp.org>
17744
17745         fsusage: Clarify which code applies to which platforms.
17746         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
17747         platform.
17748         * lib/fsusage.c (get_fs_usage): Likewise.
17749
17750 2010-07-04  Bruno Haible  <bruno@clisp.org>
17751
17752         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
17753         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
17754         Reported by Martin Lambers <marlam@marlam.de>.
17755
17756 2010-07-04  Jim Meyering  <meyering@redhat.com>
17757
17758         hash: once again explicitly disallow insertion of NULL
17759         * lib/hash.c (hash_insert0): Reinstate just-removed test:
17760         inserting a NULL pointer cannot work with these functions.
17761         Add a comment with details.
17762         This reverts part of the 2010-07-01 commit, 5bef1a35
17763         "hash: extend module to deal with non-pointer keys".
17764
17765 2010-07-01  Bruno Haible  <bruno@clisp.org>
17766
17767         stdbool: Update doc.
17768         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
17769         Info from Christian Weisgerber <naddy@mips.inka.de>.
17770
17771 2010-07-01  Jim Meyering  <meyering@redhat.com>
17772
17773         hash: extend module to deal with non-pointer keys
17774         * lib/hash.c (hash_insert0): New interface, much like hash_insert
17775         but that allows insertion of non-pointer entries.
17776         Do not disallow an ENTRY value of NULL.
17777         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
17778         * lib/hash.h (hash_insert0): Declare.
17779
17780 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17781
17782         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
17783         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
17784         not present (i.e. with autoconf 2.59 and when using gettextize, not
17785         gnulib), require AC_GNU_SOURCE instead.
17786
17787 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
17788
17789         idpriv-drop: Fix tests.
17790         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
17791         not to the test-idpriv-droptemp program.
17792
17793 2010-06-29  Bruno Haible  <bruno@clisp.org>
17794
17795         string: Fix syntax error with g++ 2.96.
17796         * lib/string.in.h (__pure__): Remove definition.
17797         (_GL_ATTRIBUTE_PURE): New macro.
17798         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
17799         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
17800         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17801
17802 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
17803
17804         unitypes: Fix bug introduced on 2010-05-18.
17805         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
17806
17807 2010-06-22  Eric Blake  <eblake@redhat.com>
17808
17809         memmem: slight optimization
17810         * lib/str-two-way.h (critical_factorization): Update comments.
17811         Reduce work during factorization phase.
17812         Reported by Carlos Bueno <carlos@bueno.org>.
17813
17814 2010-06-21  Bruno Haible  <bruno@clisp.org>
17815
17816         Fix HAVE_CALLOC_POSIX misnomer.
17817         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
17818         !HAVE_CALLOC_POSIX.
17819         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
17820         HAVE_CALLOC_POSIX.
17821         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
17822         instead of HAVE_CALLOC_POSIX.
17823         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
17824         HAVE_CALLOC_POSIX.
17825
17826         Use modern idiom for calloc() replacement.
17827         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
17828         AC_FUNC_CALLOC.
17829         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
17830         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
17831         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17832         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
17833         (gl_REPLACE_CALLOC): New macro.
17834
17835 2010-06-21  Bruno Haible  <bruno@clisp.org>
17836
17837         Fix HAVE_REALLOC_POSIX misnomer.
17838         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
17839         !HAVE_REALLOC_POSIX.
17840         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
17841         HAVE_REALLOC_POSIX.
17842         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
17843         instead of HAVE_REALLOC_POSIX.
17844         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
17845         HAVE_REALLOC_POSIX.
17846
17847         Use modern idiom for realloc() replacement.
17848         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
17849         AC_FUNC_REALLOC.
17850         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
17851         Autoconf's AC_FUNC_REALLOC.
17852         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17853         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
17854         (gl_REPLACE_REALLOC): New macro.
17855         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
17856
17857 2010-06-21  Bruno Haible  <bruno@clisp.org>
17858
17859         Fix HAVE_MALLOC_POSIX misnomer.
17860         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
17861         !HAVE_MALLOC_POSIX.
17862         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
17863         HAVE_MALLOC_POSIX.
17864         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
17865         instead of HAVE_MALLOC_POSIX.
17866         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
17867         HAVE_MALLOC_POSIX.
17868
17869         Use modern idiom for malloc() replacement.
17870         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
17871         AC_FUNC_MALLOC.
17872         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
17873         Autoconf's AC_FUNC_MALLOC.
17874         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17875         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
17876         (gl_REPLACE_MALLOC): New macro.
17877         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
17878
17879 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
17880
17881         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
17882         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
17883         This macro takes 3 arguments, not 4.
17884
17885 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
17886
17887         ipv6: fix detection under mingw
17888         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
17889         in6_addr.
17890
17891 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
17892
17893         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
17894         that strtod() works when cross-compiling to a glibc version known
17895         to work.
17896
17897 2010-06-15  Bruno Haible  <bruno@clisp.org>
17898
17899         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
17900
17901 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
17902
17903         select: Correct timeout.
17904         * lib/select.c (rpl_select): Compute wait_timeout correctly.
17905
17906 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17907
17908         git-version-gen: init shell var to avoid env var influence
17909         * build-aux/git-version-gen (v): Init shell var to empty.
17910
17911 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
17912
17913         priv-set: Don't assume that priv.h exists merely because getppriv does.
17914         See Jan Andersen's bug report about AIX 5L in
17915         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
17916         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
17917         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
17918         * lib/priv-set.h: Likewise.
17919         * tests/test-priv-set.c: Likewise.
17920
17921 2010-06-13  Bruno Haible  <bruno@clisp.org>
17922
17923         relocatable: Make it easier to test whether to install wrappers.
17924         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
17925         RELOCATABLE_VIA_WRAPPER.
17926
17927 2010-06-13  Bruno Haible  <bruno@clisp.org>
17928
17929         gnulib-tool: Display specified modules and dependencies differently.
17930         * gnulib-tool (func_show_module_list): New function.
17931         (func_import, func_create_testdir): Invoke it.
17932         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
17933
17934 2010-06-13  Bruno Haible  <bruno@clisp.org>
17935
17936         gnulib-tool: Align code of func_import and func_create_testdir.
17937         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
17938         specified_modules.
17939
17940 2010-06-12  Jim Meyering  <meyering@redhat.com>
17941
17942         test-inttostr: avoid spurious failure on Solaris 9
17943         * tests/test-inttostr.c (main): Skip the test when snprintf fails
17944         to accept "%ju".  Reported by Bruno Haible.
17945
17946 2010-06-11  Jim Meyering  <meyering@redhat.com>
17947
17948         test-sys_socket: mark variables as used more readably
17949         * tests/test-sys_socket.c (main): Mark otherwise unused variables
17950         as "used" explicitly via (void) statement casts.  This is more
17951         readable than using them in an artificial return expression.
17952         Suggestion from Bruno Haible.
17953
17954 2010-06-11  Bruno Haible  <bruno@clisp.org>
17955
17956         Avoid some more warnings from "gcc -Wwrite-strings".
17957         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
17958         to 'const char *'.
17959         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
17960         * tests/test-c-strcasestr.c (main): Likewise.
17961         * tests/test-mbscasestr1.c (main): Likewise.
17962         * tests/test-mbscasestr2.c (main): Likewise.
17963         * tests/test-memmem.c (main): Likewise.
17964         * tests/test-strstr.c (main): Likewise.
17965         * tests/test-strcasestr.c (main): Likewise.
17966
17967 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17968
17969         init.sh: change framework_failure_ to fail with status 99, not 1
17970         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
17971         automake's parallel-tests rule that this is an unexpected failure,
17972         even if the test is listed in XFAIL_TESTS.
17973
17974 2010-06-11  Jim Meyering  <meyering@redhat.com>
17975
17976         test-inttostr: avoid warnings about 4-6KB literal strings
17977         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
17978         Include "macros.h", for its definition of ASSERT.
17979         (CK): s/assert/ASSERT/
17980         * modules/inttostr-tests (Files): Add macros.h.
17981
17982         init.sh: don't use $ME_ or skip_ before they are defined
17983         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
17984         their first uses.  Also hoist their companions: warn_, fail_,
17985         framework_failure_, $stderr_fileno.  Prompted by a patch from
17986         Stefano Lattarini.
17987
17988         test-sys_socket: avoid set-but-not-used warnings from gcc
17989         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
17990         avoid warning about set-but-not-used variables.
17991
17992         test-xvasprintf: avoid 'const' discard warnings
17993         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
17994         "const" when assigning from literal strings.
17995         (test_xasprintf): Add "void" in function argument list to placate
17996         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
17997
17998         tests: avoid compilation warnings in argmatch and exclude tests...
17999         in packages that define ARGMATCH_DIE_DECL, like coreutils.
18000         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
18001         Since it always exits, declare with the "noreturn" attribute.
18002         * tests/test-argmatch.c: Likewise.
18003
18004         tests: avoid 'const' discard warnings in mbsstr tests
18005         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
18006         * tests/test-mbsstr2.c (main): Likewise.
18007
18008         test-verify: avoid warning from gcc's -Wmissing-declarations
18009         * tests/test-verify.c (function): Declare to be static.
18010
18011         test-inttostr.c: include <string.h> for use of strcmp
18012         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
18013
18014         test-linkat: avoid failed assertion on "other" architectures
18015         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
18016         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
18017         sparc: https://bugs.launchpad.net/bugs/591968
18018
18019 2010-06-11  Jim Meyering  <meyering@redhat.com>
18020
18021         printf.m4: avoid autoconf's "Expanded Before Required" warning
18022         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
18023         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
18024         autoconf warning.
18025
18026 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
18027
18028         Replacement header templates are now named with ".in", not "_".
18029         * doc/gnulib-intro.texi: Correct.
18030
18031 2010-06-10  Jim Meyering  <meyering@redhat.com>
18032
18033         inttostr-tests: depend on snprintf, not snprintf-posix
18034         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
18035         snprintf-posix, to avoid this aclocal failure:
18036           missing file gnulib-tests/vasnprintf.c
18037           configure.ac:45: error: expected source file, required through \
18038           AC_LIBSOURCES, not found
18039
18040 2010-06-10  Jim Meyering  <meyering@redhat.com>
18041
18042         inttostr: add a new function, inttostr, and tests
18043         The namesake function was not available.  The existence of the
18044         template file, inttostr.c makes its addition nontrivial.
18045         * lib/anytostr.c: Rename from inttostr.c.
18046         (anytostr): Rename from inttostr.
18047         * lib/inttostr.c: New file.
18048         * modules/inttostr (Files): Add anytostr.c.
18049         (Makefile.am): Set lib_SOURCES instead of ...
18050         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
18051         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
18052         * lib/offtostr.c: Likewise.
18053         * lib/uinttostr.c: Likewise.
18054         * lib/umaxtostr.c: Likewise.
18055         * modules/inttostr-tests: New file.
18056         * tests/test-inttostr.c: New file.  Test these functions.
18057
18058 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
18059             Bruno Haible  <bruno@clisp.org>
18060
18061         Add "Extending Gnulib" chapter to manual.
18062         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
18063         chapter.
18064         (Extending Gnulib): New chapter.
18065         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
18066         chapter.
18067
18068 2010-06-09  Bruno Haible  <bruno@clisp.org>
18069
18070         Avoid relocwrapper link errors due to gnulib replacement functions.
18071         * lib/areadlink.c: Use the system's malloc, realloc functions.
18072         (areadlink): Set errno to ENOMEM explicitly.
18073         * modules/areadlink (Depends-on): Remove malloc-posix.
18074         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18075
18076 2010-06-09  Bruno Haible  <bruno@clisp.org>
18077
18078         Avoid relocwrapper link errors due to gnulib replacement functions.
18079         * lib/canonicalize-lgpl.c: Use the system's malloc function.
18080         * lib/malloca.c: Likewise.
18081         * lib/relocatable.c: Likewise.
18082         * lib/progreloc.c: Use the system's malloc, sprintf functions.
18083         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
18084         * lib/setenv.c: Use the system's malloc, realloc functions.
18085         * lib/strerror.c: Use the system's sprintf function.
18086         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18087
18088 2010-06-04  Bruno Haible  <bruno@clisp.org>
18089
18090         Prefer documented low-level autoconf macro names.
18091         * m4/lib-link.m4: Use m4_translit instead of translit.
18092         * m4/environ.m4: Likewise.
18093         * m4/mathfunc.m4: Likewise.
18094         * m4/onceonly.m4: Likewise.
18095         * m4/stdint.m4: Likewise.
18096         Suggested by Eric Blake.
18097
18098 2010-06-04  Martin Lambers  <marlam@marlam.de>
18099             Bruno Haible  <bruno@clisp.org>
18100
18101         havelib: Allow library names with '+' characters.
18102         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18103         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
18104
18105 2010-06-09  Bruno Haible  <bruno@clisp.org>
18106
18107         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
18108         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
18109         realloc failed.
18110
18111 2010-06-08  Peter Simons  <simons@cryp.to>
18112
18113         maint.mk: make the news-check rule more configurable
18114         * top/maint.mk (news-check-lines-spec): New variable.
18115         (news-check): Use "sed -n 1,10p" in place of "head".
18116
18117 2010-06-07  Jim Meyering  <meyering@redhat.com>
18118
18119         do-release-commit-and-tag: fix typo in --help
18120         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
18121
18122         regex: avoid new dead-code warning with gcc-4.6.0
18123         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
18124         if-block containing a while-loop.  It's been unused for at least
18125         5 years.
18126
18127 2010-06-05  Bruno Haible  <bruno@clisp.org>
18128
18129         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
18130         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
18131
18132 2010-06-04  Bruno Haible  <bruno@clisp.org>
18133
18134         Update to GNU gettext 0.18.1.
18135         * modules/gettext (configure.ac): Require gettext infrastructure from
18136         version 0.18.1.
18137
18138 2010-06-03  Bruno Haible  <bruno@clisp.org>
18139
18140         Don't use AC_LIBOBJ with file names in subdirectories.
18141         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
18142         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
18143         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
18144         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
18145         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
18146         gl_LIBUNISTRING_LIBSOURCE.
18147         (Makefile.am): Augment lib_SOURCES here, conditionally.
18148         * NEWS: Drop requirement for Automake option 'subdir-objects'.
18149
18150 2010-06-03  Bruno Haible  <bruno@clisp.org>
18151
18152         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
18153         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
18154         expansion does not end with a newline.
18155         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
18156         unnecessary newline.
18157
18158 2010-06-03  Bruno Haible  <bruno@clisp.org>
18159
18160         Reduce dependencies.
18161         * tests/test-quotearg.h: New file, extracted from
18162         tests/test-quotearg.c.
18163         * tests/test-quotearg-simple.c: New file, extracted from
18164         tests/test-quotearg.c.
18165         * tests/test-quotearg.c: Don't include <ctype.h>.
18166         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
18167         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
18168         use_quote_double_quotes, use_quotearg_colon): Moved to
18169         tests/test-quotearg.h.
18170         (results_g, flag_results, custom_quotes, custom_results): Moved
18171         to tests/test-quotearg-simple.c.
18172         (main): Moved the part that does not depend on gettext to
18173         tests/test-quotearg-simple.c. Return 77 if the test cannot be
18174         performed.
18175         * modules/quotearg-simple: New file.
18176         * modules/quotearg-simple-tests: New file.
18177         * modules/quotearg (Depends-on): Add quotearg-simple.
18178         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
18179         (Files): Add tests/test-quotearg.h.
18180         Reported by Paolo Bonzini.
18181
18182 2010-06-03  Bruno Haible  <bruno@clisp.org>
18183
18184         Reduce dependencies.
18185         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
18186
18187 2010-06-03  Bruno Haible  <bruno@clisp.org>
18188
18189         time: Undefine more broken macros.
18190         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
18191         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
18192         Reported by Eric Blake.
18193
18194 2010-06-03  Bruno Haible  <bruno@clisp.org>
18195
18196         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
18197         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
18198         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
18199         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
18200         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
18201         Reported by Ludovic Courtès <ludo@gnu.org>.
18202
18203 2010-06-02  Eric Blake  <eblake@redhat.com>
18204
18205         time: work with mingw + pthreads-win32 library
18206         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
18207         if timespec is defined only in pthread.h.
18208         * modules/time (Makefile.am): Substitute it.
18209         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
18210         <pthread.h>, when needed.
18211         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
18212         from the library.
18213
18214 2010-05-31  Bruno Haible  <bruno@clisp.org>
18215
18216         Avoid expanding two macros in the wrong order.
18217         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
18218         gl_LIBUNISTRING if it is defined.
18219         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
18220         autoconf >= 2.64.
18221         Reported by Ludovic Courtès <ludo@gnu.org>.
18222
18223 2010-05-27  Jim Meyering  <meyering@redhat.com>
18224
18225         maint.mk: also prohibit "#undef" of always-defined symbols
18226         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
18227         Allow more than one space before the symbol name.
18228         (sc_prohibit_always-defined_macros): Use grep's -E, now that
18229         the regexp uses alternation.
18230
18231 2010-05-26  Eric Blake  <eblake@redhat.com>
18232
18233         maint.mk: avoid echo -e
18234         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
18235         Convert all uses of echo -* to printf.
18236         Reported by Matthias Bolte.
18237
18238 2010-05-25  Bruno Haible  <bruno@clisp.org>
18239
18240         Update to GNU gettext 0.18, part 2.
18241         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
18242         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
18243
18244 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18245
18246         Add missing include in test-pwrite.c.
18247         * tests/test-pwrite.c: Include string.h, for strcmp.
18248
18249 2010-05-24  Bruno Haible  <bruno@clisp.org>
18250
18251         * NEWS: Mention requirement for Automake option 'subdir-objects'.
18252
18253 2010-05-24  Bruno Haible  <bruno@clisp.org>
18254
18255         Don't use conversion with transliteration in u{8,16,32}_strcoll.
18256         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
18257         iconveh_error argument.
18258         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
18259         U_STRCONV_TO_LOCALE.
18260         * lib/unistr/u16-strcoll.c: Likewise.
18261         * lib/unistr/u32-strcoll.c: Likewise.
18262         * modules/unistr/u8-strcoll (Depends-on): Add
18263         uniconv/u8-strconv-to-enc, localcharset. Remove
18264         uniconv/u8-strconv-to-locale.
18265         (configure.ac): Bump version number.
18266         * modules/unistr/u16-strcoll (Depends-on): Add
18267         uniconv/u16-strconv-to-enc, localcharset. Remove
18268         uniconv/u16-strconv-to-locale.
18269         (configure.ac): Bump version number.
18270         * modules/unistr/u32-strcoll (Depends-on): Add
18271         uniconv/u32-strconv-to-enc, localcharset. Remove
18272         uniconv/u32-strconv-to-locale.
18273         (configure.ac): Bump version number.
18274
18275 2010-05-24  Bruno Haible  <bruno@clisp.org>
18276
18277         Avoid a test failure on NetBSD 5.0.
18278         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
18279         an iconv() bug.
18280
18281 2010-05-24  Bruno Haible  <bruno@clisp.org>
18282
18283         Adjust #include directive style.
18284         * modules/regex (Includes): Recommend to write <regex.h>.
18285
18286 2010-05-24  Bruno Haible  <bruno@clisp.org>
18287
18288         regex: Don't require alloca.
18289         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
18290         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
18291         only inside if (0).
18292
18293 2010-05-23  Jim Meyering  <meyering@redhat.com>
18294
18295         test-renameat.c: include <sys/stat.h>
18296         * tests/test-renameat.c: Include <sys/stat.h>; required for
18297         definition of S_IS* macros.
18298
18299 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
18300
18301         Update maintainer documentation for 'relocatable-prog' module.
18302         * doc/relocatable-maint.texi: Update.
18303         Comments by Bruno Haible.
18304
18305 2010-05-23  Bruno Haible  <bruno@clisp.org>
18306
18307         git-merge-changelog: Enable --split-merged-entry by default.
18308         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
18309         (usage): Don't mention this option any more.
18310         Reported by Ralf Wildenhues.
18311
18312 2010-05-23  Jim Meyering  <meyering@redhat.com>
18313
18314         test-pwrite: do not leave behind a test file named "out"
18315         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
18316         The trivial-looking use of init.sh is really necessary.
18317         It ensures that the temporary file, "out", is created in
18318         a temporary directory, and removed upon termination.
18319         * tests/test-pwrite.sh: Re-add file.
18320         * modules/pwrite-tests: Reference it.
18321
18322 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18323
18324         Fix output redirection buglet in init.sh.
18325         * tests/init.sh: Fix redirection of stderr.
18326
18327 2010-05-20  Simon Josefsson  <simon@josefsson.org>
18328
18329         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
18330
18331 2010-05-17  Simon Josefsson  <simon@josefsson.org>
18332
18333         * modules/valgrind-tests: New file.
18334         * m4/valgrind-tests.m4: New file.
18335         * doc/valgrind-tests.texi: New file.
18336         * doc/gnulib.texi (Running self-tests under valgrind): New
18337         section.
18338
18339 2010-05-19  Bruno Haible  <bruno@clisp.org>
18340
18341         Clean up dead code in recent commit.
18342         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
18343         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
18344         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
18345         Suggested by Paolo Bonzini.
18346
18347 2010-05-19  Bruno Haible  <bruno@clisp.org>
18348
18349         Avoid valgrind error reports from libunistring.
18350         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
18351         * modules/libunistring (Files): Add it.
18352         * modules/libunistring-optional (Files): Likewise.
18353
18354 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
18355             Bruno Haible  <bruno@clisp.org>
18356
18357         New module 'libunistring-optional'.
18358         * modules/libunistring-optional: New file.
18359         * m4/libunistring-base.m4: New file.
18360         * m4/libunistring-optional.m4: New file.
18361         * lib/unicase.in.h: Renamed from lib/unicase.h.
18362         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
18363         * lib/unictype.in.h: Renamed from lib/unictype.h.
18364         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
18365         * lib/uniname.in.h: Renamed from lib/uniname.h.
18366         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
18367         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
18368         * lib/unistr.in.h: Renamed from lib/unistr.h.
18369         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
18370         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
18371         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
18372         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
18373         gl_LIBUNISTRING. If the library was found, determine the installed
18374         version and set LIBUNISTRING_VERSION.
18375         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
18376         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
18377         handle a configuration option --with-included-libunistring.
18378         * modules/libunistring (Files): Add m4/absolute-header.m4.
18379         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
18380         Add m4/libunistring-base.m4.
18381         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18382         (Makefile.am): Build unicase.h from unicase.in.h.
18383         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
18384         Add m4/libunistring-base.m4.
18385         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18386         (Makefile.am): Build uniconv.h from uniconv.in.h.
18387         * modules/unictype/base (Files): Use unictype.in.h instead of
18388         unictype.h. Add m4/libunistring-base.m4.
18389         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18390         (Makefile.am): Build unictype.h from unictype.in.h.
18391         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
18392         Add m4/libunistring-base.m4.
18393         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18394         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
18395         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
18396         Add m4/libunistring-base.m4.
18397         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18398         (Makefile.am): Build uniname.h from uniname.in.h.
18399         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
18400         Add m4/libunistring-base.m4.
18401         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18402         (Makefile.am): Build uninorm.h from uninorm.in.h.
18403         * modules/unistdio/base (Files): Use unistdio.in.h instead of
18404         unistdio.h. Add m4/libunistring-base.m4.
18405         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18406         (Makefile.am): Build unistdio.h from unistdio.in.h.
18407         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
18408         Add m4/libunistring-base.m4.
18409         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18410         (Makefile.am): Build unistr.h from unistr.in.h.
18411         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
18412         Add m4/libunistring-base.m4.
18413         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18414         (Makefile.am): Build unitypes.h from unitypes.in.h.
18415         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
18416         Add m4/libunistring-base.m4.
18417         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18418         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
18419         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
18420         uniwidth.h. Add m4/libunistring-base.m4.
18421         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18422         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
18423         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
18424         instead of augmenting lib_SOURCES.
18425         * modules/unicase/empty-suffix-context: Likewise.
18426         * modules/unicase/locale-language: Likewise.
18427         * modules/unicase/tolower: Likewise.
18428         * modules/unicase/totitle: Likewise.
18429         * modules/unicase/toupper: Likewise.
18430         * modules/unicase/u8-casecmp: Likewise.
18431         * modules/unicase/u8-casecoll: Likewise.
18432         * modules/unicase/u8-casefold: Likewise.
18433         * modules/unicase/u8-casexfrm: Likewise.
18434         * modules/unicase/u8-ct-casefold: Likewise.
18435         * modules/unicase/u8-ct-tolower: Likewise.
18436         * modules/unicase/u8-ct-totitle: Likewise.
18437         * modules/unicase/u8-ct-toupper: Likewise.
18438         * modules/unicase/u8-is-cased: Likewise.
18439         * modules/unicase/u8-is-casefolded: Likewise.
18440         * modules/unicase/u8-is-lowercase: Likewise.
18441         * modules/unicase/u8-is-titlecase: Likewise.
18442         * modules/unicase/u8-is-uppercase: Likewise.
18443         * modules/unicase/u8-prefix-context: Likewise.
18444         * modules/unicase/u8-suffix-context: Likewise.
18445         * modules/unicase/u8-tolower: Likewise.
18446         * modules/unicase/u8-totitle: Likewise.
18447         * modules/unicase/u8-toupper: Likewise.
18448         * modules/unicase/u16-casecmp: Likewise.
18449         * modules/unicase/u16-casecoll: Likewise.
18450         * modules/unicase/u16-casefold: Likewise.
18451         * modules/unicase/u16-casexfrm: Likewise.
18452         * modules/unicase/u16-ct-casefold: Likewise.
18453         * modules/unicase/u16-ct-tolower: Likewise.
18454         * modules/unicase/u16-ct-totitle: Likewise.
18455         * modules/unicase/u16-ct-toupper: Likewise.
18456         * modules/unicase/u16-is-cased: Likewise.
18457         * modules/unicase/u16-is-casefolded: Likewise.
18458         * modules/unicase/u16-is-lowercase: Likewise.
18459         * modules/unicase/u16-is-titlecase: Likewise.
18460         * modules/unicase/u16-is-uppercase: Likewise.
18461         * modules/unicase/u16-prefix-context: Likewise.
18462         * modules/unicase/u16-suffix-context: Likewise.
18463         * modules/unicase/u16-tolower: Likewise.
18464         * modules/unicase/u16-totitle: Likewise.
18465         * modules/unicase/u16-toupper: Likewise.
18466         * modules/unicase/u32-casecmp: Likewise.
18467         * modules/unicase/u32-casecoll: Likewise.
18468         * modules/unicase/u32-casefold: Likewise.
18469         * modules/unicase/u32-casexfrm: Likewise.
18470         * modules/unicase/u32-ct-casefold: Likewise.
18471         * modules/unicase/u32-ct-tolower: Likewise.
18472         * modules/unicase/u32-ct-totitle: Likewise.
18473         * modules/unicase/u32-ct-toupper: Likewise.
18474         * modules/unicase/u32-is-cased: Likewise.
18475         * modules/unicase/u32-is-casefolded: Likewise.
18476         * modules/unicase/u32-is-lowercase: Likewise.
18477         * modules/unicase/u32-is-titlecase: Likewise.
18478         * modules/unicase/u32-is-uppercase: Likewise.
18479         * modules/unicase/u32-prefix-context: Likewise.
18480         * modules/unicase/u32-suffix-context: Likewise.
18481         * modules/unicase/u32-tolower: Likewise.
18482         * modules/unicase/u32-totitle: Likewise.
18483         * modules/unicase/u32-toupper: Likewise.
18484         * modules/unicase/ulc-casecmp: Likewise.
18485         * modules/unicase/ulc-casecoll: Likewise.
18486         * modules/unicase/ulc-casexfrm: Likewise.
18487         * modules/uniconv/u8-conv-from-enc: Likewise.
18488         * modules/uniconv/u8-conv-to-enc: Likewise.
18489         * modules/uniconv/u8-strconv-from-enc: Likewise.
18490         * modules/uniconv/u8-strconv-from-locale: Likewise.
18491         * modules/uniconv/u8-strconv-to-enc: Likewise.
18492         * modules/uniconv/u8-strconv-to-locale: Likewise.
18493         * modules/uniconv/u16-conv-from-enc: Likewise.
18494         * modules/uniconv/u16-conv-to-enc: Likewise.
18495         * modules/uniconv/u16-strconv-from-enc: Likewise.
18496         * modules/uniconv/u16-strconv-from-locale: Likewise.
18497         * modules/uniconv/u16-strconv-to-enc: Likewise.
18498         * modules/uniconv/u16-strconv-to-locale: Likewise.
18499         * modules/uniconv/u32-conv-from-enc: Likewise.
18500         * modules/uniconv/u32-conv-to-enc: Likewise.
18501         * modules/uniconv/u32-strconv-from-enc: Likewise.
18502         * modules/uniconv/u32-strconv-from-locale: Likewise.
18503         * modules/uniconv/u32-strconv-to-enc: Likewise.
18504         * modules/uniconv/u32-strconv-to-locale: Likewise.
18505         * modules/unictype/bidicategory-byname: Likewise.
18506         * modules/unictype/bidicategory-name: Likewise.
18507         * modules/unictype/bidicategory-of: Likewise.
18508         * modules/unictype/bidicategory-test: Likewise.
18509         * modules/unictype/block-list: Likewise.
18510         * modules/unictype/block-test: Likewise.
18511         * modules/unictype/category-C: Likewise.
18512         * modules/unictype/category-Cc: Likewise.
18513         * modules/unictype/category-Cf: Likewise.
18514         * modules/unictype/category-Cn: Likewise.
18515         * modules/unictype/category-Co: Likewise.
18516         * modules/unictype/category-Cs: Likewise.
18517         * modules/unictype/category-L: Likewise.
18518         * modules/unictype/category-Ll: Likewise.
18519         * modules/unictype/category-Lm: Likewise.
18520         * modules/unictype/category-Lo: Likewise.
18521         * modules/unictype/category-Lt: Likewise.
18522         * modules/unictype/category-Lu: Likewise.
18523         * modules/unictype/category-M: Likewise.
18524         * modules/unictype/category-Mc: Likewise.
18525         * modules/unictype/category-Me: Likewise.
18526         * modules/unictype/category-Mn: Likewise.
18527         * modules/unictype/category-N: Likewise.
18528         * modules/unictype/category-Nd: Likewise.
18529         * modules/unictype/category-Nl: Likewise.
18530         * modules/unictype/category-No: Likewise.
18531         * modules/unictype/category-P: Likewise.
18532         * modules/unictype/category-Pc: Likewise.
18533         * modules/unictype/category-Pd: Likewise.
18534         * modules/unictype/category-Pe: Likewise.
18535         * modules/unictype/category-Pf: Likewise.
18536         * modules/unictype/category-Pi: Likewise.
18537         * modules/unictype/category-Po: Likewise.
18538         * modules/unictype/category-Ps: Likewise.
18539         * modules/unictype/category-S: Likewise.
18540         * modules/unictype/category-Sc: Likewise.
18541         * modules/unictype/category-Sk: Likewise.
18542         * modules/unictype/category-Sm: Likewise.
18543         * modules/unictype/category-So: Likewise.
18544         * modules/unictype/category-Z: Likewise.
18545         * modules/unictype/category-Zl: Likewise.
18546         * modules/unictype/category-Zp: Likewise.
18547         * modules/unictype/category-Zs: Likewise.
18548         * modules/unictype/category-and: Likewise.
18549         * modules/unictype/category-and-not: Likewise.
18550         * modules/unictype/category-byname: Likewise.
18551         * modules/unictype/category-name: Likewise.
18552         * modules/unictype/category-none: Likewise.
18553         * modules/unictype/category-of: Likewise.
18554         * modules/unictype/category-or: Likewise.
18555         * modules/unictype/category-test: Likewise.
18556         * modules/unictype/combining-class: Likewise.
18557         * modules/unictype/ctype-alnum: Likewise.
18558         * modules/unictype/ctype-alpha: Likewise.
18559         * modules/unictype/ctype-blank: Likewise.
18560         * modules/unictype/ctype-cntrl: Likewise.
18561         * modules/unictype/ctype-digit: Likewise.
18562         * modules/unictype/ctype-graph: Likewise.
18563         * modules/unictype/ctype-lower: Likewise.
18564         * modules/unictype/ctype-print: Likewise.
18565         * modules/unictype/ctype-punct: Likewise.
18566         * modules/unictype/ctype-space: Likewise.
18567         * modules/unictype/ctype-upper: Likewise.
18568         * modules/unictype/ctype-xdigit: Likewise.
18569         * modules/unictype/decimal-digit: Likewise.
18570         * modules/unictype/digit: Likewise.
18571         * modules/unictype/mirror: Likewise.
18572         * modules/unictype/numeric: Likewise.
18573         * modules/unictype/property-alphabetic: Likewise.
18574         * modules/unictype/property-ascii-hex-digit: Likewise.
18575         * modules/unictype/property-bidi-arabic-digit: Likewise.
18576         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
18577         * modules/unictype/property-bidi-block-separator: Likewise.
18578         * modules/unictype/property-bidi-boundary-neutral: Likewise.
18579         * modules/unictype/property-bidi-common-separator: Likewise.
18580         * modules/unictype/property-bidi-control: Likewise.
18581         * modules/unictype/property-bidi-embedding-or-override: Likewise.
18582         * modules/unictype/property-bidi-eur-num-separator: Likewise.
18583         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
18584         * modules/unictype/property-bidi-european-digit: Likewise.
18585         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
18586         * modules/unictype/property-bidi-left-to-right: Likewise.
18587         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
18588         * modules/unictype/property-bidi-other-neutral: Likewise.
18589         * modules/unictype/property-bidi-pdf: Likewise.
18590         * modules/unictype/property-bidi-segment-separator: Likewise.
18591         * modules/unictype/property-bidi-whitespace: Likewise.
18592         * modules/unictype/property-byname: Likewise.
18593         * modules/unictype/property-combining: Likewise.
18594         * modules/unictype/property-composite: Likewise.
18595         * modules/unictype/property-currency-symbol: Likewise.
18596         * modules/unictype/property-dash: Likewise.
18597         * modules/unictype/property-decimal-digit: Likewise.
18598         * modules/unictype/property-default-ignorable-code-point: Likewise.
18599         * modules/unictype/property-deprecated: Likewise.
18600         * modules/unictype/property-diacritic: Likewise.
18601         * modules/unictype/property-extender: Likewise.
18602         * modules/unictype/property-format-control: Likewise.
18603         * modules/unictype/property-grapheme-base: Likewise.
18604         * modules/unictype/property-grapheme-extend: Likewise.
18605         * modules/unictype/property-grapheme-link: Likewise.
18606         * modules/unictype/property-hex-digit: Likewise.
18607         * modules/unictype/property-hyphen: Likewise.
18608         * modules/unictype/property-id-continue: Likewise.
18609         * modules/unictype/property-id-start: Likewise.
18610         * modules/unictype/property-ideographic: Likewise.
18611         * modules/unictype/property-ids-binary-operator: Likewise.
18612         * modules/unictype/property-ids-trinary-operator: Likewise.
18613         * modules/unictype/property-ignorable-control: Likewise.
18614         * modules/unictype/property-iso-control: Likewise.
18615         * modules/unictype/property-join-control: Likewise.
18616         * modules/unictype/property-left-of-pair: Likewise.
18617         * modules/unictype/property-line-separator: Likewise.
18618         * modules/unictype/property-logical-order-exception: Likewise.
18619         * modules/unictype/property-lowercase: Likewise.
18620         * modules/unictype/property-math: Likewise.
18621         * modules/unictype/property-non-break: Likewise.
18622         * modules/unictype/property-not-a-character: Likewise.
18623         * modules/unictype/property-numeric: Likewise.
18624         * modules/unictype/property-other-alphabetic: Likewise.
18625         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
18626         * modules/unictype/property-other-grapheme-extend: Likewise.
18627         * modules/unictype/property-other-id-continue: Likewise.
18628         * modules/unictype/property-other-id-start: Likewise.
18629         * modules/unictype/property-other-lowercase: Likewise.
18630         * modules/unictype/property-other-math: Likewise.
18631         * modules/unictype/property-other-uppercase: Likewise.
18632         * modules/unictype/property-paired-punctuation: Likewise.
18633         * modules/unictype/property-paragraph-separator: Likewise.
18634         * modules/unictype/property-pattern-syntax: Likewise.
18635         * modules/unictype/property-pattern-white-space: Likewise.
18636         * modules/unictype/property-private-use: Likewise.
18637         * modules/unictype/property-punctuation: Likewise.
18638         * modules/unictype/property-quotation-mark: Likewise.
18639         * modules/unictype/property-radical: Likewise.
18640         * modules/unictype/property-sentence-terminal: Likewise.
18641         * modules/unictype/property-soft-dotted: Likewise.
18642         * modules/unictype/property-space: Likewise.
18643         * modules/unictype/property-terminal-punctuation: Likewise.
18644         * modules/unictype/property-test: Likewise.
18645         * modules/unictype/property-titlecase: Likewise.
18646         * modules/unictype/property-unassigned-code-value: Likewise.
18647         * modules/unictype/property-unified-ideograph: Likewise.
18648         * modules/unictype/property-uppercase: Likewise.
18649         * modules/unictype/property-variation-selector: Likewise.
18650         * modules/unictype/property-white-space: Likewise.
18651         * modules/unictype/property-xid-continue: Likewise.
18652         * modules/unictype/property-xid-start: Likewise.
18653         * modules/unictype/property-zero-width: Likewise.
18654         * modules/unictype/scripts: Likewise.
18655         * modules/unictype/syntax-c-ident: Likewise.
18656         * modules/unictype/syntax-c-whitespace: Likewise.
18657         * modules/unictype/syntax-java-ident: Likewise.
18658         * modules/unictype/syntax-java-whitespace: Likewise.
18659         * modules/unilbrk/u8-possible-linebreaks: Likewise.
18660         * modules/unilbrk/u8-width-linebreaks: Likewise.
18661         * modules/unilbrk/u16-possible-linebreaks: Likewise.
18662         * modules/unilbrk/u16-width-linebreaks: Likewise.
18663         * modules/unilbrk/u32-possible-linebreaks: Likewise.
18664         * modules/unilbrk/u32-width-linebreaks: Likewise.
18665         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
18666         * modules/unilbrk/ulc-width-linebreaks: Likewise.
18667         * modules/uniname/uniname: Likewise.
18668         * modules/uninorm/canonical-decomposition: Likewise.
18669         * modules/uninorm/composition: Likewise.
18670         * modules/uninorm/decomposing-form: Likewise.
18671         * modules/uninorm/decomposition: Likewise.
18672         * modules/uninorm/filter: Likewise.
18673         * modules/uninorm/nfc: Likewise.
18674         * modules/uninorm/nfd: Likewise.
18675         * modules/uninorm/nfkc: Likewise.
18676         * modules/uninorm/nfkd: Likewise.
18677         * modules/uninorm/u8-normalize: Likewise.
18678         * modules/uninorm/u8-normcmp: Likewise.
18679         * modules/uninorm/u8-normcoll: Likewise.
18680         * modules/uninorm/u8-normxfrm: Likewise.
18681         * modules/uninorm/u16-normalize: Likewise.
18682         * modules/uninorm/u16-normcmp: Likewise.
18683         * modules/uninorm/u16-normcoll: Likewise.
18684         * modules/uninorm/u16-normxfrm: Likewise.
18685         * modules/uninorm/u32-normalize: Likewise.
18686         * modules/uninorm/u32-normcmp: Likewise.
18687         * modules/uninorm/u32-normcoll: Likewise.
18688         * modules/uninorm/u32-normxfrm: Likewise.
18689         * modules/unistdio/u8-asnprintf: Likewise.
18690         * modules/unistdio/u8-asprintf: Likewise.
18691         * modules/unistdio/u8-snprintf: Likewise.
18692         * modules/unistdio/u8-sprintf: Likewise.
18693         * modules/unistdio/u8-u8-asnprintf: Likewise.
18694         * modules/unistdio/u8-u8-asprintf: Likewise.
18695         * modules/unistdio/u8-u8-snprintf: Likewise.
18696         * modules/unistdio/u8-u8-sprintf: Likewise.
18697         * modules/unistdio/u8-u8-vasnprintf: Likewise.
18698         * modules/unistdio/u8-u8-vasprintf: Likewise.
18699         * modules/unistdio/u8-u8-vsnprintf: Likewise.
18700         * modules/unistdio/u8-u8-vsprintf: Likewise.
18701         * modules/unistdio/u8-vasnprintf: Likewise.
18702         * modules/unistdio/u8-vasprintf: Likewise.
18703         * modules/unistdio/u8-vsnprintf: Likewise.
18704         * modules/unistdio/u8-vsprintf: Likewise.
18705         * modules/unistdio/u16-asnprintf: Likewise.
18706         * modules/unistdio/u16-asprintf: Likewise.
18707         * modules/unistdio/u16-snprintf: Likewise.
18708         * modules/unistdio/u16-sprintf: Likewise.
18709         * modules/unistdio/u16-u16-asnprintf: Likewise.
18710         * modules/unistdio/u16-u16-asprintf: Likewise.
18711         * modules/unistdio/u16-u16-snprintf: Likewise.
18712         * modules/unistdio/u16-u16-sprintf: Likewise.
18713         * modules/unistdio/u16-u16-vasnprintf: Likewise.
18714         * modules/unistdio/u16-u16-vasprintf: Likewise.
18715         * modules/unistdio/u16-u16-vsnprintf: Likewise.
18716         * modules/unistdio/u16-u16-vsprintf: Likewise.
18717         * modules/unistdio/u16-vasnprintf: Likewise.
18718         * modules/unistdio/u16-vasprintf: Likewise.
18719         * modules/unistdio/u16-vsnprintf: Likewise.
18720         * modules/unistdio/u16-vsprintf: Likewise.
18721         * modules/unistdio/u32-asnprintf: Likewise.
18722         * modules/unistdio/u32-asprintf: Likewise.
18723         * modules/unistdio/u32-snprintf: Likewise.
18724         * modules/unistdio/u32-sprintf: Likewise.
18725         * modules/unistdio/u32-u32-asnprintf: Likewise.
18726         * modules/unistdio/u32-u32-asprintf: Likewise.
18727         * modules/unistdio/u32-u32-snprintf: Likewise.
18728         * modules/unistdio/u32-u32-sprintf: Likewise.
18729         * modules/unistdio/u32-u32-vasnprintf: Likewise.
18730         * modules/unistdio/u32-u32-vasprintf: Likewise.
18731         * modules/unistdio/u32-u32-vsnprintf: Likewise.
18732         * modules/unistdio/u32-u32-vsprintf: Likewise.
18733         * modules/unistdio/u32-vasnprintf: Likewise.
18734         * modules/unistdio/u32-vasprintf: Likewise.
18735         * modules/unistdio/u32-vsnprintf: Likewise.
18736         * modules/unistdio/u32-vsprintf: Likewise.
18737         * modules/unistdio/ulc-asnprintf: Likewise.
18738         * modules/unistdio/ulc-asprintf: Likewise.
18739         * modules/unistdio/ulc-fprintf: Likewise.
18740         * modules/unistdio/ulc-snprintf: Likewise.
18741         * modules/unistdio/ulc-sprintf: Likewise.
18742         * modules/unistdio/ulc-vasnprintf: Likewise.
18743         * modules/unistdio/ulc-vasprintf: Likewise.
18744         * modules/unistdio/ulc-vfprintf: Likewise.
18745         * modules/unistdio/ulc-vsnprintf: Likewise.
18746         * modules/unistdio/ulc-vsprintf: Likewise.
18747         * modules/unistr/u8-check: Likewise.
18748         * modules/unistr/u8-chr: Likewise.
18749         * modules/unistr/u8-cmp: Likewise.
18750         * modules/unistr/u8-cmp2: Likewise.
18751         * modules/unistr/u8-cpy: Likewise.
18752         * modules/unistr/u8-cpy-alloc: Likewise.
18753         * modules/unistr/u8-endswith: Likewise.
18754         * modules/unistr/u8-mblen: Likewise.
18755         * modules/unistr/u8-mbsnlen: Likewise.
18756         * modules/unistr/u8-mbtouc: Likewise.
18757         * modules/unistr/u8-mbtouc-unsafe: Likewise.
18758         * modules/unistr/u8-mbtoucr: Likewise.
18759         * modules/unistr/u8-move: Likewise.
18760         * modules/unistr/u8-next: Likewise.
18761         * modules/unistr/u8-prev: Likewise.
18762         * modules/unistr/u8-set: Likewise.
18763         * modules/unistr/u8-startswith: Likewise.
18764         * modules/unistr/u8-stpcpy: Likewise.
18765         * modules/unistr/u8-stpncpy: Likewise.
18766         * modules/unistr/u8-strcat: Likewise.
18767         * modules/unistr/u8-strchr: Likewise.
18768         * modules/unistr/u8-strcmp: Likewise.
18769         * modules/unistr/u8-strcoll: Likewise.
18770         * modules/unistr/u8-strcpy: Likewise.
18771         * modules/unistr/u8-strcspn: Likewise.
18772         * modules/unistr/u8-strdup: Likewise.
18773         * modules/unistr/u8-strlen: Likewise.
18774         * modules/unistr/u8-strmblen: Likewise.
18775         * modules/unistr/u8-strmbtouc: Likewise.
18776         * modules/unistr/u8-strncat: Likewise.
18777         * modules/unistr/u8-strncmp: Likewise.
18778         * modules/unistr/u8-strncpy: Likewise.
18779         * modules/unistr/u8-strnlen: Likewise.
18780         * modules/unistr/u8-strpbrk: Likewise.
18781         * modules/unistr/u8-strrchr: Likewise.
18782         * modules/unistr/u8-strspn: Likewise.
18783         * modules/unistr/u8-strstr: Likewise.
18784         * modules/unistr/u8-strtok: Likewise.
18785         * modules/unistr/u8-to-u16: Likewise.
18786         * modules/unistr/u8-to-u32: Likewise.
18787         * modules/unistr/u8-uctomb: Likewise.
18788         * modules/unistr/u16-check: Likewise.
18789         * modules/unistr/u16-chr: Likewise.
18790         * modules/unistr/u16-cmp: Likewise.
18791         * modules/unistr/u16-cmp2: Likewise.
18792         * modules/unistr/u16-cpy: Likewise.
18793         * modules/unistr/u16-cpy-alloc: Likewise.
18794         * modules/unistr/u16-endswith: Likewise.
18795         * modules/unistr/u16-mblen: Likewise.
18796         * modules/unistr/u16-mbsnlen: Likewise.
18797         * modules/unistr/u16-mbtouc: Likewise.
18798         * modules/unistr/u16-mbtouc-unsafe: Likewise.
18799         * modules/unistr/u16-mbtoucr: Likewise.
18800         * modules/unistr/u16-move: Likewise.
18801         * modules/unistr/u16-next: Likewise.
18802         * modules/unistr/u16-prev: Likewise.
18803         * modules/unistr/u16-set: Likewise.
18804         * modules/unistr/u16-startswith: Likewise.
18805         * modules/unistr/u16-stpcpy: Likewise.
18806         * modules/unistr/u16-stpncpy: Likewise.
18807         * modules/unistr/u16-strcat: Likewise.
18808         * modules/unistr/u16-strchr: Likewise.
18809         * modules/unistr/u16-strcmp: Likewise.
18810         * modules/unistr/u16-strcoll: Likewise.
18811         * modules/unistr/u16-strcpy: Likewise.
18812         * modules/unistr/u16-strcspn: Likewise.
18813         * modules/unistr/u16-strdup: Likewise.
18814         * modules/unistr/u16-strlen: Likewise.
18815         * modules/unistr/u16-strmblen: Likewise.
18816         * modules/unistr/u16-strmbtouc: Likewise.
18817         * modules/unistr/u16-strncat: Likewise.
18818         * modules/unistr/u16-strncmp: Likewise.
18819         * modules/unistr/u16-strncpy: Likewise.
18820         * modules/unistr/u16-strnlen: Likewise.
18821         * modules/unistr/u16-strpbrk: Likewise.
18822         * modules/unistr/u16-strrchr: Likewise.
18823         * modules/unistr/u16-strspn: Likewise.
18824         * modules/unistr/u16-strstr: Likewise.
18825         * modules/unistr/u16-strtok: Likewise.
18826         * modules/unistr/u16-to-u32: Likewise.
18827         * modules/unistr/u16-to-u8: Likewise.
18828         * modules/unistr/u16-uctomb: Likewise.
18829         * modules/unistr/u32-check: Likewise.
18830         * modules/unistr/u32-chr: Likewise.
18831         * modules/unistr/u32-cmp: Likewise.
18832         * modules/unistr/u32-cmp2: Likewise.
18833         * modules/unistr/u32-cpy: Likewise.
18834         * modules/unistr/u32-cpy-alloc: Likewise.
18835         * modules/unistr/u32-endswith: Likewise.
18836         * modules/unistr/u32-mblen: Likewise.
18837         * modules/unistr/u32-mbsnlen: Likewise.
18838         * modules/unistr/u32-mbtouc: Likewise.
18839         * modules/unistr/u32-mbtouc-unsafe: Likewise.
18840         * modules/unistr/u32-mbtoucr: Likewise.
18841         * modules/unistr/u32-move: Likewise.
18842         * modules/unistr/u32-next: Likewise.
18843         * modules/unistr/u32-prev: Likewise.
18844         * modules/unistr/u32-set: Likewise.
18845         * modules/unistr/u32-startswith: Likewise.
18846         * modules/unistr/u32-stpcpy: Likewise.
18847         * modules/unistr/u32-stpncpy: Likewise.
18848         * modules/unistr/u32-strcat: Likewise.
18849         * modules/unistr/u32-strchr: Likewise.
18850         * modules/unistr/u32-strcmp: Likewise.
18851         * modules/unistr/u32-strcoll: Likewise.
18852         * modules/unistr/u32-strcpy: Likewise.
18853         * modules/unistr/u32-strcspn: Likewise.
18854         * modules/unistr/u32-strdup: Likewise.
18855         * modules/unistr/u32-strlen: Likewise.
18856         * modules/unistr/u32-strmblen: Likewise.
18857         * modules/unistr/u32-strmbtouc: Likewise.
18858         * modules/unistr/u32-strncat: Likewise.
18859         * modules/unistr/u32-strncmp: Likewise.
18860         * modules/unistr/u32-strncpy: Likewise.
18861         * modules/unistr/u32-strnlen: Likewise.
18862         * modules/unistr/u32-strpbrk: Likewise.
18863         * modules/unistr/u32-strrchr: Likewise.
18864         * modules/unistr/u32-strspn: Likewise.
18865         * modules/unistr/u32-strstr: Likewise.
18866         * modules/unistr/u32-strtok: Likewise.
18867         * modules/unistr/u32-to-u16: Likewise.
18868         * modules/unistr/u32-to-u8: Likewise.
18869         * modules/unistr/u32-uctomb: Likewise.
18870         * modules/uniwbrk/u8-wordbreaks: Likewise.
18871         * modules/uniwbrk/u16-wordbreaks: Likewise.
18872         * modules/uniwbrk/u32-wordbreaks: Likewise.
18873         * modules/uniwbrk/ulc-wordbreaks: Likewise.
18874         * modules/uniwbrk/wordbreak-property: Likewise.
18875         * modules/uniwidth/u8-strwidth: Likewise.
18876         * modules/uniwidth/u8-width: Likewise.
18877         * modules/uniwidth/u16-strwidth: Likewise.
18878         * modules/uniwidth/u16-width: Likewise.
18879         * modules/uniwidth/u32-strwidth: Likewise.
18880         * modules/uniwidth/u32-width: Likewise.
18881         * modules/uniwidth/width: Likewise.
18882         * modules/unicase/cased-tests (Makefile.am): Link all test programs
18883         with $(LIBUNISTRING).
18884         * modules/unicase/ignorable-tests: Likewise.
18885         * modules/unicase/locale-language-tests: Likewise.
18886         * modules/unicase/tolower-tests: Likewise.
18887         * modules/unicase/totitle-tests: Likewise.
18888         * modules/unicase/toupper-tests: Likewise.
18889         * modules/unicase/u8-casecmp-tests: Likewise.
18890         * modules/unicase/u8-casecoll-tests: Likewise.
18891         * modules/unicase/u8-casefold-tests: Likewise.
18892         * modules/unicase/u8-is-cased-tests: Likewise.
18893         * modules/unicase/u8-is-casefolded-tests: Likewise.
18894         * modules/unicase/u8-is-lowercase-tests: Likewise.
18895         * modules/unicase/u8-is-titlecase-tests: Likewise.
18896         * modules/unicase/u8-is-uppercase-tests: Likewise.
18897         * modules/unicase/u8-tolower-tests: Likewise.
18898         * modules/unicase/u8-totitle-tests: Likewise.
18899         * modules/unicase/u8-toupper-tests: Likewise.
18900         * modules/unicase/u16-casecmp-tests: Likewise.
18901         * modules/unicase/u16-casecoll-tests: Likewise.
18902         * modules/unicase/u16-casefold-tests: Likewise.
18903         * modules/unicase/u16-is-cased-tests: Likewise.
18904         * modules/unicase/u16-is-casefolded-tests: Likewise.
18905         * modules/unicase/u16-is-lowercase-tests: Likewise.
18906         * modules/unicase/u16-is-titlecase-tests: Likewise.
18907         * modules/unicase/u16-is-uppercase-tests: Likewise.
18908         * modules/unicase/u16-tolower-tests: Likewise.
18909         * modules/unicase/u16-totitle-tests: Likewise.
18910         * modules/unicase/u16-toupper-tests: Likewise.
18911         * modules/unicase/u32-casecmp-tests: Likewise.
18912         * modules/unicase/u32-casecoll-tests: Likewise.
18913         * modules/unicase/u32-casefold-tests: Likewise.
18914         * modules/unicase/u32-is-cased-tests: Likewise.
18915         * modules/unicase/u32-is-casefolded-tests: Likewise.
18916         * modules/unicase/u32-is-lowercase-tests: Likewise.
18917         * modules/unicase/u32-is-titlecase-tests: Likewise.
18918         * modules/unicase/u32-is-uppercase-tests: Likewise.
18919         * modules/unicase/u32-tolower-tests: Likewise.
18920         * modules/unicase/u32-totitle-tests: Likewise.
18921         * modules/unicase/u32-toupper-tests: Likewise.
18922         * modules/unicase/ulc-casecmp-tests: Likewise.
18923         * modules/unicase/ulc-casecoll-tests: Likewise.
18924         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
18925         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
18926         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
18927         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
18928         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
18929         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
18930         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
18931         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
18932         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
18933         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
18934         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
18935         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
18936         * modules/unictype/bidicategory-byname-tests: Likewise.
18937         * modules/unictype/bidicategory-name-tests: Likewise.
18938         * modules/unictype/bidicategory-of-tests: Likewise.
18939         * modules/unictype/bidicategory-test-tests: Likewise.
18940         * modules/unictype/block-list-tests: Likewise.
18941         * modules/unictype/block-of-tests: Likewise.
18942         * modules/unictype/block-test-tests: Likewise.
18943         * modules/unictype/category-C-tests: Likewise.
18944         * modules/unictype/category-Cc-tests: Likewise.
18945         * modules/unictype/category-Cf-tests: Likewise.
18946         * modules/unictype/category-Cn-tests: Likewise.
18947         * modules/unictype/category-Co-tests: Likewise.
18948         * modules/unictype/category-Cs-tests: Likewise.
18949         * modules/unictype/category-L-tests: Likewise.
18950         * modules/unictype/category-Ll-tests: Likewise.
18951         * modules/unictype/category-Lm-tests: Likewise.
18952         * modules/unictype/category-Lo-tests: Likewise.
18953         * modules/unictype/category-Lt-tests: Likewise.
18954         * modules/unictype/category-Lu-tests: Likewise.
18955         * modules/unictype/category-M-tests: Likewise.
18956         * modules/unictype/category-Mc-tests: Likewise.
18957         * modules/unictype/category-Me-tests: Likewise.
18958         * modules/unictype/category-Mn-tests: Likewise.
18959         * modules/unictype/category-N-tests: Likewise.
18960         * modules/unictype/category-Nd-tests: Likewise.
18961         * modules/unictype/category-Nl-tests: Likewise.
18962         * modules/unictype/category-No-tests: Likewise.
18963         * modules/unictype/category-P-tests: Likewise.
18964         * modules/unictype/category-Pc-tests: Likewise.
18965         * modules/unictype/category-Pd-tests: Likewise.
18966         * modules/unictype/category-Pe-tests: Likewise.
18967         * modules/unictype/category-Pf-tests: Likewise.
18968         * modules/unictype/category-Pi-tests: Likewise.
18969         * modules/unictype/category-Po-tests: Likewise.
18970         * modules/unictype/category-Ps-tests: Likewise.
18971         * modules/unictype/category-S-tests: Likewise.
18972         * modules/unictype/category-Sc-tests: Likewise.
18973         * modules/unictype/category-Sk-tests: Likewise.
18974         * modules/unictype/category-Sm-tests: Likewise.
18975         * modules/unictype/category-So-tests: Likewise.
18976         * modules/unictype/category-Z-tests: Likewise.
18977         * modules/unictype/category-Zl-tests: Likewise.
18978         * modules/unictype/category-Zp-tests: Likewise.
18979         * modules/unictype/category-Zs-tests: Likewise.
18980         * modules/unictype/category-and-not-tests: Likewise.
18981         * modules/unictype/category-and-tests: Likewise.
18982         * modules/unictype/category-byname-tests: Likewise.
18983         * modules/unictype/category-name-tests: Likewise.
18984         * modules/unictype/category-none-tests: Likewise.
18985         * modules/unictype/category-of-tests: Likewise.
18986         * modules/unictype/category-or-tests: Likewise.
18987         * modules/unictype/category-test-withtable-tests: Likewise.
18988         * modules/unictype/combining-class-tests: Likewise.
18989         * modules/unictype/ctype-alnum-tests: Likewise.
18990         * modules/unictype/ctype-alpha-tests: Likewise.
18991         * modules/unictype/ctype-blank-tests: Likewise.
18992         * modules/unictype/ctype-cntrl-tests: Likewise.
18993         * modules/unictype/ctype-digit-tests: Likewise.
18994         * modules/unictype/ctype-graph-tests: Likewise.
18995         * modules/unictype/ctype-lower-tests: Likewise.
18996         * modules/unictype/ctype-print-tests: Likewise.
18997         * modules/unictype/ctype-punct-tests: Likewise.
18998         * modules/unictype/ctype-space-tests: Likewise.
18999         * modules/unictype/ctype-upper-tests: Likewise.
19000         * modules/unictype/ctype-xdigit-tests: Likewise.
19001         * modules/unictype/decimal-digit-tests: Likewise.
19002         * modules/unictype/digit-tests: Likewise.
19003         * modules/unictype/mirror-tests: Likewise.
19004         * modules/unictype/numeric-tests: Likewise.
19005         * modules/unictype/property-alphabetic-tests: Likewise.
19006         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
19007         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
19008         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
19009         * modules/unictype/property-bidi-block-separator-tests: Likewise.
19010         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
19011         * modules/unictype/property-bidi-common-separator-tests: Likewise.
19012         * modules/unictype/property-bidi-control-tests: Likewise.
19013         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
19014         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
19015         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
19016         * modules/unictype/property-bidi-european-digit-tests: Likewise.
19017         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
19018         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
19019         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
19020         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
19021         * modules/unictype/property-bidi-pdf-tests: Likewise.
19022         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
19023         * modules/unictype/property-bidi-whitespace-tests: Likewise.
19024         * modules/unictype/property-byname-tests: Likewise.
19025         * modules/unictype/property-combining-tests: Likewise.
19026         * modules/unictype/property-composite-tests: Likewise.
19027         * modules/unictype/property-currency-symbol-tests: Likewise.
19028         * modules/unictype/property-dash-tests: Likewise.
19029         * modules/unictype/property-decimal-digit-tests: Likewise.
19030         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
19031         * modules/unictype/property-deprecated-tests: Likewise.
19032         * modules/unictype/property-diacritic-tests: Likewise.
19033         * modules/unictype/property-extender-tests: Likewise.
19034         * modules/unictype/property-format-control-tests: Likewise.
19035         * modules/unictype/property-grapheme-base-tests: Likewise.
19036         * modules/unictype/property-grapheme-extend-tests: Likewise.
19037         * modules/unictype/property-grapheme-link-tests: Likewise.
19038         * modules/unictype/property-hex-digit-tests: Likewise.
19039         * modules/unictype/property-hyphen-tests: Likewise.
19040         * modules/unictype/property-id-continue-tests: Likewise.
19041         * modules/unictype/property-id-start-tests: Likewise.
19042         * modules/unictype/property-ideographic-tests: Likewise.
19043         * modules/unictype/property-ids-binary-operator-tests: Likewise.
19044         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
19045         * modules/unictype/property-ignorable-control-tests: Likewise.
19046         * modules/unictype/property-iso-control-tests: Likewise.
19047         * modules/unictype/property-join-control-tests: Likewise.
19048         * modules/unictype/property-left-of-pair-tests: Likewise.
19049         * modules/unictype/property-line-separator-tests: Likewise.
19050         * modules/unictype/property-logical-order-exception-tests: Likewise.
19051         * modules/unictype/property-lowercase-tests: Likewise.
19052         * modules/unictype/property-math-tests: Likewise.
19053         * modules/unictype/property-non-break-tests: Likewise.
19054         * modules/unictype/property-not-a-character-tests: Likewise.
19055         * modules/unictype/property-numeric-tests: Likewise.
19056         * modules/unictype/property-other-alphabetic-tests: Likewise.
19057         * modules/unictype/property-other-default-ignorable-code-point-tests:
19058         Likewise.
19059         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
19060         * modules/unictype/property-other-id-continue-tests: Likewise.
19061         * modules/unictype/property-other-id-start-tests: Likewise.
19062         * modules/unictype/property-other-lowercase-tests: Likewise.
19063         * modules/unictype/property-other-math-tests: Likewise.
19064         * modules/unictype/property-other-uppercase-tests: Likewise.
19065         * modules/unictype/property-paired-punctuation-tests: Likewise.
19066         * modules/unictype/property-paragraph-separator-tests: Likewise.
19067         * modules/unictype/property-pattern-syntax-tests: Likewise.
19068         * modules/unictype/property-pattern-white-space-tests: Likewise.
19069         * modules/unictype/property-private-use-tests: Likewise.
19070         * modules/unictype/property-punctuation-tests: Likewise.
19071         * modules/unictype/property-quotation-mark-tests: Likewise.
19072         * modules/unictype/property-radical-tests: Likewise.
19073         * modules/unictype/property-sentence-terminal-tests: Likewise.
19074         * modules/unictype/property-soft-dotted-tests: Likewise.
19075         * modules/unictype/property-space-tests: Likewise.
19076         * modules/unictype/property-terminal-punctuation-tests: Likewise.
19077         * modules/unictype/property-test-tests: Likewise.
19078         * modules/unictype/property-titlecase-tests: Likewise.
19079         * modules/unictype/property-unassigned-code-value-tests: Likewise.
19080         * modules/unictype/property-unified-ideograph-tests: Likewise.
19081         * modules/unictype/property-uppercase-tests: Likewise.
19082         * modules/unictype/property-variation-selector-tests: Likewise.
19083         * modules/unictype/property-white-space-tests: Likewise.
19084         * modules/unictype/property-xid-continue-tests: Likewise.
19085         * modules/unictype/property-xid-start-tests: Likewise.
19086         * modules/unictype/property-zero-width-tests: Likewise.
19087         * modules/unictype/scripts-tests: Likewise.
19088         * modules/unictype/syntax-c-ident-tests: Likewise.
19089         * modules/unictype/syntax-c-whitespace-tests: Likewise.
19090         * modules/unictype/syntax-java-ident-tests: Likewise.
19091         * modules/unictype/syntax-java-whitespace-tests: Likewise.
19092         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
19093         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
19094         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
19095         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
19096         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
19097         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
19098         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
19099         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
19100         * modules/uniname/uniname-tests: Likewise.
19101         * modules/uninorm/canonical-decomposition-tests: Likewise.
19102         * modules/uninorm/compat-decomposition-tests: Likewise.
19103         * modules/uninorm/composition-tests: Likewise.
19104         * modules/uninorm/decomposing-form-tests: Likewise.
19105         * modules/uninorm/decomposition-tests: Likewise.
19106         * modules/uninorm/filter-tests: Likewise.
19107         * modules/uninorm/nfc-tests: Likewise.
19108         * modules/uninorm/nfd-tests: Likewise.
19109         * modules/uninorm/nfkc-tests: Likewise.
19110         * modules/uninorm/nfkd-tests: Likewise.
19111         * modules/uninorm/u8-normcmp-tests: Likewise.
19112         * modules/uninorm/u8-normcoll-tests: Likewise.
19113         * modules/uninorm/u16-normcmp-tests: Likewise.
19114         * modules/uninorm/u16-normcoll-tests: Likewise.
19115         * modules/uninorm/u32-normcmp-tests: Likewise.
19116         * modules/uninorm/u32-normcoll-tests: Likewise.
19117         * modules/unistdio/u8-asnprintf-tests: Likewise.
19118         * modules/unistdio/u8-vasnprintf-tests: Likewise.
19119         * modules/unistdio/u8-vasprintf-tests: Likewise.
19120         * modules/unistdio/u8-vsnprintf-tests: Likewise.
19121         * modules/unistdio/u8-vsprintf-tests: Likewise.
19122         * modules/unistdio/u16-asnprintf-tests: Likewise.
19123         * modules/unistdio/u16-vasnprintf-tests: Likewise.
19124         * modules/unistdio/u16-vasprintf-tests: Likewise.
19125         * modules/unistdio/u16-vsnprintf-tests: Likewise.
19126         * modules/unistdio/u16-vsprintf-tests: Likewise.
19127         * modules/unistdio/u32-asnprintf-tests: Likewise.
19128         * modules/unistdio/u32-vasnprintf-tests: Likewise.
19129         * modules/unistdio/u32-vasprintf-tests: Likewise.
19130         * modules/unistdio/u32-vsnprintf-tests: Likewise.
19131         * modules/unistdio/u32-vsprintf-tests: Likewise.
19132         * modules/unistdio/ulc-asnprintf-tests: Likewise.
19133         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
19134         * modules/unistdio/ulc-vasprintf-tests: Likewise.
19135         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
19136         * modules/unistdio/ulc-vsprintf-tests: Likewise.
19137         * modules/unistr/u8-check-tests: Likewise.
19138         * modules/unistr/u8-chr-tests: Likewise.
19139         * modules/unistr/u8-cmp-tests: Likewise.
19140         * modules/unistr/u8-cmp2-tests: Likewise.
19141         * modules/unistr/u8-cpy-alloc-tests: Likewise.
19142         * modules/unistr/u8-cpy-tests: Likewise.
19143         * modules/unistr/u8-mblen-tests: Likewise.
19144         * modules/unistr/u8-mbsnlen-tests: Likewise.
19145         * modules/unistr/u8-mbtouc-tests: Likewise.
19146         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
19147         * modules/unistr/u8-mbtoucr-tests: Likewise.
19148         * modules/unistr/u8-move-tests: Likewise.
19149         * modules/unistr/u8-next-tests: Likewise.
19150         * modules/unistr/u8-prev-tests: Likewise.
19151         * modules/unistr/u8-set-tests: Likewise.
19152         * modules/unistr/u8-stpcpy-tests: Likewise.
19153         * modules/unistr/u8-stpncpy-tests: Likewise.
19154         * modules/unistr/u8-strcat-tests: Likewise.
19155         * modules/unistr/u8-strcmp-tests: Likewise.
19156         * modules/unistr/u8-strcoll-tests: Likewise.
19157         * modules/unistr/u8-strcpy-tests: Likewise.
19158         * modules/unistr/u8-strdup-tests: Likewise.
19159         * modules/unistr/u8-strlen-tests: Likewise.
19160         * modules/unistr/u8-strmblen-tests: Likewise.
19161         * modules/unistr/u8-strmbtouc-tests: Likewise.
19162         * modules/unistr/u8-strncat-tests: Likewise.
19163         * modules/unistr/u8-strncmp-tests: Likewise.
19164         * modules/unistr/u8-strncpy-tests: Likewise.
19165         * modules/unistr/u8-strnlen-tests: Likewise.
19166         * modules/unistr/u8-to-u16-tests: Likewise.
19167         * modules/unistr/u8-to-u32-tests: Likewise.
19168         * modules/unistr/u8-uctomb-tests: Likewise.
19169         * modules/unistr/u16-check-tests: Likewise.
19170         * modules/unistr/u16-chr-tests: Likewise.
19171         * modules/unistr/u16-cmp-tests: Likewise.
19172         * modules/unistr/u16-cmp2-tests: Likewise.
19173         * modules/unistr/u16-cpy-alloc-tests: Likewise.
19174         * modules/unistr/u16-cpy-tests: Likewise.
19175         * modules/unistr/u16-mblen-tests: Likewise.
19176         * modules/unistr/u16-mbsnlen-tests: Likewise.
19177         * modules/unistr/u16-mbtouc-tests: Likewise.
19178         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
19179         * modules/unistr/u16-mbtoucr-tests: Likewise.
19180         * modules/unistr/u16-move-tests: Likewise.
19181         * modules/unistr/u16-next-tests: Likewise.
19182         * modules/unistr/u16-prev-tests: Likewise.
19183         * modules/unistr/u16-set-tests: Likewise.
19184         * modules/unistr/u16-stpcpy-tests: Likewise.
19185         * modules/unistr/u16-stpncpy-tests: Likewise.
19186         * modules/unistr/u16-strcat-tests: Likewise.
19187         * modules/unistr/u16-strcmp-tests: Likewise.
19188         * modules/unistr/u16-strcoll-tests: Likewise.
19189         * modules/unistr/u16-strcpy-tests: Likewise.
19190         * modules/unistr/u16-strdup-tests: Likewise.
19191         * modules/unistr/u16-strlen-tests: Likewise.
19192         * modules/unistr/u16-strmblen-tests: Likewise.
19193         * modules/unistr/u16-strmbtouc-tests: Likewise.
19194         * modules/unistr/u16-strncat-tests: Likewise.
19195         * modules/unistr/u16-strncmp-tests: Likewise.
19196         * modules/unistr/u16-strncpy-tests: Likewise.
19197         * modules/unistr/u16-strnlen-tests: Likewise.
19198         * modules/unistr/u16-to-u32-tests: Likewise.
19199         * modules/unistr/u16-to-u8-tests: Likewise.
19200         * modules/unistr/u16-uctomb-tests: Likewise.
19201         * modules/unistr/u32-check-tests: Likewise.
19202         * modules/unistr/u32-chr-tests: Likewise.
19203         * modules/unistr/u32-cmp-tests: Likewise.
19204         * modules/unistr/u32-cmp2-tests: Likewise.
19205         * modules/unistr/u32-cpy-alloc-tests: Likewise.
19206         * modules/unistr/u32-cpy-tests: Likewise.
19207         * modules/unistr/u32-mblen-tests: Likewise.
19208         * modules/unistr/u32-mbsnlen-tests: Likewise.
19209         * modules/unistr/u32-mbtouc-tests: Likewise.
19210         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
19211         * modules/unistr/u32-mbtoucr-tests: Likewise.
19212         * modules/unistr/u32-move-tests: Likewise.
19213         * modules/unistr/u32-next-tests: Likewise.
19214         * modules/unistr/u32-prev-tests: Likewise.
19215         * modules/unistr/u32-set-tests: Likewise.
19216         * modules/unistr/u32-stpcpy-tests: Likewise.
19217         * modules/unistr/u32-stpncpy-tests: Likewise.
19218         * modules/unistr/u32-strcat-tests: Likewise.
19219         * modules/unistr/u32-strcmp-tests: Likewise.
19220         * modules/unistr/u32-strcoll-tests: Likewise.
19221         * modules/unistr/u32-strcpy-tests: Likewise.
19222         * modules/unistr/u32-strdup-tests: Likewise.
19223         * modules/unistr/u32-strlen-tests: Likewise.
19224         * modules/unistr/u32-strmblen-tests: Likewise.
19225         * modules/unistr/u32-strmbtouc-tests: Likewise.
19226         * modules/unistr/u32-strncat-tests: Likewise.
19227         * modules/unistr/u32-strncmp-tests: Likewise.
19228         * modules/unistr/u32-strncpy-tests: Likewise.
19229         * modules/unistr/u32-strnlen-tests: Likewise.
19230         * modules/unistr/u32-to-u16-tests: Likewise.
19231         * modules/unistr/u32-to-u8-tests: Likewise.
19232         * modules/unistr/u32-uctomb-tests: Likewise.
19233         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
19234         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
19235         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
19236         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
19237         * modules/uniwidth/u8-strwidth-tests: Likewise.
19238         * modules/uniwidth/u8-width-tests: Likewise.
19239         * modules/uniwidth/u16-strwidth-tests: Likewise.
19240         * modules/uniwidth/u16-width-tests: Likewise.
19241         * modules/uniwidth/u32-strwidth-tests: Likewise.
19242         * modules/uniwidth/u32-width-tests: Likewise.
19243         * modules/uniwidth/width-tests: Likewise.
19244
19245 2010-05-18  Richard Jones  <rjones@redhat.com>
19246
19247         doc: users.txt: list hivex
19248         * users.txt: Add hivex.
19249
19250 2010-05-18  Richard Jones  <rjones@redhat.com>
19251
19252         doc: users.txt: list febootstrap
19253         * users.txt: Add febootstrap.
19254
19255 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
19256
19257         bootstrap: fix an error when gnulib is not used as a git submodule
19258         * build-aux/bootstrap (gnulib_path): If its length is zero then
19259         assign "gnulib" to it.
19260         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
19261
19262 2010-05-16  Bruno Haible  <bruno@clisp.org>
19263
19264         Avoid autoconf warnings about AM_ICONV.
19265         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
19266         2.64.
19267
19268 2010-05-16  Bruno Haible  <bruno@clisp.org>
19269
19270         absolute-header: Make the macro usable in more situations.
19271         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
19272         from gl_ABSOLUTE_HEADER.
19273         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
19274
19275 2010-05-16  James Youngman  <jay@gnu.org>
19276
19277         doc: update users.txt
19278         * users.txt: Add CSSC.
19279
19280 2010-05-16  Jim Meyering  <meyering@redhat.com>
19281
19282         init.sh: fix an error in the previous change; add more comments
19283         * tests/init.sh: Compare exit code in loop against 9, not 2.
19284         Patch by Bruno Haible.
19285         Make the two tests more similar by adding an empty "then" clause.
19286         Add comments.
19287
19288         init.sh: avoid unnecessary shell re-exec
19289         * tests/init.sh: Improve the re-exec-required check to first test the
19290         current shell.  If it passes the test, do not search for a shell that
19291         does pass, and do not re-exec.  This test is particularly contorted to
19292         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
19293         of $(...) evokes a syntax error and causes immediate shell exit with
19294         status 2.  Bruno Haible reported that the re-exec made it impossible
19295         to single-step through any init.sh-using script.
19296
19297 2010-05-16  Bruno Haible  <bruno@clisp.org>
19298
19299         Fix collision between gnulib's and libintl's printf replacements.
19300         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
19301         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
19302         (printf): When using GNU C, map the __printf__ function to rpl_printf
19303         via __asm__. When not using GNU C, define rpl_printf instead of
19304         __printf__.
19305         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
19306         commit.
19307         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
19308         commit.
19309         * m4/asm-underscore.m4: New file.
19310         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
19311         * modules/stdio (Files): Add m4/asm-underscore.m4.
19312         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
19313         Reported by Ben Pfaff.
19314
19315 2010-05-16  Bruno Haible  <bruno@clisp.org>
19316
19317         verify: Avoid skipping the test on openSUSE 11.0.
19318         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
19319
19320 2010-05-13  Bruno Haible  <bruno@clisp.org>
19321
19322         Avoid useless warnings from G++.
19323         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
19324         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
19325         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19326
19327 2010-05-11  Jim Meyering  <meyering@redhat.com>
19328
19329         maint.mk: tweak preceding change
19330         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
19331         regexps tighter by anchoring at EOL, and make the new group "shy"
19332         for slightly decreased overhead.
19333
19334 2010-05-11  Eric Blake  <eblake@redhat.com>
19335
19336         maint.mk: gnulib doesn't guarantee NSIG
19337         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
19338
19339 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19340
19341         test-pwrite.c: Remove unused variable declaration.
19342         * tests/test-pwrite.c (main): Remove read_buf declaration.
19343
19344         Remove useless test-pwrite.sh file.
19345         * tests/test-pwrite.sh: Delete file.
19346         * modules/pwrite-tests: Remove references.
19347         Reported by Bruno Haible.
19348
19349 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19350
19351         init.sh: fix a typo
19352         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
19353
19354 2010-05-10  Jim Meyering  <meyering@redhat.com>
19355
19356         maint.mk: avoid using a temporary file in the always-defined-macros check
19357         * top/maint.mk (.re-defmac): Remove rule.
19358         (gl_trap_): Remove definition.
19359         (sc_prohibit_always-defined_macros): Rewrite not to create and
19360         depend on a temporary file.  Instead, depend on GNU grep's ability
19361         to read a list of regular expressions from stdin when given "-f -".
19362
19363 2010-05-09  Bruno Haible  <bruno@clisp.org>
19364
19365         Update to GNU gettext 0.18, part 1.
19366         * m4/gettext.m4: Update to GNU gettext 0.18.
19367         * m4/intl.m4: Likewise.
19368         * m4/po.m4: Likewise.
19369         * modules/gettext (Files): Add m4/fcntl-o.m4.
19370         (configure.ac): Require gettext infrastructure from version 0.18.
19371
19372 2010-05-09  Jim Meyering  <meyering@redhat.com>
19373
19374         init.sh: enable MALLOC_PERTURB_
19375         * tests/init.sh: Enable glibc's malloc-perturbing option.
19376
19377         maint.mk: improve sc_cross_check_PATH_usage_in_tests
19378         With my recent change in init.sh from the two-line form:
19379             -#   : ${srcdir=.}
19380             -#   . "$srcdir/init.sh"; path_prepend_ .
19381             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
19382         I noticed that using the one-line form would cause this test
19383         to fail with a false-positive, or to stop working altogether,
19384         depending on whether help-version changed or all the tests did.
19385         * top/maint.mk (_hv_regex): Remove this definition.
19386         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
19387         (_hv_regex_strong): Use a stronger regex to check for conformance.
19388         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
19389         Give a separate diagnostic for lack of conforming use.
19390
19391         maint.mk: prohibit definition of symbols defined by gnulib
19392         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
19393         definition of symbols defined by gnulib.
19394
19395 2010-05-09  Bruno Haible  <bruno@clisp.org>
19396
19397         acl: Avoid test failure on Cygwin-hosted mingw.
19398         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
19399
19400 2010-05-09  Bruno Haible  <bruno@clisp.org>
19401
19402         error: Use system's fcntl function.
19403         * lib/error.c (fcntl): Undefine.
19404
19405 2010-05-09  Jim Meyering  <meyering@redhat.com>
19406
19407         verify: adjust formatting to be more consistent
19408         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
19409         argument-list '('s, and after one comma.
19410
19411 2010-05-09  Bruno Haible  <bruno@clisp.org>
19412
19413         error: More reliable output on mingw.
19414         * lib/error.c: Include <windows.h>.
19415         (is_open): New function.
19416         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
19417         defined.
19418
19419 2010-05-09  Bruno Haible  <bruno@clisp.org>
19420
19421         vasnprintf: Fix syntax errors in libintl build on mingw.
19422         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
19423         pad_ourselves and prec_ourselves after use.
19424
19425 2010-05-08  Bruno Haible  <bruno@clisp.org>
19426
19427         * lib/config.charset: Update comments for Cygwin 1.7.
19428         * lib/localcharset.c: Likewise.
19429
19430 2010-05-07  Jim Meyering  <meyering@redhat.com>
19431
19432         init.sh: improve comments
19433         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
19434         . "${srcdir=.}/init.sh"; path_prepend_ .
19435         Add a note about path_prepend_ and the alternative of using
19436         TESTS_ENVIRONMENT.
19437
19438 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
19439
19440         exclude: Unescape hashed patterns in wildcard mode.
19441         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
19442         to the hash list.
19443         * tests/test-exclude8.sh: New test case.
19444         * modules/exclude-tests: Add new test.
19445
19446 2010-05-05  Eric Blake  <eblake@redhat.com>
19447
19448         verify: automate tests
19449         * modules/verify-tests: New module.
19450         * tests/test-verify.sh: New file.
19451         * tests/test-verify.c: Guard each negative test with a unique id.
19452         Also avoid warning about unused left hand of comma expressions.
19453
19454 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19455
19456         Further improvements to verify.h, suggested by Eric Blake.
19457         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
19458         the GL_* versions, to avoid collision with OpenGL.
19459         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
19460         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
19461         than testing merely whether it's defined.
19462
19463         Modify verify.h to pacify gcc -Wredundant_decls.
19464         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
19465         These use the prefix "GL_" since they're likely to be useful elsewhere.
19466         We may need to break them out into a different .h file.
19467         (__COUNTER__): Define to 0 if the compiler doesn't support it.
19468         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
19469         of verify_function__.
19470
19471 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19472
19473         Tests for module pwrite.
19474         * modules/pwrite-tests: New file.
19475         * tests/test-pwrite.sh: New file.
19476         * tests/test-pwrite.c: New file.
19477
19478         New module pwrite.
19479         * lib/unistd.in.h (pwrite): New declaration.
19480         * lib/pwrite.c: New file, from glibc with modifications.
19481         * m4/pwrite.m4: New file.
19482         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
19483         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
19484         REPLACE_PWRITE.
19485         * modules/pwrite: New file.
19486         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
19487         REPLACE_PWRITE.
19488         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
19489         * doc/posix-functions/pwrite.texi: Mention the new module.
19490
19491 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19492
19493         pread: Update documentation.
19494         * doc/posix-functions/pread.texi: Mention the 'pread' module.
19495
19496 2010-05-04  Eric Blake  <eblake@redhat.com>
19497
19498         docs: update cygwin progress
19499         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
19500         this bug.
19501         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
19502         Added in cygwin 1.7.2.
19503         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
19504         Likewise.
19505         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
19506         Likewise.
19507         * doc/glibc-functions/dup3.texi (dup3): Likewise.
19508         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
19509         * doc/glibc-functions/accept4.texi (accept4): Likewise.
19510         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
19511         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
19512         Mention nproc module.
19513         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
19514         bug in cygwin 1.7.5 addition.
19515         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
19516         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
19517         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
19518         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
19519         1.7.5.
19520         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
19521         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
19522         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
19523         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
19524         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
19525         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
19526         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
19527         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
19528         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
19529         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
19530         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
19531         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
19532         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
19533         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
19534         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
19535         Likewise.
19536         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
19537         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
19538         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
19539         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
19540         Likewise.
19541         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
19542         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
19543         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
19544         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
19545         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
19546         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
19547         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
19548         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
19549         Likewise.
19550         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
19551         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
19552         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
19553         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
19554         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
19555         Likewise.
19556         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
19557         Likewise.
19558         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
19559         Likewise.
19560         * doc/glibc-functions/xdrrec_endofrecord.texi
19561         (xdrrec_endofrecord): Likewise.
19562         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
19563         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
19564         Likewise.
19565         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
19566         Likewise.
19567
19568 2010-05-04  Jim Meyering  <meyering@redhat.com>
19569
19570         gendocs.sh: make its "-s FILE" option more useful
19571         * build-aux/gendocs.sh: When honoring the -s FILE option, update
19572         $PACKAGE to reflect the probably-different basename of "FILE".
19573
19574 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
19575
19576         bootstrap: don't ignore download_po_files failure
19577         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
19578         failure.
19579
19580 2010-05-03  Jim Meyering  <meyering@redhat.com>
19581
19582         maint.mk: allow to pass options to gendocs.sh
19583         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
19584         (gendocs_options_): New overridable variable.
19585
19586         gnu-web-doc-update: don't ignore configure or build failure
19587         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
19588
19589         announce-gen: backslash-escape '@'s in --help output
19590         * build-aux/announce-gen: Fix syntax errors.
19591
19592         maint.mk, announce-gen: allow project-specific announcement mail headers
19593         * top/maint.mk (translation_project_): Define default.
19594         (announcement_Cc_, announcement_mail_headers_): Likewise.
19595         (announcement): Invoke announce-gen with new --mail-headers option.
19596         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
19597
19598         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
19599         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
19600         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
19601         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
19602         line in the "err2" output file when running "make check" in verbose
19603         mode (i.e., with set -x enabled).
19604
19605 2010-05-03  Bruno Haible  <bruno@clisp.org>
19606
19607         wctob: Fix for weird platforms.
19608         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
19609         argument value.
19610
19611 2010-05-03  Jim Meyering  <meyering@redhat.com>
19612
19613         maint.mk: prohibit unwarranted use of <strings.h>
19614         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
19615         strings.h in a file that does not also use strcasecmp, strncasecmp,
19616         ffs or ffsll.
19617
19618         maint.mk: remove obsolete comments
19619         * top/maint.mk: Remove stale, commented-out rules.
19620
19621 2010-05-02  Bruno Haible  <bruno@clisp.org>
19622
19623         wcwidth: Declare also when it's aliased.
19624         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
19625         macro.
19626
19627 2010-05-02  Bruno Haible  <bruno@clisp.org>
19628
19629         Fix regression from 2010-04-25.
19630         * gnulib-tool (func_modules_transitive_closure): Check the status of
19631         all modules, not only of the tests that are of the form foo-tests where
19632         foo is a module.
19633
19634 2010-05-02  Bruno Haible  <bruno@clisp.org>
19635
19636         wctob: Work around nasty Cygwin 1.7.2 bug.
19637         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
19638         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
19639
19640 2010-05-01  Bruno Haible  <bruno@clisp.org>
19641
19642         fpurge: Sharper test.
19643         * tests/test-fpurge.c (main): Add one more ftell check.
19644         * modules/fpurge-tests (Depends-on): Add ftell.
19645         Suggested by Eric Blake.
19646
19647 2010-05-01  Bruno Haible  <bruno@clisp.org>
19648
19649         ftello: Another test.
19650         * tests/test-ftello3.c: New file.
19651         * modules/ftello-tests (Files): Add it.
19652         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19653         MOSTLYCLEANFILES.
19654
19655         ftell: Another test.
19656         * tests/test-ftell3.c: New file.
19657         * modules/ftell-tests (Files): Add it.
19658         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19659         MOSTLYCLEANFILES.
19660
19661 2010-05-01  Bruno Haible  <bruno@clisp.org>
19662
19663         ftell, ftello: Work around Solaris bug.
19664         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
19665         * lib/ftello.c: Include stdio-impl.h.
19666         (ftello): On Solaris, when _IOWRT is set, compute the result without
19667         looking at _IOREAD.
19668         * modules/ftello (Files): Add lib/stdio-impl.h.
19669         * doc/posix-functions/ftell.texi: Mention Solaris bug.
19670         * doc/posix-functions/ftello.texi: Likewise.
19671         Reported by Eric Blake.
19672
19673 2010-05-01  Bruno Haible  <bruno@clisp.org>
19674
19675         freading: Adapt to special meaning of _IOREAD flag on Solaris.
19676         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
19677         the _IOWRT flag is also set.
19678
19679 2010-05-01  Bruno Haible  <bruno@clisp.org>
19680
19681         Fix doc about a HP-UX stdio bug.
19682         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
19683         * doc/posix-functions/ftello.texi: Likewise.
19684
19685 2010-05-01  Bruno Haible  <bruno@clisp.org>
19686
19687         lseek test: Fix failure on Solaris.
19688         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
19689         output.
19690
19691 2010-04-30  Jim Meyering  <meyering@redhat.com>
19692
19693         bootstrap: don't ignore failure to generate po*/Makevars
19694         * build-aux/bootstrap (with_gettext): Don't ignore failure
19695         to create po/Makevars or runtime-po/Makevars.
19696
19697 2010-04-29  Eric Blake  <eblake@redhat.com>
19698
19699         headers: relax license to LGPLv2+
19700         * modules/fcntl-h (License): Relax license.
19701         * modules/getopt-posix (License): Likewise.
19702         * modules/locale (License): Likewise.
19703         * modules/math (License): Likewise.
19704         * modules/pty (License): Likewise.
19705         * modules/sched (License): Likewise.
19706         * modules/search (License): Likewise.
19707         * modules/spawn (License): Likewise.
19708         * modules/stdarg (License): Likewise.
19709         * modules/sysexits (License): Likewise.
19710
19711 2010-04-29  Jim Meyering  <meyering@redhat.com>
19712
19713         inttypes: relax license to LGPLv2+
19714         * modules/inttypes (License): Relax license.
19715
19716 2010-04-29  Simon Josefsson  <simon@josefsson.org>
19717
19718         * top/maint.mk (indent): Run twice to produce idempotent results.
19719
19720 2010-04-28  Bruno Haible  <bruno@clisp.org>
19721
19722         getdate: Generate getdate.c in the source directory.
19723         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
19724         MOSTLYCLEANFILES.
19725         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
19726
19727 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
19728
19729         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
19730         is not declared as a const *; avoid warnings in that case.
19731
19732 2010-04-28  Eric Blake  <eblake@redhat.com>
19733
19734         canonicalize-lgpl: avoid compiler warning
19735         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
19736         declaration' / 'extraneous semicolon' warning with some compilers.
19737         Reported by Andreas Gruenbacher.
19738
19739 2010-04-28  Jim Meyering  <meyering@redhat.com>
19740
19741         init.sh: ensure a more reliable exit status when exiting via trap
19742         * tests/init.sh (setup_): Don't rely on $? in signal handler.
19743         Inspired by patches from Dmitry V. Levin.
19744         Also trap on signal 3 (SIGQUIT).
19745
19746 2010-04-27  Bruno Haible  <bruno@clisp.org>
19747
19748         Update doc about utimes().
19749         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
19750         'utimens' module.
19751         Reported by Andreas Gruenbacher <agruen@suse.de>.
19752
19753 2010-04-27  Eric Blake  <eblake@redhat.com>
19754
19755         full-read, full-write: relax license
19756         * modules/full-read (License): Drop to LGPLv2+.
19757         * modules/full-write (License): Likewise.
19758         * modules/safe-read (License): Likewise.
19759         * modules/safe-write (License): Likewise.
19760
19761         pthread: mention library for linking
19762         * modules/pthread (Link): Mention $(LIB_PTHREAD).
19763
19764 2010-04-27  Jim Meyering  <meyering@redhat.com>
19765
19766         maint.mk: fix a bug introduced in last change
19767         * top/maint.mk (gl_assured_headers_): Now that all names are on
19768         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
19769         is not anchored to end of word, it should be adequate.
19770
19771         maint.mk: avoid side-effect in latest syntax-check
19772         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
19773         to run commands via $(shell...), and hence to incur cost only when
19774         the new rule is actually run.
19775
19776         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
19777         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
19778         and use that to create a regexp used to detect all #if HAVE_..._H uses.
19779         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
19780         (gl_assured_headers_, az_, AZ_): Define.
19781         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
19782
19783 2010-04-26  Jim Meyering  <jim@meyering.net>
19784             Bruno Haible  <bruno@clisp.org>
19785
19786         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
19787         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
19788         Prompted by an exchange with Gilles Espinasse.
19789
19790 2010-04-26  Jim Meyering  <meyering@redhat.com>
19791
19792         git-version-gen: aesthetic tweak
19793         * build-aux/git-version-gen: Use "$nl" rather than a literal,
19794         so that the command remains on a single line.
19795
19796 2010-04-26  Eric Blake  <eblake@redhat.com>
19797
19798         git-version-gen: allow use on EBCDIC hosts
19799         * build-aux/git-version-gen (dirty): Use literal rather than tying
19800         ourselves to ascii.
19801         Reported by Steve Goetze.
19802
19803 2010-04-25  Bruno Haible  <bruno@clisp.org>
19804
19805         netdb: Add support for GNULIB_POSIXCHECK.
19806         * lib/netdb.in.h: Include warn-on-use.h.
19807         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
19808         functions are used when GNULIB_POSIXCHECK is defined and the
19809         getaddrinfo module is not in use.
19810         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
19811         freeaddrinfo, gai_strerror, getnameinfo are declared.
19812         * modules/netdb (Depends-on): Add warn-on-use.
19813         (Makefile.am): Include warn-on-use.h in netdb.h.
19814
19815 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
19816
19817         build: avoid "make check" failure without .git/ directory
19818         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
19819         there is no .git/ directory.
19820
19821 2010-04-25  Bruno Haible  <bruno@clisp.org>
19822
19823         ptsname: Fix misuse of ttyname_r.
19824         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
19825         of errno.
19826
19827 2010-04-25  Bruno Haible  <bruno@clisp.org>
19828
19829         ttyname_r: Make it work on Solaris 10.
19830         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
19831         if the system function has the POSIX declaration. Test whether the
19832         function fails if the buffer is less than 128 bytes large.
19833         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
19834         system's ttyname_r function. Provide a reasonably large buffer.
19835         * modules/ttyname_r (Depends-on): Add extensions.
19836         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
19837
19838 2010-04-25  Bruno Haible  <bruno@clisp.org>
19839
19840         Use the 'extensions' module for some more functions on Solaris.
19841         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
19842         module.
19843         * doc/posix-functions/ctime_r.texi: Likewise.
19844         * doc/posix-functions/getgrgid_r.texi: Likewise.
19845         * doc/posix-functions/getgrnam_r.texi: Likewise.
19846         * doc/posix-functions/getpwnam_r.texi: Likewise.
19847         * doc/posix-functions/getpwuid_r.texi: Likewise.
19848         * doc/posix-functions/readdir_r.texi: Likewise.
19849         * doc/posix-functions/sigwait.texi: Likewise.
19850         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
19851         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
19852
19853 2010-04-25  Bruno Haible  <bruno@clisp.org>
19854
19855         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
19856         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
19857         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
19858         * lib/ttyname_r.c: Include <limits.h>.
19859         (ttyname_r): Define using the system's ttyname_r function, if it exists
19860         and not on Solaris.
19861         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
19862         set.
19863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
19864         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
19865         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
19866         Reported by Simon Josefsson.
19867
19868 2010-04-25  Bruno Haible  <bruno@clisp.org>
19869
19870         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
19871         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
19872         * doc/posix-functions/ctime_r.texi: Likewise.
19873         * doc/posix-functions/getgrgid_r.texi: Likewise.
19874         * doc/posix-functions/getgrnam_r.texi: Likewise.
19875         * doc/posix-functions/getlogin_r.texi: Likewise.
19876         * doc/posix-functions/getpwnam_r.texi: Likewise.
19877         * doc/posix-functions/getpwuid_r.texi: Likewise.
19878         * doc/posix-functions/readdir_r.texi: Likewise.
19879         * doc/posix-functions/sigwait.texi: Likewise.
19880         * doc/posix-functions/ttyname_r.texi: Likewise.
19881         Reported by Simon Josefsson.
19882
19883 2010-04-25  Bruno Haible  <bruno@clisp.org>
19884
19885         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
19886         * gnulib-tool (func_usage): Document that --with-*-tests options apply
19887         also to --create-testdir.
19888         (func_acceptable): Don't consider the status of *-tests modules here.
19889         (func_modules_transitive_closure): Consider it here, before including a
19890         test module.
19891         (func_import, func_create_testdir): Set inc_all_direct_tests,
19892         inc_all_indirect_tests.
19893         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
19894         --create-testdir and --create-megatestdir.
19895
19896 2010-04-25  Bruno Haible  <bruno@clisp.org>
19897
19898         gnulib-tool: Add --without-*-tests options.
19899         * gnulib-tool (func_usage): Document the --without-*-tests options.
19900         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
19901         excl_unportable_tests): New variables.
19902         Fail if they are specified with --import or --update.
19903         (func_acceptable): Respect the excl_*_tests variables.
19904         (func_import): Set the excl_*_tests variables to empty.
19905
19906 2010-04-25  Simon Josefsson  <simon@josefsson.org>
19907             Bruno Haible  <bruno@clisp.org>
19908
19909         Work around a MacOS X 10.4 bug with openpty.
19910         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
19911         * tests/test-openpty.c (main): Close the master side explicitly.
19912
19913 2010-04-25  Bruno Haible  <bruno@clisp.org>
19914
19915         strnlen: Fix a C++ test error on MacOS X and Solaris.
19916         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
19917         the function is not declared.
19918         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
19919         Simon Josefsson.
19920
19921 2010-04-24  Bruno Haible  <bruno@clisp.org>
19922
19923         Avoid a gcc warning.
19924         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
19925         of correct type for %08lx directive.
19926         Reported by Eric Blake.
19927
19928 2010-04-24  Bruno Haible  <bruno@clisp.org>
19929
19930         vasnprintf: Correct errno value in case of out-of-memory.
19931         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
19932         or sprintf. Use the errno value from SNPRINTF or sprintf.
19933         Reported by Ian Beckwith <ianb@erislabs.net>.
19934
19935 2010-04-24  Bruno Haible  <bruno@clisp.org>
19936
19937         ansi-c++-opt: Find correct compiler when cross-compiling.
19938         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
19939         AC_CHECK_PROGS.
19940         Reported by Simon Josefsson.
19941
19942 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
19943
19944         vc-list-files: Add support for subversion
19945         * build-aux/vc-list-files: Use "svn list" to generate the list of
19946         files controlled by subversion.
19947
19948 2010-04-23  Jim Meyering  <meyering@redhat.com>
19949
19950         vc-list-files tests: convert to use init.sh
19951         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
19952         path_prepend_.
19953         Use Exit, not exit.
19954         Use skip_ rather than open coding it.
19955         Remove trap set-up and compare definitions.
19956         * tests/test-vc-list-files-git.sh: Likewise.
19957         * modules/vc-list-files-tests (Files): Add tests/init.sh.
19958
19959 2010-04-22  Simon Josefsson  <simon@josefsson.org>
19960
19961         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
19962         backup files.
19963
19964 2010-04-21  Simon Josefsson  <simon@josefsson.org>
19965
19966         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
19967
19968 2010-04-20  Eric Blake  <eblake@redhat.com>
19969
19970         tests: be robust to ignored SIGPIPE
19971         * tests/test-select-in.sh: Consume all output.
19972         * tests/test-lseek.sh: Check correct exit status, while avoiding
19973         EPIPE.
19974
19975 2010-04-20  Simon Josefsson  <simon@josefsson.org>
19976             Bruno Haible  <bruno@clisp.org>
19977
19978         visibility: Don't use -fvisibility if it leads to a warning.
19979         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
19980         yes, don't pretend that visibility works if it leads to a warning.
19981         Reported by Mike Gran <spk121@yahoo.com>.
19982
19983 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
19984
19985         * build-aux/bootstrap: Use "git -h" for testing for supported options
19986         instead of "git --help".  The short-form option only shows a summary,
19987         and doesn't layout the full man page.  Grep for the full option name
19988         in the summary, too.
19989
19990 2010-04-19  Bruno Haible  <bruno@clisp.org>
19991
19992         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
19993         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
19994         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
19995         mention of RELOCATABLE_STRIP.
19996         Reported by Sylvain Beucler <beuc@beuc.net>.
19997
19998 2010-04-19  Bruno Haible  <bruno@clisp.org>
19999
20000         * lib/diffseq.h: Fix typo in comment.
20001         Reported by Eric Blake.
20002
20003 2010-04-19  Bruno Haible  <bruno@clisp.org>
20004
20005         ioctl: Move autoconf macro to a .m4 file.
20006         * m4/ioctl.m4: New file, extracted from modules/ioctl.
20007         * modules/ioctl (Files): Add it.
20008         (configure.ac): Simply invoke gl_FUNC_IOCTL.
20009         Reported by Ian Beckwith <ianb@erislabs.net>.
20010
20011 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
20012             Bruno Haible  <bruno@clisp.org>
20013
20014         diffseq: Accommodate use-case with abstract arrays.
20015         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
20016         is not defined.
20017         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
20018         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
20019
20020 2010-04-18  Bruno Haible  <bruno@clisp.org>
20021
20022         * doc/posix-headers/stdbool.texi: More precise wording.
20023
20024 2010-04-17  Jim Meyering  <meyering@redhat.com>
20025
20026         maint.mk: use gnu-style indentation in an embedded perl script
20027         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
20028         Rename variable: s/two/last_two_bytes/
20029
20030 2010-04-16  Eric Blake  <eblake@redhat.com>
20031
20032         test-stdbool: skip test that fails with Solaris CC
20033         * tests/test-stdbool.c (f): Skip test that causes compilation
20034         error under buggy C++ compiler.
20035         * lib/stdbool.in.h: Document the limitation.
20036         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
20037
20038         setenv: allow compilation with C++
20039         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
20040         register keyword.
20041
20042         stdint: allow test to pass with C++
20043         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
20044
20045         getopt: allow compilation with C++
20046         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
20047         struct.
20048         * lib/getopt.c (_getopt_internal_r): Use correct type.
20049         Reported by Dagobert Michelson, via Joel E. Denny.
20050
20051 2010-04-16  Bruno Haible  <bruno@clisp.org>
20052
20053         Override netdb.h always.
20054         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
20055         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
20056         Reported by Ludovic Courtès <ludo@gnu.org>.
20057
20058 2010-04-15  Bruno Haible  <bruno@clisp.org>
20059
20060         openpty: Fix mistake from 2010-03-21.
20061         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
20062         Reported by Simon Josefsson.
20063
20064 2010-04-15  Eric Blake  <eblake@redhat.com>
20065
20066         test-forkpty: fix expected signature
20067         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
20068         Reported by Simon Josefsson.
20069
20070 2010-04-15  Jim Meyering  <meyering@redhat.com>
20071
20072         maint.mk: texinfo_suffix_re_: correct the default regexp
20073         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
20074
20075         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
20076         make it configurable via texinfo_suffix_re_.
20077
20078 2010-04-14  Eric Blake  <eblake@redhat.com>
20079
20080         strtok_r: relax license to LGPLv2+
20081         * modules/strtok_r (License): Relax license.
20082         Reported by Matthias Bolte.
20083
20084 2010-04-14  Simon Josefsson  <simon@josefsson.org>
20085
20086         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
20087         version 1.4.4 by default instead of requiring the libgcrypt
20088         version used during build.  This makes it possible to use the
20089         application with older but still binary compatible libgcrypt
20090         versions.
20091
20092 2010-04-13  Eric Blake  <eblake@redhat.com>
20093
20094         getopt-gnu: match recent glibc fixes and posix ruling
20095         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
20096         '+' handling, when requesting extensions.
20097         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
20098         'W;' handling.
20099         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
20100         * doc/posix-functions/getopt.texi (getopt): Document this.
20101         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20102         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20103         Likewise.
20104
20105         getopt: merge bug fixes from glibc
20106         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
20107         diagnostics.  Honor '+:' correctly.  Reject ';'.
20108
20109         getopt-posix: detect MacOS bug
20110         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
20111         optind when missing a required argument.
20112         * doc/posix-functions/getopt.texi (getopt): Document the bug.
20113         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20114         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20115         Likewise.
20116
20117         getopt-posix: avoid spurious failure on Solaris
20118         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
20119         an indicator that setting optind=1 is sufficient for reset.
20120
20121         getopt-posix: avoid spurious failure on FreeBSD
20122         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
20123         in POSIX mode, since the m4 test uses it.
20124
20125         gnulib-tool: silence warning on BSD sh
20126         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
20127
20128 2010-04-13  Jim Meyering  <meyering@redhat.com>
20129
20130         doc: users.txt: GNU patch now uses gnulib
20131         * users.txt: Add patch.
20132
20133 2010-04-12  Jim Meyering  <meyering@redhat.com>
20134
20135         maint.mk: generate more concise timing data for syntax-check rules
20136         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
20137         " done" from each line that reports a syntax-check test duration.
20138
20139 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
20140
20141         git-version-gen: use "git update-index..." rather than "git status"
20142         * build-aux/git-version-gen: Use git update-index --refresh, not
20143         "git status".  With some versions of git, "git status" would fail
20144         to update the index and result in an unwarranted "-dirty" suffix.
20145
20146 2010-04-11  Jim Meyering  <meyering@redhat.com>
20147
20148         openat: correct formatting (no semantic change)
20149         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
20150         Suggested by Bruno Haible.
20151
20152 2010-04-11  Bruno Haible  <bruno@clisp.org>
20153
20154         Stricter declaration checking in testdirs.
20155         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20156         If for_tests is true, augment AM_CPPFLAGS to define
20157         GNULIB_STRICT_CHECKING.
20158         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
20159         GNULIB_STRICT_CHECKING is defined, verify that the function is
20160         declared.
20161
20162 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
20163             Bruno Haible  <bruno@clisp.org>
20164
20165         libunistring: Improve configure output.
20166         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
20167         Don't say "consider installing GNU libunistring" when checking again
20168         with libiconv.
20169
20170 2010-04-11  Bruno Haible  <bruno@clisp.org>
20171
20172         libunistring: Correct value of $LTLIBUNISTRING.
20173         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
20174         correct the value of $LTLIBUNISTRING.
20175
20176 2010-04-11  Bruno Haible  <bruno@clisp.org>
20177
20178         havelib: Add static libraries to LIBS in the right order.
20179         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
20180         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
20181
20182 2010-04-11  Bruno Haible  <bruno@clisp.org>
20183
20184         libunistring: Detect libunistring also when it depends on libiconv.
20185         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
20186         the second AC_LIB_HAVE_LINKFLAGS invocation.
20187
20188 2010-04-11  James Youngman  <jay@gnu.org>
20189
20190         close-stream: declare local scalars to be "const"
20191         * lib/close-stream.c (close_stream): Make boolean variables const
20192         to document the fact that we set but do not change them.
20193
20194 2010-04-11  Bruno Haible  <bruno@clisp.org>
20195
20196         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
20197
20198 2010-04-11  Jim Meyering  <meyering@redhat.com>
20199
20200         maint.mk: don't include dist-check.mk
20201         * top/maint.mk: Remove bogus include directive.
20202
20203         maint.mk: improve empty-line-at-EOF check
20204         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
20205         solution, rather than tail+Perl-based one.  The latter would read
20206         a few kilobytes from the end of each file, and did not handle empty
20207         files properly.
20208
20209         maint.mk: print the elapsed time for each syntax-check rule
20210         * top/maint.mk (sc_m_rules_): Save start time in a file.
20211         (sc_z_rules_): New rules: remove temp file and print elapsed time.
20212         (local-check): Interpose the .z rules
20213
20214 2010-04-11  Jim Meyering  <meyering@redhat.com>
20215
20216         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
20217         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
20218         empty file with one that ends in an empty line.
20219
20220 2010-04-10  Bruno Haible  <bruno@clisp.org>
20221
20222         mkdir: Make it work on mingw64.
20223         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
20224         * lib/mkdir.c: Update comment.
20225         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
20226
20227 2010-04-10  Bruno Haible  <bruno@clisp.org>
20228
20229         Don't override improved macro from newer autoconf.
20230         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
20231         autoconf >= 2.62.
20232         Reported by Joel E. Denny <jdenny@clemson.edu>.
20233
20234 2010-04-10  Jim Meyering  <meyering@redhat.com>
20235
20236         maint.mk: new syntax-check rule: prohibit empty lines at end of file
20237         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
20238
20239         maint.mk: correct a diagnostic
20240         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
20241         in diagnostic; now use $prohibit.
20242
20243 2010-04-10  Bruno Haible  <address@hidden>
20244
20245         fchownat: Fix a C++ test error on Solaris 8.
20246         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
20247         the function does not exist.
20248
20249 2010-04-10  Bruno Haible  <bruno@clisp.org>
20250
20251         vasnprintf: Add more tests.
20252         * tests/test-vasnprintf-posix.c: Include <errno.h>.
20253         (test_function): Test converting an invalid wide string.
20254
20255         vasnprintf: Correct handling of unconvertible wide string arguments.
20256         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
20257         VASNPRINTF.
20258         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
20259         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
20260         smaller than the expected maximum need for the directive. Set errno to
20261         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
20262         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
20263         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
20264         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
20265         * modules/vasnprintf (Files): Add m4/printf.m4.
20266         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20267
20268 2010-04-10  Bruno Haible  <bruno@clisp.org>
20269
20270         vasnprintf: Fix crash in %ls directive.
20271         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
20272         string is passed as argument to %ls, with no precision and no width.
20273         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20274
20275 2010-04-10  Bruno Haible  <bruno@clisp.org>
20276
20277         vasnprintf: Fix multiple test failures on mingw.
20278         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
20279         _snprintf, or snwprintf, not _snwprintf.
20280
20281 2010-04-10  Bruno Haible  <bruno@clisp.org>
20282
20283         write: Fix a C++ test error on mingw.
20284         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
20285
20286 2010-04-10  Bruno Haible  <bruno@clisp.org>
20287
20288         vasnprintf test: Reduce code duplication.
20289         * tests/test-vasnprintf.c (test_function): New function, extracted from
20290         test_vasnprintf.
20291         (test_vasnprintf, test_asnprintf): Invoke it.
20292
20293 2010-04-10  Bruno Haible  <bruno@clisp.org>
20294
20295         strnlen: Fix warning in C++ mode on MacOS X.
20296         * lib/string.in.h (strnlen): Use the modern idiom.
20297         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
20298         defining strnlen as a macro already in <config.h>.
20299         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20300         REPLACE_STRNLEN.
20301         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
20302         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20303
20304 2010-04-08  James Youngman  <jay@gnu.org>
20305
20306         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
20307         the example.
20308
20309 2010-04-09  Jim Meyering  <meyering@redhat.com>
20310
20311         maint.mk: print better diagnostic when there is no $(_hv_file)
20312         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
20313         announce that when $(_hv_file) (aka help-version) does not exist.
20314
20315         init.sh: run tr in the "C" locale to avoid multibyte interpretation
20316         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
20317         not try to interpret its random input bytes.  Jarno Rajahalme reported
20318         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
20319         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
20320         (mktempd_): Likewise, just in case.
20321
20322         ftruncate: add two years to projected module removal date: 2012
20323         * m4/ftruncate.m4: Adjust comments.
20324
20325         ftruncate: mark module as obsolete; even MinGW provides it, now
20326         * modules/ftruncate (Status): Obsolete.
20327         (Notice): Say that.
20328         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
20329         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
20330
20331 2010-04-08  Bruno Haible  <bruno@clisp.org>
20332
20333         Fix side effects from tests-related modules.
20334         * modules/dprintf-posix (Comment): New section.
20335         * modules/fprintf-posix (Comment): Likewise.
20336         * modules/obstack-printf-posix (Comment): Likewise.
20337         * modules/printf-posix (Comment): Likewise.
20338         * modules/snprintf-posix (Comment): Likewise.
20339         * modules/sprintf-posix (Comment): Likewise.
20340         * modules/vasnprintf-posix (Comment): Likewise.
20341         * modules/vasprintf-posix (Comment): Likewise.
20342         * modules/vdprintf-posix (Comment): Likewise.
20343         * modules/vfprintf-posix (Comment): Likewise.
20344         * modules/vprintf-posix (Comment): Likewise.
20345         * modules/vsnprintf-posix (Comment): Likewise.
20346         * modules/vsprintf-posix (Comment): Likewise.
20347         * modules/xprintf-posix (Comment): Likewise.
20348         * modules/xvasprintf-posix (Comment): Likewise.
20349         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
20350         * modules/floorf-tests (Depends-on): Likewise.
20351         * modules/round-tests (Depends-on): Likewise.
20352         * modules/roundf-tests (Depends-on): Likewise.
20353         * modules/trunc-tests (Depends-on): Likewise.
20354         * modules/truncf-tests (Depends-on): Likewise.
20355         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
20356         'fprintf-posix' module is not present.
20357         * tests/test-floorf2.c (check): Likewise.
20358         * tests/test-trunc2.c (check): Likewise.
20359         * tests/test-truncf2.c (check): Likewise.
20360         * tests/test-round2.c (equal): Likewise.
20361         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20362
20363 2010-04-07  Karl Berry  <karl@gnu.org>
20364
20365         * config/srclist.txt,
20366         * config/srclistvars.sh,
20367         * config/srclist-update: doc fixes.
20368
20369 2010-04-07  Jim Meyering  <meyering@redhat.com>
20370
20371         maint.mk: add a PATH crosschecking syntax-check rule
20372         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
20373         Useful if you use a test like the one in help-version (coreutils,
20374         diffutils, grep, gzip) that ensures $(VERSION) matches what is
20375         printed by prog --version.
20376
20377 2010-04-06  Bruno Haible  <bruno@clisp.org>
20378
20379         Fix link error on mingw.
20380         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
20381         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
20382
20383 2010-04-06  Bruno Haible  <bruno@clisp.org>
20384
20385         Assume rmdir exists.
20386         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
20387
20388 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
20389
20390         doc: update users.txt
20391         * users.txt: Add gcal.
20392
20393 2010-04-06  Jim Meyering  <meyering@redhat.com>
20394
20395         init.sh: simply unset TMPDIR rather than risking env -i
20396         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
20397         although it probably works fine on all Unix-based systems, some
20398         systems (Cygwin?) cannot tolerate a totally cleared environment.
20399         Suggestion from Eric Blake.
20400
20401 2010-04-06  Jim Meyering  <meyering@redhat.com>
20402
20403         init.sh: portability fix: use env's POSIX-specified -i option not -u
20404         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
20405         than unportable env -u.  Solaris 5.11's env lacks support for -u.
20406
20407 2010-04-05  Bruno Haible  <bruno@clisp.org>
20408
20409         btowc: Work around Cygwin 1.7.2 bug.
20410         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
20411         does not map NUL to 0.
20412         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
20413
20414 2010-04-05  Bruno Haible  <bruno@clisp.org>
20415
20416         Make the multithread modules work on Cygwin 1.7.2.
20417         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
20418         imported symbols can be declared weak, so that it returns "no" on
20419         Cygwin 1.7.2.
20420
20421 2010-04-05  Bruno Haible  <bruno@clisp.org>
20422
20423         Use the module 'strncat'.
20424         * modules/unistr/u8-strncat (Depends-on): Add strncat.
20425
20426         Tests for module 'strncat'.
20427         * modules/strncat-tests: New file.
20428         * tests/test-strncat.c: New file.
20429
20430         New module 'strncat'.
20431         * lib/string.in.h (strncat): New declaration.
20432         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
20433         * m4/strncat.m4: New file, based on m4/memchr.m4.
20434         * modules/strncat: New file.
20435         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
20436         is declared.
20437         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
20438         REPLACE_STRNCAT.
20439         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
20440         REPLACE_STRNCAT.
20441         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
20442         module.
20443         * tests/test-string-c++.cc: Check signature of strncat.
20444
20445 2010-04-05  Jim Meyering  <meyering@redhat.com>
20446
20447         xstrtoumax-tests: convert to use init.sh
20448         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
20449         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20450         Use Exit, not exit.
20451         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20452
20453         xstrtoimax-tests: convert to use init.sh
20454         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
20455         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20456         Use Exit, not exit.
20457         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20458
20459 2010-04-05  Bruno Haible  <bruno@clisp.org>
20460
20461         sys_socket: Avoid #define replacements in C++ mode.
20462         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
20463         warning to the function if possible, rather than #defining the symbol
20464         to a dysfunctional alias.
20465
20466 2010-04-05  Bruno Haible  <bruno@clisp.org>
20467
20468         fseeko: Fix C++ test error on mingw.
20469         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
20470         gl_FUNC_FSEEKO.
20471         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
20472         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
20473         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
20474         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
20475
20476 2010-04-05  Bruno Haible  <bruno@clisp.org>
20477
20478         duplocale: Improve test output.
20479         * tests/test-duplocale.c (main): Print reason for skipped test.
20480
20481 2010-04-05  Bruno Haible  <bruno@clisp.org>
20482
20483         Assume rmdir exists.
20484         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
20485         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
20486
20487 2010-04-05  Bruno Haible  <bruno@clisp.org>
20488
20489         Fix link error on Solaris 8 with cc.
20490         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
20491
20492 2010-04-05  Bruno Haible  <bruno@clisp.org>
20493
20494         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20495         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
20496
20497 2010-04-05  Bruno Haible  <bruno@clisp.org>
20498
20499         vasprintf: Update documentation.
20500         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
20501
20502 2010-04-05  Bruno Haible  <bruno@clisp.org>
20503
20504         ptsname: Improve test.
20505         * tests/test-ptsname.c (main): Also try the various master names of BSD
20506         systems.
20507
20508 2010-04-05  Bruno Haible  <bruno@clisp.org>
20509
20510         memchr: Avoid a possible C++ test error.
20511         * lib/string.in.h (memchr): Provide declaration if function is missing.
20512         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
20513         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
20514         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
20515         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
20516
20517 2010-04-05  Bruno Haible  <bruno@clisp.org>
20518
20519         strtok_r: Improve idiom.
20520         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
20521         AC_LIBOBJ is used.
20522
20523 2010-04-05  Bruno Haible  <bruno@clisp.org>
20524
20525         strdup: Improve idiom.
20526         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
20527         AC_LIBOBJ is used.
20528         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
20529         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
20530         when AC_LIBOBJ is used.
20531
20532 2010-04-05  Bruno Haible  <bruno@clisp.org>
20533
20534         mbsinit, mbrtowc, wcrtomb: Improve idioms.
20535         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
20536         don't set REPLACE_MBSINIT to 1.
20537         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
20538         don't set REPLACE_MBRTOWC to 1.
20539         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
20540         exist, don't set REPLACE_MBSRTOWCS to 1.
20541         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
20542         exist, don't set REPLACE_MBSNRTOWCS to 1.
20543         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
20544         don't set REPLACE_WCRTOMB to 1.
20545         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
20546         exist, don't set REPLACE_WCSRTOMBS to 1.
20547         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
20548         exist, don't set REPLACE_WCSNRTOMBS to 1.
20549
20550 2010-04-05  Bruno Haible  <bruno@clisp.org>
20551
20552         ldexpl: Improve idiom.
20553         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
20554         make sure to set HAVE_DECL_LDEXPL to 0.
20555
20556 2010-04-05  Jim Meyering  <meyering@redhat.com>
20557
20558         xstrtol-tests: convert to use init.sh
20559         * modules/xstrtol-tests (Files): Add tests/init.sh.
20560         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20561         Use Exit, not exit.
20562         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20563
20564         atexit-tests: convert to use init.sh
20565         * modules/atexit-tests (Files): Add tests/init.sh.
20566         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20567         Use Exit, not exit.
20568         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20569
20570         init.sh: fix typo
20571         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
20572
20573         init.sh: make it easier for a test script to write to the tty, ...
20574         when using automake's parallel-tests mode.
20575         * tests/init.sh (stderr_fileno_): Define overridable variable.
20576         (warn_): New function, to use it.
20577         (fail_, skip_, framework_failure_): Use warn_.
20578
20579 2010-04-04  Bruno Haible  <bruno@clisp.org>
20580
20581         btowc: Avoid warning.
20582         * lib/btowc.c: Include <stdlib.h>.
20583         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
20584
20585 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20586             Bruno Haible  <bruno@clisp.org>
20587
20588         wchar: Port to NetBSD 1.5.
20589         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
20590         * lib/wctype.in.h (WEOF): Likewise.
20591
20592 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20593             Bruno Haible  <bruno@clisp.org>
20594
20595         Port extended stdio to NetBSD 1.5.
20596         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
20597         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
20598         older.
20599
20600 2010-04-04  Bruno Haible  <bruno@clisp.org>
20601
20602         string: Remove unused substitution.
20603         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
20604         HAVE_DECL_STRERROR.
20605         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
20606
20607 2010-04-04  Bruno Haible  <bruno@clisp.org>
20608
20609         strtod: Avoid a possible C++ test error.
20610         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
20611         set REPLACE_STRTOD.
20612
20613 2010-04-04  Bruno Haible  <bruno@clisp.org>
20614
20615         strerror: Update documentation.
20616         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
20617
20618 2010-04-04  Bruno Haible  <bruno@clisp.org>
20619
20620         stdio: Fix some C++ test errors on Solaris 8 with GCC.
20621         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
20622         _GL_CXXALIAS_SYS_CAST.
20623
20624 2010-04-04  Bruno Haible  <bruno@clisp.org>
20625
20626         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20627         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
20628         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
20629         REPLACE_FREXPL to 1.
20630         * doc/posix-functions/frexpl.texi: Update documentation.
20631
20632 2010-04-04  Bruno Haible  <bruno@clisp.org>
20633
20634         math: Fix some C++ test errors on Solaris 8 and Cygwin.
20635         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
20636
20637 2010-04-04  Bruno Haible  <bruno@clisp.org>
20638
20639         Implement nanosleep for native Windows.
20640         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
20641
20642 2010-04-04  Bruno Haible  <bruno@clisp.org>
20643
20644         math: Fix some C++ test errors on Solaris 8.
20645         * lib/math.in.h (truncf, trunc): Use simpler idiom.
20646
20647 2010-04-04  Bruno Haible  <bruno@clisp.org>
20648
20649         math: Fix some C++ test errors on Cygwin.
20650         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
20651         truncl): Provide declaration if the system does not have it.
20652         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
20653         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
20654         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
20655         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
20656         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
20657         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
20658         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
20659         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
20660         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
20661         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
20662         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
20663         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
20664         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
20665         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
20666         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
20667         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
20668         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
20669         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20670         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20671         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
20672         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20673         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20674
20675 2010-04-04  Bruno Haible  <bruno@clisp.org>
20676
20677         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
20678         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
20679         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
20680         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
20681         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20682         * m4/isinf.m4 (gl_ISINF): Likewise.
20683         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20684
20685 2010-04-04  Bruno Haible  <bruno@clisp.org>
20686
20687         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
20688         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20689
20690 2010-04-04  Bruno Haible  <bruno@clisp.org>
20691
20692         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
20693         * modules/tmpfile (configure.ac): Update.
20694
20695         tmpfile: Fix C++ test error on mingw.
20696         * lib/stdio.in.h (tmpfile): New declaration.
20697         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
20698         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
20699         * modules/tmpfile (Depends-on): Add stdio.
20700         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
20701         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
20702         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
20703         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
20704         REPLACE_TMPFILE.
20705         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
20706
20707 2010-04-04  Bruno Haible  <bruno@clisp.org>
20708
20709         ioctl: Fix C++ test error on mingw.
20710         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
20711         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
20712         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
20713
20714 2010-04-03  Bruno Haible  <bruno@clisp.org>
20715
20716         wcwidth: Fix C++ test error on mingw.
20717         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
20718         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
20719         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
20720
20721 2010-04-03  Bruno Haible  <bruno@clisp.org>
20722
20723         nanosleep: Fix C++ test error on mingw.
20724         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
20725         * lib/time.in.h (nanosleep): Use modern idiom.
20726         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
20727         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
20728         REPLACE_NANOSLEEP to 1.
20729         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
20730         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
20731
20732 2010-04-03  Bruno Haible  <bruno@clisp.org>
20733
20734         strptime: Fix C++ test error on mingw.
20735         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
20736         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
20737         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
20738         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
20739         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
20740         not REPLACE_STRPTIME.
20741         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
20742         REPLACE_STRPTIME.
20743
20744 2010-04-03  Bruno Haible  <bruno@clisp.org>
20745
20746         timegm: Fix C++ test error on mingw.
20747         * lib/time.in.h (timegm): Use modern idiom.
20748         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
20749         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
20750         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
20751         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
20752
20753 2010-04-03  Bruno Haible  <bruno@clisp.org>
20754
20755         timegm: Assume declaration if function exists.
20756         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
20757         if it exists. Don't clobber ac_cv_func_timegm.
20758
20759 2010-04-03  Bruno Haible  <bruno@clisp.org>
20760
20761         time_r: Fix C++ test error on mingw.
20762         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
20763         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
20764         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
20765         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
20766         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
20767
20768 2010-04-03  Bruno Haible  <bruno@clisp.org>
20769
20770         time_r: Minor updates.
20771         * modules/time_r (Description): Mention the provided functions.
20772         * lib/time_r.c: Don't include <string.h>.
20773         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
20774         * doc/posix-functions/localtime_r.texi: Likewise.
20775
20776 2010-04-03  Bruno Haible  <bruno@clisp.org>
20777
20778         time: Fix regression introduced on 2010-03-08.
20779         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
20780         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
20781
20782 2010-04-03  Jim Meyering  <meyering@redhat.com>
20783
20784         maint.mk: don't silently disable project-specific syntax-check rules
20785         * top/maint.mk (_prohibit_regexp): Define, to help people realize
20786         that they need to convert their project-specific syntax-check rules
20787         to use the new _sc_search_regexp.
20788
20789 2010-04-03  Bruno Haible  <bruno@clisp.org>
20790
20791         fchdir: Fix regression introduced on 2010-03-08.
20792         * lib/unistd.in.h (fchdir): Fix declaration.
20793         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
20794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
20795         REPLACE_FCHDIR.
20796         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
20797         REPLACE_FCHDIR.
20798
20799 2010-04-03  Bruno Haible  <bruno@clisp.org>
20800
20801         getpagesize: Fix C++ test error on mingw.
20802         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
20803         system does not declare the function.
20804         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
20805         declared.
20806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20807         HAVE_DECL_GETPAGESIZE.
20808         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
20809
20810 2010-04-03  Bruno Haible  <bruno@clisp.org>
20811
20812         stdio: Make C++ tests work on mingw.
20813         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
20814         does not declare the function.
20815
20816 2010-04-03  Bruno Haible  <bruno@clisp.org>
20817
20818         ftello: Fix C++ test error on mingw.
20819         * lib/stdio.in.h (ftello): Use modern idiom.
20820         * lib/ftello.c (ftello): Renamed from rpl_ftello.
20821         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
20822         is missing and that it needs to be replaced.
20823         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
20824         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
20825         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
20826
20827 2010-04-03  Bruno Haible  <bruno@clisp.org>
20828
20829         fseeko: Fix C++ test error on mingw.
20830         * lib/stdio.in.h (fseeko): Use modern idiom.
20831         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
20832         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
20833         is missing and that it needs to be replaced.
20834         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
20835         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
20836         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
20837
20838 2010-04-03  Bruno Haible  <bruno@clisp.org>
20839
20840         mkstemp: Fix C++ test error on mingw.
20841         * lib/stdlib.in.h (mkstemp): Use modern idiom.
20842         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
20843         function is missing and that it needs to be replaced.
20844         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
20845         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
20846
20847 2010-04-03  Bruno Haible  <bruno@clisp.org>
20848
20849         stpncpy: Fix C++ test error on mingw.
20850         * lib/string.in.h (stpncpy): Use modern idiom.
20851         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
20852         function is missing and that it needs to be replaced.
20853         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20854         REPLACE_STPNCPY.
20855         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
20856
20857 2010-04-03  Bruno Haible  <bruno@clisp.org>
20858
20859         sys_stat: Fix C++ test error on mingw.
20860         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
20861         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
20862
20863 2010-04-03  Bruno Haible  <bruno@clisp.org>
20864
20865         pty: Update doc.
20866         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
20867
20868 2010-04-03  Bruno Haible  <bruno@clisp.org>
20869
20870         unistd: Fix C++ test error on mingw.
20871         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
20872
20873 2010-04-03  Bruno Haible  <bruno@clisp.org>
20874
20875         Update doc regarding mingw.
20876         * doc/glibc-functions/openpty.texi: Update regarding mingw.
20877         * doc/glibc-functions/login_tty.texi: Likewise.
20878         * doc/glibc-functions/forkpty.texi: Likewise.
20879
20880 2010-04-03  Bruno Haible  <bruno@clisp.org>
20881
20882         stdlib: Avoid compilation failure of c-strtold on mingw.
20883         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
20884
20885 2010-04-03  Bruno Haible  <bruno@clisp.org>
20886
20887         locale: Make C++ tests work on Cygwin and mingw.
20888         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
20889         cannot provide the function.
20890         Reported by Simon Josefsson.
20891
20892 2010-04-03  Bruno Haible  <bruno@clisp.org>
20893
20894         localename: Port to MacOS X 10.6.
20895         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
20896         memory layout of the locales in MacOS X 10.6 as well.
20897         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
20898
20899 2010-04-02  Bruno Haible  <bruno@clisp.org>
20900
20901         gnulib-tool: Ensure that long-running tests are executed last.
20902         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
20903         running tests after the one for the other tests.
20904
20905 2010-04-02  Bruno Haible  <bruno@clisp.org>
20906
20907         gnulib-tool: Ensure the tests in the main directory are executed first.
20908         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
20909         start with the current directory.
20910
20911 2010-04-02  Bruno Haible  <bruno@clisp.org>
20912
20913         Tests for module 'havelib', moved here from GNU gettext.
20914         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
20915         modifications.
20916         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
20917         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
20918         with modifications.
20919         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
20920         modifications.
20921         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
20922         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
20923         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
20924         with modifications.
20925         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
20926         with modifications.
20927         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
20928         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
20929         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
20930         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
20931         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
20932         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
20933         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
20934         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
20935         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
20936         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
20937         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
20938         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
20939         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
20940         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
20941         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
20942         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
20943         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
20944         with modifications.
20945         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
20946         with modifications.
20947         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
20948         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
20949         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
20950         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
20951         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
20952         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
20953         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
20954         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
20955         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
20956         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
20957         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
20958         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
20959         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
20960         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
20961         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
20962         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
20963         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
20964         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
20965         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
20966         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
20967         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
20968         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
20969         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
20970         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
20971         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
20972         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
20973         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
20974         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
20975         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
20976         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
20977         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
20978         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
20979         * tests/havelib/rpathx/rpathx.c: New file, from
20980         gettext/autoconf-lib-link.
20981         * tests/havelib/rpathx/Makefile.am: New file, from
20982         gettext/autoconf-lib-link.
20983         * tests/havelib/rpathx/configure.ac: New file, from
20984         gettext/autoconf-lib-link with modifications.
20985         * tests/havelib/rpathy/rpathy.c: New file, from
20986         gettext/autoconf-lib-link.
20987         * tests/havelib/rpathy/Makefile.am: New file, from
20988         gettext/autoconf-lib-link.
20989         * tests/havelib/rpathy/configure.ac: New file, from
20990         gettext/autoconf-lib-link with modifications.
20991         * tests/havelib/rpathz/rpathz.c: New file, from
20992         gettext/autoconf-lib-link.
20993         * tests/havelib/rpathz/Makefile.am: New file, from
20994         gettext/autoconf-lib-link.
20995         * tests/havelib/rpathz/configure.ac: New file, from
20996         gettext/autoconf-lib-link with modifications.
20997         * tests/havelib/rpathlx/usex.c: New file, from
20998         gettext/autoconf-lib-link.
20999         * tests/havelib/rpathlx/Makefile.am: New file, from
21000         gettext/autoconf-lib-link.
21001         * tests/havelib/rpathlx/configure.ac: New file, from
21002         gettext/autoconf-lib-link with modifications.
21003         * tests/havelib/rpathly/usey.c: New file, from
21004         gettext/autoconf-lib-link.
21005         * tests/havelib/rpathly/Makefile.am: New file, from
21006         gettext/autoconf-lib-link.
21007         * tests/havelib/rpathly/configure.ac: New file, from
21008         gettext/autoconf-lib-link with modifications.
21009         * tests/havelib/rpathlz/usez.c: New file, from
21010         gettext/autoconf-lib-link.
21011         * tests/havelib/rpathlz/Makefile.am: New file, from
21012         gettext/autoconf-lib-link.
21013         * tests/havelib/rpathlz/configure.ac: New file, from
21014         gettext/autoconf-lib-link with modifications.
21015         * tests/havelib/rpathlyx/usey.c: New file, from
21016         gettext/autoconf-lib-link.
21017         * tests/havelib/rpathlyx/Makefile.am: New file, from
21018         gettext/autoconf-lib-link.
21019         * tests/havelib/rpathlyx/configure.ac: New file, from
21020         gettext/autoconf-lib-link with modifications.
21021         * tests/havelib/rpathlzyx/usez.c: New file, from
21022         gettext/autoconf-lib-link.
21023         * tests/havelib/rpathlzyx/Makefile.am: New file, from
21024         gettext/autoconf-lib-link.
21025         * tests/havelib/rpathlzyx/configure.ac: New file, from
21026         gettext/autoconf-lib-link with modifications.
21027         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
21028         with modifications.
21029
21030 2010-04-02  Bruno Haible  <bruno@clisp.org>
21031
21032         gnulib-tool: Create distributed built sources also for the tests.
21033         * gnulib-tool (func_create_testdir): Also generate distributed built
21034         sources in the tests directory.
21035
21036 2010-04-02  Bruno Haible  <bruno@clisp.org>
21037
21038         gnulib-tool: Obey user's environment variables.
21039         * gnulib-tool (func_create_testdir): When creating built sources,
21040         respect the environment variables for autoconf, automake, etc. given by
21041         the user.
21042
21043 2010-04-02  Bruno Haible  <bruno@clisp.org>
21044
21045         gnulib-tool: Provide the value of --m4-base to modules.
21046         * gnulib-tool (func_import, func_create_testdir): Emit a definition
21047         of gl_m4_base.
21048
21049 2010-04-02  Eric Blake  <eblake@redhat.com>
21050
21051         maint.mk: fix some fallout
21052         * NEWS: Document the incompatible change, and its effect on cfg.mk.
21053         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
21054
21055 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21056
21057         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
21058         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
21059         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
21060         (sc_cast_of_x_alloc_return_value): Likewise.
21061         (sc_cast_of_alloca_return_value): Likewise.
21062         (sc_space_tab): Likewise.
21063         (sc_prohibit_atoi_atof): Likewise.
21064         (sc_prohibit_magic_number_exit): Likewise.
21065         (sc_error_exit_success): Likewise.
21066         (sc_file_system): Likewise.
21067         (sc_prohibit_have_config_h): Likewise.
21068         (sc_require_config_h): Likewise.
21069         (sc_prohibit_HAVE_MBRTOWC): Likewise.
21070         (sc_obsolete_symbols): Likewise.
21071         (sc_changelog): Likewise.
21072         (sc_program_name): Likewise.
21073         (sc_the_the): Likewise.
21074         (sc_trailing_blank): Likewise.
21075         (sc_two_space_separator_in_usage): Likewise.
21076         (sc_useless_cpp_parens): Likewise.
21077         (sc_GPL_version): Likewise.
21078         (sc_GFDL_version): Likewise.
21079         (sc_texinfo_acronym): Likewise.
21080         (sc_prohibit_cvs_keyword): Likewise.
21081         (sc_prohibit_stat_st_blocks): Likewise.
21082         (sc_prohibit_S_IS_definition): Likewise.
21083         (sc_redundant_const): Likewise.
21084         (sc_makefile_TAB_only_indentation): Likewise.
21085         (sc_m4_quote_check): Likewise.
21086         (sc_makefile_path_separator_check): Likewise.
21087         (sc_copyright_check): Likewise.
21088         (sc_Wundef_boolean): Likewise.
21089         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21090
21091         maint.mk: match 0 or more whitespace-before-function-call '('
21092         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
21093         that have zero or two-and-more spaces between the function name
21094         and the open parenthesis.
21095         (sc_error_message_warn_fatal): Likewise.
21096         (sc_error_message_uppercase): Likewise.
21097         (sc_error_message_period): Likewise.
21098
21099 2010-03-31  Eric Blake  <eblake@redhat.com>
21100
21101         maint.mk: check for [ as well as test
21102         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
21103         Based on a libvirt report by Matthias Bolte.
21104
21105         gnumakefile: don't squelch _version output
21106         * top/GNUmakefile (_version): Create one-shot dependency rather
21107         than using $(shell) when version must be regenerated.
21108         (_autoreconf): Run verbosely, by default.
21109
21110         sys_time: avoid compiler warnings
21111         * lib/sys_time.in.h (includes): Ensure gcc pragma is
21112         unconditional, fixing regression from 2010-03-29.
21113         Reported by Simon Josefsson.
21114
21115 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21116
21117         maint.mk: s/_header_without_use/_sc_header_without_use/
21118         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
21119         (sc_prohibit_assert_without_use): Use the new name.
21120         (sc_prohibit_close_stream_without_use): Likewise.
21121         (sc_prohibit_getopt_without_use): Likewise.
21122         (sc_prohibit_quotearg_without_use): Likewise.
21123         (sc_prohibit_quote_without_use): Likewise.
21124         (sc_prohibit_long_options_without_use): Likewise.
21125         (sc_prohibit_inttostr_without_use): Likewise.
21126         (sc_prohibit_ignore_value_without_use): Likewise.
21127         (sc_prohibit_error_without_use): Likewise.
21128         (sc_prohibit_xalloc_without_use): Likewise.
21129         (sc_prohibit_hash_without_use): Likewise.
21130         (sc_prohibit_hash_pjw_without_use): Likewise.
21131         (sc_prohibit_safe_read_without_use): Likewise.
21132         (sc_prohibit_argmatch_without_use): Likewise.
21133         (sc_prohibit_canonicalize_without_use): Likewise.
21134         (sc_prohibit_root_dev_ino_without_use): Likewise.
21135         (sc_prohibit_openat_without_use): Likewise.
21136         (sc_prohibit_c_ctype_without_use): Likewise.
21137         (sc_prohibit_signal_without_use): Likewise.
21138         (sc_prohibit_intprops_without_use): Likewise.
21139
21140 2010-03-30  Eric Blake  <eblake@redhat.com>
21141
21142         maint: improve module indicators
21143         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
21144         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
21145         columns, and avoid extra macro expansion.
21146
21147         fdopendir: work around FreeBSD bug
21148         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21149         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
21150         * modules/dirent (Makefile.am): Substitute it.
21151         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
21152         declaration.
21153         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
21154         fix.
21155         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21156
21157 2010-03-29  Bruno Haible  <bruno@clisp.org>
21158
21159         Emit #pragma system_header after the inclusion guard, not before.
21160         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
21161         guard that spans the entire file, not before. This enables an
21162         optimization in GCC's preprocessor.
21163         * lib/ctype.in.h: Likewise.
21164         * lib/dirent.in.h: Likewise.
21165         * lib/errno.in.h: Likewise.
21166         * lib/float.in.h: Likewise.
21167         * lib/getopt.in.h: Likewise.
21168         * lib/iconv.in.h: Likewise.
21169         * lib/langinfo.in.h: Likewise.
21170         * lib/locale.in.h: Likewise.
21171         * lib/math.in.h: Likewise.
21172         * lib/netdb.in.h: Likewise.
21173         * lib/netinet_in.in.h: Likewise.
21174         * lib/pty.in.h: Likewise.
21175         * lib/sched.in.h: Likewise.
21176         * lib/se-selinux.in.h: Likewise.
21177         * lib/search.in.h: Likewise.
21178         * lib/spawn.in.h: Likewise.
21179         * lib/stdarg.in.h: Likewise.
21180         * lib/stdint.in.h: Likewise.
21181         * lib/string.in.h: Likewise.
21182         * lib/strings.in.h: Likewise.
21183         * lib/sys_file.in.h: Likewise.
21184         * lib/sys_ioctl.in.h: Likewise.
21185         * lib/sys_time.in.h: Likewise.
21186         * lib/sys_times.in.h: Likewise.
21187         * lib/sys_utsname.in.h: Likewise.
21188         * lib/sys_wait.in.h: Likewise.
21189         * lib/sysexits.in.h: Likewise.
21190         * lib/wctype.in.h: Likewise.
21191
21192 2010-03-28  James Youngman  <jay@gnu.org>
21193
21194         save-cwd: don't leak a file descriptor when the caller execs.
21195         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
21196         saved file descriptor.
21197         * modules/save-cwd (Depends-on): Depend on cloexec.
21198
21199 2010-03-29  Bruno Haible  <bruno@clisp.org>
21200
21201         Remove vestiges of fts-lgpl module.
21202         * lib/fts_.h: Assume GNULIB_FTS is 1.
21203         * lib/fts.c: Likewise.
21204         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21205
21206 2010-03-28  Bruno Haible  <bruno@clisp.org>
21207
21208         Fix definition of tests witness macro.
21209         * gnulib-tool (func_import): Fix definition of witness macro.
21210
21211 2010-03-28  Bruno Haible  <bruno@clisp.org>
21212
21213         Fix ioctl's protoype on glibc systems.
21214         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
21215         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
21216         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
21217         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
21218         signature. If not, arrange to replace the ioctl function.
21219         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21220         REPLACE_IOCTL.
21221         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
21222         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
21223         Reported by Ludovic Courtès <ludo@gnu.org>.
21224
21225 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
21226
21227         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
21228         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
21229         made it so grep -r --include=GLOB* ... did not work.
21230
21231 2010-03-26  Jim Meyering  <meyering@redhat.com>
21232             Eric Blake  <eblake@redhat.com>
21233
21234         maint.mk: prohibit use of test's -o and -a operators
21235         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
21236
21237 2010-03-28  Bruno Haible  <bruno@clisp.org>
21238
21239         Remove unused GNULIB_XYZ macro definitions.
21240         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
21241         invocation.
21242
21243 2010-03-28  Bruno Haible  <bruno@clisp.org>
21244
21245         Mark privileged tests modules.
21246         * modules/idpriv-drop-tests (Status): New section.
21247         * modules/idpriv-droptemp-tests (Status): New section.
21248
21249 2010-03-28  Bruno Haible  <bruno@clisp.org>
21250
21251         Split C++ tests into separate tests modules.
21252         * modules/dirent-c++-tests: New file, extracted from
21253         modules/dirent-tests.
21254         * modules/dirent-tests: Depend on it.
21255         * modules/fcntl-h-c++-tests: New file, extracted from
21256         modules/fcntl-h-tests.
21257         * modules/fcntl-h-tests: Depend on it.
21258         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
21259         * modules/glob-tests: Depend on it.
21260         * modules/iconv-h-c++-tests: New file, extracted from
21261         modules/iconv-h-tests.
21262         * modules/iconv-h-tests: Depend on it.
21263         * modules/langinfo-c++-tests: New file, extracted from
21264         modules/langinfo-tests.
21265         * modules/langinfo-tests: Depend on it.
21266         * modules/locale-c++-tests: New file, extracted from
21267         modules/locale-tests.
21268         * modules/locale-tests: Depend on it.
21269         * modules/math-c++-tests: New file, extracted from modules/math-tests.
21270         * modules/math-tests: Depend on it.
21271         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
21272         * modules/pty-tests: Depend on it.
21273         * modules/search-c++-tests: New file, extracted from
21274         modules/search-tests.
21275         * modules/search-tests: Depend on it.
21276         * modules/signal-c++-tests: New file, extracted from
21277         modules/signal-tests.
21278         * modules/signal-tests: Depend on it.
21279         * modules/spawn-c++-tests: New file, extracted from
21280         modules/spawn-tests.
21281         * modules/spawn-tests: Depend on it.
21282         * modules/stdio-c++-tests: New file, extracted from
21283         modules/stdio-tests.
21284         * modules/stdio-tests: Depend on it.
21285         * modules/stdlib-c++-tests: New file, extracted from
21286         modules/stdlib-tests.
21287         * modules/stdlib-tests: Depend on it.
21288         * modules/string-c++-tests: New file, extracted from
21289         modules/string-tests.
21290         * modules/string-tests: Depend on it.
21291         * modules/sys_ioctl-c++-tests: New file, extracted from
21292         modules/sys_ioctl-tests.
21293         * modules/sys_ioctl-tests: Depend on it.
21294         * modules/sys_select-c++-tests: New file, extracted from
21295         modules/sys_select-tests.
21296         * modules/sys_select-tests: Depend on it.
21297         * modules/sys_socket-c++-tests: New file, extracted from
21298         modules/sys_socket-tests.
21299         * modules/sys_socket-tests: Depend on it.
21300         * modules/sys_stat-c++-tests: New file, extracted from
21301         modules/sys_stat-tests.
21302         * modules/sys_stat-tests: Depend on it.
21303         * modules/sys_time-c++-tests: New file, extracted from
21304         modules/sys_time-tests.
21305         * modules/sys_time-tests: Depend on it.
21306         * modules/time-c++-tests: New file, extracted from modules/time-tests.
21307         * modules/time-tests: Depend on it.
21308         * modules/unistd-c++-tests: New file, extracted from
21309         modules/unistd-tests.
21310         * modules/unistd-tests: Depend on it.
21311         * modules/wchar-c++-tests: New file, extracted from
21312         modules/wchar-tests.
21313         * modules/wchar-tests: Depend on it.
21314         * modules/wctype-c++-tests: New file, extracted from
21315         modules/wctype-tests.
21316         * modules/wctype-tests: Depend on it.
21317         Reported by Simon Josefsson.
21318
21319 2010-03-28  Bruno Haible  <bruno@clisp.org>
21320
21321         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
21322         * gnulib-tool (func_exists_module): New function, extracted from
21323         func_verify_module.
21324         (func_verify_module): Use it.
21325         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
21326         'foo' only if 'foo' exists.
21327         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
21328         module.
21329
21330 2010-03-28  Bruno Haible  <bruno@clisp.org>
21331
21332         gnulib-tool: Add support for special categories of tests.
21333         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
21334         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
21335         (func_usage): Document them.
21336         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
21337         inc_unportable_tests, inc_all_tests): New variables.
21338         (func_acceptable): Consider these variables.
21339         (func_modules_transitive_closure): Make it work when the 'Status' field
21340         consists of multiple words.
21341         (func_import): Store and restore the values of inc_cxx_tests,
21342         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
21343         inc_all_tests in gnulib-comp.m4.
21344         (func_create_testdir): Set inc_all_tests to true.
21345         * doc/gnulib.texi (Extra tests modules): New section.
21346         Suggested by Jim Meyering.
21347
21348 2010-03-28  Bruno Haible  <bruno@clisp.org>
21349
21350         ansi-c++-opt: Allow turning off the C++ build by default.
21351         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
21352         gl_CXX_CHOICE_DEFAULT_NO is defined.
21353         Requested by Eric Blake.
21354
21355 2010-03-28  Bruno Haible  <bruno@clisp.org>
21356
21357         unistd: Avoid #define replacements in C++ mode.
21358         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
21359         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
21360         setsockopt, shutdown, select): In C++, attach a warning to the function
21361         if possible, rather than #defining the symbol to a dysfunctional alias.
21362         Reported by John W. Eaton <jwe@gnu.org>.
21363
21364 2010-03-28  Bruno Haible  <bruno@clisp.org>
21365
21366         Fix link errors on mingw.
21367         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
21368         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
21369         $(LIBSOCKET).
21370         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
21371         $(LIBSOCKET).
21372
21373 2010-03-28  Bruno Haible  <bruno@clisp.org>
21374             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21375
21376         lib-ignore: Determine different options for different compilers.
21377         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
21378         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
21379         Add comments.
21380         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
21381         * NEWS: Mention the change.
21382
21383 2010-03-27  Bruno Haible  <bruno@clisp.org>
21384
21385         Remove unused GNULIB_XYZ macro definitions.
21386         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21387         * modules/fseek (configure.ac): Likewise.
21388         * modules/ioctl (configure.ac): Likewise.
21389         * modules/open (configure.ac): Likewise.
21390         * modules/stdlib-safer (configure.ac): Likewise.
21391
21392 2010-03-27  Bruno Haible  <bruno@clisp.org>
21393
21394         Add a remark about certain modules.
21395         * modules/malloc (Comment): New section.
21396         * modules/realloc (Comment): Likewise.
21397         * modules/sigpipe (Comment): Likewise.
21398
21399 2010-03-27  Bruno Haible  <bruno@clisp.org>
21400
21401         Resolve conflict between the two kinds of module indicators.
21402         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
21403         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
21404         * modules/canonicalize (configure.ac): Invoke
21405         gl_MODULE_INDICATOR_FOR_TESTS.
21406         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
21407         GNULIB_XYZ.
21408         * tests/test-dirent-c++.cc: Likewise.
21409         * tests/test-dirent-safer.c: Likewise.
21410         * tests/test-dup2.c: Likewise.
21411         * tests/test-fchdir.c: Likewise.
21412         * tests/test-fcntl-h-c++.cc: Likewise.
21413         * tests/test-getopt.c: Likewise.
21414         * tests/test-getopt.h: Likewise.
21415         * tests/test-langinfo-c++.cc: Likewise.
21416         * tests/test-locale-c++.cc: Likewise.
21417         * tests/test-math-c++.cc: Likewise.
21418         * tests/test-pty-c++.cc: Likewise.
21419         * tests/test-search-c++.cc: Likewise.
21420         * tests/test-signal-c++.cc: Likewise.
21421         * tests/test-spawn-c++.cc: Likewise.
21422         * tests/test-stdio-c++.cc: Likewise.
21423         * tests/test-stdlib-c++.cc: Likewise.
21424         * tests/test-string-c++.cc: Likewise.
21425         * tests/test-sys_ioctl-c++.cc: Likewise.
21426         * tests/test-sys_select-c++.cc: Likewise.
21427         * tests/test-sys_socket-c++.cc: Likewise.
21428         * tests/test-sys_stat-c++.cc: Likewise.
21429         * tests/test-sys_time-c++.cc: Likewise.
21430         * tests/test-time-c++.cc: Likewise.
21431         * tests/test-unistd-c++.cc: Likewise.
21432         * tests/test-wchar-c++.cc: Likewise.
21433         * tests/uninorm/test-u8-nfc.c: Likewise.
21434         * tests/uninorm/test-u8-nfd.c: Likewise.
21435         * tests/uninorm/test-u8-nfkc.c: Likewise.
21436         * tests/uninorm/test-u8-nfkd.c: Likewise.
21437         * tests/uninorm/test-u16-nfc.c: Likewise.
21438         * tests/uninorm/test-u16-nfd.c: Likewise.
21439         * tests/uninorm/test-u16-nfkc.c: Likewise.
21440         * tests/uninorm/test-u16-nfkd.c: Likewise.
21441         * tests/uninorm/test-u32-nfc.c: Likewise.
21442         * tests/uninorm/test-u32-nfc-big.c: Likewise.
21443         * tests/uninorm/test-u32-nfd.c: Likewise.
21444         * tests/uninorm/test-u32-nfd-big.c: Likewise.
21445         * tests/uninorm/test-u32-nfkc.c: Likewise.
21446         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
21447         * tests/uninorm/test-u32-nfkd.c: Likewise.
21448         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
21449         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21450
21451 2010-03-27  Bruno Haible  <bruno@clisp.org>
21452
21453         Distinguish two kinds of module indicators.
21454         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
21455         gl_MODULE_INDICATOR.
21456         (gl_MODULE_INDICATOR): New macro.
21457         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21458         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
21459         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21460         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21461         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21462         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21463         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21464         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21465         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21466         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21467         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21468         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21469         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21470         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21471         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21472         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21473         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21474         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21475         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21476         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21477         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21478         * modules/cloexec (configure.ac): Likewise.
21479         * modules/getopt-gnu (configure.ac): Likewise.
21480         * modules/uninorm/u8-normalize (configure.ac): Likewise.
21481         * modules/uninorm/u16-normalize (configure.ac): Likewise.
21482         * modules/uninorm/u32-normalize (configure.ac): Likewise.
21483         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
21484
21485 2010-03-27  Bruno Haible  <bruno@clisp.org>
21486
21487         New module description field 'Comment'.
21488         * gnulib-tool: New option --extract-comment.
21489         (func_usage): Document it.
21490         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
21491         (func_get_comment): New function.
21492         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
21493
21494 2010-03-27  Bruno Haible  <bruno@clisp.org>
21495
21496         Addendum to 2010-02-07 commit.
21497         * gnulib-tool (func_usage): Document --extract-applicability option.
21498
21499 2010-03-27  Bruno Haible  <bruno@clisp.org>
21500
21501         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
21502         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
21503         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
21504         rather than link errors.
21505
21506 2010-03-27  Bruno Haible  <bruno@clisp.org>
21507
21508         Avoid side effects from tests-related modules on the compilation of lib.
21509         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
21510         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
21511         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
21512         parameter. Emit into AM_CPPFLAGS a definition of the designated C
21513         macro.
21514         (func_import): Define a witness macro. Assign it a value that depends
21515         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
21516         tests-related modules.
21517         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
21518         Reported by Jim Meyering.
21519
21520 2010-03-27  Bruno Haible  <bruno@clisp.org>
21521
21522         Factorize common .m4 code.
21523         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
21524         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
21525         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
21526         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
21527         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21528         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
21529         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
21530         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21531         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21532         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21533         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
21534         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21535         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21536         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21537         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21538         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
21539         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21540         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21541         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21542         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
21543         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
21544         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21545         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21546         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21547         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21548         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21549         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
21550         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
21551         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
21552         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21553         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21554         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21555
21556 2010-03-27  Bruno Haible  <bruno@clisp.org>
21557
21558         Fix a compilation error on Cygwin with g++ >= 4.3.
21559         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
21560         if it is undefined or if we alias it to chmod.
21561         (lstat): Don't warn about the use of this function if it is undefined
21562         or if we alias it to stat.
21563         Reported by Simon Josefsson.
21564
21565 2010-03-27  Bruno Haible  <bruno@clisp.org>
21566
21567         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
21568         * modules/getlogin (configure.ac): Update.
21569
21570         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
21571         * modules/getlogin_r (configure.ac): Update.
21572
21573         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
21574         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
21575         * modules/inet_ntop (configure.ac): Update.
21576
21577         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
21578         * modules/inet_pton (configure.ac): Update.
21579
21580         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
21581         * modules/mbslen (configure.ac): Update.
21582
21583         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
21584         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
21585         * modules/forkpty (configure.ac): Update.
21586         * modules/openpty (configure.ac): Update.
21587
21588 2010-03-26  Simon Josefsson  <simon@josefsson.org>
21589
21590         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
21591         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
21592
21593 2010-03-25  Eric Blake  <eblake@redhat.com>
21594
21595         maint: use pragma consistently across replacement headers
21596         * lib/ctype.in.h (system_header): Hoist for consistent placement.
21597         * lib/dirent.in.h (system_header): Likewise.
21598         * lib/errno.in.h (system_header): Likewise.
21599         * lib/float.in.h (system_header): Likewise.
21600         * lib/getopt.in.h (system_header): Likewise.
21601         * lib/iconv.in.h (system_header): Likewise.
21602         * lib/inttypes.in.h (system_header): Likewise.
21603         * lib/langinfo.in.h (system_header): Likewise.
21604         * lib/locale.in.h (system_header): Likewise.
21605         * lib/math.in.h (system_header): Likewise.
21606         * lib/netdb.in.h (system_header): Likewise.
21607         * lib/netinet_in.in.h (system_header): Likewise.
21608         * lib/pty.in.h (system_header): Likewise.
21609         * lib/sched.in.h (system_header): Likewise.
21610         * lib/se-selinux.in.h (system_header): Likewise.
21611         * lib/search.in.h (system_header): Likewise.
21612         * lib/spawn.in.h (system_header): Likewise.
21613         * lib/stdarg.in.h (system_header): Likewise.
21614         * lib/stdint.in.h (system_header): Likewise.
21615         * lib/string.in.h (system_header): Likewise.
21616         * lib/strings.in.h (system_header): Likewise.
21617         * lib/sys_file.in.h (system_header): Likewise.
21618         * lib/sys_ioctl.in.h (system_header): Likewise.
21619         * lib/sys_socket.in.h (system_header): Likewise.
21620         * lib/sys_times.in.h (system_header): Likewise.
21621         * lib/sys_utsname.in.h (system_header): Likewise.
21622         * lib/sys_wait.in.h (system_header): Likewise.
21623         * lib/sysexits.in.h (system_header): Likewise.
21624         * lib/unistd.in.h (system_header): Likewise.
21625         * lib/wctype.in.h (system_header): Likewise.
21626
21627         arpa/inet: fix mingw compilation warning
21628         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
21629         Reported by Matthew Bolte.
21630
21631 2010-03-25  Bruno Haible  <bruno@clisp.org>
21632
21633         Avoid collision between gnulib wrapper and libintl wrapper.
21634         * lib/printf.c (printf): Don't define if a printf wrapper is already
21635         defined in intl/printf.c.
21636         Reported by Michel Boaventura <michel@michelboaventura.com>.
21637
21638 2010-03-25  Bruno Haible  <bruno@clisp.org>
21639
21640         Use ANSI C.
21641         * lib/readutmp.h (getutent): Provide ANSI C prototype.
21642
21643 2010-03-25  Bruno Haible  <bruno@clisp.org>
21644
21645         Minor formatting changes.
21646         * lib/acosl.c: Insert space before function argument list.
21647         * lib/argz.c: Likewise.
21648         * lib/asinl.c: Likewise.
21649         * lib/expl.c: Likewise.
21650         * lib/gen-uni-tables.c: Likewise.
21651         * lib/gettext.h: Likewise.
21652         * lib/glthread/lock.h: Likewise.
21653         * lib/tanl.c: Likewise.
21654         * lib/uniname/uniname.c: Likewise.
21655         * tests/test-idpriv-drop.c: Likewise.
21656         * tests/test-idpriv-droptemp.c: Likewise.
21657         * tests/test-lock.c: Likewise.
21658         * tests/test-tls.c: Likewise.
21659         * lib/argp-help.c: Insert space before function-like macro argument
21660         list.
21661         * lib/memcmp.c: Likewise.
21662         * tests/test-base64.c: Likewise.
21663         * lib/localename.c: Insert space before sizeof's argument list.
21664         * lib/safe-alloc.h: Likewise.
21665         * lib/file-set.h: Insert space before macro argument list.
21666         * tests/test-argp.c: Likewise.
21667         * lib/argp-namefrob.h: Insert space before function parameter list.
21668         * lib/getaddrinfo.c: Likewise.
21669         * lib/netdb.in.h: Likewise.
21670         * lib/parse-duration.h: Likewise.
21671         * lib/parse-duration.c: Likewise.
21672         * lib/poll.c: Likewise.
21673         * lib/select.c: Likewise.
21674         * lib/trim.h: Likewise.
21675         * tests/test-usleep.c: Likewise.
21676         * lib/ldexpl.c: Insert space before function parameter list and before
21677         function argument list.
21678         * lib/logl.c: Likewise.
21679         * lib/sqrtl.c: Likewise.
21680         * lib/trim.c: Likewise.
21681         * lib/cosl.c: Use GNU style indentation. Insert space before function
21682         argument list.
21683         * lib/sinl.c: Likewise.
21684         * lib/tsearch.c: Insert space after 'for'.
21685         Reported by Jim Meyering.
21686
21687 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
21688
21689         * maint.mk (sc_Wundef_boolean): Check for the presence of the
21690         config header before grepping, as it's not present before
21691         autoreconf/configure are run.  Reported by Simon Josefsson.
21692
21693 2010-03-23  Bruno Haible  <bruno@clisp.org>
21694
21695         pt_chown: Make it work with automake < 1.11.
21696         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
21697         Reported by Simon Josefsson.
21698
21699 2010-03-23  Bruno Haible  <bruno@clisp.org>
21700
21701         pt_chown: Don't depend on GPLed modules.
21702         * lib/pt_chown.c: Don't include idpriv.h.
21703         (main): Don't drop privileges.
21704         * modules/pt_chown (Depends-on): Remove idpriv-drop.
21705         Reported by Simon Josefsson.
21706
21707 2010-03-24  Simon Josefsson  <simon@josefsson.org>
21708
21709         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
21710         suggestions from karl@freefriends.org (Karl Berry).
21711
21712 2010-03-22  Eric Blake  <eblake@redhat.com>
21713
21714         gethostname: further tweaks
21715         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
21716         are overriding gethostname.
21717         Suggested by Bruno Haible.
21718
21719 2010-03-21  Bruno Haible  <bruno@clisp.org>
21720
21721         Fix comments.
21722         * lib/forkpty.c (rpl_forkpty): Fix comment.
21723         * lib/openpty.c (rpl_openpty): Likewise.
21724         Reported by Eric Blake.
21725
21726 2010-03-22  Eric Blake  <eblake@redhat.com>
21727
21728         gethostname: fix build on mingw
21729         * lib/unistd.in.h (includes): Work around fact that mingw
21730         <winsock2.h> re-includes <unistd.h>, by avoiding any
21731         redeclarations if we are being included by <winsock2.h>.
21732         Reported by Matthias Bolte.
21733
21734 2010-03-21  Bruno Haible  <bruno@clisp.org>
21735
21736         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21737         * lib/forkpty.c (forkpty): New replacement function, from glibc with
21738         modifications.
21739         * lib/pty.in.h (forkpty): Update declaration. Add comments.
21740         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
21741         provide the replacement.
21742         * modules/forkpty (Depends-on): Add openpty, login_tty.
21743         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
21744         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
21745         * doc/glibc-functions/forkpty.texi: More supported platforms.
21746         * config/srclist.txt: Add forkpty.c (commented).
21747
21748 2010-03-21  Bruno Haible  <bruno@clisp.org>
21749
21750         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
21751         (Makefile.am): Verify that PTY_LIB is defined.
21752
21753         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
21754
21755 2010-03-21  Bruno Haible  <bruno@clisp.org>
21756
21757         Tests for module 'login_tty'.
21758         * modules/login_tty-tests: New file.
21759         * tests/test-login_tty.c: New file.
21760
21761         New module 'login_tty'.
21762         * lib/login_tty.c: New file.
21763         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
21764         * modules/login_tty: New file.
21765         * doc/glibc-functions/login_tty.texi: Mention the new module.
21766
21767 2010-03-21  Bruno Haible  <bruno@clisp.org>
21768
21769         login_tty: Documentation.
21770         * doc/glibc-functions/login_tty.texi: New file.
21771         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
21772
21773 2010-03-21  Bruno Haible  <bruno@clisp.org>
21774
21775         pty: Consistent macro naming.
21776         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
21777         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
21778         * modules/pty (configure.ac): Update.
21779
21780 2010-03-21  Bruno Haible  <bruno@clisp.org>
21781
21782         Tests for openpty: Make stricter.
21783         * tests/test-openpty.c (main): Add test of canonical processing and
21784         erase.
21785         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
21786
21787         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21788         * lib/openpty.c (openpty): New replacement function.
21789         * lib/pty.in.h: Include <termios.h>.
21790         (openpty): Update declaration. Add comments.
21791         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
21792         is not declared, arrange to provide the replacement. Check for _getpty
21793         and posix_openpt.
21794         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
21795         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
21796         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
21797         * modules/pty-tests (test_pty_c___LDADD): New variable.
21798         * doc/glibc-functions/openpty.texi: More supported platforms.
21799
21800 2010-03-21  Bruno Haible  <bruno@clisp.org>
21801
21802         setenv: Tweaks.
21803         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
21804         the test program.
21805         * doc/posix-functions/setenv.texi: Update platforms list.
21806
21807 2010-03-21  Bruno Haible  <bruno@clisp.org>
21808
21809         New module 'unlockpt'.
21810         * lib/unlockpt.c: New file, from glibc with modifications.
21811         * m4/unlockpt.m4: New file.
21812         * modules/unlockpt: New file.
21813         * lib/stdlib.in.h (unlockpt): New declaration.
21814         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
21815         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
21816         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
21817         HAVE_UNLOCKPT.
21818         * doc/posix-functions/unlockpt.texi: Mention the new module.
21819         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
21820         * config/srclist.txt: Add unlockpt.c (commented).
21821
21822 2010-03-21  Jim Meyering  <meyering@redhat.com>
21823
21824         maint.mk: prohibit inclusion of "intprops.h" without use
21825         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
21826
21827 2010-03-21  Bruno Haible  <bruno@clisp.org>
21828
21829         New module 'grantpt'.
21830         * lib/grantpt.c: New file, from glibc with modifications.
21831         * m4/grantpt.m4: New file.
21832         * modules/grantpt: New file.
21833         * lib/stdlib.in.h (grantpt): New declaration.
21834         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
21835         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
21836         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
21837         HAVE_GRANTPT.
21838         * doc/posix-functions/grantpt.texi: Mention the new module.
21839         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
21840         * config/srclist.txt: Add grantpt.c (commented).
21841
21842 2010-03-21  Bruno Haible  <bruno@clisp.org>
21843
21844         New module 'pt_chown'.
21845         * lib/pt_chown.c: New file, from glibc with modifications.
21846         * lib/pty-private.h: New file, from glibc with modifications.
21847         * modules/pt_chown: New file.
21848         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
21849
21850 2010-03-21  Bruno Haible  <bruno@clisp.org>
21851
21852         Tests for module 'ptsname'.
21853         * modules/ptsname-tests: New file.
21854         * tests/test-ptsname.c: New file.
21855
21856         New module 'ptsname'.
21857         * lib/ptsname.c: New file, from glibc with modifications.
21858         * m4/ptsname.m4: New file.
21859         * modules/ptsname: New file.
21860         * lib/stdlib.in.h (ptsname): New declaration.
21861         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
21862         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
21863         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
21864         HAVE_PTSNAME.
21865         * doc/posix-functions/ptsname.texi: Mention the new module.
21866         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
21867         * config/srclist.txt: Add ptsname.c (commented).
21868
21869 2010-03-21  Bruno Haible  <bruno@clisp.org>
21870
21871         Tests for module 'ttyname_r'.
21872         * modules/ttyname_r-tests: New file.
21873         * tests/test-ttyname_r.c: New file.
21874
21875         New module 'ttyname_r'.
21876         * lib/ttyname_r.c: New file.
21877         * m4/ttyname_r.m4: New file.
21878         * modules/ttyname_r: New file.
21879         * lib/unistd.in.h (ttyname_r): New declaration.
21880         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
21881         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
21882         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
21883         HAVE_TTYNAME_R.
21884         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
21885         * doc/posix-functions/ttyname_r.texi: Mention the new module.
21886
21887 2010-03-20  Bruno Haible  <bruno@clisp.org>
21888
21889         signal: Undefine macro definitions in C++ mode.
21890         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
21891         sigfillset): Undefine macro definitions from the system header in C++
21892         mode.
21893         Reported by John W. Eaton <jwe@gnu.org>.
21894
21895 2010-03-20  Bruno Haible  <bruno@clisp.org>
21896
21897         Ensure no #include statements inside extern "C" { ... }.
21898         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
21899         contain #include statements.
21900         * lib/time.in.h: Likewise.
21901
21902 2010-03-20  Bruno Haible  <bruno@clisp.org>
21903
21904         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
21905         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
21906         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
21907         Reported by John W. Eaton <jwe@gnu.org>.
21908
21909 2010-03-20  Bruno Haible  <bruno@clisp.org>
21910
21911         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
21912         Reported by Jim Meyering.
21913
21914 2010-03-20  Bruno Haible  <bruno@clisp.org>
21915
21916         pipe: Set errno upon failure.
21917         * lib/pipe.h: Specify that when -1 is returned, errno is set.
21918         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
21919         errno value in error message.
21920
21921 2010-03-20  Bruno Haible  <bruno@clisp.org>
21922             Jim Meyering  <meyering@redhat.com>
21923
21924         lchown: Avoid "unused variable" warning.
21925         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
21926
21927 2010-03-20  Bruno Haible  <bruno@clisp.org>
21928
21929         Work around unlink() bug on MacOS X 10.5.6.
21930         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
21931         attempting to unlink a parent directory.
21932         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
21933         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
21934         activate for the replacement function.
21935         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
21936
21937 2010-03-20  Bruno Haible  <bruno@clisp.org>
21938
21939         Fix link errors on Solaris 8.
21940         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
21941         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
21942
21943 2010-03-19  Jim Meyering  <meyering@redhat.com>
21944
21945         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
21946         The _LIBC implementation of build_range_exp correctly honors the
21947         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
21948         However, the non-_LIBC implementation would ignore that syntax-bit
21949         flag and return REG_ERANGE unconditionally.
21950         This change makes it honor that flag.
21951         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
21952         Make two pointer parameters "const".
21953         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
21954         (parse_bracket_exp): Update caller.
21955
21956         regex.m4: correct the reversed range endpoint ([b-a]) test
21957         * m4/regex.m4: When requiring that [b-a] evoke failure,
21958         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
21959         test pass once again for x86-based systems.
21960
21961 2010-03-19  Bruno Haible  <bruno@clisp.org>
21962
21963         scandir: Fix link error on Solaris 8.
21964         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
21965         macros.
21966
21967 2010-03-19  Bruno Haible  <bruno@clisp.org>
21968
21969         getusershell: Fix documentation.
21970         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
21971         module.
21972         * doc/glibc-functions/setusershell.texi: Likewise.
21973
21974         getusershell: Provide declaration, missing on Solaris 9.
21975         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
21976         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
21977         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
21978         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
21979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21980         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
21981         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
21982         HAVE_GETUSERSHELL.
21983         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
21984
21985 2010-03-19  Bruno Haible  <bruno@clisp.org>
21986
21987         wctype: Provide iswblank function.
21988         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
21989         exists and is fine.
21990         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
21991         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
21992         * tests/test-wctype.c (main): Re-enable the iswblank tests.
21993         * doc/posix-functions/iswblank.texi: Update.
21994
21995 2010-03-19  Bruno Haible  <bruno@clisp.org>
21996
21997         Tests of module 'pty' in C++ mode.
21998         * modules/pty-tests: New file.
21999         * tests/test-pty-c++.cc: New file.
22000         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22001
22002 2010-03-19  Eric Blake  <eblake@redhat.com>
22003
22004         logb: fix documentation
22005         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
22006         1.5 declaration bug.
22007
22008         forkpty, openpty: prefer glibc's const-safe prototype
22009         * lib/forkpty.c (rpl_forkpty): New file.
22010         * lib/openpty.c (rpl_openpty): Likewise.
22011         * modules/forkpty (Files): Distribute it.
22012         * modules/openpty (Files): Likewise.
22013         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
22014         check...
22015         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
22016         replacement for for non-const BSD signature.
22017         * modules/pty (Makefile.am): Substitute witnesses.
22018         * lib/pty.in.h (forkpty, openpty): Declare replacements.
22019         * tests/test-forkpty.c: Update signature check.
22020         * tests/test-openpty.c: Likewise.
22021         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
22022         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22023
22024         forkpty, openpty: split functions into new modules
22025         * modules/pty (Makefile.am): Substitute new witnesses.
22026         (Libraries): Move library detection...
22027         * modules/forkpty: ...into new module.
22028         * modules/openpty: Another new module.
22029         * modules/pty-tests: Rename and split...
22030         * modules/forkpty-tests: ...to this...
22031         * modules/openpty-tests: ...and this.
22032         * tests/test-pty.c: Rename and split...
22033         * tests/test-forkpty.c: ...to this...
22034         * tests/test-openpty.c: ...and this.
22035         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
22036         (gl_PTY): Split library searching...
22037         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
22038         (gl_FORKPTY, gl_OPENPTY): New macros.
22039         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
22040         * NEWS: Mention the split.
22041         * MODULES.html.sh (Misc): Document the modules.
22042         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
22043         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22044
22045         pty: improve replacement header
22046         * lib/pty.in.h: New file.
22047         * modules/pty (Files): Ship it.
22048         (Makefile.am): Always build replacement.
22049         * m4/pty.m4: Rename...
22050         * m4/pty_h.m4: ...to this.
22051         (gl_PTY): Modernize setting of witness macros; update check of
22052         forkpty to take proper advantage of cache.
22053         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
22054
22055         getopt: avoid compiler warning
22056         * lib/getopt.c (attribute_hidden): Remove unused macro.
22057
22058 2010-03-18  Bruno Haible  <bruno@clisp.org>
22059
22060         Fix link errors on Solaris 8.
22061         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
22062         * modules/search-tests (test_search_c___LDADD): Likewise.
22063         * modules/signal-tests (test_signal_c___LDADD): Likewise.
22064         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
22065         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
22066         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
22067         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
22068         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
22069         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
22070
22071 2010-03-18  Bruno Haible  <bruno@clisp.org>
22072
22073         Fix bug introduced on 2010-03-14.
22074         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
22075         (gl_SPAWN_H): Require it.
22076         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
22077         Reported by Simon Josefsson.
22078
22079 2010-03-18  Bruno Haible  <bruno@clisp.org>
22080
22081         Fix typo introduced on 2009-12-31.
22082         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
22083         posix_spawn_file_actions_adddup2.
22084
22085 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
22086         and Eric Blake  <eblake@redhat.com>
22087
22088         test-vc-list-files-git: make more robust
22089         * tests/test-vc-list-files-git.sh: Unset problematic environment
22090         variables.  Chain commands together.
22091
22092 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
22093
22094         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
22095         `AC_CHECK_DECL' invocation.
22096
22097 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
22098
22099         * lib/inttostr.c (inttostr): Make sure the invocation of verify
22100         appears before executable statements. Suggested by Petr Sumbera
22101         <Petr.Sumbera@Sun.COM>.
22102
22103 2010-03-14  Bruno Haible  <bruno@clisp.org>
22104
22105         * tests/test-flock.c (test_exclusive): Comment out a test that causes
22106         portability problems. Instead use a simpler test.
22107         (main): Check that invalid arguments are rejected only on Linux.
22108
22109 2010-03-14  Bruno Haible  <bruno@clisp.org>
22110
22111         Fix bug introduced on 2009-12-31.
22112         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22113         gl_PREREQ_SYS_H_WINSOCK2 always.
22114         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
22115         SYS_SOCKET_H variable.
22116         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
22117         Update comments.
22118         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
22119         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22120         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22121         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22122         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
22123
22124 2010-03-14  Bruno Haible  <bruno@clisp.org>
22125
22126         Fix values returned by sinl, cosl.
22127         * lib/trigl.h: Add specification comments.
22128         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
22129         that combines the values from the precomputed table with the values of
22130         the Chebyshev polynomials.
22131
22132 2010-03-14  Bruno Haible  <bruno@clisp.org>
22133
22134         Fix compilation error when modules 'posix_spawn[p]' are not used.
22135         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
22136         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
22137
22138 2010-03-14  Bruno Haible  <bruno@clisp.org>
22139
22140         Fix compilation error on mingw when module 'time_r' is not used.
22141         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
22142         is 1.
22143         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
22144         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22145         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
22146         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
22147
22148 2010-03-14  Bruno Haible  <bruno@clisp.org>
22149
22150         Fix compilation error with Sun C.
22151         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
22152         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
22153         instead of GCC specific ULONG_LONG_MAX.
22154         * lib/xstrtoll.c: Likewise.
22155         * lib/xstrtoull.c: Likewise.
22156
22157 2010-03-13  Bruno Haible  <bruno@clisp.org>
22158
22159         Allow the user to disable C++ code and tests.
22160         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
22161         (gl_PROG_ANSI_CXX): Require it.
22162
22163 2010-03-13  Bruno Haible  <bruno@clisp.org>
22164
22165         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
22166         cases.
22167
22168 2010-03-13  Bruno Haible  <bruno@clisp.org>
22169
22170         Test that gnulib does not break the standard C++ headers.
22171         * tests/test-locale-c++2.cc: New file.
22172         * modules/locale-tests (Files): Add it.
22173         (Makefile.am): Compile it for test-locale-c++.
22174         * tests/test-math-c++2.cc: New file.
22175         * modules/math-tests (Files): Add it.
22176         (Makefile.am): Compile it for test-math-c++.
22177         * tests/test-signal-c++2.cc: New file.
22178         * modules/signal-tests (Files): Add it.
22179         (Makefile.am): Compile it for test-signal-c++.
22180         * tests/test-stdio-c++2.cc: New file.
22181         * modules/stdio-tests (Files): Add it.
22182         (Makefile.am): Compile it for test-stdio-c++.
22183         * tests/test-stdlib-c++2.cc: New file.
22184         * modules/stdlib-tests (Files): Add it.
22185         (Makefile.am): Compile it for test-stdlib-c++.
22186         * tests/test-string-c++2.cc: New file.
22187         * modules/string-tests (Files): Add it.
22188         (Makefile.am): Compile it for test-string-c++.
22189         * tests/test-time-c++2.cc: New file.
22190         * modules/time-tests (Files): Add it.
22191         (Makefile.am): Compile it for test-time-c++.
22192         Reported by John W. Eaton <jwe@gnu.org>.
22193
22194 2010-03-13  Bruno Haible  <bruno@clisp.org>
22195
22196         * gnulib-tool (func_usage): Clarify which options are available for
22197         --create-testdir and --create-megatestdir.
22198
22199 2010-03-13  Bruno Haible  <bruno@clisp.org>
22200
22201         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
22202         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
22203         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
22204         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22205         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
22206         when appropriate.
22207         Reported by Jim Meyering.
22208
22209 2010-03-12  Simon Josefsson  <simon@josefsson.org>
22210
22211         * gnulib-tool (func_import): Explain origin of code.
22212
22213 2010-03-12  Bruno Haible  <bruno@clisp.org>
22214
22215         Fix problem with automake's definition of CXXLINK.
22216         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
22217         Reported by Simon Josefsson and Ludovic Courtès.
22218
22219 2010-03-12  Bruno Haible  <bruno@clisp.org>
22220
22221         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
22222         stable releases.
22223
22224 2010-03-11  Bruno Haible  <bruno@clisp.org>
22225
22226         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
22227         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
22228         whether the system provides one variant or multiple variants of the
22229         function.
22230         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
22231         C++ compilers.
22232         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
22233         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
22234         Reported by Jim Meyering.
22235
22236 2010-03-09  Simon Josefsson  <simon@josefsson.org>
22237
22238         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
22239
22240 2010-03-08  Bruno Haible  <bruno@clisp.org>
22241
22242         gnulib-tool: Add support for --libtool in --create-testdir.
22243         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
22244         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
22245
22246 2010-03-08  Eric Blake  <eblake@redhat.com>
22247
22248         gnulib-tool.texi: mention possibility of git submodule
22249         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
22250         submodules.
22251         * doc/.gitignore: Ignore another generated file.
22252
22253 2010-03-08  Karl Berry  <karl@gnu.org>
22254
22255         * doc/gnulib-tool.texi (VCS Issues): Mention third option
22256         of committing gnulib files while skipping others.
22257
22258 2010-03-07  Bruno Haible  <bruno@clisp.org>
22259
22260         Tests of module 'wctype' in C++ mode.
22261         * tests/test-wctype-c++.cc: New file.
22262         * modules/wctype-tests (Files): Add it and tests/signature.h.
22263         (Depends-on): Add ansi-c++-opt.
22264         (Makefile.am): Arrange to compile and run test-wctype-c++.
22265
22266         Tests of module 'wchar' in C++ mode.
22267         * tests/test-wchar-c++.cc: New file.
22268         * modules/wchar-tests (Files): Add it and tests/signature.h.
22269         (Depends-on): Add ansi-c++-opt.
22270         (Makefile.am): Arrange to compile and run test-wchar-c++.
22271         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
22272         gl_MODULE_INDICATOR.
22273
22274         Tests of module 'unistd' in C++ mode.
22275         * tests/test-unistd-c++.cc: New file.
22276         * modules/unistd-tests (Files): Add it and tests/signature.h.
22277         (Depends-on): Add ansi-c++-opt.
22278         (Makefile.am): Arrange to compile and run test-unistd-c++.
22279         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
22280         gl_MODULE_INDICATOR.
22281
22282         Tests of module 'time' in C++ mode.
22283         * tests/test-time-c++.cc: New file.
22284         * modules/time-tests (Files): Add it and tests/signature.h.
22285         (Depends-on): Add ansi-c++-opt.
22286         (Makefile.am): Arrange to compile and run test-time-c++.
22287         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22288
22289         Tests of module 'sys_time' in C++ mode.
22290         * tests/test-sys_time-c++.cc: New file.
22291         * modules/sys_time-tests (Files): Add it and tests/signature.h.
22292         (Depends-on): Add ansi-c++-opt.
22293         (Makefile.am): Arrange to compile and run test-sys_time-c++.
22294         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
22295         gl_MODULE_INDICATOR.
22296
22297         Tests of module 'sys_stat' in C++ mode.
22298         * tests/test-sys_stat-c++.cc: New file.
22299         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
22300         (Depends-on): Add ansi-c++-opt.
22301         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
22302         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
22303         gl_MODULE_INDICATOR.
22304
22305         Tests of module 'sys_socket' in C++ mode.
22306         * tests/test-sys_socket-c++.cc: New file.
22307         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
22308         (Depends-on): Add ansi-c++-opt.
22309         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
22310         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
22311         gl_MODULE_INDICATOR.
22312
22313         Tests of module 'sys_select' in C++ mode.
22314         * tests/test-sys_select-c++.cc: New file.
22315         * modules/sys_select-tests (Files): Add it and tests/signature.h.
22316         (Depends-on): Add ansi-c++-opt.
22317         (Makefile.am): Arrange to compile and run test-sys_select-c++.
22318         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
22319         gl_MODULE_INDICATOR.
22320
22321         Tests of module 'sys_ioctl' in C++ mode.
22322         * tests/test-sys_ioctl-c++.cc: New file.
22323         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
22324         (Depends-on): Add ansi-c++-opt.
22325         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
22326         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
22327         gl_MODULE_INDICATOR.
22328
22329         Tests of module 'string' in C++ mode.
22330         * tests/test-string-c++.cc: New file.
22331         * modules/string-tests (Files): Add it and tests/signature.h.
22332         (Depends-on): Add ansi-c++-opt.
22333         (Makefile.am): Arrange to compile and run test-string-c++.
22334         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
22335         gl_MODULE_INDICATOR.
22336
22337         Tests of module 'stdlib' in C++ mode.
22338         * tests/test-stdlib-c++.cc: New file.
22339         * modules/stdlib-tests (Files): Add it and tests/signature.h.
22340         (Depends-on): Add ansi-c++-opt.
22341         (Makefile.am): Arrange to compile and run test-stdlib-c++.
22342         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
22343         gl_MODULE_INDICATOR.
22344
22345         Tests of module 'stdio' in C++ mode.
22346         * tests/test-stdio-c++.cc: New file.
22347         * modules/stdio-tests (Files): Add it and tests/signature.h.
22348         (Depends-on): Add ansi-c++-opt.
22349         (Makefile.am): Arrange to compile and run test-stdio-c++.
22350         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
22351         gl_MODULE_INDICATOR.
22352
22353         Tests of module 'spawn' in C++ mode.
22354         * tests/test-spawn-c++.cc: New file.
22355         * modules/spawn-tests (Files): Add it and tests/signature.h.
22356         (Depends-on): Add ansi-c++-opt.
22357         (Makefile.am): Arrange to compile and run test-spawn-c++.
22358         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
22359         gl_MODULE_INDICATOR.
22360
22361         Tests of module 'signal' in C++ mode.
22362         * tests/test-signal-c++.cc: New file.
22363         * modules/signal-tests (Files): Add it and tests/signature.h.
22364         (Depends-on): Add ansi-c++-opt.
22365         (Makefile.am): Arrange to compile and run test-signal-c++.
22366         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
22367         gl_MODULE_INDICATOR.
22368
22369         Tests of module 'search' in C++ mode.
22370         * tests/test-search-c++.cc: New file.
22371         * modules/search-tests (Files): Add it and tests/signature.h.
22372         (Depends-on): Add ansi-c++-opt.
22373         (Makefile.am): Arrange to compile and run test-search-c++.
22374         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
22375         gl_MODULE_INDICATOR.
22376
22377         Tests of module 'math' in C++ mode.
22378         * tests/test-math-c++.cc: New file.
22379         * modules/math-tests (Files): Add it and tests/signature.h.
22380         (Depends-on): Add ansi-c++-opt.
22381         (Makefile.am): Arrange to compile and run test-math-c++.
22382         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22383
22384         Tests of module 'locale' in C++ mode.
22385         * tests/test-locale-c++.cc: New file.
22386         * modules/locale-tests (Files): Add it and tests/signature.h.
22387         (Depends-on): Add ansi-c++-opt.
22388         (Makefile.am): Arrange to compile and run test-locale-c++.
22389         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
22390         gl_MODULE_INDICATOR.
22391
22392         Tests of module 'langinfo' in C++ mode.
22393         * tests/test-langinfo-c++.cc: New file.
22394         * modules/langinfo-tests (Files): Add it and tests/signature.h.
22395         (Depends-on): Add ansi-c++-opt.
22396         (Makefile.am): Arrange to compile and run test-langinfo-c++.
22397         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
22398         gl_MODULE_INDICATOR.
22399
22400         Tests of module 'iconv-h' in C++ mode.
22401         * tests/test-iconv-h-c++.cc: New file.
22402         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
22403         (Depends-on): Add ansi-c++-opt.
22404         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
22405
22406         Tests of module 'glob' in C++ mode.
22407         * tests/test-glob-c++.cc: New file.
22408         * modules/glob-tests (Files): Add it.
22409         (Depends-on): Add ansi-c++-opt.
22410         (Makefile.am): Arrange to compile and run test-glob-c++.
22411
22412         Tests of module 'fcntl-h' in C++ mode.
22413         * tests/test-fcntl-h-c++.cc: New file.
22414         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
22415         (Depends-on): Add ansi-c++-opt.
22416         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
22417         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
22418         gl_MODULE_INDICATOR.
22419
22420         Tests of module 'dirent' in C++ mode.
22421         * tests/test-dirent-c++.cc: New file.
22422         * modules/dirent-tests (Files): Add it and tests/signature.h.
22423         (Depends-on): Add ansi-c++-opt.
22424         (Makefile.am): Arrange to compile and run test-dirent-c++.
22425         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22426         gl_MODULE_INDICATOR.
22427
22428         New module 'ansi-c++-opt'.
22429         * modules/ansi-c++-opt: New file.
22430         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
22431
22432         Document C++ namespace mode.
22433         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
22434
22435         wctype: Avoid #define replacements in C++ mode.
22436         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
22437         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
22438         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
22439         In C++, define a namespaced alias symbol.
22440         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
22441         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
22442         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
22443         rule.
22444
22445         wchar: Avoid #define replacements in C++ mode.
22446         * lib/wchar.in.h: Include c++defs.h.
22447         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
22448         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
22449         symbol.
22450         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
22451         * modules/wchar (Depends-on): Add c++defs.
22452         (Makefile.am): Update wchar.h rule.
22453
22454         unistd: Avoid #define replacements in C++ mode.
22455         * lib/unistd.in.h: Include c++defs.h.
22456         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
22457         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
22458         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
22459         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
22460         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
22461         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
22462         symbol.
22463         (environ): Update.
22464         * modules/unistd (Depends-on): Add c++defs.
22465         (Makefile.am): Update unistd.h rule.
22466
22467         time: Avoid #define replacements in C++ mode.
22468         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
22469         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
22470         define a namespaced alias symbol.
22471         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
22472         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
22473         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
22474         * modules/time (Depends-on): Add c++defs, warn-on-use.
22475         (Makefile.am): Update time.h rule.
22476         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22477         * modules/nanosleep (configure.ac): Likewise.
22478         * modules/strptime (configure.ac): Likewise.
22479         * modules/timegm (configure.ac): Likewise.
22480
22481         sys_time: Avoid #define replacements in C++ mode.
22482         * lib/sys_time.in.h: Include c++defs.h.
22483         (gettimeofday): In C++, define a namespaced alias symbol.
22484         * modules/sys_time (Depends-on): Add c++defs.
22485         (Makefile.am): Update sys/time.h rule.
22486
22487         sys_stat: Avoid #define replacements in C++ mode.
22488         * lib/sys_stat.in.h: Include c++defs.h.
22489         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
22490         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
22491         namespaced alias symbol.
22492         In C++, define a namespaced alias symbol.
22493         * modules/sys_stat (Depends-on): Add c++defs.
22494         (Makefile.am): Update sys/stat.h rule.
22495
22496         sys_socket: Avoid #define replacements in C++ mode.
22497         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
22498         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
22499         definitions also when the system has a <sys/socket.h>.
22500         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
22501         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
22502         In C++, define a namespaced alias symbol.
22503         * modules/sys_socket (Depends-on): Add c++defs.
22504         (Makefile.am): Update sys/socket.h rule.
22505
22506         sys_select: Avoid #define replacements in C++ mode.
22507         * lib/sys_select.in.h: Include c++defs.h. Enable the function
22508         definitions also when the system has a <sys/select.h>.
22509         (select): In C++, define a namespaced alias symbol.
22510         * modules/sys_select (Depends-on): Add c++defs.
22511         (Makefile.am): Update sys/select.h rule.
22512
22513         sys_ioctl: Avoid #define replacements in C++ mode.
22514         * lib/sys_ioctl.in.h: Include c++defs.h.
22515         (ioctl): In C++, define a namespaced alias symbol.
22516         * modules/sys_ioctl (Depends-on): Add c++defs.
22517         (Makefile.am): Update sys/ioctl.h rule.
22518
22519         string: Avoid #define replacements in C++ mode.
22520         * lib/string.in.h: Include c++defs.h.
22521         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
22522         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22523         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22524         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
22525         strsignal, strverscmp): In C++, define a namespaced alias symbol.
22526         * modules/string (Depends-on): Add c++defs.
22527         (Makefile.am): Update string.h rule.
22528
22529         stdlib: Avoid #define replacements in C++ mode.
22530         * lib/stdlib.in.h: Include c++defs.h.
22531         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
22532         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
22533         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
22534         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
22535         symbol.
22536         * modules/stdlib (Depends-on): Add c++defs.
22537         (Makefile.am): Update stdlib.h rule.
22538
22539         stdio: Avoid #define replacements in C++ mode.
22540         * lib/stdio.in.h: Include c++defs.h.
22541         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
22542         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
22543         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
22544         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
22545         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
22546         namespaced alias symbol.
22547         * modules/stdio (Depends-on): Add c++defs.
22548         (Makefile.am): Update stdio.h rule.
22549
22550         spawn: Avoid #define replacements in C++ mode.
22551         * lib/spawn.in.h: Include c++defs.h.
22552         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22553         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22554         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22555         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22556         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22557         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22558         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22559         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22560         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22561         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22562         In C++, define a namespaced alias symbol.
22563         * modules/spawn (Depends-on): Add c++defs.
22564         (Makefile.am): Update spawn.h rule.
22565
22566         signal: Avoid #define replacements in C++ mode.
22567         * lib/signal.in.h: Include c++defs.h.
22568         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22569         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
22570         namespaced alias symbol.
22571         * modules/signal (Depends-on): Add c++defs.
22572         (Makefile.am): Update signal.h rule.
22573
22574         search: Avoid #define replacements in C++ mode.
22575         * lib/search.in.h: Include c++defs.h.
22576         (_gl_search_compar_fn, _gl_search_action_fn): New types.
22577         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
22578         symbol.
22579         * modules/search (Depends-on): Add c++defs.
22580         (Makefile.am): Update search.h rule.
22581
22582         math: Avoid #define replacements in C++ mode.
22583         * lib/math.in.h: Include c++defs.h.
22584         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
22585         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
22586         trunc, truncl): In C++, define a namespaced alias symbol.
22587         * modules/math (Depends-on): Add c++defs.
22588         (Makefile.am): Update math.h rule.
22589
22590         locale: Avoid #define replacements in C++ mode.
22591         * lib/locale.in.h: Include c++defs.h.
22592         (duplocale): In C++, define a namespaced alias symbol.
22593         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
22594         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
22595         * modules/locale (Depends-on): Add c++defs.
22596         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
22597
22598         langinfo: Avoid #define replacements in C++ mode.
22599         * lib/langinfo.in.h: Include c++defs.h.
22600         (nl_langinfo): In C++, define a namespaced alias symbol.
22601         * modules/langinfo (Depends-on): Add c++defs.
22602         (Makefile.am): Update langinfo.h rule.
22603
22604         iconv-h: Avoid #define replacements in C++ mode.
22605         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
22606         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
22607         symbol.
22608         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22609         whenever iconv is present.
22610         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
22611         (Makefile.am): Update iconv.h rule.
22612
22613         glob: Avoid #define replacements in C++ mode.
22614         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
22615         (_gl_glob_errfunc_fn): New type.
22616         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
22617         symbol.
22618         * modules/glob (Depends-on): Add c++defs, warn-on-use.
22619         (Makefile.am): Update glob.h rule.
22620
22621         fcntl-h: Avoid #define replacements in C++ mode.
22622         * lib/fcntl.in.h: Include c++defs.h.
22623         (fcntl, open, openat): In C++, define a namespaced alias symbol.
22624         * modules/fcntl-h (Depends-on): Add c++defs.
22625         (Makefile.am): Update fcntl.h rule.
22626
22627         dirent: Avoid #define replacements in C++ mode.
22628         * lib/dirent.in.h: Include c++defs.h.
22629         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
22630         namespaced alias symbol.
22631         (dirfd): Update declaration.
22632         * modules/dirent (Depends-on): Add c++defs.
22633         (Makefile.am): Update dirent.h rule.
22634
22635         ctype: Make it usable in C++ code.
22636         * lib/ctype.in.h: Include c++defs.h.
22637         (isblank): Declare as extern "C".
22638         * modules/ctype (Depends-on): Add c++defs.
22639         (Makefile.am): Update ctype.h rule.
22640
22641         New module 'c++defs'.
22642         * modules/c++defs: New file.
22643         * build-aux/c++defs.h: New file.
22644         Reported by John W. Eaton <jwe@gnu.org>.
22645
22646 2010-03-07  Bruno Haible  <bruno@clisp.org>
22647
22648         logb: Provide missing declaration for Cygwin.
22649         * lib/math.in.h (logb): New declaration.
22650         * m4/logb.m4: New file.
22651         * modules/logb (Files): Add m4/logb.m4.
22652         (Depends-on): Add math.
22653         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
22654         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
22655         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
22656         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
22657         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
22658
22659 2010-03-07  Bruno Haible  <bruno@clisp.org>
22660
22661         Fix test-cond link error.
22662         * tests/test-cond.c: Include <stdio.h>.
22663
22664 2010-03-07  Bruno Haible  <bruno@clisp.org>
22665
22666         Fix test-dirent-safer link error.
22667         * modules/dirent-safer-tests (Makefile.am): Define
22668         test_dirent_safer_LDADD.
22669
22670 2010-03-07  Bruno Haible  <bruno@clisp.org>
22671
22672         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
22673         among default module list.
22674
22675 2010-03-07  Bruno Haible  <bruno@clisp.org>
22676
22677         Fix link error on platforms with GNU libiconv.
22678         * modules/unistr/u8-strcoll-tests (Makefile): Define
22679         test_u8_strcoll_LDADD.
22680         * modules/unistr/u16-strcoll-tests (Makefile): Define
22681         test_u16_strcoll_LDADD.
22682         * modules/unistr/u32-strcoll-tests (Makefile): Define
22683         test_u32_strcoll_LDADD.
22684
22685 2010-03-07  Bruno Haible  <bruno@clisp.org>
22686
22687         Use POSIX declarations for socket functions.
22688         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
22689         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
22690         rpl_sendto): Change declaration to match POSIX.
22691         * lib/connect.c (rpl_connect): Likewise.
22692         * lib/accept.c (rpl_accept): Likewise.
22693         * lib/bind.c (rpl_bind): Likewise.
22694         * lib/getpeername.c (rpl_getpeername): Likewise.
22695         * lib/getsockname.c (rpl_getsockname): Likewise.
22696         * lib/recv.c (rpl_recv): Likewise.
22697         * lib/send.c (rpl_send): Likewise.
22698         * lib/recvfrom.c (rpl_recvfrom): Likewise.
22699         * lib/sendto.c (rpl_sendto): Likewise.
22700
22701 2010-03-06  Bruno Haible  <bruno@clisp.org>
22702
22703         Clarify access, euidaccess, faccessat.
22704         * doc/posix-functions/faccessat.texi: Mention security problem under
22705         "Other problems", not "Portability problems".
22706         * doc/posix-functions/access.texi: Likewise. Mention a related security
22707         problem.
22708         * doc/glibc-functions/euidaccess.texi: Mention security problems.
22709         * lib/euidaccess.c: Add comments about platforms.
22710         * lib/unistd.in.h (access, euidaccess): Add warnings.
22711
22712 2010-03-07  Bruno Haible  <bruno@clisp.org>
22713
22714         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
22715         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
22716         (POSIX_SPAWN_SETSCHEDULER): Likewise.
22717         (POSIX_SPAWN_USEVFORK): Define in a way that works when
22718         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22719         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
22720         declare when POSIX_SPAWN_SETSCHEDULER is zero.
22721         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
22722         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
22723         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
22724         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
22725         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
22726         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
22727         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
22728         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
22729         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
22730         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
22731         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
22732         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
22733         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
22734         Likewise.
22735         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
22736         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
22737         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
22738         Likewise.
22739         * tests/test-spawn.c (main): Make it work when
22740         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22741
22742 2010-03-07  Bruno Haible  <bruno@clisp.org>
22743
22744         Fix incorrect Makefile.am generation in German locale.
22745         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22746         Execute sed command with character range in C locale.
22747
22748 2010-03-06  Bruno Haible  <bruno@clisp.org>
22749
22750         Tests for module 'iconv-h'.
22751         * modules/iconv-h-tests: New file.
22752         * tests/test-iconv-h.c: New file.
22753
22754         New module 'iconv-h'.
22755         * modules/iconv-h: New file.
22756         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
22757         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
22758         (configure.ac): Remove gl_ICONV_H.
22759         (Makefile.am): Remove rule for iconv.h.
22760
22761 2010-03-06  Bruno Haible  <bruno@clisp.org>
22762
22763         More consistent naming of *.m4 files.
22764         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
22765         * modules/wctype (Files): Update.
22766
22767         More consistent naming of *.m4 files.
22768         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
22769         * modules/wchar (Files): Update.
22770
22771 2010-03-06  Jim Meyering  <meyering@redhat.com>
22772
22773         euidaccess: relax license to LGPLv2+
22774         * modules/euidaccess (License): Relax to LGPLv2+.
22775
22776 2010-03-06  Bruno Haible  <bruno@clisp.org>
22777
22778         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
22779         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
22780         (Makefile.am): Augment lib_SOURCES instead.
22781
22782 2010-03-04  Jim Meyering  <meyering@redhat.com>
22783
22784         utime: remove obsolete module
22785         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
22786         unnecessary for years, and has been marked as obsolete for 10 months.
22787         * modules/utime: Remove file.
22788         * lib/utime.c: Remove file.
22789         * m4/utime.m4: Remove file.
22790         * m4/utimes-null.m4: Remove file.
22791         * doc/posix-functions/utime.texi (utime): Remove reference to
22792         the module.  Move the sole "fixed by gnulib" item into the
22793         "problems not fixed by Gnulib" list.
22794         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
22795
22796 2010-03-05  Simon Josefsson  <simon@josefsson.org>
22797
22798         * modules/exit (License): Relax license to LGPLv2+.
22799         (Status): Mark as obsolete.
22800         * NEWS: Mention deprecated 'exit' module.
22801         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
22802         of now obsolete 'exit'.
22803
22804 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22805
22806         fts-lgpl: remove unused module
22807         * modules/fts-lgpl: Remove.
22808         * MODULES.html.sh (func_all_modules): Adjust.
22809         * check-module (find_included_lib_files): Adjust.
22810         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
22811
22812 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
22813
22814         copy-acl: enhance Solaris ACL error handling
22815         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
22816         * lib/set-mode-acl.c (qset_acl): Likewise.
22817
22818 2010-03-02  Bruno Haible  <bruno@clisp.org>
22819
22820         spawn: Don't override the system defined values on FreeBSD 8.
22821         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
22822         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
22823         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
22824         if HAVE_POSIX_SPAWN is 1.
22825         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
22826
22827 2010-03-01  Bruno Haible  <bruno@clisp.org>
22828
22829         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
22830         regarding Automake.
22831
22832 2010-02-25  Bruno Haible  <bruno@clisp.org>
22833
22834         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
22835         * gnulib-tool: Define 'echo' as a function only before the ksh alias
22836         setting, not afterwards.
22837         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
22838
22839 2010-02-24  Eric Blake  <eblake@redhat.com>
22840
22841         bootstrap, git-version-gen: use timestamp
22842         * build-aux/git-version-gen (scriptversion): Force UTC.
22843         * build-aux/bootstrap (scriptversion): New variable.
22844
22845         bootstrap: allow older git
22846         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
22847         older than 1.6.4.  Requested by the libvirt project.
22848
22849 2010-02-23  Eric Blake  <eblake@redhat.com>
22850
22851         warn-on-use: work with old autoconf
22852         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
22853         AS_VAR semantics of autoconf 2.60.
22854         Reported by Bruno Haible.
22855
22856         bootstrap: improve some comments
22857         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
22858         clarification comments.
22859
22860         gettimeofday: provide correct function
22861         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
22862         when replacement is declared, otherwise provide gettimeofday.
22863         Reported by Michael Goffioul.
22864
22865 2010-02-23  Jim Meyering  <meyering@redhat.com>
22866
22867         lib-ignore: relax license to "unlimited", not LGPLv2+
22868         * modules/lib-ignore (License): Relax to "unlimited".
22869
22870 2010-02-23  Jim Meyering  <meyering@redhat.com>
22871
22872         lib-ignore: relax license to LGPLv2+
22873         * modules/lib-ignore (License): Relax to LGPLv2+.
22874
22875 2010-02-22  Eric Blake  <eblake@redhat.com>
22876
22877         lseek: avoid bash 3.2 broken pipe bug
22878         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
22879         warning from bash 3.2.
22880         Reported by Ben Pfaff, with analysis from Bruno Haible.
22881
22882         bootstrap: support non-FSF copyright holder
22883         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
22884         bootstrap.conf override of COPYRIGHT_HOLDER.
22885         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
22886
22887         bootstrap: interoperate with gettext 0.14.1
22888         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
22889
22890         bootstrap: allow for alternate submodule location
22891         * build-aux/bootstrap (gnulib_path): New variable; use instead of
22892         hardcoding submodule location.
22893         (gnulib_mk): Allow direct use of Makefile.am.
22894
22895         bootstrap: use GNULIB_SRCDIR to reduce disk usage
22896         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
22897         rather than reconfiguring where the submodule points.
22898
22899         gettimeofday: restore support for platforms that lack function
22900         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
22901         replacement if function is missing.
22902         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
22903         * modules/sys_time (Makefile.am): Substitute it.
22904         * lib/sys_time.in.h (gettimeofday): Check it.
22905         Reported by Michael Goffioul.
22906
22907 2010-02-21  Bruno Haible  <bruno@clisp.org>
22908
22909         * lib/stdio.in.h (obstack_printf): Fix typo.
22910
22911 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
22912
22913         vc-list-files: use bzr ls's -R option
22914         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
22915         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
22916
22917 2010-02-21  Jim Meyering  <meyering@redhat.com>
22918
22919         init.sh: fix EXEEXT shims to work also for names like test-prog
22920         * tests/init.sh: Re-exec a better shell, when needed.
22921         If the current shell lacks support for posix $(...), an init.sh-using
22922         test will now try to find a shell that supports that.  If EXEEXT is
22923         nonempty, we also require support for hyphen-in-alias-name and shell
22924         substitutions like ${var#glob}.  Failure to find such a shell results
22925         in a skipped test.
22926
22927 2010-02-21  Bruno Haible  <bruno@clisp.org>
22928
22929         Really work around around "broken pipe" error message from bash 3.2.
22930         * gnulib-tool (func_reset_sigpipe): Remove function.
22931         (echo): In bash 3.2, define to a function that uses printf.
22932         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
22933
22934 2010-02-20  Bruno Haible  <bruno@clisp.org>
22935
22936         Restore support for automake 1.9.6 with autoconf 2.61.
22937         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
22938         Reported by James Youngman <jay@gnu.org>.
22939
22940 2010-02-20  Bruno Haible  <bruno@clisp.org>
22941
22942         Improve *printf warning condition.
22943         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
22944         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
22945         and the function is overridden due to SIGPIPE emulation.
22946
22947 2010-02-20  Bruno Haible  <bruno@clisp.org>
22948
22949         * lib/stdio.in.h: Tweak comments.
22950
22951 2010-02-19  Bruno Haible  <bruno@clisp.org>
22952
22953         Make it easier to find modules. New gnulib-tool option '--find'.
22954         * gnulib-tool: New option --find.
22955         (func_usage): Document it.
22956         (func_sanitize_modulelist): New function, extracted from
22957         func_all_modules.
22958         (func_all_modules): Invoke it.
22959         * doc/gnulib-tool.texi (Which modules?): New node.
22960
22961 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
22962
22963         * lib/sys_select.in.h: Provide select replacement even if
22964         sys/select.h exists on a system, for Interix.
22965
22966 2010-02-18  Jim Meyering  <meyering@redhat.com>
22967
22968         init.sh: don't use $(...) just yet
22969         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
22970         to accommodate e.g., Solaris' /bin/sh.
22971
22972 2010-02-17  Bruno Haible  <bruno@clisp.org>
22973
22974         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
22975         Reported by Ludovic Courtès <ludo@gnu.org>.
22976
22977 2010-02-16  Simon Josefsson  <simon@josefsson.org>
22978
22979         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
22980         linking with -lintl.
22981
22982 2010-02-17  Simon Josefsson  <simon@josefsson.org>
22983
22984         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
22985         if not provided by the system's netdb.h.  Reported by
22986         ludo@gnu.org (Ludovic Courtès).
22987
22988 2010-02-15  Jim Meyering  <meyering@redhat.com>
22989
22990         init.sh: improve portability and efficiency
22991         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
22992         "dummy" in a for loop.
22993         Use '!', not '^' to select the complement of a character set used
22994         in a "case" statement.
22995         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
22996         Suggestions from Eric Blake.
22997
22998         init.sh: automatically accommodate programs with the .exe suffix
22999         Automatically arrange for an invocation of "prog" to execute the
23000         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
23001         may use the simpler "prog", yet still work when built on a system
23002         that requires specifying the added suffix.
23003         Do this by constructing a function named "prog" that invokes
23004         "prog.exe" for each .exe file in selected directories.
23005         * tests/init.sh (find_exe_basenames_): New function.
23006         (create_exe_shim_functions_): New function.
23007         (path_prepend_): Use it.
23008
23009         maint.mk: mark syntax-check sc_*.m rules as .PHONY
23010         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
23011         "make -t syntax-check" doesn't create a ton of sc_*.m files.
23012
23013 2010-02-14  Jim Meyering  <meyering@redhat.com>
23014
23015         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
23016         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
23017         (sc_prohibit_hash_pjw_without_use): New rule.
23018
23019         maint.mk: allow the default upload destination dir to be overridden
23020         * top/maint.mk (upload_dest_dir_): Define with a default that
23021         preserves the status quo.
23022         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
23023         Reported by Peter Simons.
23024
23025         maint.mk: prohibit inclusion of "hash.h" without_use
23026         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
23027
23028 2010-02-10  Jim Meyering  <meyering@redhat.com>
23029
23030         maint.mk: prohibit inclusion of "ignore-value.h" without_use
23031         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
23032
23033 2010-02-09  Eric Blake  <ebb9@byu.net>
23034         and Bruno Haible  <bruno@clisp.org>
23035
23036         obstack-printf-posix: ensure declaration
23037         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
23038         extracted from gl_FUNC_OBSTACK_PRINTF.
23039         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
23040         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23041         Likewise.
23042         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
23043         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
23044         0.
23045
23046 2010-02-08  Bruno Haible  <bruno@clisp.org>
23047
23048         gnulib-tool: Fix typo in 2010-02-07 commit.
23049         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
23050         Reported by Eric Blake.
23051
23052 2010-02-07  Bruno Haible  <bruno@clisp.org>
23053
23054         gnulib-tool: Fix up caching patches.
23055         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
23056         option --no-cache. Use associative arrays when supported by the shell.
23057         (sed_comments): New variable.
23058         (modcache): Renamed from do_cache.
23059         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
23060         abbreviate unnecessarily.
23061         (have_associative): New variable.
23062         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
23063         way also for ksh and zsh.
23064         (func_init_sed_convert_to_cache_statements): New function, extracted
23065         from func_cache_lookup_module. Add support for associative arrays.
23066         Don't set the c_MODULE_cached variable here. Ignore all lines before
23067         the first field header. Remove only the final newline, not all trailing
23068         newlines. Support empty fields correctly. Limit the use of 'eval' to
23069         assignments.
23070         (func_get_description, func_get_status, func_get_notice,
23071         func_get_applicability, func_get_filelist, func_get_dependencies,
23072         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
23073         func_get_automake_snippet, func_get_include_directive,
23074         func_get_link_directive, func_get_license, func_get_maintainer):
23075         Update documentation. List the unoptimized code first. Add support for
23076         associative arrays. Limit the use of 'eval' to assignments.
23077         (func_get_applicability): Undo stylistic pessimisations.
23078         (func_get_automake_snippet, func_get_include_directive): Reduce code
23079         duplication.
23080         (func_modules_transitive_closure, func_modules_add_dummy,
23081         func_modules_notice, func_modules_to_filelist, func_add_file,
23082         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
23083         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
23084         func_create_testdir, func_create_megatestdir): Update documentation.
23085
23086 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23087
23088         * gnulib-tool (func_cache_lookup_module): Store the module name
23089         belonging to the cache variable; error out if two different
23090         module names map to the same cache variable name.
23091
23092 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23093
23094         gnulib-tool: Make caching optional.
23095         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
23096         Update matching short versions of --no-changelog.
23097         (func_usage): Update.
23098         (sed_extract_cache_prog): Renamed from ...
23099         (sed_extract_prog): ... this; revert to old extraction script.
23100         (func_get_description, func_get_status)
23101         (func_get_notice, func_get_applicability, func_get_filelist)
23102         (func_get_dependencies, func_get_autoconf_early_snippet)
23103         (func_get_autoconf_snippet, func_get_automake_snippet)
23104         (func_get_include_directive, func_get_link_directive)
23105         (func_get_license, func_get_maintainer): If $do_cache is false,
23106         use old, non-caching extraction scripts.
23107         Suggestion by Bruno Haible.
23108
23109 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23110
23111         gnulib-tool: cache module metainformation.
23112         * gnulib-tool (sed_extract_prog): Match newline before each
23113         header, and rewrite header to a shell variable suffix.
23114         (func_cache_var, func_cache_lookup_module): New functions,
23115         to turn a module name into a cache variable prefix, and to
23116         look up and cache module metainformation.
23117         (func_get_description, func_get_status)
23118         (func_get_notice, func_get_applicability, func_get_filelist)
23119         (func_get_dependencies, func_get_autoconf_early_snippet)
23120         (func_get_autoconf_snippet, func_get_automake_snippet)
23121         (func_get_include_directive, func_get_link_directive)
23122         (func_get_license, func_get_maintainer): Use
23123         func_cache_lookup_module.
23124
23125 2010-02-07  Bruno Haible  <bruno@clisp.org>
23126
23127         fnctl: Fix missing dependency.
23128         * modules/fcntl (Depends-on): Add getdtablesize.
23129         Reported by John W. Eaton <jwe@gnu.org>.
23130
23131 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23132
23133         Argp: fix recognition of short alias options.
23134
23135         * lib/argp-parse.c (convert_options): Fix improper use of
23136         `|' between character values.
23137         * tests/test-argp.c (group1_option): New alias option
23138         --read (-r).
23139         (group1_parser): Special handling for 'r'.
23140         (test15): New test case.
23141         (test_fun): Add test15.
23142         * tests/test-argp-2.sh: Update expected --help and --usage
23143         outputs.
23144
23145 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23146
23147         * tests/test-argp.c: Fix indentation.
23148
23149 2010-02-04  Eric Blake  <ebb9@byu.net>
23150
23151         gettimeofday: expose type of second argument
23152         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
23153         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
23154         * tests/test-gettimeofday.c: Use it to silence warning.
23155         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
23156         the issue.
23157
23158 2010-02-03  Jim Meyering  <meyering@redhat.com>
23159
23160         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
23161         * lib/regcomp.c (TYPE_SIGNED): Define.
23162         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
23163
23164         regcomp.c: avoid a new -Wshadow warning
23165         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
23166
23167 2010-02-01  Jim Meyering  <meyering@redhat.com>
23168
23169         removing useless parentheses in cpp #define directives
23170         For motivation, see commit c0221df4, "define STREQ(a,b)
23171         consistently, removing useless parentheses"
23172         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
23173         * lib/mountlist.c (MNT_IGNORE): Likewise.
23174         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
23175
23176 2010-02-01  Eric Blake  <ebb9@byu.net>
23177
23178         sys_time: use link-warning
23179         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
23180         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
23181         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
23182         * modules/sys_time (Depends-on): Add warn-on-use.
23183         (Makefile.am): Always build replacement.
23184         (configure.ac): Update substitutions.
23185         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
23186         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
23187         bother with SYS_TIME_H.
23188         * modules/gettimeofday (configure.ac): Declare indicator.
23189         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
23190         in use.
23191
23192         closein-tests: silence compiler warning
23193         * tests/test-closein.c (main): Ignore fread result.
23194         * modules/closein-tests (Depends-on): Add ignore-value.
23195
23196         tests: silence warning about system return
23197         * tests/test-areadlink-with-size.c (main): Ignore system result.
23198         * tests/test-areadlink.c (main): Likewise.
23199         * tests/test-areadlinkat-with-size.c (main): Likewise.
23200         * tests/test-areadlinkat.c (main): Likewise.
23201         * tests/test-canonicalize-lgpl.c (main): Likewise.
23202         * tests/test-canonicalize.c (main): Likewise.
23203         * tests/test-chown.c (main): Likewise.
23204         * tests/test-fchownat.c (main): Likewise.
23205         * tests/test-fdutimensat.c (main): Likewise.
23206         * tests/test-fstatat.c (main): Likewise.
23207         * tests/test-futimens.c (main): Likewise.
23208         * tests/test-lchown.c (main): Likewise.
23209         * tests/test-link.c (main): Likewise.
23210         * tests/test-linkat.c (main): Likewise.
23211         * tests/test-lstat.c (main): Likewise.
23212         * tests/test-mkdir.c (main): Likewise.
23213         * tests/test-mkdirat.c (main): Likewise.
23214         * tests/test-mkfifo.c (main): Likewise.
23215         * tests/test-mkfifoat.c (main): Likewise.
23216         * tests/test-mknod.c (main): Likewise.
23217         * tests/test-readlink.c (main): Likewise.
23218         * tests/test-remove.c (main): Likewise.
23219         * tests/test-rename.c (main): Likewise.
23220         * tests/test-renameat.c (main): Likewise.
23221         * tests/test-rmdir.c (main): Likewise.
23222         * tests/test-symlink.c (main): Likewise.
23223         * tests/test-symlinkat.c (main): Likewise.
23224         * tests/test-unlink.c (main): Likewise.
23225         * tests/test-unlinkat.c (main): Likewise.
23226         * tests/test-utimens.c (main): Likewise.
23227         * tests/test-utimensat.c (main): Likewise.
23228         * modules/areadlink-tests (Depends-on): Add ignore-value.
23229         * modules/areadlink-with-size-tests (Depends-on): Likewise.
23230         * modules/areadlinkat-tests (Depends-on): Likewise.
23231         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
23232         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23233         * modules/canonicalize-tests (Depends-on): Likewise.
23234         * modules/chown-tests (Depends-on): Likewise.
23235         * modules/fdutimensat-tests (Depends-on): Likewise.
23236         * modules/futimens-tests (Depends-on): Likewise.
23237         * modules/lchown-tests (Depends-on): Likewise.
23238         * modules/link-tests (Depends-on): Likewise.
23239         * modules/linkat-tests (Depends-on): Likewise.
23240         * modules/lstat-tests (Depends-on): Likewise.
23241         * modules/mkdir-tests (Depends-on): Likewise.
23242         * modules/mkfifo-tests (Depends-on): Likewise.
23243         * modules/mkfifoat-tests (Depends-on): Likewise.
23244         * modules/mknod-tests (Depends-on): Likewise.
23245         * modules/openat-tests (Depends-on): Likewise.
23246         * modules/readlink-tests (Depends-on): Likewise.
23247         * modules/remove-tests (Depends-on): Likewise.
23248         * modules/rename-tests (Depends-on): Likewise.
23249         * modules/renameat-tests (Depends-on): Likewise.
23250         * modules/rmdir-tests (Depends-on): Likewise.
23251         * modules/symlink-tests (Depends-on): Likewise.
23252         * modules/symlinkat-tests (Depends-on): Likewise.
23253         * modules/unlink-tests (Depends-on): Likewise.
23254         * modules/utimens-tests (Depends-on): Likewise.
23255         * modules/utimensat-tests (Depends-on): Likewise.
23256
23257 2010-01-31  Bruno Haible  <bruno@clisp.org>
23258
23259         Perform the same test for many <math.h> functions.
23260         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
23261         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
23262         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
23263         of gl_MATHFUNC.
23264         * modules/acos (configure.ac): Likewise.
23265         * modules/asin (configure.ac): Likewise.
23266         * modules/atan (configure.ac): Likewise.
23267         * modules/atan2 (configure.ac): Likewise.
23268         * modules/cbrt (configure.ac): Likewise.
23269         * modules/copysign (configure.ac): Likewise.
23270         * modules/cos (configure.ac): Likewise.
23271         * modules/cosh (configure.ac): Likewise.
23272         * modules/erf (configure.ac): Likewise.
23273         * modules/erfc (configure.ac): Likewise.
23274         * modules/exp (configure.ac): Likewise.
23275         * modules/fmod (configure.ac): Likewise.
23276         * modules/hypot (configure.ac): Likewise.
23277         * modules/j0 (configure.ac): Likewise.
23278         * modules/j1 (configure.ac): Likewise.
23279         * modules/jn (configure.ac): Likewise.
23280         * modules/lgamma (configure.ac): Likewise.
23281         * modules/log (configure.ac): Likewise.
23282         * modules/log10 (configure.ac): Likewise.
23283         * modules/log1p (configure.ac): Likewise.
23284         * modules/pow (configure.ac): Likewise.
23285         * modules/remainder (configure.ac): Likewise.
23286         * modules/sin (configure.ac): Likewise.
23287         * modules/sinh (configure.ac): Likewise.
23288         * modules/tan (configure.ac): Likewise.
23289         * modules/tanh (configure.ac): Likewise.
23290         * modules/y0 (configure.ac): Likewise.
23291         * modules/y1 (configure.ac): Likewise.
23292         * modules/yn (configure.ac): Likewise.
23293         Suggested by Paolo Bonzini.
23294
23295 2010-01-31  Bruno Haible  <bruno@clisp.org>
23296
23297         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
23298
23299 2010-01-31  Bruno Haible  <bruno@clisp.org>
23300
23301         Work around getdelim() bug on FreeBSD 8.0.
23302         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
23303         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
23304         not work.
23305         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
23306         is 1.
23307         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
23308         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
23309         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
23310         a non-zero size.
23311         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
23312
23313 2010-01-31  Bruno Haible  <bruno@clisp.org>
23314
23315         Work around getline() bug on FreeBSD 8.0.
23316         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
23317         and a non-zero size.
23318         * tests/test-getline.c (main): Likewise.
23319         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
23320         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
23321
23322 2010-01-28  Eric Blake  <ebb9@byu.net>
23323
23324         regex: fix build failure
23325         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
23326         platforms.
23327
23328 2010-01-28  Jim Meyering  <meyering@redhat.com>
23329
23330         regex: do not ignore memory allocation failure
23331         * lib/regex_internal.c (create_cd_newstate): Detect
23332         re_node_set_init_copy failure.   Extracted from glibc commit
23333         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23334
23335         regex: sync more white-space changes from libc
23336         * lib/regex_internal.c: White-space only changes.
23337         * lib/regexec.c: Likewise.
23338
23339         regex: add many uses of __attribute_warn_unused_result__
23340         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
23341         * lib/regexec.c: Likewise.
23342         Extracted from a messy glibc commit.
23343
23344         regcomp.c: spelling and merge-artifact from glibc
23345         * lib/regcomp.c: Merge remainder of glibc's
23346         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23347
23348         regcomp.c: sync white-space changes from glibc
23349         * lib/regcomp.c: Merge to accommodate white space
23350         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23351
23352         regcomp.c: do not ignore internal return values
23353         * lib/regcomp.c: Do not ignore internal return values.
23354         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
23355         but without its white-space changes and spelling fixes.
23356
23357         regex_internal.h: define __attribute_warn_unused_result__
23358         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
23359
23360         maint: add a syntax-check rule to check for vulnerable Makefile.in
23361         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
23362
23363 2010-01-27  Jim Meyering  <meyering@redhat.com>
23364
23365         ncftpput-ftp: clean up spaces
23366         * build-aux/ncftpput-ftp: Make Copyright line consistent.
23367         Remove trailing blanks.
23368
23369 2010-01-27  Simon Josefsson  <simon@josefsson.org>
23370
23371         * build-aux/git-version-gen: Fix copyright statement.
23372         * build-aux/gnupload: Likewise.
23373         * tests/test-arcfour.c: Likewise.
23374         * tests/test-arctwo.c: Likewise.
23375         * tests/test-count-one-bits.c: Likewise.
23376         * tests/test-crc.c: Likewise.
23377         * tests/test-des.c: Likewise.
23378         * tests/test-gc-arcfour.c: Likewise.
23379         * tests/test-gc-arctwo.c: Likewise.
23380         * tests/test-gc-des.c: Likewise.
23381         * tests/test-gc-hmac-md5.c: Likewise.
23382         * tests/test-gc-hmac-sha1.c: Likewise.
23383         * tests/test-gc-md2.c: Likewise.
23384         * tests/test-gc-md4.c: Likewise.
23385         * tests/test-gc-md5.c: Likewise.
23386         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23387         * tests/test-gc-rijndael.c: Likewise.
23388         * tests/test-gc-sha1.c: Likewise.
23389         * tests/test-gc.c: Likewise.
23390         * tests/test-gethostname.c: Likewise.
23391         * tests/test-gettimeofday.c: Likewise.
23392         * tests/test-hash.c: Likewise.
23393         * tests/test-hmac-md5.c: Likewise.
23394         * tests/test-hmac-sha1.c: Likewise.
23395         * tests/test-md2.c: Likewise.
23396         * tests/test-md4.c: Likewise.
23397         * tests/test-md5.c: Likewise.
23398         * tests/test-memchr.c: Likewise.
23399         * tests/test-memchr2.c: Likewise.
23400         * tests/test-memcmp.c: Likewise.
23401         * tests/test-memmem.c: Likewise.
23402         * tests/test-memrchr.c: Likewise.
23403         * tests/test-rawmemchr.c: Likewise.
23404         * tests/test-read-file.c: Likewise.
23405         * tests/test-rijndael.c: Likewise.
23406         * tests/test-sockets.c: Likewise.
23407         * tests/test-strchrnul.c: Likewise.
23408         * tests/test-strstr.c: Likewise.
23409         * tests/test-strtod.c: Likewise.
23410         * build-aux/ncftpput-ftp: Likewise.
23411
23412 2010-01-26  Eric Blake  <ebb9@byu.net>
23413
23414         ignore-value: update recommended header name
23415         * modules/ignore-value (Include): Only use <> for headers that
23416         exist in glibc.
23417
23418 2010-01-26  Jim Meyering  <meyering@redhat.com>
23419
23420         test-userspec.c: avoid compiler warnings
23421         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
23422         and "initialization discards qualifiers..." warnings.
23423         Put the first "uid" in its own scope, and make char* members "const".
23424
23425 2010-01-25  Bruno Haible  <bruno@clisp.org>
23426
23427         gnulib-tool: Make warning diagnostics consistent.
23428         * gnulib-tool (func_warning): New function.
23429         Use it everywhere where gnulib-tool produces output to stderr and it is
23430         not a fatal error.
23431
23432 2010-01-25  Bruno Haible  <bruno@clisp.org>
23433
23434         Fix test dependencies.
23435         * modules/xstrtol-tests (Depends-on): Add inttypes.
23436         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
23437
23438 2010-01-25 Pádraig Brady <P@draigBrady.com>
23439
23440         syntax-check: detect incorrect boolean macro values in config.h
23441         * modules/maintainer-makefile (configure.ac): Parameterize the location
23442         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
23443         The logic is from Eric Blake and the location indicated by Jim Meyering.
23444         Note the more natural CONFIG_HEADER name is prohibited by automake
23445         for backwards compatibility reasons.
23446         * top/maint.mk (sc_Wundef_boolean): New rule.
23447
23448 2010-01-25  Jim Meyering  <meyering@redhat.com>
23449
23450         bootstrap: detect MacOS 10.6's shasum, too
23451         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
23452         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
23453
23454 2010-01-23  Jim Meyering  <meyering@redhat.com>
23455
23456         xstrtoll: new module
23457         * modules/xstrtoll: New file.
23458         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
23459         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
23460         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
23461         ./configure fails if you use this module and lack "long long".
23462         * modules/xstrtoll-tests: New module.
23463         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
23464         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
23465         new init.sh-based test framework.
23466
23467 2010-01-24  Bruno Haible  <bruno@clisp.org>
23468
23469         Tests for module 'yn'.
23470         * modules/yn-tests: New file.
23471         * tests/test-yn.c: New file.
23472
23473         Tests for module 'y1'.
23474         * modules/y1-tests: New file.
23475         * tests/test-y1.c: New file.
23476
23477         Tests for module 'y0'.
23478         * modules/y0-tests: New file.
23479         * tests/test-y0.c: New file.
23480
23481         Tests for module 'tanh'.
23482         * modules/tanh-tests: New file.
23483         * tests/test-tanh.c: New file.
23484
23485         Tests for module 'tan'.
23486         * modules/tan-tests: New file.
23487         * tests/test-tan.c: New file.
23488
23489         Tests for module 'sqrt'.
23490         * modules/sqrt-tests: New file.
23491         * tests/test-sqrt.c: New file.
23492
23493         Tests for module 'sinh'.
23494         * modules/sinh-tests: New file.
23495         * tests/test-sinh.c: New file.
23496
23497         Tests for module 'sin'.
23498         * modules/sin-tests: New file.
23499         * tests/test-sin.c: New file.
23500
23501         Tests for module 'rint'.
23502         * modules/rint-tests: New file.
23503         * tests/test-rint.c: New file.
23504
23505         Tests for module 'remainder'.
23506         * modules/remainder-tests: New file.
23507         * tests/test-remainder.c: New file.
23508
23509         Tests for module 'pow'.
23510         * modules/pow-tests: New file.
23511         * tests/test-pow.c: New file.
23512
23513         Tests for module 'nextafter'.
23514         * modules/nextafter-tests: New file.
23515         * tests/test-nextafter.c: New file.
23516
23517         Tests for module 'modf'.
23518         * modules/modf-tests: New file.
23519         * tests/test-modf.c: New file.
23520
23521         Tests for module 'logb'.
23522         * modules/logb-tests: New file.
23523         * tests/test-logb.c: New file.
23524
23525         Tests for module 'log1p'.
23526         * modules/log1p-tests: New file.
23527         * tests/test-log1p.c: New file.
23528
23529         Tests for module 'log10'.
23530         * modules/log10-tests: New file.
23531         * tests/test-log10.c: New file.
23532
23533         Tests for module 'log'.
23534         * modules/log-tests: New file.
23535         * tests/test-log.c: New file.
23536
23537         Tests for module 'lgamma'.
23538         * modules/lgamma-tests: New file.
23539         * tests/test-lgamma.c: New file.
23540
23541         Tests for module 'ldexp'.
23542         * modules/ldexp-tests: New file.
23543         * tests/test-ldexp.c: New file.
23544
23545         Tests for module 'jn'.
23546         * modules/jn-tests: New file.
23547         * tests/test-jn.c: New file.
23548
23549         Tests for module 'j1'.
23550         * modules/j1-tests: New file.
23551         * tests/test-j1.c: New file.
23552
23553         Tests for module 'j0'.
23554         * modules/j0-tests: New file.
23555         * tests/test-j0.c: New file.
23556
23557         Tests for module 'hypot'.
23558         * modules/hypot-tests: New file.
23559         * tests/test-hypot.c: New file.
23560
23561         Tests for module 'fmod'.
23562         * modules/fmod-tests: New file.
23563         * tests/test-fmod.c: New file.
23564
23565         Tests for module 'fabs'.
23566         * modules/fabs-tests: New file.
23567         * tests/test-fabs.c: New file.
23568
23569         Tests for module 'exp'.
23570         * modules/exp-tests: New file.
23571         * tests/test-exp.c: New file.
23572
23573         Tests for module 'erfc'.
23574         * modules/erfc-tests: New file.
23575         * tests/test-erfc.c: New file.
23576
23577         Tests for module 'erf'.
23578         * modules/erf-tests: New file.
23579         * tests/test-erf.c: New file.
23580
23581         Tests for module 'cosh'.
23582         * modules/cosh-tests: New file.
23583         * tests/test-cosh.c: New file.
23584
23585         Tests for module 'cos'.
23586         * modules/cos-tests: New file.
23587         * tests/test-cos.c: New file.
23588
23589         Tests for module 'copysign'.
23590         * modules/copysign-tests: New file.
23591         * tests/test-copysign.c: New file.
23592
23593         Tests for module 'cbrt'.
23594         * modules/cbrt-tests: New file.
23595         * tests/test-cbrt.c: New file.
23596
23597         Tests for module 'atan2'.
23598         * modules/atan2-tests: New file.
23599         * tests/test-atan2.c: New file.
23600
23601         Tests for module 'atan'.
23602         * modules/atan-tests: New file.
23603         * tests/test-atan.c: New file.
23604
23605         Tests for module 'asin'.
23606         * modules/asin-tests: New file.
23607         * tests/test-asin.c: New file.
23608
23609         Tests for module 'acos'.
23610         * modules/acos-tests: New file.
23611         * tests/test-acos.c: New file.
23612
23613 2010-01-24  Bruno Haible  <bruno@clisp.org>
23614
23615         Fix tests for common <math.h> functions.
23616         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
23617         code snippet that references the function pointer, rather than merely
23618         calling the function. Substitute the FUNC_LIBM variable.
23619         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
23620         * modules/acos (configure.ac): Likewise.
23621         * modules/asin (configure.ac): Likewise.
23622         * modules/atan (configure.ac): Likewise.
23623         * modules/atan2 (configure.ac): Likewise.
23624         * modules/cbrt (configure.ac): Likewise.
23625         * modules/copysign (configure.ac): Likewise.
23626         * modules/cos (configure.ac): Likewise.
23627         * modules/cosh (configure.ac): Likewise.
23628         * modules/erf (configure.ac): Likewise.
23629         * modules/erfc (configure.ac): Likewise.
23630         * modules/exp (configure.ac): Likewise.
23631         * modules/fabs (configure.ac): Likewise.
23632         * modules/fmod (configure.ac): Likewise.
23633         * modules/hypot (configure.ac): Likewise.
23634         * modules/j0 (configure.ac): Likewise.
23635         * modules/j1 (configure.ac): Likewise.
23636         * modules/jn (configure.ac): Likewise.
23637         * modules/ldexp (configure.ac): Likewise.
23638         * modules/lgamma (configure.ac): Likewise.
23639         * modules/log (configure.ac): Likewise.
23640         * modules/log10 (configure.ac): Likewise.
23641         * modules/log1p (configure.ac): Likewise.
23642         * modules/logb (configure.ac): Likewise.
23643         * modules/modf (configure.ac): Likewise.
23644         * modules/nextafter (configure.ac): Likewise.
23645         * modules/pow (configure.ac): Likewise.
23646         * modules/remainder (configure.ac): Likewise.
23647         * modules/rint (configure.ac): Likewise.
23648         * modules/sin (configure.ac): Likewise.
23649         * modules/sinh (configure.ac): Likewise.
23650         * modules/tan (configure.ac): Likewise.
23651         * modules/tanh (configure.ac): Likewise.
23652         * modules/y0 (configure.ac): Likewise.
23653         * modules/y1 (configure.ac): Likewise.
23654         * modules/yn (configure.ac): Likewise.
23655
23656 2010-01-24  Bruno Haible  <bruno@clisp.org>
23657
23658         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
23659         * tests/test-acosl.c (x): New variable.
23660         (main): Store argument in x and fetch it from x.
23661         * tests/test-asinl.c (x): New variable.
23662         (main): Store argument in x and fetch it from x.
23663         * tests/test-atanl.c (x): New variable.
23664         (main): Store argument in x and fetch it from x.
23665         * tests/test-cosl.c (x): New variable.
23666         (main): Store argument in x and fetch it from x.
23667         * tests/test-expl.c (x): New variable.
23668         (main): Store argument in x and fetch it from x.
23669         * tests/test-logl.c (x): New variable.
23670         (main): Store argument in x and fetch it from x.
23671         * tests/test-sinl.c (x): New variable.
23672         (main): Store argument in x and fetch it from x.
23673         * tests/test-sqrtl.c (x): New variable.
23674         (main): Store argument in x and fetch it from x.
23675         * tests/test-tanl.c (x): New variable.
23676         (main): Store argument in x and fetch it from x.
23677
23678 2010-01-24  Bruno Haible  <bruno@clisp.org>
23679
23680         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
23681         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
23682         assignments to the initial TESTS_ENVIRONMENT.
23683         * doc/gnulib.texi (Unit test modules): Document it.
23684         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
23685         TESTS_ENVIRONMENT.
23686         * modules/btowc-tests (Makefile.am): Likewise.
23687         * modules/c-stack-tests (Makefile.am): Likewise.
23688         * modules/c-strcase-tests (Makefile.am): Likewise.
23689         * modules/copy-file-tests (Makefile.am): Likewise.
23690         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
23691         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
23692         * modules/mbrtowc-tests (Makefile.am): Likewise.
23693         * modules/mbscasecmp-tests (Makefile.am): Likewise.
23694         * modules/mbscasestr-tests (Makefile.am): Likewise.
23695         * modules/mbschr-tests (Makefile.am): Likewise.
23696         * modules/mbscspn-tests (Makefile.am): Likewise.
23697         * modules/mbsinit-tests (Makefile.am): Likewise.
23698         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
23699         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
23700         * modules/mbspbrk-tests (Makefile.am): Likewise.
23701         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
23702         * modules/mbsrchr-tests (Makefile.am): Likewise.
23703         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
23704         * modules/mbsspn-tests (Makefile.am): Likewise.
23705         * modules/mbsstr-tests (Makefile.am): Likewise.
23706         * modules/nl_langinfo-tests (Makefile.am): Likewise.
23707         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
23708         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
23709         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
23710         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
23711         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
23712         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
23713         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
23714         * modules/wcrtomb-tests (Makefile.am): Likewise.
23715         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
23716         * modules/wcsrtombs-tests (Makefile.am): Likewise.
23717         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
23718         assignments from TESTS_ENVIRONMENT.
23719         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
23720         augmentation.
23721         * modules/argp-version-etc-tests (Makefile.am): Likewise.
23722         * modules/atexit-tests (Makefile.am): Likewise.
23723         * modules/binary-io-tests (Makefile.am): Likewise.
23724         * modules/closein-tests (Makefile.am): Likewise.
23725         * modules/dprintf-posix-tests (Makefile.am): Likewise.
23726         * modules/exclude-tests (Makefile.am): Likewise.
23727         * modules/fflush-tests (Makefile.am): Likewise.
23728         * modules/fpending-tests (Makefile.am): Likewise.
23729         * modules/fprintf-posix-tests (Makefile.am): Likewise.
23730         * modules/freadahead-tests (Makefile.am): Likewise.
23731         * modules/freadptr-tests (Makefile.am): Likewise.
23732         * modules/freadseek-tests (Makefile.am): Likewise.
23733         * modules/fseek-tests (Makefile.am): Likewise.
23734         * modules/fseeko-tests (Makefile.am): Likewise.
23735         * modules/ftell-tests (Makefile.am): Likewise.
23736         * modules/ftello-tests (Makefile.am): Likewise.
23737         * modules/idpriv-drop-tests (Makefile.am): Likewise.
23738         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
23739         * modules/lseek-tests (Makefile.am): Likewise.
23740         * modules/parse-duration-tests (Makefile.am): Likewise.
23741         * modules/perror-tests (Makefile.am): Likewise.
23742         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
23743         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
23744         * modules/pipe-tests (Makefile.am): Likewise.
23745         * modules/pread-tests (Makefile.am): Likewise.
23746         * modules/printf-posix-tests (Makefile.am): Likewise.
23747         * modules/select-tests (Makefile.am): Likewise.
23748         * modules/sigpipe-tests (Makefile.am): Likewise.
23749         * modules/tsearch-tests (Makefile.am): Likewise.
23750         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
23751         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
23752         * modules/uniname/uniname-tests (Makefile.am): Likewise.
23753         * modules/uniwidth/width-tests (Makefile.am): Likewise.
23754         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
23755         * modules/version-etc-tests (Makefile.am): Likewise.
23756         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
23757         * modules/vprintf-posix-tests (Makefile.am): Likewise.
23758         * modules/xalloc-die-tests (Makefile.am): Likewise.
23759         * modules/xprintf-posix-tests (Makefile.am): Likewise.
23760         * modules/xstrtoimax-tests (Makefile.am): Likewise.
23761         * modules/xstrtol-tests (Makefile.am): Likewise.
23762         * modules/xstrtoumax-tests (Makefile.am): Likewise.
23763         * modules/yesno-tests (Makefile.am): Likewise.
23764         Suggested by Jim Meyering.
23765
23766 2010-01-24  Bruno Haible  <bruno@clisp.org>
23767
23768         More documentation.
23769         * doc/gnulib.texi (Writing modules): New chapter.
23770         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
23771         the new chapter.
23772
23773 2010-01-24  Jim Meyering  <meyering@redhat.com>
23774
23775         maint.mk: do not prepend "./" after filtering
23776         * top/maint.mk (_prepend_srcdir_prefix): New variable
23777         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
23778         "./" when $(srcdir) is ".".
23779
23780         define STREQ(a,b) consistently, removing useless parentheses
23781         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
23782         since the only risk is that "a" or "b" contains an unparenthesized
23783         comma, but if either did that, STREQ would have 3 or more arguments.
23784         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
23785         * lib/fts.c (STREQ): Remove unnecessary parentheses.
23786         * lib/hash-triple.c (STREQ): Likewise.
23787         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
23788         * lib/getugroups.c (STREQ): Likewise.
23789
23790 2010-01-23  Jim Meyering  <meyering@redhat.com>
23791
23792         maint.mk: fix syntax-check in a non-srcdir build directory
23793         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
23794         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
23795
23796 2010-01-22  Jim Meyering  <meyering@redhat.com>
23797
23798         userspec: add unit tests
23799         * tests/test-userspec.c: New file.
23800         * modules/userspec-tests: Likewise.
23801
23802 2010-01-21  Jim Meyering  <meyering@redhat.com>
23803
23804         maint.mk: handle source file names containing "." robustly
23805         * top/maint.mk (_dot_escaped_srcdir): Define.
23806         (VC_LIST): Use it in LHS of sed substitution.
23807
23808 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
23809
23810         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
23811         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
23812         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
23813         from a non-srcdir build.
23814
23815 2010-01-20  Eric Blake  <ebb9@byu.net>
23816
23817         warn-on-use: use instead of link-warning
23818         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
23819         * modules/unistd (Depends-on, Makefile.am): Likewise.
23820         * modules/arpa_inet (Depends-on): Replace link-warning with
23821         warn-on-use.
23822         (Makefile.am): Update rules accordingly.
23823         * modules/ctype (Depends-on, Makefile.am): Likewise.
23824         * modules/dirent (Depends-on, Makefile.am): Likewise.
23825         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
23826         * modules/inttypes (Depends-on, Makefile.am): Likewise.
23827         * modules/langinfo (Depends-on, Makefile.am): Likewise.
23828         * modules/locale (Depends-on, Makefile.am): Likewise.
23829         * modules/math (Depends-on, Makefile.am): Likewise.
23830         * modules/search (Depends-on, Makefile.am): Likewise.
23831         * modules/signal (Depends-on, Makefile.am): Likewise.
23832         * modules/spawn (Depends-on, Makefile.am): Likewise.
23833         * modules/stdlib (Depends-on, Makefile.am): Likewise.
23834         * modules/string (Depends-on, Makefile.am): Likewise.
23835         * modules/strings (Depends-on, Makefile.am): Likewise.
23836         * modules/sys_file (Depends-on, Makefile.am): Likewise.
23837         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
23838         * modules/sys_select (Depends-on, Makefile.am): Likewise.
23839         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
23840         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
23841         * modules/sys_times (Depends-on, Makefile.am): Likewise.
23842         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23843         * modules/wchar (Depends-on, Makefile.am): Likewise.
23844         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
23845         should be poisoned.
23846         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
23847         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
23848         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
23849         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23850         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23851         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23852         * m4/math_h.m4 (gl_MATH_H): Likewise.
23853         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23854         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
23855         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23856         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
23857         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
23858         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
23859         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
23860         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
23861         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23862         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23863         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23864         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
23865         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23866         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23867         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23868         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23869         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
23870         GL_LINK_WARNING.
23871         * lib/ctype.in.h: Likewise.
23872         * lib/dirent.in.h: Likewise.
23873         * lib/fcntl.in.h: Likewise.
23874         * lib/inttypes.in.h: Likewise.
23875         * lib/langinfo.in.h: Likewise.
23876         * lib/locale.in.h: Likewise.
23877         * lib/math.in.h: Likewise.
23878         * lib/search.in.h: Likewise.
23879         * lib/signal.in.h: Likewise.
23880         * lib/spawn.in.h: Likewise.
23881         * lib/stdio.in.h: Likewise.
23882         * lib/stdlib.in.h: Likewise.
23883         * lib/string.in.h: Likewise.
23884         * lib/strings.in.h: Likewise.
23885         * lib/sys_file.in.h: Likewise.
23886         * lib/sys_ioctl.in.h: Likewise.
23887         * lib/sys_select.in.h: Likewise.
23888         * lib/sys_socket.in.h: Likewise.
23889         * lib/sys_stat.in.h: Likewise.
23890         * lib/sys_times.in.h: Likewise.
23891         * lib/sys_utsname.in.h: Likewise.
23892         * lib/unistd.in.h: Likewise.
23893         * lib/wchar.in.h: Likewise.
23894
23895 2010-01-20  Bruno Haible  <bruno@clisp.org>
23896
23897         Avoid duplicate -lm.
23898         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
23899         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
23900         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
23901         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
23902         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
23903         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
23904         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
23905         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
23906         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
23907         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
23908         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
23909         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
23910         Reported by Paolo Bonzini.
23911
23912 2010-01-19  Bruno Haible  <bruno@clisp.org>
23913
23914         langinfo, nl_langinfo: Relicense under LGPLv2+.
23915         * modules/langinfo (License): Change to LGPLv2+.
23916         * modules/nl_langinfo (License): Likewise.
23917         Patch by David Lutterkort <lutter@redhat.com>.
23918
23919 2010-01-19  Bruno Haible  <bruno@clisp.org>
23920
23921         Avoid compilation error with cc on OSF/1 5.1.
23922         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
23923         statement, not before.
23924         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23925
23926 2010-01-18  Bruno Haible  <bruno@clisp.org>
23927
23928         Avoid a link error due to the __printf__ symbol.
23929         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
23930         and 2.6.x.
23931         (__format__, __printf__): Remove definitions.
23932         * lib/argp-fmtstream.h: Likewise.
23933         * lib/argp.h: Likewise.
23934         * lib/error.h: Likewise.
23935         * lib/vasnprintf.h: Likewise.
23936         * lib/xprintf.h: Likewise.
23937         * lib/xvasprintf.h: Likewise.
23938         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23939
23940 2010-01-18  Bruno Haible  <bruno@clisp.org>
23941
23942         Tests for module 'tanl'.
23943         * modules/tanl-tests: New file.
23944         * tests/test-tanl.c: New file.
23945
23946         Tests for module 'sqrtl'.
23947         * modules/sqrtl-tests: New file.
23948         * tests/test-sqrtl.c: New file.
23949
23950         Tests for module 'sinl'.
23951         * modules/sinl-tests: New file.
23952         * tests/test-sinl.c: New file.
23953
23954         Tests for module 'logl'.
23955         * modules/logl-tests: New file.
23956         * tests/test-logl.c: New file.
23957
23958         Tests for module 'expl'.
23959         * modules/expl-tests: New file.
23960         * tests/test-expl.c: New file.
23961
23962         Tests for module 'cosl'.
23963         * modules/cosl-tests: New file.
23964         * tests/test-cosl.c: New file.
23965
23966         Tests for module 'atanl'.
23967         * modules/atanl-tests: New file.
23968         * tests/test-atanl.c: New file.
23969
23970         Tests for module 'asinl'.
23971         * modules/asinl-tests: New file.
23972         * tests/test-asinl.c: New file.
23973
23974         Tests for module 'acosl'.
23975         * modules/acosl-tests: New file.
23976         * tests/test-acosl.c: New file.
23977
23978         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
23979         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
23980         tanl): Use the standard gnulib idiom.
23981         * lib/cosl.c: Don't include trigl.c and sincosl.c.
23982         * lib/sinl.c: Likewise.
23983         * lib/tanl.c: Don't include trigl.c.
23984         (kernel_tanl): Make static.
23985         * lib/sincosl.c: Include trigl.h first.
23986         * lib/trigl.c: Likewise.
23987         * m4/acosl.m4: New file.
23988         * m4/asinl.m4: New file.
23989         * m4/atanl.m4: New file.
23990         * m4/cosl.m4: New file.
23991         * m4/expl.m4: New file.
23992         * m4/logl.m4: New file.
23993         * m4/sinl.m4: New file.
23994         * m4/sqrtl.m4: New file.
23995         * m4/tanl.m4: New file.
23996         * m4/mathl.m4: Remove file.
23997         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
23998         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
23999         Don't initialize GNULIB_MATHL.
24000         * modules/acosl: New file.
24001         * modules/asinl: New file.
24002         * modules/atanl: New file.
24003         * modules/cosl: New file.
24004         * modules/expl: New file.
24005         * modules/logl: New file.
24006         * modules/sinl: New file.
24007         * modules/sqrtl: New file.
24008         * modules/tanl: New file.
24009         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
24010         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
24011         substitute GNULIB_MATHL.
24012         * modules/mathl: Rewritten.
24013         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
24014         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
24015         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
24016         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
24017         * doc/posix-functions/expl.texi: Mention the 'expl' module.
24018         * doc/posix-functions/logl.texi: Mention the 'logl' module.
24019         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
24020         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
24021         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
24022
24023 2010-01-18  Bruno Haible  <bruno@clisp.org>
24024
24025         sqrt: Make gl_FUNC_SQRT requirable.
24026         * m4/sqrt.m4: New file.
24027         * modules/sqrt (Files): Add it.
24028         (configure.ac): Invoke gl_FUNC_SQRT.
24029
24030 2010-01-18  Bruno Haible  <bruno@clisp.org>
24031
24032         New modules for common <math.h> functions.
24033         * m4/mathfunc.m4: New file.
24034         * modules/acos: New file.
24035         * modules/asin: New file.
24036         * modules/atan: New file.
24037         * modules/atan2: New file.
24038         * modules/cbrt: New file.
24039         * modules/copysign: New file.
24040         * modules/cos: New file.
24041         * modules/cosh: New file.
24042         * modules/erf: New file.
24043         * modules/erfc: New file.
24044         * modules/exp: New file.
24045         * modules/fabs: New file.
24046         * modules/fmod: New file.
24047         * modules/hypot: New file.
24048         * modules/j0: New file.
24049         * modules/j1: New file.
24050         * modules/jn: New file.
24051         * modules/ldexp: New file.
24052         * modules/lgamma: New file.
24053         * modules/log: New file.
24054         * modules/log10: New file.
24055         * modules/log1p: New file.
24056         * modules/logb: New file.
24057         * modules/modf: New file.
24058         * modules/nextafter: New file.
24059         * modules/pow: New file.
24060         * modules/remainder: New file.
24061         * modules/rint: New file.
24062         * modules/sin: New file.
24063         * modules/sinh: New file.
24064         * modules/sqrt: New file.
24065         * modules/tan: New file.
24066         * modules/tanh: New file.
24067         * modules/y0: New file.
24068         * modules/y1: New file.
24069         * modules/yn: New file.
24070         * doc/posix-functions/acos.texi: Mention the 'acos' module.
24071         * doc/posix-functions/asin.texi: Mention the 'asin' module.
24072         * doc/posix-functions/atan.texi: Mention the 'atan' module.
24073         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
24074         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
24075         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
24076         * doc/posix-functions/cos.texi: Mention the 'cos' module.
24077         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
24078         * doc/posix-functions/erf.texi: Mention the 'erf' module.
24079         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
24080         * doc/posix-functions/exp.texi: Mention the 'exp' module.
24081         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
24082         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
24083         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
24084         * doc/posix-functions/j0.texi: Mention the 'j0' module.
24085         * doc/posix-functions/j1.texi: Mention the 'j1' module.
24086         * doc/posix-functions/jn.texi: Mention the 'jn' module.
24087         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
24088         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
24089         * doc/posix-functions/log.texi: Mention the 'log' module.
24090         * doc/posix-functions/log10.texi: Mention the 'log10' module.
24091         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
24092         * doc/posix-functions/logb.texi: Mention the 'logb' module.
24093         * doc/posix-functions/modf.texi: Mention the 'modf' module.
24094         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
24095         * doc/posix-functions/pow.texi: Mention the 'pow' module.
24096         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
24097         * doc/posix-functions/rint.texi: Mention the 'rint' module.
24098         * doc/posix-functions/sin.texi: Mention the 'sin' module.
24099         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
24100         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
24101         * doc/posix-functions/tan.texi: Mention the 'tan' module.
24102         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
24103         * doc/posix-functions/y0.texi: Mention the 'y0' module.
24104         * doc/posix-functions/y1.texi: Mention the 'y1' module.
24105         * doc/posix-functions/yn.texi: Mention the 'yn' module.
24106
24107 2010-01-18  Jim Meyering  <meyering@redhat.com>
24108
24109         ignore-value: relax license to LGPLv2+
24110         * modules/ignore-value (License): Relax to LGPLv2+.
24111
24112         getdate: don't leak when TZ contains two or more '"'s
24113         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
24114         double quote in TZ after the first one.
24115
24116         readtokens: do not leak internal token_lengths buffer
24117         * lib/readtokens.c (readtokens): Free the local, lengths,
24118         when the supplied "token_lengths" parameter is NULL.
24119
24120 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24121
24122         Fix a couple of missing LIBTHREAD link failures on AIX.
24123         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
24124         $(LIBTHREAD).
24125         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
24126
24127         Link test-poll against INET_PTON_LIB.
24128         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
24129         for inet_pton on Solaris 10.
24130
24131 2010-01-17  Bruno Haible  <bruno@clisp.org>
24132
24133         unistdio/*-sprintf: Fix typo in module description.
24134         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
24135         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
24136         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
24137         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
24138         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
24139         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
24140         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
24141         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24142
24143 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24144
24145         gnulib-tool: fix filelist for AIX, HP-UX ksh.
24146         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
24147         variables in shell case patterns, for AIX and HP-UX ksh.
24148
24149         Split large sed scripts, for HP-UX sed.
24150         * modules/stdio: Split sed scripts around 50 sed commands,
24151         to avoid HP-UX limit of 99 commands, in the near future.
24152         * modules/string: Likewise.
24153         * modules/unistd: Likewise.
24154
24155         gnulib-tool: avoid writing in the current directory.
24156         * gnulib-tool (func_emit_lib_Makefile_am)
24157         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
24158         not in the current directory, so concurrent gnulib-tool
24159         instances do not interfere.
24160
24161 2010-01-16  Jim Meyering  <meyering@redhat.com>
24162
24163         doc: update users.txt
24164         * users.txt: Add grep.
24165         (diffutils, gzip): Update URLs.
24166
24167 2010-01-12  Bruno Haible  <bruno@clisp.org>
24168
24169         posix_spawn: Avoid test failure on Cygwin.
24170         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
24171         characters.
24172         Reported by Simon Josefsson.
24173
24174 2010-01-12  Bruno Haible  <bruno@clisp.org>
24175
24176         * tests/test-cond.c (main): When skipping the test, show the reason.
24177
24178 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24179
24180         * lib/striconv.c (str_cd_iconv): Avoid if before free.
24181
24182 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24183
24184         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
24185         VC_LIST_ALWAYS_EXCLUDE_REGEX.
24186
24187 2010-01-12  Eric Blake  <ebb9@byu.net>
24188
24189         build: guarantee AS_VAR_IF
24190         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
24191         (gl_AS_VAR_IF): Move...
24192         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
24193         Reported by Simon Josefsson.
24194
24195 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24196
24197         * lib/stdio.in.h: Fix typo.
24198
24199 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24200
24201         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
24202         libgpg-error.
24203
24204 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24205
24206         * tests/test-xalloc-die.sh: Use $EXEEXT.
24207
24208 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24209             Bruno Haible  <bruno@clisp.org>
24210
24211         getlogin, getlogin_r: Avoid test failure.
24212         * tests/test-getlogin.c: Include <stdio.h>.
24213         (main): Skip the test when the function fails because stdin is not a
24214         tty.
24215         * tests/test-getlogin_r.c: Include <stdio.h>.
24216         (main): Skip the test when the function fails because stdin is not a
24217         tty.
24218
24219 2010-01-11  Eric Blake  <ebb9@byu.net>
24220
24221         tests: avoid more large file warnings
24222         * tests/test-fflush.c: Avoid warning about ftell use.
24223         * tests/test-fseek.c: Avoid warning about fseek use.
24224
24225 2010-01-10  Bruno Haible  <bruno@clisp.org>
24226
24227         nproc: Work better on Linux when /proc and /sys are not mounted.
24228         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
24229         as lower bound when, on glibc/Linux systems,
24230         sysconf (_SC_NPROCESSORS_CONF) returns 1.
24231         Suggested by Pádraig Brady <P@draigbrady.com>.
24232         Reported by Dmitry V. Levin <ldv@altlinux.org>.
24233
24234         nproc: Refactor.
24235         * lib/nproc.c (num_processors_via_affinity_mask): New function,
24236         extracted from num_processors.
24237         (num_processors): Call it.
24238
24239 2010-01-11  Jim Meyering  <meyering@redhat.com>
24240
24241         utimecmp: avoid new warning from upcoming gcc-4.5.0
24242         * lib/utimecmp.c (BILLION): Define using #define rather than an
24243         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
24244
24245 2010-01-11  Eric Blake  <ebb9@byu.net>
24246
24247         math: add portability warnings for classification macros
24248         * modules/math (Depends-on): Add warn-on-use.
24249         (Makefile.am): Provide new substitutions.
24250         * m4/math_h.m4 (gl_MATH_H): Require inline.
24251         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
24252         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
24253         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
24254         implement warnings.
24255
24256         unistd: warn on use of environ without module
24257         * modules/unistd (Depends-on): Add warn-on-use.
24258         (Makefile.am): Provide new substitutions.
24259         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
24260         * lib/unistd.in.h (environ): Wrap with a warning helper function.
24261
24262         stdio: warn on suspicious uses
24263         * modules/stdio (Depends-on): Add warn-on-use.
24264         (Makefile.am): Provide new substitutions.
24265         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
24266         fseeko.
24267         * lib/stdio.in.h (gets): Always warn on use.
24268         (fseek, ftell): Adjust when warnings are issued, and honor
24269         _GL_NO_LARGE_FILES as a way to silence the warning.
24270         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
24271         any warning about large file offsets.
24272         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
24273         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
24274         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
24275         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
24276         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
24277         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
24278         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
24279         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
24280
24281         warn-on-use: new module
24282         * modules/warn-on-use: New file.
24283         * build-aux/warn-on-use.h: Likewise.
24284         * m4/warn-on-use.m4: Likewise.
24285         * MODULES.html.sh (Support for building): Mention it.
24286
24287 2010-01-10  Bruno Haible  <bruno@clisp.org>
24288
24289         Tests for module 'unistr/u32-strdup'.
24290         * modules/unistr/u32-strdup-tests: New file.
24291         * tests/unistr/test-u32-strdup.c: New file.
24292
24293         Tests for module 'unistr/u16-strdup'.
24294         * modules/unistr/u16-strdup-tests: New file.
24295         * tests/unistr/test-u16-strdup.c: New file.
24296
24297         Tests for module 'unistr/u8-strdup'.
24298         * modules/unistr/u8-strdup-tests: New file.
24299         * tests/unistr/test-u8-strdup.c: New file.
24300         * tests/unistr/test-strdup.h: New file.
24301
24302         Tests for module 'unistr/u32-strncmp'.
24303         * modules/unistr/u32-strncmp-tests: New file.
24304         * tests/unistr/test-u32-strncmp.c: New file.
24305
24306         Tests for module 'unistr/u16-strncmp'.
24307         * modules/unistr/u16-strncmp-tests: New file.
24308         * tests/unistr/test-u16-strncmp.c: New file.
24309
24310         Tests for module 'unistr/u8-strncmp'.
24311         * modules/unistr/u8-strncmp-tests: New file.
24312         * tests/unistr/test-u8-strncmp.c: New file.
24313         * tests/unistr/test-strncmp.h: New file.
24314
24315         Tests for module 'unistr/u32-strcoll'.
24316         * modules/unistr/u32-strcoll-tests: New file.
24317         * tests/unistr/test-u32-strcoll.c: New file.
24318
24319         Tests for module 'unistr/u16-strcoll'.
24320         * modules/unistr/u16-strcoll-tests: New file.
24321         * tests/unistr/test-u16-strcoll.c: New file.
24322
24323         Tests for module 'unistr/u8-strcoll'.
24324         * modules/unistr/u8-strcoll-tests: New file.
24325         * tests/unistr/test-u8-strcoll.c: New file.
24326
24327         Tests for module 'unistr/u32-strcmp'.
24328         * modules/unistr/u32-strcmp-tests: New file.
24329         * tests/unistr/test-u32-strcmp.c: New file.
24330         * tests/unistr/test-u32-strcmp.h: New file.
24331
24332         Tests for module 'unistr/u16-strcmp'.
24333         * modules/unistr/u16-strcmp-tests: New file.
24334         * tests/unistr/test-u16-strcmp.c: New file.
24335         * tests/unistr/test-u16-strcmp.h: New file.
24336
24337         Tests for module 'unistr/u8-strcmp'.
24338         * modules/unistr/u8-strcmp-tests: New file.
24339         * tests/unistr/test-u8-strcmp.c: New file.
24340         * tests/unistr/test-u8-strcmp.h: New file.
24341         * tests/unistr/test-strcmp.h: New file.
24342
24343         Tests for module 'unistr/u32-strncat'.
24344         * modules/unistr/u32-strncat-tests: New file.
24345         * tests/unistr/test-u32-strncat.c: New file.
24346
24347         Tests for module 'unistr/u16-strncat'.
24348         * modules/unistr/u16-strncat-tests: New file.
24349         * tests/unistr/test-u16-strncat.c: New file.
24350
24351         Tests for module 'unistr/u8-strncat'.
24352         * modules/unistr/u8-strncat-tests: New file.
24353         * tests/unistr/test-u8-strncat.c: New file.
24354         * tests/unistr/test-strncat.h: New file.
24355
24356         Tests for module 'unistr/u32-strcat'.
24357         * modules/unistr/u32-strcat-tests: New file.
24358         * tests/unistr/test-u32-strcat.c: New file.
24359
24360         Tests for module 'unistr/u16-strcat'.
24361         * modules/unistr/u16-strcat-tests: New file.
24362         * tests/unistr/test-u16-strcat.c: New file.
24363
24364         Tests for module 'unistr/u8-strcat'.
24365         * modules/unistr/u8-strcat-tests: New file.
24366         * tests/unistr/test-u8-strcat.c: New file.
24367         * tests/unistr/test-strcat.h: New file.
24368
24369         Tests for module 'unistr/u32-stpncpy'.
24370         * modules/unistr/u32-stpncpy-tests: New file.
24371         * tests/unistr/test-u32-stpncpy.c: New file.
24372
24373         Tests for module 'unistr/u16-stpncpy'.
24374         * modules/unistr/u16-stpncpy-tests: New file.
24375         * tests/unistr/test-u16-stpncpy.c: New file.
24376
24377         Tests for module 'unistr/u8-stpncpy'.
24378         * modules/unistr/u8-stpncpy-tests: New file.
24379         * tests/unistr/test-u8-stpncpy.c: New file.
24380         * tests/unistr/test-stpncpy.h: New file.
24381
24382         Tests for module 'unistr/u32-strncpy'.
24383         * modules/unistr/u32-strncpy-tests: New file.
24384         * tests/unistr/test-u32-strncpy.c: New file.
24385
24386         Tests for module 'unistr/u16-strncpy'.
24387         * modules/unistr/u16-strncpy-tests: New file.
24388         * tests/unistr/test-u16-strncpy.c: New file.
24389
24390         Tests for module 'unistr/u8-strncpy'.
24391         * modules/unistr/u8-strncpy-tests: New file.
24392         * tests/unistr/test-u8-strncpy.c: New file.
24393         * tests/unistr/test-strncpy.h: New file.
24394
24395         Tests for module 'unistr/u32-stpcpy'.
24396         * modules/unistr/u32-stpcpy-tests: New file.
24397         * tests/unistr/test-u32-stpcpy.c: New file.
24398
24399         Tests for module 'unistr/u16-stpcpy'.
24400         * modules/unistr/u16-stpcpy-tests: New file.
24401         * tests/unistr/test-u16-stpcpy.c: New file.
24402
24403         Tests for module 'unistr/u8-stpcpy'.
24404         * modules/unistr/u8-stpcpy-tests: New file.
24405         * tests/unistr/test-u8-stpcpy.c: New file.
24406         * tests/unistr/test-stpcpy.h: New file.
24407
24408         Tests for module 'unistr/u32-strcpy'.
24409         * modules/unistr/u32-strcpy-tests: New file.
24410         * tests/unistr/test-u32-strcpy.c: New file.
24411
24412         Tests for module 'unistr/u16-strcpy'.
24413         * modules/unistr/u16-strcpy-tests: New file.
24414         * tests/unistr/test-u16-strcpy.c: New file.
24415
24416         Tests for module 'unistr/u8-strcpy'.
24417         * modules/unistr/u8-strcpy-tests: New file.
24418         * tests/unistr/test-u8-strcpy.c: New file.
24419         * tests/unistr/test-strcpy.h: New file.
24420
24421         Tests for module 'unistr/u32-strnlen'.
24422         * modules/unistr/u32-strnlen-tests: New file.
24423         * tests/unistr/test-u32-strnlen.c: New file.
24424
24425         Tests for module 'unistr/u16-strnlen'.
24426         * modules/unistr/u16-strnlen-tests: New file.
24427         * tests/unistr/test-u16-strnlen.c: New file.
24428
24429         Tests for module 'unistr/u8-strnlen'.
24430         * modules/unistr/u8-strnlen-tests: New file.
24431         * tests/unistr/test-u8-strnlen.c: New file.
24432         * tests/unistr/test-strnlen.h: New file.
24433
24434         Tests for module 'unistr/u32-strlen'.
24435         * modules/unistr/u32-strlen-tests: New file.
24436         * tests/unistr/test-u32-strlen.c: New file.
24437
24438         Tests for module 'unistr/u16-strlen'.
24439         * modules/unistr/u16-strlen-tests: New file.
24440         * tests/unistr/test-u16-strlen.c: New file.
24441
24442         Tests for module 'unistr/u8-strlen'.
24443         * modules/unistr/u8-strlen-tests: New file.
24444         * tests/unistr/test-u8-strlen.c: New file.
24445
24446         Tests for module 'unistr/u32-prev'.
24447         * modules/unistr/u32-prev-tests: New file.
24448         * tests/unistr/test-u32-prev.c: New file.
24449
24450         Tests for module 'unistr/u16-prev'.
24451         * modules/unistr/u16-prev-tests: New file.
24452         * tests/unistr/test-u16-prev.c: New file.
24453
24454         Tests for module 'unistr/u8-prev'.
24455         * modules/unistr/u8-prev-tests: New file.
24456         * tests/unistr/test-u8-prev.c: New file.
24457
24458         Tests for module 'unistr/u32-next'.
24459         * modules/unistr/u32-next-tests: New file.
24460         * tests/unistr/test-u32-next.c: New file.
24461
24462         Tests for module 'unistr/u16-next'.
24463         * modules/unistr/u16-next-tests: New file.
24464         * tests/unistr/test-u16-next.c: New file.
24465
24466         Tests for module 'unistr/u8-next'.
24467         * modules/unistr/u8-next-tests: New file.
24468         * tests/unistr/test-u8-next.c: New file.
24469
24470         Tests for module 'unistr/u32-strmbtouc'.
24471         * modules/unistr/u32-strmbtouc-tests: New file.
24472         * tests/unistr/test-u32-strmbtouc.c: New file.
24473
24474         Tests for module 'unistr/u16-strmbtouc'.
24475         * modules/unistr/u16-strmbtouc-tests: New file.
24476         * tests/unistr/test-u16-strmbtouc.c: New file.
24477
24478         Tests for module 'unistr/u8-strmbtouc'.
24479         * modules/unistr/u8-strmbtouc-tests: New file.
24480         * tests/unistr/test-u8-strmbtouc.c: New file.
24481
24482         Tests for module 'unistr/u32-strmblen'.
24483         * modules/unistr/u32-strmblen-tests: New file.
24484         * tests/unistr/test-u32-strmblen.c: New file.
24485
24486         Tests for module 'unistr/u16-strmblen'.
24487         * modules/unistr/u16-strmblen-tests: New file.
24488         * tests/unistr/test-u16-strmblen.c: New file.
24489
24490         Tests for module 'unistr/u8-strmblen'.
24491         * modules/unistr/u8-strmblen-tests: New file.
24492         * tests/unistr/test-u8-strmblen.c: New file.
24493
24494         Tests for module 'unistr/u32-cpy-alloc'.
24495         * modules/unistr/u32-cpy-alloc-tests: New file.
24496         * tests/unistr/test-u32-cpy-alloc.c: New file.
24497
24498         Tests for module 'unistr/u16-cpy-alloc'.
24499         * modules/unistr/u16-cpy-alloc-tests: New file.
24500         * tests/unistr/test-u16-cpy-alloc.c: New file.
24501
24502         Tests for module 'unistr/u8-cpy-alloc'.
24503         * modules/unistr/u8-cpy-alloc-tests: New file.
24504         * tests/unistr/test-u8-cpy-alloc.c: New file.
24505         * tests/unistr/test-cpy-alloc.h: New file.
24506
24507         Tests for module 'unistr/u32-mbsnlen'.
24508         * modules/unistr/u32-mbsnlen-tests: New file.
24509         * tests/unistr/test-u32-mbsnlen.c: New file.
24510
24511         Tests for module 'unistr/u16-mbsnlen'.
24512         * modules/unistr/u16-mbsnlen-tests: New file.
24513         * tests/unistr/test-u16-mbsnlen.c: New file.
24514
24515         Tests for module 'unistr/u8-mbsnlen'.
24516         * modules/unistr/u8-mbsnlen-tests: New file.
24517         * tests/unistr/test-u8-mbsnlen.c: New file.
24518
24519         Tests for module 'unistr/u32-chr'.
24520         * modules/unistr/u32-chr-tests: New file.
24521         * tests/unistr/test-u32-chr.c: New file.
24522
24523         Tests for module 'unistr/u16-chr'.
24524         * modules/unistr/u16-chr-tests: New file.
24525         * tests/unistr/test-u16-chr.c: New file.
24526
24527         Tests for module 'unistr/u8-chr'.
24528         * modules/unistr/u8-chr-tests: New file.
24529         * tests/unistr/test-u8-chr.c: New file.
24530         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
24531
24532         Tests for module 'unistr/u32-cmp2'.
24533         * modules/unistr/u32-cmp2-tests: New file.
24534         * tests/unistr/test-u32-cmp2.c: New file.
24535
24536         Tests for module 'unistr/u16-cmp2'.
24537         * modules/unistr/u16-cmp2-tests: New file.
24538         * tests/unistr/test-u16-cmp2.c: New file.
24539
24540         Tests for module 'unistr/u8-cmp2'.
24541         * modules/unistr/u8-cmp2-tests: New file.
24542         * tests/unistr/test-u8-cmp2.c: New file.
24543         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
24544
24545         Tests for module 'unistr/u32-cmp'.
24546         * modules/unistr/u32-cmp-tests: New file.
24547         * tests/unistr/test-u32-cmp.c: New file.
24548
24549         Tests for module 'unistr/u16-cmp'.
24550         * modules/unistr/u16-cmp-tests: New file.
24551         * tests/unistr/test-u16-cmp.c: New file.
24552
24553         Tests for module 'unistr/u8-cmp'.
24554         * modules/unistr/u8-cmp-tests: New file.
24555         * tests/unistr/test-u8-cmp.c: New file.
24556         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
24557
24558         Tests for module 'unistr/u32-set'.
24559         * modules/unistr/u32-set-tests: New file.
24560         * tests/unistr/test-u32-set.c: New file.
24561
24562         Tests for module 'unistr/u16-set'.
24563         * modules/unistr/u16-set-tests: New file.
24564         * tests/unistr/test-u16-set.c: New file.
24565
24566         Tests for module 'unistr/u8-set'.
24567         * modules/unistr/u8-set-tests: New file.
24568         * tests/unistr/test-u8-set.c: New file.
24569         * tests/unistr/test-set.h: New file.
24570
24571         Tests for module 'unistr/u32-move'.
24572         * modules/unistr/u32-move-tests: New file.
24573         * tests/unistr/test-u32-move.c: New file.
24574
24575         Tests for module 'unistr/u16-move'.
24576         * modules/unistr/u16-move-tests: New file.
24577         * tests/unistr/test-u16-move.c: New file.
24578
24579         Tests for module 'unistr/u8-move'.
24580         * modules/unistr/u8-move-tests: New file.
24581         * tests/unistr/test-u8-move.c: New file.
24582         * tests/unistr/test-move.h: New file.
24583
24584         Tests for module 'unistr/u32-cpy'.
24585         * modules/unistr/u32-cpy-tests: New file.
24586         * tests/unistr/test-u32-cpy.c: New file.
24587
24588         Tests for module 'unistr/u16-cpy'.
24589         * modules/unistr/u16-cpy-tests: New file.
24590         * tests/unistr/test-u16-cpy.c: New file.
24591
24592         Tests for module 'unistr/u8-cpy'.
24593         * modules/unistr/u8-cpy-tests: New file.
24594         * tests/unistr/test-u8-cpy.c: New file.
24595         * tests/unistr/test-cpy.h: New file.
24596
24597 2010-01-09  Bruno Haible  <bruno@clisp.org>
24598
24599         Tests for module 'unistr/u32-uctomb'.
24600         * modules/unistr/u32-uctomb-tests: New file.
24601         * tests/unistr/test-u32-uctomb.c: New file.
24602
24603         Tests for module 'unistr/u16-uctomb'.
24604         * modules/unistr/u16-uctomb-tests: New file.
24605         * tests/unistr/test-u16-uctomb.c: New file.
24606
24607         Tests for module 'unistr/u8-uctomb'.
24608         * modules/unistr/u8-uctomb-tests: New file.
24609         * tests/unistr/test-u8-uctomb.c: New file.
24610
24611         Tests for module 'unistr/u32-mbtoucr'.
24612         * modules/unistr/u32-mbtoucr-tests: New file.
24613         * tests/unistr/test-u32-mbtoucr.c: New file.
24614
24615         Tests for module 'unistr/u16-mbtoucr'.
24616         * modules/unistr/u16-mbtoucr-tests: New file.
24617         * tests/unistr/test-u16-mbtoucr.c: New file.
24618
24619         Tests for module 'unistr/u8-mbtoucr'.
24620         * modules/unistr/u8-mbtoucr-tests: New file.
24621         * tests/unistr/test-u8-mbtoucr.c: New file.
24622
24623         Tests for module 'unistr/u32-mbtouc'.
24624         * modules/unistr/u32-mbtouc-tests: New file.
24625         * tests/unistr/test-u32-mbtouc.c: New file.
24626
24627         Tests for module 'unistr/u16-mbtouc'.
24628         * modules/unistr/u16-mbtouc-tests: New file.
24629         * tests/unistr/test-u16-mbtouc.c: New file.
24630
24631         Tests for module 'unistr/u8-mbtouc'.
24632         * modules/unistr/u8-mbtouc-tests: New file.
24633         * tests/unistr/test-u8-mbtouc.c: New file.
24634
24635         Tests for module 'unistr/u32-mbtouc-unsafe'.
24636         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
24637         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
24638         * tests/unistr/test-u32-mbtouc.h: New file.
24639
24640         Tests for module 'unistr/u16-mbtouc-unsafe'.
24641         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
24642         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
24643         * tests/unistr/test-u16-mbtouc.h: New file.
24644
24645         Tests for module 'unistr/u8-mbtouc-unsafe'.
24646         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
24647         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
24648         * tests/unistr/test-u8-mbtouc.h: New file.
24649
24650         Tests for module 'unistr/u32-mblen'.
24651         * modules/unistr/u32-mblen-tests: New file.
24652         * tests/unistr/test-u32-mblen.c: New file.
24653
24654         Tests for module 'unistr/u16-mblen'.
24655         * modules/unistr/u16-mblen-tests: New file.
24656         * tests/unistr/test-u16-mblen.c: New file.
24657
24658         Tests for module 'unistr/u8-mblen'.
24659         * modules/unistr/u8-mblen-tests: New file.
24660         * tests/unistr/test-u8-mblen.c: New file.
24661
24662         Tests for module 'unistr/u32-to-u16'.
24663         * modules/unistr/u32-to-u16-tests: New file.
24664         * tests/unistr/test-u32-to-u16.c: New file.
24665
24666         Tests for module 'unistr/u32-to-u8'.
24667         * modules/unistr/u32-to-u8-tests: New file.
24668         * tests/unistr/test-u32-to-u8.c: New file.
24669
24670         Tests for module 'unistr/u16-to-u32'.
24671         * modules/unistr/u16-to-u32-tests: New file.
24672         * tests/unistr/test-u16-to-u32.c: New file.
24673
24674         Tests for module 'unistr/u16-to-u8'.
24675         * modules/unistr/u16-to-u8-tests: New file.
24676         * tests/unistr/test-u16-to-u8.c: New file.
24677
24678         Tests for module 'unistr/u8-to-u32'.
24679         * modules/unistr/u8-to-u32-tests: New file.
24680         * tests/unistr/test-u8-to-u32.c: New file.
24681
24682         Tests for module 'unistr/u8-to-u16'.
24683         * modules/unistr/u8-to-u16-tests: New file.
24684         * tests/unistr/test-u8-to-u16.c: New file.
24685
24686         Tests for module 'unistr/u32-check'.
24687         * modules/unistr/u32-check-tests: New file.
24688         * tests/unistr/test-u32-check.c: New file.
24689
24690         Tests for module 'unistr/u16-check'.
24691         * modules/unistr/u16-check-tests: New file.
24692         * tests/unistr/test-u16-check.c: New file.
24693
24694         Tests for module 'unistr/u8-check'.
24695         * modules/unistr/u8-check-tests: New file.
24696         * tests/unistr/test-u8-check.c: New file.
24697
24698         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
24699         (category_equals): New function.
24700         (main): Add more tests.
24701         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
24702
24703         * tests/unictype/test-bidi_byname.c (main): Add more tests.
24704
24705 2010-01-10  Bruno Haible  <bruno@clisp.org>
24706
24707         unistr/u*-strcoll: Try harder to distinguish different strings.
24708         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
24709         compare s1 and s2 to see if they are different.
24710
24711 2010-01-10  Bruno Haible  <bruno@clisp.org>
24712
24713         unistr/u*-stpncpy: Fix the return value.
24714         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
24715         description of the return value consistent with stpncpy in glibc.
24716         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
24717         written non-NUL unit.
24718
24719 2010-01-10  Bruno Haible  <bruno@clisp.org>
24720
24721         unistr/u*-next: Add missing dependencies.
24722         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
24723         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
24724         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
24725
24726 2010-01-10  Bruno Haible  <bruno@clisp.org>
24727
24728         unistr/u8-mbsnlen: Fix return value for incomplete character.
24729         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
24730         u8_mblen.
24731         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
24732         Remove unistr/u8-mblen.
24733         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
24734         u16_mblen.
24735         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
24736         Remove unistr/u16-mblen.
24737
24738 2010-01-10  Bruno Haible  <bruno@clisp.org>
24739
24740         wchar: Fix compilation error when <wchar.h> is used from coreutils.
24741         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
24742         Reported by Brian Gough <bjg@gnu.org> and
24743         Chris Clayton <chris2553@googlemail.com> via
24744         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
24745
24746 2010-01-09  Bruno Haible  <bruno@clisp.org>
24747
24748         unistr/u16-to-u32: Reject invalid input.
24749         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
24750         u16_mbtouc.
24751         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
24752         Remove unistr/u16-mbtouc.
24753
24754         unistr/u16-to-u8: Reject invalid input.
24755         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
24756         u16_mbtouc.
24757         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
24758         Remove unistr/u16-mbtouc.
24759
24760         unistr/u8-to-u32: Reject invalid input.
24761         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
24762         u8_mbtouc.
24763         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
24764         Remove unistr/u8-mbtouc.
24765
24766         unistr/u8-to-u16: Reject invalid input.
24767         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
24768         u8_mbtouc.
24769         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
24770         Remove unistr/u8-mbtouc.
24771
24772 2010-01-09  Bruno Haible  <bruno@clisp.org>
24773
24774         Tests for module 'getlogin'.
24775         * modules/getlogin-tests: New file.
24776         * tests/test-getlogin.c: New file.
24777
24778         New module 'getlogin'.
24779         * lib/unistd.in.h (getlogin): New declaration.
24780         * lib/getlogin.c: New file.
24781         * m4/getlogin.m4: New file.
24782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
24783         HAVE_GETLOGIN.
24784         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
24785         HAVE_GETLOGIN.
24786         * modules/getlogin: New file.
24787         * doc/posix-functions/getlogin.texi: Mention the new module.
24788         Reported by John W. Eaton <jwe@gnu.org>.
24789
24790 2010-01-09  Bruno Haible  <bruno@clisp.org>
24791
24792         getlogin_r: Support for native Windows.
24793         * lib/getlogin_r.c: Include <windows.h>
24794         (getlogin_r): Implement for native Windows.
24795         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
24796         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
24797         via John W. Eaton <jwe@gnu.org>.
24798
24799 2010-01-09  Bruno Haible  <bruno@clisp.org>
24800
24801         getlogin_r: Small fixes.
24802         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
24803         succeeds.
24804         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
24805         before testing whether getlogin_r is declared. No need to set
24806         HAVE_DECL_GETLOGIN_R to 1.
24807         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
24808
24809 2010-01-09  Bruno Haible  <bruno@clisp.org>
24810
24811         * lib/unistd.in.h (getlogin_r): Add comment.
24812
24813 2010-01-09  Bruno Haible  <bruno@clisp.org>
24814
24815         Tests for module 'getlogin_r'.
24816         * modules/getlogin_r-tests: New file.
24817         * tests/test-getlogin_r.c: New file.
24818
24819 2010-01-09  Jim Meyering  <meyering@redhat.com>
24820
24821         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
24822         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
24823         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
24824
24825 2010-01-08  Simon Josefsson  <simon@josefsson.org>
24826
24827         * lib/dup2.c (rpl_dup2): Improve comment.
24828
24829 2010-01-08  Eric Blake  <ebb9@byu.net>
24830
24831         maint.mk: allow packages to add makefile @@ exceptions
24832         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
24833         (sc_makefile_check): Rename...
24834         (sc_makefile_at_at_check): ...to this, and use hook.
24835
24836         dup2: work around mingw bug
24837         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
24838         Reported by Simon Josefsson.
24839
24840 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
24841
24842         glob: Fix C++ compilation.
24843         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
24844         C++.
24845
24846 2010-01-07  Bruno Haible  <bruno@clisp.org>
24847
24848         Fix indentation of wctype.in.h, broken since 2007-01-06.
24849         * lib/wctype.in.h: Fix indentation of preprocessor directives.
24850
24851 2010-01-07  Bruno Haible  <bruno@clisp.org>
24852
24853         mbslen: Avoid collision with system function.
24854         * lib/string.in.h [MirBSD]: Include <wchar.h>.
24855         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
24856         * m4/mbslen.m4: New file.
24857         * modules/mbslen (Files): Add it.
24858         (configure.ac): Invoke gl_MBSLEN.
24859         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
24860         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
24861         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
24862         via Ian Beckwith <ianb@erislabs.net>.
24863
24864 2010-01-07  Bruno Haible  <bruno@clisp.org>
24865
24866         dirent: Document the last fix.
24867         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
24868
24869 2010-01-07  Bruno Haible  <bruno@clisp.org>
24870
24871         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
24872         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
24873         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
24874         va_list are defined.
24875         * doc/posix-headers/stdio.texi: Document the bug of missing types.
24876         Reported by Eric Blake.
24877
24878 2010-01-07  Bruno Haible  <bruno@clisp.org>
24879
24880         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
24881         * modules/xlist (Depends-on): Add 'list',
24882         * modules/xoset (Depends-on): Add 'oset'.
24883         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24884
24885 2010-01-07  Bruno Haible  <bruno@clisp.org>
24886
24887         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
24888         * doc/posix-functions/strncasecmp.texi: Likewise.
24889
24890 2010-01-07  Bruno Haible  <bruno@clisp.org>
24891
24892         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
24893
24894 2010-01-07  John W. Eaton  <jwe@octave.org>
24895
24896         wctype: allow C++ use
24897         * lib/wctype.in.h: Add extern "C" block for C++.
24898
24899 2010-01-06  Eric Blake  <ebb9@byu.net>
24900
24901         maint.mk: detect incorrect GFDL usage
24902         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
24903
24904 2010-01-06  Jim Meyering  <meyering@redhat.com>
24905         and Eric Blake  <ebb9@byu.net>
24906
24907         maint.mk: ignore multi-line copyright in NEWS
24908         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
24909
24910 2010-01-06  Eric Blake  <ebb9@byu.net>
24911
24912         select: add missing dependency
24913         * modules/select-tests (Depends-on): Move sockets dependency...
24914         * modules/select (Depends-on): ...here.
24915         Reported by Ian Beckwith.
24916
24917         doc: regenerate INSTALL
24918         * doc/INSTALL: Reflect recent autoconf update.
24919         * doc/INSTALL.ISO: Likewise.
24920         * doc/INSTALL.UTF-8: Likewise.
24921
24922         pread: fix compilation on glibc
24923         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
24924         Reported by Ralf Wildenhues.
24925
24926         dirent: fix test failure
24927         * lib/dirent.in.h (includes): Guarantee ino_t.
24928         Reported by Ralf Wildenhues.
24929
24930 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
24931
24932         linkat, renameat: avoid bad free
24933         * lib/at-func2.c (at_func2): Fix typo.
24934         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
24935
24936 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24937
24938         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
24939         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
24940         to avoid failure of symlink test later.
24941
24942 2010-01-06  Eric Blake  <ebb9@byu.net>
24943
24944         stdio, unistd: guarantee ssize_t
24945         * lib/unistd.in.h (includes): Ensure that types required by POSIX
24946         2008 are exposed when needed.
24947         * lib/stdio.in.h (includes): Likewise.
24948         Reported by Ralf Wildenhues.
24949
24950 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
24951
24952         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
24953         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
24954         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
24955
24956 2010-01-06  Jim Meyering  <meyering@redhat.com>
24957
24958         readtokens: this module *does* require xalloc.h
24959         It uses only functions that were omitted by the old syntax-check rule.
24960         * lib/readtokens.c: Include "xalloc.h" once again.
24961         * modules/readtokens (Depends-on): Add xalloc.
24962         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
24963
24964 2010-01-05  Eric Blake  <ebb9@byu.net>
24965
24966         maint: support 'make announcement' from a VPATH build
24967         * top/maint.mk (announcement): Look for correct NEWS file.
24968
24969 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
24970
24971         utimens (fdutimens): ignore a negative FD, per contract
24972         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
24973         when we have a valid file descriptor.  Otherwise, using a brand
24974         new glibc (with just-patched futimens that now fails with EBADF)
24975         would cause this function to fail with ENOSYS.
24976         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
24977         See also http://bugzilla.redhat.com/552320.
24978
24979 2010-01-05  Eric Blake  <ebb9@byu.net>
24980
24981         strcase: document what it provides
24982         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
24983         gnulib module.
24984         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
24985         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
24986
24987 2010-01-05  Jim Meyering  <meyering@redhat.com>
24988
24989         maint: remove useless inclusions of "xalloc.h"
24990         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
24991         * lib/readtokens.c: Likewise.
24992         * lib/same.c: Likewise.
24993         * modules/getloadavg (Depends-on): Remove xalloc.
24994         * modules/readtokens: Likewise.
24995         * modules/same: Likewise.
24996
24997         maint.mk: include 4 more function names in alloca.h-checking regexp
24998         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
24999         regexp.  Before, we would give a false-positive (saying alloca.h
25000         is included unnecessarily) when the only uses involved omitted symbols.
25001
25002         xalloc.h: use consistent formatting
25003         * lib/xalloc.h: Move declarations to start in the first column.
25004
25005 2010-01-05  Eric Blake  <ebb9@byu.net>
25006
25007         mkdir: avoid xalloc
25008         * lib/mkdir.c (includes): Drop unused header.
25009         Reported by John W. Eaton.
25010
25011 2010-01-04  Jim Meyering  <meyering@redhat.com>
25012
25013         nl_langinfo: avoid configure-time syntax error
25014         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
25015         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
25016         the empty string.  Don't let that provoke a shell syntax error.
25017
25018         regcomp, regexec, fnmatch: avoid array bounds read error
25019         * lib/regcomp.c (build_equiv_class): From glibc:
25020         Use only the low 24 bits of a findidx return value as an index
25021         into the weights array.  Patch by Ulrich Drepper:
25022         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
25023         * lib/regexec.c (check_node_accept_bytes): Likewise.
25024         * lib/fnmatch_loop.c (FCT): Likewise.
25025
25026         regcomp: skip collseq lookup when there are no rules
25027         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
25028         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
25029
25030         regcomp: recognize ill-formed { } expressions
25031         * lib/regcomp.c (parse_dup_op): From glibc:
25032         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
25033
25034         regcomp: fix typo in comment
25035         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
25036         s/satisfy/satisfies/.
25037
25038         regcomp: sync from glibc: remove dead store
25039         * lib/regcomp.c (duplicate_node_closure): Remove useless
25040         search_duplicated_node call and dead store.
25041
25042         regcomp: sync from glibc; always use nl_langinfo
25043         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
25044         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
25045         * modules/regex (Depends-on): Add nl_langinfo.
25046
25047 2010-01-04  Eric Blake  <ebb9@byu.net>
25048
25049         fdopendir: fix configure test
25050         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
25051
25052 2010-01-01  Bruno Haible  <bruno@clisp.org>
25053
25054         wchar: Remove unused configure check.
25055         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
25056
25057 2010-01-01  Eric Blake  <ebb9@byu.net>
25058
25059         headers: make check of system header explicit
25060         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
25061         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
25062         ourselves.
25063         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25064         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25065         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
25066         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
25067         internals.
25068         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
25069         missing.
25070         Suggested by Bruno Haible.
25071
25072 2010-01-01  Jim Meyering  <meyering@redhat.com>
25073
25074         ChangeLog: tweak to eliminate unnecessary copyright line
25075         * ChangeLog: Remove a copyright line that was mistakenly updated
25076         by today's update-copyright run.  Reported by Eric Blake.
25077
25078         test-update-copyright: don't let envvar setting cause test failure
25079         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25080
25081 2010-01-01  Bruno Haible  <bruno@clisp.org>
25082
25083         localename: Avoid gcc warning.
25084         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
25085         function if it is not used.
25086
25087 2010-01-01  Jim Meyering  <meyering@redhat.com>
25088
25089         update nearly all FSF copyright year lists to include 2010
25090         Use the same procedure as for 2009, outlined in
25091         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
25092
25093         version-etc: set COPYRIGHT_YEAR to 2010
25094         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
25095
25096 2009-12-31  Eric Blake  <ebb9@byu.net>
25097
25098         doc: correct availability of cygwin 1.5.x getopt
25099         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
25100         variables.
25101         * doc/posix-functions/opterr.texi (opterr): Likewise.
25102         * doc/posix-functions/optind.texi (optind): Likewise.
25103         * doc/posix-functions/optopt.texi (optopt): Likewise.
25104         * doc/posix-functions/tzname.texi (tzname): Likewise.
25105
25106         openat: update maintainer
25107         * modules/openat (Maintainer): Add myself.
25108
25109         utimens: avoid shadowing warning
25110         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
25111         buffers into one, to avoid shadowing, as well as avoiding a
25112         redundant stat.
25113         Reported by Jim Meyering.
25114
25115         test-dup2: avoid compiler warning
25116         * tests/test-dup2.c (is_inheritable): Only define if used.
25117
25118 2010-01-01  Bruno Haible  <bruno@clisp.org>
25119
25120         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
25121         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
25122         defined, use wctomb instead of wcrtomb.
25123
25124 2010-01-01  Bruno Haible  <bruno@clisp.org>
25125
25126         iconv: Reject native Solaris iconv.
25127         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
25128         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
25129
25130 2009-12-31  Bruno Haible  <bruno@clisp.org>
25131
25132         * tests/test-signal.c (main): Remove test of 'SIG'.
25133
25134 2009-12-31  Bruno Haible  <bruno@clisp.org>
25135
25136         spawn: Fix incomplete fix.
25137         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25138         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25139         warnings for GNULIB_POSIXCHECK again.
25140         Reported by Eric Blake.
25141
25142 2009-12-31  Bruno Haible  <bruno@clisp.org>
25143
25144         Avoid namespace pollution on glibc systems.
25145         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
25146         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
25147         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25148         glibc systems.
25149
25150 2009-12-31  Bruno Haible  <bruno@clisp.org>
25151
25152         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
25153         (gl_REPLACE_WCHAR_H): Turn into a no-op.
25154         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
25155         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
25156         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
25157         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
25158         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
25159
25160 2009-12-31  Bruno Haible  <bruno@clisp.org>
25161
25162         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25163         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
25164         afterwards.
25165
25166 2009-12-31  Bruno Haible  <bruno@clisp.org>
25167
25168         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
25169         SYS_UTSNAME_H.
25170
25171 2009-12-31  Bruno Haible  <bruno@clisp.org>
25172
25173         spawn: Fix misapplied patch.
25174         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25175         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25176         warnings for GNULIB_POSIXCHECK.
25177
25178 2009-12-31  Bruno Haible  <bruno@clisp.org>
25179
25180         times: Update after sys_times changed.
25181         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
25182         * modules/times (Files): Add it.
25183         (configure.ac): Invoke gl_FUNC_TIMES.
25184
25185 2009-12-31  Bruno Haible  <bruno@clisp.org>
25186
25187         Use AC_C_INLINE where necessary.
25188         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
25189         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
25190         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25191         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25192         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25193         * m4/mbiter.m4 (gl_MBITER): Likewise.
25194         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25195         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25196         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
25197         * modules/u64 (configure.ac): Likewise.
25198
25199 2009-12-31  Bruno Haible  <bruno@clisp.org>
25200
25201         Use AC_C_INLINE instead of module 'inline' where possible.
25202         * modules/inline (Description): Clarify purpose.
25203         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
25204         * modules/count-one-bits (Depends-on): Remove inline.
25205         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
25206         * modules/openat (Depends-on): Remove inline.
25207         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
25208         instead of depending on module 'inline'.
25209         * modules/filevercmp (Depends-on, configure.ac): Likewise.
25210         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
25211         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
25212         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
25213         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
25214         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
25215         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
25216         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
25217         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
25218         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
25219         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
25220         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
25221         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
25222         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
25223         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
25224         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
25225         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
25226         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
25227         Likewise.
25228         * modules/unictype/property-ascii-hex-digit (Depends-on,
25229         configure.ac): Likewise.
25230         * modules/unictype/property-bidi-arabic-digit (Depends-on,
25231         configure.ac): Likewise.
25232         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
25233         configure.ac): Likewise.
25234         * modules/unictype/property-bidi-block-separator (Depends-on,
25235         configure.ac): Likewise.
25236         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
25237         configure.ac): Likewise.
25238         * modules/unictype/property-bidi-common-separator (Depends-on,
25239         configure.ac): Likewise.
25240         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
25241         Likewise.
25242         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
25243         configure.ac): Likewise.
25244         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
25245         configure.ac): Likewise.
25246         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
25247         configure.ac): Likewise.
25248         * modules/unictype/property-bidi-european-digit (Depends-on,
25249         configure.ac): Likewise.
25250         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
25251         configure.ac): Likewise.
25252         * modules/unictype/property-bidi-left-to-right (Depends-on,
25253         configure.ac): Likewise.
25254         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
25255         configure.ac): Likewise.
25256         * modules/unictype/property-bidi-other-neutral (Depends-on,
25257         configure.ac): Likewise.
25258         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
25259         Likewise.
25260         * modules/unictype/property-bidi-segment-separator (Depends-on,
25261         configure.ac): Likewise.
25262         * modules/unictype/property-bidi-whitespace (Depends-on,
25263         configure.ac): Likewise.
25264         * modules/unictype/property-combining (Depends-on, configure.ac):
25265         Likewise.
25266         * modules/unictype/property-composite (Depends-on, configure.ac):
25267         Likewise.
25268         * modules/unictype/property-currency-symbol (Depends-on,
25269         configure.ac): Likewise.
25270         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
25271         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
25272         Likewise.
25273         * modules/unictype/property-default-ignorable-code-point (Depends-on,
25274         configure.ac): Likewise.
25275         * modules/unictype/property-deprecated (Depends-on, configure.ac):
25276         Likewise.
25277         * modules/unictype/property-diacritic (Depends-on, configure.ac):
25278         Likewise.
25279         * modules/unictype/property-extender (Depends-on, configure.ac):
25280         Likewise.
25281         * modules/unictype/property-format-control (Depends-on, configure.ac):
25282         Likewise.
25283         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
25284         Likewise.
25285         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
25286         Likewise.
25287         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
25288         Likewise.
25289         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
25290         Likewise.
25291         * modules/unictype/property-hyphen (Depends-on, configure.ac):
25292         Likewise.
25293         * modules/unictype/property-id-continue (Depends-on, configure.ac):
25294         Likewise.
25295         * modules/unictype/property-id-start (Depends-on, configure.ac):
25296         Likewise.
25297         * modules/unictype/property-ideographic (Depends-on, configure.ac):
25298         Likewise.
25299         * modules/unictype/property-ids-binary-operator (Depends-on,
25300         configure.ac): Likewise.
25301         * modules/unictype/property-ids-trinary-operator (Depends-on,
25302         configure.ac): Likewise.
25303         * modules/unictype/property-ignorable-control (Depends-on,
25304         configure.ac): Likewise.
25305         * modules/unictype/property-iso-control (Depends-on, configure.ac):
25306         Likewise.
25307         * modules/unictype/property-join-control (Depends-on, configure.ac):
25308         Likewise.
25309         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
25310         Likewise.
25311         * modules/unictype/property-line-separator (Depends-on, configure.ac):
25312         Likewise.
25313         * modules/unictype/property-logical-order-exception (Depends-on,
25314         configure.ac): Likewise.
25315         * modules/unictype/property-lowercase (Depends-on, configure.ac):
25316         Likewise.
25317         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
25318         * modules/unictype/property-non-break (Depends-on, configure.ac):
25319         Likewise.
25320         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
25321         Likewise.
25322         * modules/unictype/property-numeric (Depends-on, configure.ac):
25323         Likewise.
25324         * modules/unictype/property-other-alphabetic (Depends-on,
25325         configure.ac): Likewise.
25326         * modules/unictype/property-other-default-ignorable-code-point
25327         (Depends-on, configure.ac): Likewise.
25328         * modules/unictype/property-other-grapheme-extend (Depends-on,
25329         configure.ac): Likewise.
25330         * modules/unictype/property-other-id-continue (Depends-on,
25331         configure.ac): Likewise.
25332         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
25333         Likewise.
25334         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
25335         Likewise.
25336         * modules/unictype/property-other-math (Depends-on, configure.ac):
25337         Likewise.
25338         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
25339         Likewise.
25340         * modules/unictype/property-paired-punctuation (Depends-on,
25341         configure.ac): Likewise.
25342         * modules/unictype/property-paragraph-separator (Depends-on,
25343         configure.ac): Likewise.
25344         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
25345         Likewise.
25346         * modules/unictype/property-pattern-white-space (Depends-on,
25347         configure.ac): Likewise.
25348         * modules/unictype/property-private-use (Depends-on, configure.ac):
25349         Likewise.
25350         * modules/unictype/property-punctuation (Depends-on, configure.ac):
25351         Likewise.
25352         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
25353         Likewise.
25354         * modules/unictype/property-radical (Depends-on, configure.ac):
25355         Likewise.
25356         * modules/unictype/property-sentence-terminal (Depends-on,
25357         configure.ac): Likewise.
25358         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
25359         Likewise.
25360         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
25361         * modules/unictype/property-terminal-punctuation (Depends-on,
25362         configure.ac): Likewise.
25363         * modules/unictype/property-titlecase (Depends-on, configure.ac):
25364         Likewise.
25365         * modules/unictype/property-unassigned-code-value (Depends-on,
25366         configure.ac): Likewise.
25367         * modules/unictype/property-unified-ideograph (Depends-on,
25368         configure.ac): Likewise.
25369         * modules/unictype/property-uppercase (Depends-on, configure.ac):
25370         Likewise.
25371         * modules/unictype/property-variation-selector (Depends-on,
25372         configure.ac): Likewise.
25373         * modules/unictype/property-white-space (Depends-on, configure.ac):
25374         Likewise.
25375         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
25376         Likewise.
25377         * modules/unictype/property-xid-start (Depends-on, configure.ac):
25378         Likewise.
25379         * modules/unictype/property-zero-width (Depends-on, configure.ac):
25380         Likewise.
25381         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
25382         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
25383         Likewise.
25384
25385 2009-12-31  Bruno Haible  <bruno@clisp.org>
25386
25387         Remove unnecessary AC_C_INLINE invocation.
25388         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
25389         since 2009-08-21.
25390
25391 2009-12-31  Jim Meyering  <meyering@redhat.com>
25392
25393         maint.mk: don't require explicit gpg_key_ID in cfg.mk
25394         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
25395         With this change, we can all remove the gpg_key_ID = ... definition
25396         from our respective cfg.mk files.
25397
25398         maint.mk: create announcement template in ~/, not in /tmp
25399         * top/maint.mk (emit_upload_commands): Adjust.
25400         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
25401         Remove temporary file, .ci-msg.
25402
25403 2009-12-31  Eric Blake  <ebb9@byu.net>
25404
25405         link-warning: always build headers with link warnings
25406         * modules/arpa_inet (Makefile.am): Always build replacement
25407         header.
25408         * modules/ctype (Makefile.am): Likewise.
25409         * modules/dirent (Makefile.am): Likewise.
25410         * modules/inttypes (Makefile.am): Likewise.
25411         * modules/langinfo (Makefile.am): Likewise.
25412         * modules/locale (Makefile.am): Likewise.
25413         * modules/spawn (Makefile.am): Likewise.
25414         * modules/sys_file (Makefile.am): Likewise.
25415         * modules/sys_ioctl (Makefile.am): Likewise.
25416         * modules/sys_select (Makefile.am): Likewise.
25417         * modules/sys_socket (Makefile.am): Likewise.
25418         * modules/sys_times (Makefile.am): Likewise.
25419         * modules/sys_utsname (Makefile.am): Likewise.
25420         * modules/sys_wait (Makefile.am): Likewise.
25421         * modules/wchar (Makefile.am): Likewise.
25422         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
25423         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
25424         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
25425         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
25426         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
25427         Likewise.
25428         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25429         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25430         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
25431         Likewise.
25432         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
25433         Likewise.
25434         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25435         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
25436         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
25437         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25438         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25439         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25440         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25441         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
25442         (gl_WCHAR_H_DEFAULTS): Likewise.
25443
25444 2009-12-31  Eric Blake  <ebb9@byu.net>
25445
25446         signal, spawn: use link warnings
25447         * lib/signal.in.h (sigset_t): Make unconditional.
25448         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
25449         (sigpending, sigprocmask, sigaction): Add link warnings.
25450         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
25451         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
25452         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
25453         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
25454         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
25455         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
25456         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
25457         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
25458         (posix_spawn_file_actions_destroy)
25459         (posix_spawn_file_actions_addopen)
25460         (posix_spawn_file_actions_addclose)
25461         (posix_spawn_file_actions_adddup2): Likewise.
25462         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
25463         * tests/test-signal.c (main): Enhance test.
25464
25465         spawn: improve wrapper support
25466         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
25467         (gl_SPAWN_H_DEFAULTS): New defaults.
25468         * modules/spawn (Makefile.am): Substitute them.
25469         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
25470         Only declare if missing or broken.
25471
25472         sys_times, sys_utsname: use include_next
25473         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
25474         header.
25475         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
25476         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25477         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25478         * modules/sys_times (Depends-on): Add include_next.
25479         (Makefile.am): Substitute additional values.
25480         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25481         * lib/sys_times.in.h (includes): Include native header, if
25482         available.
25483         * lib/sys_utsname.in.h (includes): Likewise.
25484         * tests/test-sys_times.c (main): Enhance test.
25485
25486         fdutimensat: revert prior patch
25487         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
25488         utimens.h.
25489         Reported by Bruno Haible.
25490
25491 2009-12-30  Eric Blake  <ebb9@byu.net>
25492
25493         sys_wait: drop link-warning dependency
25494         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
25495         link-warning efforts.
25496         * lib/sys_wait.in.h: Likewise.
25497
25498         fdutimensat: remove bogus dependency
25499         * modules/fdutimensat (Depends-on): Drop inline.
25500
25501         unistd: fix typo
25502         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
25503
25504 2009-12-30  Bruno Haible  <bruno@clisp.org>
25505
25506         Fix compilation error with Solaris cc.
25507         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
25508         * lib/unicase/u16-is-invariant.c: Likewise.
25509         * lib/unicase/u32-is-invariant.c: Likewise.
25510         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25511
25512 2009-12-30  Bruno Haible  <bruno@clisp.org>
25513
25514         Fix test crash.
25515         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
25516         locales.
25517         Reported by Simon Josefsson <simon@josefsson.org>.
25518
25519 2009-12-30  Bruno Haible  <bruno@clisp.org>
25520
25521         Fix compilation error on most platforms.
25522         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
25523         Reported by Simon Josefsson <simon@josefsson.org>
25524         and Nelson H. F. Beebe <beebe@math.utah.edu>.
25525
25526 2009-12-30  Eric Blake  <ebb9@byu.net>
25527
25528         futimens, utimensat: work around ntfs-3g bug
25529         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
25530         a ctime bug is present, and expand workaround to cover ntfs-3g.
25531         * lib/utimens.c (fdutimens, lutimens): Likewise.
25532         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
25533         (validate_timespec): Adjust return value.
25534         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
25535         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25536         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
25537
25538 2009-12-29  Eric Blake  <ebb9@byu.net>
25539
25540         link-warning: make usage consistent
25541         * modules/ctype (Depends-on): Add link-warning.
25542         (Makefile.am): Update rules accordingly.
25543         * modules/langinfo (Depends-on, Makefile.am): Likewise.
25544         * modules/locale (Depends-on, Makefile.am): Likewise.
25545         * modules/sys_file (Makefile.am): Likewise.
25546         * modules/getopt-posix (Makefile.am): Delete unused link warning
25547         efforts.
25548         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
25549         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
25550         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
25551         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
25552
25553         stdio: remove unused variables
25554         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
25555         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
25556         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25557
25558         tests: test more substitute headers
25559         * modules/ctype-tests: New file.
25560         * modules/dirent-tests: Likewise.
25561         * modules/spawn-tests: Likewise.
25562         * modules/sys_file-tests: Likewise.
25563         * modules/sys_ioctl-tests: Likewise.
25564         * modules/sys_wait-tests: Likewise.
25565         * tests/test-ctype.c: Likewise.
25566         * tests/test-dirent.c: Likewise.
25567         * tests/test-spawn.c: Likewise.
25568         * tests/test-sys_file.c: Likewise.
25569         * tests/test-sys_ioctl.c: Likewise.
25570         * tests/test-sys_wait.c: Likewise.
25571         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
25572         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
25573         whether or not flock is in use.
25574
25575         tests: remove License section from module
25576         * modules/arpa_inet-tests: Remove unneeded section.
25577         * modules/byteswap-tests: Likewise.
25578         * modules/ceilf-tests: Likewise.
25579         * modules/ceill-tests: Likewise.
25580         * modules/crypto/des-tests: Likewise.
25581         * modules/crypto/gc-arcfour-tests: Likewise.
25582         * modules/crypto/gc-arctwo-tests: Likewise.
25583         * modules/crypto/gc-des-tests: Likewise.
25584         * modules/crypto/gc-hmac-md5-tests: Likewise.
25585         * modules/crypto/gc-hmac-sha1-tests: Likewise.
25586         * modules/crypto/gc-md2-tests: Likewise.
25587         * modules/crypto/gc-md4-tests: Likewise.
25588         * modules/crypto/gc-md5-tests: Likewise.
25589         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
25590         * modules/crypto/gc-rijndael-tests: Likewise.
25591         * modules/crypto/gc-sha1-tests: Likewise.
25592         * modules/crypto/gc-tests: Likewise.
25593         * modules/crypto/md2-tests: Likewise.
25594         * modules/crypto/md4-tests: Likewise.
25595         * modules/fcntl-h-tests: Likewise.
25596         * modules/floorf-tests: Likewise.
25597         * modules/floorl-tests: Likewise.
25598         * modules/frexp-nolibm-tests: Likewise.
25599         * modules/frexp-tests: Likewise.
25600         * modules/frexpl-nolibm-tests: Likewise.
25601         * modules/frexpl-tests: Likewise.
25602         * modules/getaddrinfo-tests: Likewise.
25603         * modules/inttypes-tests: Likewise.
25604         * modules/isfinite-tests: Likewise.
25605         * modules/isinf-tests: Likewise.
25606         * modules/ldexpl-tests: Likewise.
25607         * modules/locale-tests: Likewise.
25608         * modules/math-tests: Likewise.
25609         * modules/netdb-tests: Likewise.
25610         * modules/netinet_in-tests: Likewise.
25611         * modules/printf-frexp-tests: Likewise.
25612         * modules/printf-frexpl-tests: Likewise.
25613         * modules/priv-set-tests: Likewise.
25614         * modules/random_r-tests: Likewise.
25615         * modules/round-tests: Likewise.
25616         * modules/roundf-tests: Likewise.
25617         * modules/roundl-tests: Likewise.
25618         * modules/search-tests: Likewise.
25619         * modules/select-tests: Likewise.
25620         * modules/signal-tests: Likewise.
25621         * modules/stdbool-tests: Likewise.
25622         * modules/stddef-tests: Likewise.
25623         * modules/stdint-tests: Likewise.
25624         * modules/stdio-tests: Likewise.
25625         * modules/stdlib-tests: Likewise.
25626         * modules/string-tests: Likewise.
25627         * modules/strings-tests: Likewise.
25628         * modules/sys_select-tests: Likewise.
25629         * modules/sys_socket-tests: Likewise.
25630         * modules/sys_stat-tests: Likewise.
25631         * modules/sys_time-tests: Likewise.
25632         * modules/sys_utsname-tests: Likewise.
25633         * modules/sysexits-tests: Likewise.
25634         * modules/time-tests: Likewise.
25635         * modules/trunc-tests: Likewise.
25636         * modules/truncf-tests: Likewise.
25637         * modules/truncl-tests: Likewise.
25638         * modules/tsearch-tests: Likewise.
25639         * modules/unistd-tests: Likewise.
25640         * modules/wchar-tests: Likewise.
25641         * modules/wctype-tests: Likewise.
25642
25643         tests: fix license on several tests
25644         * tests/test-des.c: Update to GPLv3+.
25645         * tests/test-flock.c: Likewise.
25646         * tests/test-fsync.c: Likewise.
25647         * tests/test-futimens.h: Likewise.
25648         * tests/test-gc-arcfour.c: Likewise.
25649         * tests/test-gc-arctwo.c: Likewise.
25650         * tests/test-gc-des.c: Likewise.
25651         * tests/test-gc-hmac-md5.c: Likewise.
25652         * tests/test-gc-hmac-sha1.c: Likewise.
25653         * tests/test-gc-md2.c: Likewise.
25654         * tests/test-gc-md4.c: Likewise.
25655         * tests/test-gc-md5.c: Likewise.
25656         * tests/test-gc-pbkdf2-sha1.c: Likewise.
25657         * tests/test-gc-rijndael.c: Likewise.
25658         * tests/test-gc-sha1.c: Likewise.
25659         * tests/test-gc.c: Likewise.
25660         * tests/test-getcwd.c: Likewise.
25661         * tests/test-link.c: Likewise.
25662         * tests/test-link.h: Likewise.
25663         * tests/test-lutimens.h: Likewise.
25664         * tests/test-md2.c: Likewise.
25665         * tests/test-md4.c: Likewise.
25666         * tests/test-mkdir.h: Likewise.
25667         * tests/test-rename.c: Likewise.
25668         * tests/test-rename.h: Likewise.
25669         * tests/test-safe-alloc.c: Likewise.
25670         * tests/test-utimens-common.h: Likewise.
25671         * tests/test-utimens.h: Likewise.
25672
25673         maint: sync license texts
25674         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
25675         * doc/gpl-3.0.texi: Revert copyright year update.
25676         * doc/lgpl-3.0.texi: Likewise.
25677
25678 2009-12-29  Jim Meyering  <meyering@redhat.com>
25679
25680         update nearly all FSF copyright year lists to include 2009
25681         The files named by the following are exempted:
25682             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
25683               test -f "$dst" && { echo "$dst"; continue; }
25684               test -d "$dst" || continue
25685               echo "$dst"/$(basename "$src")
25686             done > exempt
25687             git ls-files tests/unictype >> exempt
25688         In the remaining files, convert to all-interval notation if
25689         - there is already at least one year interval like 2000-2003
25690         - the file is maintained by me
25691         - the file is in lib/uni*/, where that style already prevails
25692         Otherwise, use update-copyright's default.
25693
25694 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25695         and Eric Blake  <ebb9@byu.net>
25696
25697         tests: don't require debug system() to pass
25698         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
25699         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25700         * tests/test-unlink.h (test_unlink_func): Likewise.
25701         * tests/test-fstatat.c (main): ...into callers.
25702         * tests/test-lstat.c (main): Likewise.
25703         * tests/test-rmdir.c (main): Likewise.
25704         * tests/test-unlink.c (main): Likewise.
25705         * tests/test-unlinkat.c (main): Likewise.
25706         * tests/test-areadlink-with-size.c (main): Don't require a
25707         debug-only system call to pass, aiding cross-testing to mingw.
25708         * tests/test-areadlink.c (main): Likewise.
25709         * tests/test-areadlinkat-with-size.c (main): Likewise.
25710         * tests/test-areadlinkat.c (main): Likewise.
25711         * tests/test-canonicalize-lgpl.c (main): Likewise.
25712         * tests/test-canonicalize.c (main): Likewise.
25713         * tests/test-chown.c (main): Likewise.
25714         * tests/test-fchownat.c (main): Likewise.
25715         * tests/test-lchown.c (main): Likewise.
25716         * tests/test-fdutimensat.c (main): Likewise.
25717         * tests/test-futimens.c (main): Likewise.
25718         * tests/test-link.c (main): Likewise.
25719         * tests/test-linkat.c (main): Likewise.
25720         * tests/test-mkdir.c (main): Likewise.
25721         * tests/test-mkdirat.c (main): Likewise.
25722         * tests/test-mkfifo.c (main): Likewise.
25723         * tests/test-mkfifoat.c (main): Likewise.
25724         * tests/test-mknod.c (main): Likewise.
25725         * tests/test-readlink.c (main): Likewise.
25726         * tests/test-remove.c (main): Likewise.
25727         * tests/test-rename.c (main): Likewise.
25728         * tests/test-renameat.c (main): Likewise.
25729         * tests/test-symlink.c (main): Likewise.
25730         * tests/test-symlinkat.c (main): Likewise.
25731         * tests/test-utimens.c (main): Likewise.
25732         * tests/test-utimensat.c (main): Likewise.
25733
25734 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25735
25736         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
25737         on $(UNUSED_PARAMETER_H) to avoid build failure.
25738
25739 2009-12-28  Jim Meyering  <meyering@redhat.com>
25740
25741         update-copyright: you may specify a max. line length other than 72
25742         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25743
25744         maint: use consistent FSF copyright line syntax
25745         * lib/posixtm.c: Add missing comma in FSF copyright line.
25746         * lib/posixtm.h: Likewise.
25747         * lib/getugroups.c: Add missing ", Inc.".
25748
25749         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
25750         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
25751         FSF copyright line.  Remove trailing blanks.
25752
25753 2009-12-28  Eric Blake  <ebb9@byu.net>
25754
25755         test-dup2: reduce dependencies
25756         * modules/cloexec (Configure.ac): Set witness.
25757         * modules/dup2-tests (Depends-on): Drop cloexec.
25758         * tests/test-dup2.c (main): Skip portion of test if cloexec module
25759         not present.
25760         Suggested by Bruno Haible.
25761
25762 2009-12-26  Bruno Haible  <bruno@clisp.org>
25763
25764         Remove an unneeded dependency.
25765         * modules/fseterr (Depends-on): Remove dup2.
25766
25767 2009-12-26  Eric Blake  <ebb9@byu.net>
25768
25769         tests: use macros.h in more places
25770         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
25771         (ASSERT_STREAM): Provide default of stderr.
25772         * tests/test-dirent-safer.c: Include macros.h, using alternate
25773         stream for assertions.
25774         * tests/test-dup-safer.c: Likewise.
25775         * tests/test-freopen-safer.c: Likewise.
25776         * tests/test-getopt.c: Likewise.
25777         * tests/test-openat-safer.c: Likewise.
25778         * tests/test-pipe.c: Likewise.
25779         * tests/test-popen-safer.c: Likewise.
25780         * modules/dirent-safer-tests (Files): Include macros.h.
25781         * modules/unistd-safer-tests (Files): Likewise.
25782         * modules/freopen-safer-tests (Files): Likewise.
25783         * modules/getopt-posix-tests (Files): Likewise.
25784         * modules/openat-safer-tests (Files): Likewise.
25785         * modules/pipe-tests (Files): Likewise.
25786
25787 2009-12-26  Bruno Haible  <bruno@clisp.org>
25788
25789         javacomp: Portability fix.
25790         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
25791         that it also works on Solaris.
25792
25793 2009-12-26  Bruno Haible  <bruno@clisp.org>
25794
25795         localename: Fix storage allocation of gl_locale_name_thread's result.
25796         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
25797         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
25798         all platforms that have 'uselocale'.
25799         (gl_locale_name_thread_unsafe): New function, extracted from
25800         gl_locale_name_thread.
25801         (gl_locale_name_thread): Call struniq on all platforms that have
25802         'uselocale'.
25803         * tests/test-localename.c (test_locale_name_thread): Check that the
25804         resulting strings are permanently allocated.
25805         * modules/localename-tests (Depends-on): Add strdup.
25806
25807 2009-12-26  Bruno Haible  <bruno@clisp.org>
25808
25809         * tests/test-localename.c (categories): Fill in the strings.
25810
25811 2009-12-26  Jim Meyering  <meyering@redhat.com>
25812
25813         isdir: complete the removal of m4/isdir.m4
25814         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
25815
25816         isdir: clean up, since at least grep still uses it
25817         * lib/isdir.c: Include "isdir.h".
25818         (S_ISDIR): Remove now-unneeded definition.
25819         * modules/isdir (Files): Add lib/isdir.h.
25820         * lib/isdir.h: New file, with declaration.
25821         * m4/isdir.m4: Remove file -- unneeded.
25822
25823 2009-12-25  Bruno Haible  <bruno@clisp.org>
25824
25825         selinux-h: Make generated .h files standalone.
25826         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
25827         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
25828         * lib/se-selinux.in.h: Likewise.
25829         * modules/selinux-h (Depends-on): Add unused-parameter.
25830         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
25831         selinux/selinux.h and selinux/context.h.
25832         Suggested by Eric Blake.
25833
25834 2009-12-25  Bruno Haible  <bruno@clisp.org>
25835
25836         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
25837         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
25838         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
25839         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
25840         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
25841
25842 2009-12-24  Bruno Haible  <bruno@clisp.org>
25843
25844         openat: Fix warning.
25845         * lib/openat-proc.c: Include <unistd.h>.
25846
25847 2009-12-24  Bruno Haible  <bruno@clisp.org>
25848
25849         New module 'unused-parameter'.
25850         * build-aux/unused-parameter.h: New file, extracted from earlier
25851         gnulib-common.m4.
25852         * modules/unused-parameter: New file.
25853         * lib/unistr.h: Include unused-parameter.h.
25854         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
25855         _GL_UNUSED.
25856         * modules/unistr/base (Depends-on): Add unused-parameter.
25857
25858 2009-12-24  Bruno Haible  <bruno@clisp.org>
25859
25860         Add missing dependencies to 'extensions' module.
25861         * m4/extensions.m4: Add comment.
25862         * modules/accept4 (Depends-on): Add extensions.
25863         * modules/dup3 (Depends-on): Likewise.
25864         * modules/fcntl (Depends-on): Likewise.
25865         * modules/futimens (Depends-on): Likewise.
25866         * modules/mknod (Depends-on): Likewise.
25867         * modules/pipe2 (Depends-on): Likewise.
25868         * modules/stat-time (Depends-on): Likewise.
25869         * modules/strcasestr-simple (Depends-on): Likewise.
25870         * modules/strsignal (Depends-on): Likewise.
25871         * modules/utimensat (Depends-on): Likewise.
25872         * modules/localcharset (Depends-on): Likewise. Needed because of
25873         gl_FCNTL_O_FLAGS.
25874         * modules/wcrtomb (Depends-on): Likewise. Needed because of
25875         AC_TYPE_MBSTATE_T.
25876         * modules/wcsnrtombs (Depends-on): Likewise.
25877         * modules/wcsrtombs (Depends-on): Likewise.
25878
25879 2009-12-24  Bruno Haible  <bruno@clisp.org>
25880
25881         binary-io: Avoid gcc warning due to SET_BINARY.
25882         * lib/binary-io.h (SET_BINARY): Cast the result to void.
25883         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
25884
25885 2009-12-24  Bruno Haible  <bruno@clisp.org>
25886
25887         Avoid future namespace pollution on glibc systems.
25888         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
25889         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
25890         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
25891         glibc systems.
25892
25893 2009-12-24  Bruno Haible  <bruno@clisp.org>
25894
25895         Refactor common macros used in tests.
25896         * tests/macros.h: New file.
25897         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
25898         and/or <stdlib.h>, if appropriate.
25899         (ASSERT, SIZEOF): Remove macros.
25900         * tests/test-areadlink-with-size.c: Likewise.
25901         * tests/test-areadlinkat.c: Likewise.
25902         * tests/test-areadlinkat-with-size.c: Likewise.
25903         * tests/test-argmatch.c: Likewise.
25904         * tests/test-argv-iter.c: Likewise.
25905         * tests/test-array-mergesort.c: Likewise.
25906         * tests/test-array_list.c: Likewise.
25907         * tests/test-array_oset.c: Likewise.
25908         * tests/test-avltree_list.c: Likewise.
25909         * tests/test-avltree_oset.c: Likewise.
25910         * tests/test-avltreehash_list.c: Likewise.
25911         * tests/test-base64.c: Likewise.
25912         * tests/test-binary-io.c: Likewise.
25913         * tests/test-bitrotate.c: Likewise.
25914         * tests/test-btowc.c: Likewise.
25915         * tests/test-byteswap.c: Likewise.
25916         * tests/test-c-ctype.c: Likewise.
25917         * tests/test-c-stack.c: Likewise.
25918         * tests/test-c-strcasecmp.c: Likewise.
25919         * tests/test-c-strcasestr.c: Likewise.
25920         * tests/test-c-strncasecmp.c: Likewise.
25921         * tests/test-c-strstr.c: Likewise.
25922         * tests/test-canonicalize-lgpl.c: Likewise.
25923         * tests/test-canonicalize.c: Likewise.
25924         * tests/test-carray_list.c: Likewise.
25925         * tests/test-ceilf1.c: Likewise.
25926         * tests/test-ceilf2.c: Likewise.
25927         * tests/test-ceill.c: Likewise.
25928         * tests/test-chown.c: Likewise.
25929         * tests/test-cloexec.c: Likewise.
25930         * tests/test-copy-acl.c: Likewise.
25931         * tests/test-copy-file.c: Likewise.
25932         * tests/test-count-one-bits.c: Likewise.
25933         * tests/test-dprintf-posix.c: Likewise.
25934         * tests/test-dup2.c: Likewise.
25935         * tests/test-dup3.c: Likewise.
25936         * tests/test-duplocale.c: Likewise.
25937         * tests/test-fbufmode.c: Likewise.
25938         * tests/test-fchdir.c: Likewise.
25939         * tests/test-fchownat.c: Likewise.
25940         * tests/test-fcntl-safer.c: Likewise.
25941         * tests/test-fcntl.c: Likewise.
25942         * tests/test-fdopendir.c: Likewise.
25943         * tests/test-fdutimensat.c: Likewise.
25944         * tests/test-fflush2.c: Likewise.
25945         * tests/test-file-has-acl.c: Likewise.
25946         * tests/test-filevercmp.c: Likewise.
25947         * tests/test-flock.c: Likewise.
25948         * tests/test-floorf1.c: Likewise.
25949         * tests/test-floorf2.c: Likewise.
25950         * tests/test-floorl.c: Likewise.
25951         * tests/test-fnmatch.c: Likewise.
25952         * tests/test-fopen.h: Likewise.
25953         * tests/test-fpending.c: Likewise.
25954         * tests/test-fprintf-posix.c: Likewise.
25955         * tests/test-fpurge.c: Likewise.
25956         * tests/test-freadable.c: Likewise.
25957         * tests/test-freadahead.c: Likewise.
25958         * tests/test-freading.c: Likewise.
25959         * tests/test-freadptr.c: Likewise.
25960         * tests/test-freadptr2.c: Likewise.
25961         * tests/test-freadseek.c: Likewise.
25962         * tests/test-freopen.c: Likewise.
25963         * tests/test-frexp.c: Likewise.
25964         * tests/test-frexpl.c: Likewise.
25965         * tests/test-fseek.c: Likewise.
25966         * tests/test-fseeko.c: Likewise.
25967         * tests/test-fstatat.c: Likewise.
25968         * tests/test-fstrcmp.c: Likewise.
25969         * tests/test-fsync.c: Likewise.
25970         * tests/test-ftell.c: Likewise.
25971         * tests/test-ftello.c: Likewise.
25972         * tests/test-func.c: Likewise.
25973         * tests/test-futimens.c: Likewise.
25974         * tests/test-fwritable.c: Likewise.
25975         * tests/test-fwriting.c: Likewise.
25976         * tests/test-getcwd.c: Likewise.
25977         * tests/test-getdate.c: Likewise.
25978         * tests/test-getdelim.c: Likewise.
25979         * tests/test-getdtablesize.c: Likewise.
25980         * tests/test-getgroups.c: Likewise.
25981         * tests/test-getline.c: Likewise.
25982         * tests/test-getndelim2.c: Likewise.
25983         * tests/test-glob.c: Likewise.
25984         * tests/test-hash.c: Likewise.
25985         * tests/test-i-ring.c: Likewise.
25986         * tests/test-iconv-utf.c: Likewise.
25987         * tests/test-iconv.c: Likewise.
25988         * tests/test-idpriv-drop.c: Likewise.
25989         * tests/test-idpriv-droptemp.c: Likewise.
25990         * tests/test-inet_ntop.c: Likewise.
25991         * tests/test-inet_pton.c: Likewise.
25992         * tests/test-isblank.c: Likewise.
25993         * tests/test-isfinite.c: Likewise.
25994         * tests/test-isinf.c: Likewise.
25995         * tests/test-isnan.c: Likewise.
25996         * tests/test-isnand.h: Likewise.
25997         * tests/test-isnanf.h: Likewise.
25998         * tests/test-isnanl.h: Likewise.
25999         * tests/test-lchown.c: Likewise.
26000         * tests/test-ldexpl.c: Likewise.
26001         * tests/test-link.c: Likewise.
26002         * tests/test-linkat.c: Likewise.
26003         * tests/test-linked_list.c: Likewise.
26004         * tests/test-linkedhash_list.c: Likewise.
26005         * tests/test-localename.c: Likewise.
26006         * tests/test-lseek.c: Likewise.
26007         * tests/test-lstat.c: Likewise.
26008         * tests/test-mbmemcasecmp.c: Likewise.
26009         * tests/test-mbmemcasecoll.c: Likewise.
26010         * tests/test-mbrtowc.c: Likewise.
26011         * tests/test-mbscasecmp.c: Likewise.
26012         * tests/test-mbscasestr1.c: Likewise.
26013         * tests/test-mbscasestr2.c: Likewise.
26014         * tests/test-mbscasestr3.c: Likewise.
26015         * tests/test-mbscasestr4.c: Likewise.
26016         * tests/test-mbschr.c: Likewise.
26017         * tests/test-mbscspn.c: Likewise.
26018         * tests/test-mbsinit.c: Likewise.
26019         * tests/test-mbsncasecmp.c: Likewise.
26020         * tests/test-mbsnrtowcs.c: Likewise.
26021         * tests/test-mbspbrk.c: Likewise.
26022         * tests/test-mbspcasecmp.c: Likewise.
26023         * tests/test-mbsrchr.c: Likewise.
26024         * tests/test-mbsrtowcs.c: Likewise.
26025         * tests/test-mbsspn.c: Likewise.
26026         * tests/test-mbsstr1.c: Likewise.
26027         * tests/test-mbsstr2.c: Likewise.
26028         * tests/test-mbsstr3.c: Likewise.
26029         * tests/test-memchr.c: Likewise.
26030         * tests/test-memchr2.c: Likewise.
26031         * tests/test-memcmp.c: Likewise.
26032         * tests/test-memmem.c: Likewise.
26033         * tests/test-memrchr.c: Likewise.
26034         * tests/test-mkdir.c: Likewise.
26035         * tests/test-mkdirat.c: Likewise.
26036         * tests/test-mkfifo.c: Likewise.
26037         * tests/test-mkfifoat.c: Likewise.
26038         * tests/test-mknod.c: Likewise.
26039         * tests/test-nanosleep.c: Likewise.
26040         * tests/test-nl_langinfo.c: Likewise.
26041         * tests/test-obstack-printf.c: Likewise.
26042         * tests/test-open.c: Likewise.
26043         * tests/test-openat.c: Likewise.
26044         * tests/test-pipe-filter-gi1.c: Likewise.
26045         * tests/test-pipe-filter-gi2-main.c: Likewise.
26046         * tests/test-pipe-filter-ii1.c: Likewise.
26047         * tests/test-pipe-filter-ii2-main.c: Likewise.
26048         * tests/test-pipe2.c: Likewise.
26049         * tests/test-popen.h: Likewise.
26050         * tests/test-posixtm.c: Likewise.
26051         * tests/test-pread.c: Likewise.
26052         * tests/test-printf-frexp.c: Likewise.
26053         * tests/test-printf-frexpl.c: Likewise.
26054         * tests/test-printf-posix.c: Likewise.
26055         * tests/test-priv-set.c: Likewise.
26056         * tests/test-quotearg.c: Likewise.
26057         * tests/test-random_r.c: Likewise.
26058         * tests/test-rawmemchr.c: Likewise.
26059         * tests/test-rbtree_list.c: Likewise.
26060         * tests/test-rbtree_oset.c: Likewise.
26061         * tests/test-rbtreehash_list.c: Likewise.
26062         * tests/test-readlink.c: Likewise.
26063         * tests/test-remove.c: Likewise.
26064         * tests/test-rename.c: Likewise.
26065         * tests/test-renameat.c: Likewise.
26066         * tests/test-rmdir.c: Likewise.
26067         * tests/test-round1.c: Likewise.
26068         * tests/test-roundf1.c: Likewise.
26069         * tests/test-roundl.c: Likewise.
26070         * tests/test-safe-alloc.c: Likewise.
26071         * tests/test-sameacls.c: Likewise.
26072         * tests/test-set-mode-acl.c: Likewise.
26073         * tests/test-setenv.c: Likewise.
26074         * tests/test-sigaction.c: Likewise.
26075         * tests/test-signbit.c: Likewise.
26076         * tests/test-sleep.c: Likewise.
26077         * tests/test-snprintf-posix.c: Likewise.
26078         * tests/test-snprintf.c: Likewise.
26079         * tests/test-sprintf-posix.c: Likewise.
26080         * tests/test-stat-time.c: Likewise.
26081         * tests/test-stat.c: Likewise.
26082         * tests/test-strcasestr.c: Likewise.
26083         * tests/test-strchrnul.c: Likewise.
26084         * tests/test-strerror.c: Likewise.
26085         * tests/test-striconv.c: Likewise.
26086         * tests/test-striconveh.c: Likewise.
26087         * tests/test-striconveha.c: Likewise.
26088         * tests/test-strsignal.c: Likewise.
26089         * tests/test-strstr.c: Likewise.
26090         * tests/test-strtod.c: Likewise.
26091         * tests/test-strverscmp.c: Likewise.
26092         * tests/test-symlink.c: Likewise.
26093         * tests/test-symlinkat.c: Likewise.
26094         * tests/test-trunc1.c: Likewise.
26095         * tests/test-trunc2.c: Likewise.
26096         * tests/test-truncf1.c: Likewise.
26097         * tests/test-truncf2.c: Likewise.
26098         * tests/test-truncl.c: Likewise.
26099         * tests/test-uname.c: Likewise.
26100         * tests/test-unlink.c: Likewise.
26101         * tests/test-unlinkat.c: Likewise.
26102         * tests/test-unsetenv.c: Likewise.
26103         * tests/test-usleep.c: Likewise.
26104         * tests/test-utimens.c: Likewise.
26105         * tests/test-utimensat.c: Likewise.
26106         * tests/test-vasnprintf-posix.c: Likewise.
26107         * tests/test-vasnprintf-posix2.c: Likewise.
26108         * tests/test-vasnprintf.c: Likewise.
26109         * tests/test-vasprintf-posix.c: Likewise.
26110         * tests/test-vasprintf.c: Likewise.
26111         * tests/test-vdprintf-posix.c: Likewise.
26112         * tests/test-vfprintf-posix.c: Likewise.
26113         * tests/test-vprintf-posix.c: Likewise.
26114         * tests/test-vsnprintf-posix.c: Likewise.
26115         * tests/test-vsnprintf.c: Likewise.
26116         * tests/test-vsprintf-posix.c: Likewise.
26117         * tests/test-wcrtomb.c: Likewise.
26118         * tests/test-wcsnrtombs.c: Likewise.
26119         * tests/test-wcsrtombs.c: Likewise.
26120         * tests/test-wctype.c: Likewise.
26121         * tests/test-wcwidth.c: Likewise.
26122         * tests/test-xfprintf-posix.c: Likewise.
26123         * tests/test-xmemdup0.c: Likewise.
26124         * tests/test-xprintf-posix.c: Likewise.
26125         * tests/test-xvasprintf.c: Likewise.
26126         * tests/unicase/test-locale-language.c: Likewise.
26127         * tests/unicase/test-mapping-part1.h: Likewise.
26128         * tests/unicase/test-predicate-part1.h: Likewise.
26129         * tests/unicase/test-u8-casecmp.c: Likewise.
26130         * tests/unicase/test-u8-casecoll.c: Likewise.
26131         * tests/unicase/test-u8-casefold.c: Likewise.
26132         * tests/unicase/test-u8-is-cased.c: Likewise.
26133         * tests/unicase/test-u8-is-casefolded.c: Likewise.
26134         * tests/unicase/test-u8-is-lowercase.c: Likewise.
26135         * tests/unicase/test-u8-is-titlecase.c: Likewise.
26136         * tests/unicase/test-u8-is-uppercase.c: Likewise.
26137         * tests/unicase/test-u8-tolower.c: Likewise.
26138         * tests/unicase/test-u8-totitle.c: Likewise.
26139         * tests/unicase/test-u8-toupper.c: Likewise.
26140         * tests/unicase/test-u16-casecmp.c: Likewise.
26141         * tests/unicase/test-u16-casecoll.c: Likewise.
26142         * tests/unicase/test-u16-casefold.c: Likewise.
26143         * tests/unicase/test-u16-is-cased.c: Likewise.
26144         * tests/unicase/test-u16-is-casefolded.c: Likewise.
26145         * tests/unicase/test-u16-is-lowercase.c: Likewise.
26146         * tests/unicase/test-u16-is-titlecase.c: Likewise.
26147         * tests/unicase/test-u16-is-uppercase.c: Likewise.
26148         * tests/unicase/test-u16-tolower.c: Likewise.
26149         * tests/unicase/test-u16-totitle.c: Likewise.
26150         * tests/unicase/test-u16-toupper.c: Likewise.
26151         * tests/unicase/test-u32-casecmp.c: Likewise.
26152         * tests/unicase/test-u32-casecoll.c: Likewise.
26153         * tests/unicase/test-u32-casefold.c: Likewise.
26154         * tests/unicase/test-u32-is-cased.c: Likewise.
26155         * tests/unicase/test-u32-is-casefolded.c: Likewise.
26156         * tests/unicase/test-u32-is-lowercase.c: Likewise.
26157         * tests/unicase/test-u32-is-titlecase.c: Likewise.
26158         * tests/unicase/test-u32-is-uppercase.c: Likewise.
26159         * tests/unicase/test-u32-tolower.c: Likewise.
26160         * tests/unicase/test-u32-totitle.c: Likewise.
26161         * tests/unicase/test-u32-toupper.c: Likewise.
26162         * tests/unicase/test-ulc-casecmp.c: Likewise.
26163         * tests/unicase/test-ulc-casecoll.c: Likewise.
26164         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26165         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26166         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26167         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26168         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26169         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26170         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26171         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26172         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26173         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26174         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26175         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26176         * tests/unictype/test-bidi_byname.c: Likewise.
26177         * tests/unictype/test-bidi_name.c: Likewise.
26178         * tests/unictype/test-bidi_of.c: Likewise.
26179         * tests/unictype/test-bidi_test.c: Likewise.
26180         * tests/unictype/test-block_list.c: Likewise.
26181         * tests/unictype/test-block_of.c: Likewise.
26182         * tests/unictype/test-block_test.c: Likewise.
26183         * tests/unictype/test-categ_and.c: Likewise.
26184         * tests/unictype/test-categ_and_not.c: Likewise.
26185         * tests/unictype/test-categ_byname.c: Likewise.
26186         * tests/unictype/test-categ_name.c: Likewise.
26187         * tests/unictype/test-categ_none.c: Likewise.
26188         * tests/unictype/test-categ_of.c: Likewise.
26189         * tests/unictype/test-categ_or.c: Likewise.
26190         * tests/unictype/test-categ_test_withtable.c: Likewise.
26191         * tests/unictype/test-combining.c: Likewise.
26192         * tests/unictype/test-decdigit.c: Likewise.
26193         * tests/unictype/test-digit.c: Likewise.
26194         * tests/unictype/test-mirror.c: Likewise.
26195         * tests/unictype/test-numeric.c: Likewise.
26196         * tests/unictype/test-pr_byname.c: Likewise.
26197         * tests/unictype/test-pr_test.c: Likewise.
26198         * tests/unictype/test-predicate-part1.h: Likewise.
26199         * tests/unictype/test-scripts.c: Likewise.
26200         * tests/unictype/test-sy_c_ident.c: Likewise.
26201         * tests/unictype/test-sy_java_ident.c: Likewise.
26202         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
26203         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
26204         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
26205         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
26206         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
26207         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
26208         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
26209         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
26210         * tests/uninorm/test-canonical-decomposition.c: Likewise.
26211         * tests/uninorm/test-compat-decomposition.c: Likewise.
26212         * tests/uninorm/test-composition.c: Likewise.
26213         * tests/uninorm/test-decomposing-form.c: Likewise.
26214         * tests/uninorm/test-decomposition.c: Likewise.
26215         * tests/uninorm/test-u8-nfc.c: Likewise.
26216         * tests/uninorm/test-u8-nfd.c: Likewise.
26217         * tests/uninorm/test-u8-nfkc.c: Likewise.
26218         * tests/uninorm/test-u8-nfkd.c: Likewise.
26219         * tests/uninorm/test-u8-normcmp.c: Likewise.
26220         * tests/uninorm/test-u8-normcoll.c: Likewise.
26221         * tests/uninorm/test-u16-nfc.c: Likewise.
26222         * tests/uninorm/test-u16-nfd.c: Likewise.
26223         * tests/uninorm/test-u16-nfkc.c: Likewise.
26224         * tests/uninorm/test-u16-nfkd.c: Likewise.
26225         * tests/uninorm/test-u16-normcmp.c: Likewise.
26226         * tests/uninorm/test-u16-normcoll.c: Likewise.
26227         * tests/uninorm/test-u32-nfc.c: Likewise.
26228         * tests/uninorm/test-u32-nfd.c: Likewise.
26229         * tests/uninorm/test-u32-nfkc.c: Likewise.
26230         * tests/uninorm/test-u32-nfkd.c: Likewise.
26231         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26232         * tests/uninorm/test-u32-normcmp.c: Likewise.
26233         * tests/uninorm/test-u32-normcoll.c: Likewise.
26234         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
26235         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
26236         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
26237         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
26238         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
26239         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
26240         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26241         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26242         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
26243         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
26244         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
26245         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
26246         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
26247         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26248         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26249         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
26250         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
26251         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
26252         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
26253         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
26254         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26255         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26256         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
26257         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
26258         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
26259         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
26260         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
26261         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26262         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26263         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
26264         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
26265         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
26266         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
26267         * tests/uniwidth/test-u8-strwidth.c: Likewise.
26268         * tests/uniwidth/test-u8-width.c: Likewise.
26269         * tests/uniwidth/test-u16-strwidth.c: Likewise.
26270         * tests/uniwidth/test-u16-width.c: Likewise.
26271         * tests/uniwidth/test-u32-strwidth.c: Likewise.
26272         * tests/uniwidth/test-u32-width.c: Likewise.
26273         * tests/uniwidth/test-uc_width.c: Likewise.
26274         * tests/uniwidth/test-uc_width2.c: Likewise.
26275         * modules/acl-tests (Files): Add tests/macros.h.
26276         * modules/areadlink-tests (Files): Likewise.
26277         * modules/areadlink-with-size-tests (Files): Likewise.
26278         * modules/areadlinkat-tests (Files): Likewise.
26279         * modules/areadlinkat-with-size-tests (Files): Likewise.
26280         * modules/argmatch-tests (Files): Likewise.
26281         * modules/argv-iter-tests (Files): Likewise.
26282         * modules/array-list-tests (Files): Likewise.
26283         * modules/array-mergesort-tests (Files): Likewise.
26284         * modules/array-oset-tests (Files): Likewise.
26285         * modules/avltree-list-tests (Files): Likewise.
26286         * modules/avltree-oset-tests (Files): Likewise.
26287         * modules/avltreehash-list-tests (Files): Likewise.
26288         * modules/base64-tests (Files): Likewise.
26289         * modules/binary-io-tests (Files): Likewise.
26290         * modules/bitrotate-tests (Files): Likewise.
26291         * modules/btowc-tests (Files): Likewise.
26292         * modules/byteswap-tests (Files): Likewise.
26293         * modules/c-ctype-tests (Files): Likewise.
26294         * modules/c-stack-tests (Files): Likewise.
26295         * modules/c-strcase-tests (Files): Likewise.
26296         * modules/c-strcasestr-tests (Files): Likewise.
26297         * modules/c-strstr-tests (Files): Likewise.
26298         * modules/canonicalize-lgpl-tests (Files): Likewise.
26299         * modules/canonicalize-tests (Files): Likewise.
26300         * modules/carray-list-tests (Files): Likewise.
26301         * modules/ceilf-tests (Files): Likewise.
26302         * modules/ceill-tests (Files): Likewise.
26303         * modules/chown-tests (Files): Likewise.
26304         * modules/cloexec-tests (Files): Likewise.
26305         * modules/copy-file-tests (Files): Likewise.
26306         * modules/count-one-bits-tests (Files): Likewise.
26307         * modules/dprintf-posix-tests (Files): Likewise.
26308         * modules/dup2-tests (Files): Likewise.
26309         * modules/dup3-tests (Files): Likewise.
26310         * modules/duplocale-tests (Files): Likewise.
26311         * modules/fbufmode-tests (Files): Likewise.
26312         * modules/fchdir-tests (Files): Likewise.
26313         * modules/fcntl-safer-tests (Files): Likewise.
26314         * modules/fcntl-tests (Files): Likewise.
26315         * modules/fdopendir-tests (Files): Likewise.
26316         * modules/fdutimensat-tests (Files): Likewise.
26317         * modules/fflush-tests (Files): Likewise.
26318         * modules/filevercmp-tests (Files): Likewise.
26319         * modules/flock-tests (Files): Likewise.
26320         * modules/floorf-tests (Files): Likewise.
26321         * modules/floorl-tests (Files): Likewise.
26322         * modules/fnmatch-tests (Files): Likewise.
26323         * modules/fopen-safer-tests (Files): Likewise.
26324         * modules/fopen-tests (Files): Likewise.
26325         * modules/fpending-tests (Files): Likewise.
26326         * modules/fprintf-posix-tests (Files): Likewise.
26327         * modules/fpurge-tests (Files): Likewise.
26328         * modules/freadable-tests (Files): Likewise.
26329         * modules/freadahead-tests (Files): Likewise.
26330         * modules/freading-tests (Files): Likewise.
26331         * modules/freadptr-tests (Files): Likewise.
26332         * modules/freadseek-tests (Files): Likewise.
26333         * modules/freopen-tests (Files): Likewise.
26334         * modules/frexp-nolibm-tests (Files): Likewise.
26335         * modules/frexp-tests (Files): Likewise.
26336         * modules/frexpl-nolibm-tests (Files): Likewise.
26337         * modules/frexpl-tests (Files): Likewise.
26338         * modules/fseek-tests (Files): Likewise.
26339         * modules/fseeko-tests (Files): Likewise.
26340         * modules/fstrcmp-tests (Files): Likewise.
26341         * modules/fsync-tests (Files): Likewise.
26342         * modules/ftell-tests (Files): Likewise.
26343         * modules/ftello-tests (Files): Likewise.
26344         * modules/func-tests (Files): Likewise.
26345         * modules/futimens-tests (Files): Likewise.
26346         * modules/fwritable-tests (Files): Likewise.
26347         * modules/fwriting-tests (Files): Likewise.
26348         * modules/getcwd-tests (Files): Likewise.
26349         * modules/getdate-tests (Files): Likewise.
26350         * modules/getdelim-tests (Files): Likewise.
26351         * modules/getdtablesize-tests (Files): Likewise.
26352         * modules/getgroups-tests (Files): Likewise.
26353         * modules/getline-tests (Files): Likewise.
26354         * modules/getndelim2-tests (Files): Likewise.
26355         * modules/glob-tests (Files): Likewise.
26356         * modules/hash-tests (Files): Likewise.
26357         * modules/i-ring-tests (Files): Likewise.
26358         * modules/iconv-tests (Files): Likewise.
26359         * modules/iconv_open-utf-tests (Files): Likewise.
26360         * modules/idpriv-drop-tests (Files): Likewise.
26361         * modules/idpriv-droptemp-tests (Files): Likewise.
26362         * modules/inet_ntop-tests (Files): Likewise.
26363         * modules/inet_pton-tests (Files): Likewise.
26364         * modules/isblank-tests (Files): Likewise.
26365         * modules/isfinite-tests (Files): Likewise.
26366         * modules/isinf-tests (Files): Likewise.
26367         * modules/isnan-tests (Files): Likewise.
26368         * modules/isnand-nolibm-tests (Files): Likewise.
26369         * modules/isnand-tests (Files): Likewise.
26370         * modules/isnanf-nolibm-tests (Files): Likewise.
26371         * modules/isnanf-tests (Files): Likewise.
26372         * modules/isnanl-nolibm-tests (Files): Likewise.
26373         * modules/isnanl-tests (Files): Likewise.
26374         * modules/lchown-tests (Files): Likewise.
26375         * modules/ldexpl-tests (Files): Likewise.
26376         * modules/link-tests (Files): Likewise.
26377         * modules/linkat-tests (Files): Likewise.
26378         * modules/linked-list-tests (Files): Likewise.
26379         * modules/linkedhash-list-tests (Files): Likewise.
26380         * modules/localename-tests (Files): Likewise.
26381         * modules/lseek-tests (Files): Likewise.
26382         * modules/lstat-tests (Files): Likewise.
26383         * modules/mbmemcasecmp-tests (Files): Likewise.
26384         * modules/mbmemcasecoll-tests (Files): Likewise.
26385         * modules/mbrtowc-tests (Files): Likewise.
26386         * modules/mbscasecmp-tests (Files): Likewise.
26387         * modules/mbscasestr-tests (Files): Likewise.
26388         * modules/mbschr-tests (Files): Likewise.
26389         * modules/mbscspn-tests (Files): Likewise.
26390         * modules/mbsinit-tests (Files): Likewise.
26391         * modules/mbsncasecmp-tests (Files): Likewise.
26392         * modules/mbsnrtowcs-tests (Files): Likewise.
26393         * modules/mbspbrk-tests (Files): Likewise.
26394         * modules/mbspcasecmp-tests (Files): Likewise.
26395         * modules/mbsrchr-tests (Files): Likewise.
26396         * modules/mbsrtowcs-tests (Files): Likewise.
26397         * modules/mbsspn-tests (Files): Likewise.
26398         * modules/mbsstr-tests (Files): Likewise.
26399         * modules/memchr-tests (Files): Likewise.
26400         * modules/memchr2-tests (Files): Likewise.
26401         * modules/memcmp-tests (Files): Likewise.
26402         * modules/memmem-tests (Files): Likewise.
26403         * modules/memrchr-tests (Files): Likewise.
26404         * modules/mkdir-tests (Files): Likewise.
26405         * modules/mkfifo-tests (Files): Likewise.
26406         * modules/mkfifoat-tests (Files): Likewise.
26407         * modules/mknod-tests (Files): Likewise.
26408         * modules/nanosleep-tests (Files): Likewise.
26409         * modules/nl_langinfo-tests (Files): Likewise.
26410         * modules/obstack-printf-tests (Files): Likewise.
26411         * modules/open-tests (Files): Likewise.
26412         * modules/openat-tests (Files): Likewise.
26413         * modules/pipe-filter-gi-tests (Files): Likewise.
26414         * modules/pipe-filter-ii-tests (Files): Likewise.
26415         * modules/pipe2-tests (Files): Likewise.
26416         * modules/popen-safer-tests (Files): Likewise.
26417         * modules/popen-tests (Files): Likewise.
26418         * modules/posixtm-tests (Files): Likewise.
26419         * modules/pread-tests (Files): Likewise.
26420         * modules/printf-frexp-tests (Files): Likewise.
26421         * modules/printf-frexpl-tests (Files): Likewise.
26422         * modules/printf-posix-tests (Files): Likewise.
26423         * modules/priv-set-tests (Files): Likewise.
26424         * modules/quotearg-tests (Files): Likewise.
26425         * modules/random_r-tests (Files): Likewise.
26426         * modules/rawmemchr-tests (Files): Likewise.
26427         * modules/rbtree-list-tests (Files): Likewise.
26428         * modules/rbtree-oset-tests (Files): Likewise.
26429         * modules/rbtreehash-list-tests (Files): Likewise.
26430         * modules/readlink-tests (Files): Likewise.
26431         * modules/remove-tests (Files): Likewise.
26432         * modules/rename-tests (Files): Likewise.
26433         * modules/renameat-tests (Files): Likewise.
26434         * modules/rmdir-tests (Files): Likewise.
26435         * modules/round-tests (Files): Likewise.
26436         * modules/roundf-tests (Files): Likewise.
26437         * modules/roundl-tests (Files): Likewise.
26438         * modules/safe-alloc-tests (Files): Likewise.
26439         * modules/setenv-tests (Files): Likewise.
26440         * modules/sigaction-tests (Files): Likewise.
26441         * modules/signbit-tests (Files): Likewise.
26442         * modules/sleep-tests (Files): Likewise.
26443         * modules/snprintf-posix-tests (Files): Likewise.
26444         * modules/snprintf-tests (Files): Likewise.
26445         * modules/sprintf-posix-tests (Files): Likewise.
26446         * modules/stat-tests (Files): Likewise.
26447         * modules/stat-time-tests (Files): Likewise.
26448         * modules/strcasestr-tests (Files): Likewise.
26449         * modules/strchrnul-tests (Files): Likewise.
26450         * modules/strerror-tests (Files): Likewise.
26451         * modules/striconv-tests (Files): Likewise.
26452         * modules/striconveh-tests (Files): Likewise.
26453         * modules/striconveha-tests (Files): Likewise.
26454         * modules/strsignal-tests (Files): Likewise.
26455         * modules/strstr-tests (Files): Likewise.
26456         * modules/strtod-tests (Files): Likewise.
26457         * modules/strverscmp-tests (Files): Likewise.
26458         * modules/symlink-tests (Files): Likewise.
26459         * modules/symlinkat-tests (Files): Likewise.
26460         * modules/trunc-tests (Files): Likewise.
26461         * modules/truncf-tests (Files): Likewise.
26462         * modules/truncl-tests (Files): Likewise.
26463         * modules/uname-tests (Files): Likewise.
26464         * modules/unicase/cased-tests (Files): Likewise.
26465         * modules/unicase/ignorable-tests (Files): Likewise.
26466         * modules/unicase/locale-language-tests (Files): Likewise.
26467         * modules/unicase/tolower-tests (Files): Likewise.
26468         * modules/unicase/totitle-tests (Files): Likewise.
26469         * modules/unicase/toupper-tests (Files): Likewise.
26470         * modules/unicase/u8-casecmp-tests (Files): Likewise.
26471         * modules/unicase/u8-casecoll-tests (Files): Likewise.
26472         * modules/unicase/u8-casefold-tests (Files): Likewise.
26473         * modules/unicase/u8-is-cased-tests (Files): Likewise.
26474         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
26475         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
26476         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
26477         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
26478         * modules/unicase/u8-tolower-tests (Files): Likewise.
26479         * modules/unicase/u8-totitle-tests (Files): Likewise.
26480         * modules/unicase/u8-toupper-tests (Files): Likewise.
26481         * modules/unicase/u16-casecmp-tests (Files): Likewise.
26482         * modules/unicase/u16-casecoll-tests (Files): Likewise.
26483         * modules/unicase/u16-casefold-tests (Files): Likewise.
26484         * modules/unicase/u16-is-cased-tests (Files): Likewise.
26485         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
26486         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
26487         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
26488         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
26489         * modules/unicase/u16-tolower-tests (Files): Likewise.
26490         * modules/unicase/u16-totitle-tests (Files): Likewise.
26491         * modules/unicase/u16-toupper-tests (Files): Likewise.
26492         * modules/unicase/u32-casecmp-tests (Files): Likewise.
26493         * modules/unicase/u32-casecoll-tests (Files): Likewise.
26494         * modules/unicase/u32-casefold-tests (Files): Likewise.
26495         * modules/unicase/u32-is-cased-tests (Files): Likewise.
26496         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
26497         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
26498         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
26499         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
26500         * modules/unicase/u32-tolower-tests (Files): Likewise.
26501         * modules/unicase/u32-totitle-tests (Files): Likewise.
26502         * modules/unicase/u32-toupper-tests (Files): Likewise.
26503         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
26504         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
26505         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
26506         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
26507         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
26508         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
26509         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
26510         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
26511         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
26512         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
26513         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
26514         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
26515         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
26516         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
26517         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
26518         * modules/unictype/bidicategory-name-tests (Files): Likewise.
26519         * modules/unictype/bidicategory-of-tests (Files): Likewise.
26520         * modules/unictype/bidicategory-test-tests (Files): Likewise.
26521         * modules/unictype/block-list-tests (Files): Likewise.
26522         * modules/unictype/block-of-tests (Files): Likewise.
26523         * modules/unictype/block-test-tests (Files): Likewise.
26524         * modules/unictype/category-C-tests (Files): Likewise.
26525         * modules/unictype/category-Cc-tests (Files): Likewise.
26526         * modules/unictype/category-Cf-tests (Files): Likewise.
26527         * modules/unictype/category-Cn-tests (Files): Likewise.
26528         * modules/unictype/category-Co-tests (Files): Likewise.
26529         * modules/unictype/category-Cs-tests (Files): Likewise.
26530         * modules/unictype/category-L-tests (Files): Likewise.
26531         * modules/unictype/category-Ll-tests (Files): Likewise.
26532         * modules/unictype/category-Lm-tests (Files): Likewise.
26533         * modules/unictype/category-Lo-tests (Files): Likewise.
26534         * modules/unictype/category-Lt-tests (Files): Likewise.
26535         * modules/unictype/category-Lu-tests (Files): Likewise.
26536         * modules/unictype/category-M-tests (Files): Likewise.
26537         * modules/unictype/category-Mc-tests (Files): Likewise.
26538         * modules/unictype/category-Me-tests (Files): Likewise.
26539         * modules/unictype/category-Mn-tests (Files): Likewise.
26540         * modules/unictype/category-N-tests (Files): Likewise.
26541         * modules/unictype/category-Nd-tests (Files): Likewise.
26542         * modules/unictype/category-Nl-tests (Files): Likewise.
26543         * modules/unictype/category-No-tests (Files): Likewise.
26544         * modules/unictype/category-P-tests (Files): Likewise.
26545         * modules/unictype/category-Pc-tests (Files): Likewise.
26546         * modules/unictype/category-Pd-tests (Files): Likewise.
26547         * modules/unictype/category-Pe-tests (Files): Likewise.
26548         * modules/unictype/category-Pf-tests (Files): Likewise.
26549         * modules/unictype/category-Pi-tests (Files): Likewise.
26550         * modules/unictype/category-Po-tests (Files): Likewise.
26551         * modules/unictype/category-Ps-tests (Files): Likewise.
26552         * modules/unictype/category-S-tests (Files): Likewise.
26553         * modules/unictype/category-Sc-tests (Files): Likewise.
26554         * modules/unictype/category-Sk-tests (Files): Likewise.
26555         * modules/unictype/category-Sm-tests (Files): Likewise.
26556         * modules/unictype/category-So-tests (Files): Likewise.
26557         * modules/unictype/category-Z-tests (Files): Likewise.
26558         * modules/unictype/category-Zl-tests (Files): Likewise.
26559         * modules/unictype/category-Zp-tests (Files): Likewise.
26560         * modules/unictype/category-Zs-tests (Files): Likewise.
26561         * modules/unictype/category-and-not-tests (Files): Likewise.
26562         * modules/unictype/category-and-tests (Files): Likewise.
26563         * modules/unictype/category-byname-tests (Files): Likewise.
26564         * modules/unictype/category-name-tests (Files): Likewise.
26565         * modules/unictype/category-none-tests (Files): Likewise.
26566         * modules/unictype/category-of-tests (Files): Likewise.
26567         * modules/unictype/category-or-tests (Files): Likewise.
26568         * modules/unictype/category-test-withtable-tests (Files): Likewise.
26569         * modules/unictype/combining-class-tests (Files): Likewise.
26570         * modules/unictype/ctype-alnum-tests (Files): Likewise.
26571         * modules/unictype/ctype-alpha-tests (Files): Likewise.
26572         * modules/unictype/ctype-blank-tests (Files): Likewise.
26573         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
26574         * modules/unictype/ctype-digit-tests (Files): Likewise.
26575         * modules/unictype/ctype-graph-tests (Files): Likewise.
26576         * modules/unictype/ctype-lower-tests (Files): Likewise.
26577         * modules/unictype/ctype-print-tests (Files): Likewise.
26578         * modules/unictype/ctype-punct-tests (Files): Likewise.
26579         * modules/unictype/ctype-space-tests (Files): Likewise.
26580         * modules/unictype/ctype-upper-tests (Files): Likewise.
26581         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
26582         * modules/unictype/decimal-digit-tests (Files): Likewise.
26583         * modules/unictype/digit-tests (Files): Likewise.
26584         * modules/unictype/mirror-tests (Files): Likewise.
26585         * modules/unictype/numeric-tests (Files): Likewise.
26586         * modules/unictype/property-alphabetic-tests (Files): Likewise.
26587         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
26588         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
26589         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
26590         Likewise.
26591         * modules/unictype/property-bidi-block-separator-tests (Files):
26592         Likewise.
26593         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
26594         Likewise.
26595         * modules/unictype/property-bidi-common-separator-tests (Files):
26596         Likewise.
26597         * modules/unictype/property-bidi-control-tests (Files): Likewise.
26598         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
26599         Likewise.
26600         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
26601         Likewise.
26602         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
26603         Likewise.
26604         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
26605         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
26606         Likewise.
26607         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
26608         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
26609         Likewise.
26610         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
26611         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
26612         * modules/unictype/property-bidi-segment-separator-tests (Files):
26613         Likewise.
26614         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
26615         * modules/unictype/property-byname-tests (Files): Likewise.
26616         * modules/unictype/property-combining-tests (Files): Likewise.
26617         * modules/unictype/property-composite-tests (Files): Likewise.
26618         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
26619         * modules/unictype/property-dash-tests (Files): Likewise.
26620         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
26621         * modules/unictype/property-default-ignorable-code-point-tests (Files):
26622         Likewise.
26623         * modules/unictype/property-deprecated-tests (Files): Likewise.
26624         * modules/unictype/property-diacritic-tests (Files): Likewise.
26625         * modules/unictype/property-extender-tests (Files): Likewise.
26626         * modules/unictype/property-format-control-tests (Files): Likewise.
26627         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
26628         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
26629         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
26630         * modules/unictype/property-hex-digit-tests (Files): Likewise.
26631         * modules/unictype/property-hyphen-tests (Files): Likewise.
26632         * modules/unictype/property-id-continue-tests (Files): Likewise.
26633         * modules/unictype/property-id-start-tests (Files): Likewise.
26634         * modules/unictype/property-ideographic-tests (Files): Likewise.
26635         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
26636         * modules/unictype/property-ids-trinary-operator-tests (Files):
26637         Likewise.
26638         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
26639         * modules/unictype/property-iso-control-tests (Files): Likewise.
26640         * modules/unictype/property-join-control-tests (Files): Likewise.
26641         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
26642         * modules/unictype/property-line-separator-tests (Files): Likewise.
26643         * modules/unictype/property-logical-order-exception-tests (Files):
26644         Likewise.
26645         * modules/unictype/property-lowercase-tests (Files): Likewise.
26646         * modules/unictype/property-math-tests (Files): Likewise.
26647         * modules/unictype/property-non-break-tests (Files): Likewise.
26648         * modules/unictype/property-not-a-character-tests (Files): Likewise.
26649         * modules/unictype/property-numeric-tests (Files): Likewise.
26650         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
26651         * modules/unictype/property-other-default-ignorable-code-point-tests
26652         (Files): Likewise.
26653         * modules/unictype/property-other-grapheme-extend-tests (Files):
26654         Likewise.
26655         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
26656         * modules/unictype/property-other-id-start-tests (Files): Likewise.
26657         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
26658         * modules/unictype/property-other-math-tests (Files): Likewise.
26659         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
26660         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
26661         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
26662         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
26663         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
26664         * modules/unictype/property-private-use-tests (Files): Likewise.
26665         * modules/unictype/property-punctuation-tests (Files): Likewise.
26666         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
26667         * modules/unictype/property-radical-tests (Files): Likewise.
26668         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
26669         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
26670         * modules/unictype/property-space-tests (Files): Likewise.
26671         * modules/unictype/property-terminal-punctuation-tests (Files):
26672         Likewise.
26673         * modules/unictype/property-test-tests (Files): Likewise.
26674         * modules/unictype/property-titlecase-tests (Files): Likewise.
26675         * modules/unictype/property-unassigned-code-value-tests (Files):
26676         Likewise.
26677         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
26678         * modules/unictype/property-uppercase-tests (Files): Likewise.
26679         * modules/unictype/property-variation-selector-tests (Files): Likewise.
26680         * modules/unictype/property-white-space-tests (Files): Likewise.
26681         * modules/unictype/property-xid-continue-tests (Files): Likewise.
26682         * modules/unictype/property-xid-start-tests (Files): Likewise.
26683         * modules/unictype/property-zero-width-tests (Files): Likewise.
26684         * modules/unictype/scripts-tests (Files): Likewise.
26685         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
26686         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
26687         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
26688         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
26689         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
26690         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
26691         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
26692         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
26693         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
26694         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
26695         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
26696         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
26697         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
26698         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
26699         * modules/uninorm/composition-tests (Files): Likewise.
26700         * modules/uninorm/decomposing-form-tests (Files): Likewise.
26701         * modules/uninorm/decomposition-tests (Files): Likewise.
26702         * modules/uninorm/filter-tests (Files): Likewise.
26703         * modules/uninorm/nfc-tests (Files): Likewise.
26704         * modules/uninorm/nfd-tests (Files): Likewise.
26705         * modules/uninorm/nfkc-tests (Files): Likewise.
26706         * modules/uninorm/nfkd-tests (Files): Likewise.
26707         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
26708         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
26709         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
26710         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
26711         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
26712         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
26713         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
26714         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
26715         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
26716         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
26717         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
26718         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
26719         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
26720         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
26721         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
26722         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
26723         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
26724         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
26725         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
26726         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
26727         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
26728         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
26729         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
26730         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
26731         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
26732         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
26733         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
26734         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
26735         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
26736         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
26737         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
26738         * modules/uniwidth/u8-width-tests (Files): Likewise.
26739         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
26740         * modules/uniwidth/u16-width-tests (Files): Likewise.
26741         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
26742         * modules/uniwidth/u32-width-tests (Files): Likewise.
26743         * modules/uniwidth/width-tests (Files): Likewise.
26744         * modules/unlink-tests (Files): Likewise.
26745         * modules/unsetenv-tests (Files): Likewise.
26746         * modules/usleep-tests (Files): Likewise.
26747         * modules/utimens-tests (Files): Likewise.
26748         * modules/utimensat-tests (Files): Likewise.
26749         * modules/vasnprintf-posix-tests (Files): Likewise.
26750         * modules/vasnprintf-tests (Files): Likewise.
26751         * modules/vasprintf-posix-tests (Files): Likewise.
26752         * modules/vasprintf-tests (Files): Likewise.
26753         * modules/vdprintf-posix-tests (Files): Likewise.
26754         * modules/vfprintf-posix-tests (Files): Likewise.
26755         * modules/vprintf-posix-tests (Files): Likewise.
26756         * modules/vsnprintf-posix-tests (Files): Likewise.
26757         * modules/vsnprintf-tests (Files): Likewise.
26758         * modules/vsprintf-posix-tests (Files): Likewise.
26759         * modules/wcrtomb-tests (Files): Likewise.
26760         * modules/wcsnrtombs-tests (Files): Likewise.
26761         * modules/wcsrtombs-tests (Files): Likewise.
26762         * modules/wctype-tests (Files): Likewise.
26763         * modules/wcwidth-tests (Files): Likewise.
26764         * modules/xmemdup0-tests (Files): Likewise.
26765         * modules/xprintf-posix-tests (Files): Likewise.
26766         * modules/xvasprintf-tests (Files): Likewise.
26767
26768 2009-12-24  Eric Blake  <ebb9@byu.net>
26769
26770         test-nanosleep: fix typo
26771         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
26772         patch.
26773         Reported by Bruno Haible.
26774
26775 2009-12-24  Bruno Haible  <bruno@clisp.org>
26776
26777         Reduce namespace pollution on glibc systems.
26778         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
26779         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
26780         systems.
26781         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
26782         <getopt.h> on glibc systems.
26783         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
26784         systems.
26785         * lib/fcntl.c: Include <unistd.h> here instead.
26786
26787 2009-12-24  Bruno Haible  <bruno@clisp.org>
26788
26789         * lib/stdlib.in.h (includes): Fix typo in today's commit.
26790
26791 2009-12-24  Eric Blake  <ebb9@byu.net>
26792
26793         tests: add signature checks
26794         * tests/signature.h (SIGNATURE_CHECK): New file.
26795         * modules/atexit-tests (Files): Use it.
26796         * modules/btowc-tests (Files): Likewise.
26797         * modules/canonicalize-lgpl-tests (Files): Likewise.
26798         * modules/ceilf-tests (Files): Likewise.
26799         * modules/ceill-tests (Files): Likewise.
26800         * modules/chown-tests (Files): Likewise.
26801         * modules/dprintf-posix-tests (Files): Likewise.
26802         * modules/dup2-tests (Files): Likewise.
26803         * modules/dup3-tests (Files): Likewise.
26804         * modules/duplocale-tests (Files): Likewise.
26805         * modules/fchdir-tests (Files): Likewise.
26806         * modules/fcntl-tests (Files): Likewise.
26807         * modules/fdopendir-tests (Files): Likewise.
26808         * modules/fflush-tests (Files): Likewise.
26809         * modules/flock-tests (Files): Likewise.
26810         * modules/floorf-tests (Files): Likewise.
26811         * modules/floorl-tests (Files): Likewise.
26812         * modules/fnmatch-tests (Files): Likewise.
26813         * modules/fopen-tests (Files): Likewise.
26814         * modules/fprintf-posix-tests (Files): Likewise.
26815         * modules/freopen-tests (Files): Likewise.
26816         * modules/frexp-nolibm-tests (Files): Likewise.
26817         * modules/frexp-tests (Files): Likewise.
26818         * modules/frexpl-nolibm-tests (Files): Likewise.
26819         * modules/frexpl-tests (Files): Likewise.
26820         * modules/fseek-tests (Files): Likewise.
26821         * modules/fseeko-tests (Files): Likewise.
26822         * modules/fsync-tests (Files): Likewise.
26823         * modules/ftell-tests (Files): Likewise.
26824         * modules/ftello-tests (Files): Likewise.
26825         * modules/futimens-tests (Files): Likewise.
26826         * modules/getaddrinfo-tests (Files): Likewise.
26827         * modules/getcwd-tests (Files): Likewise.
26828         * modules/getdelim-tests (Files): Likewise.
26829         * modules/getdtablesize-tests (Files): Likewise.
26830         * modules/getgroups-tests (Files): Likewise.
26831         * modules/gethostname-tests (Files): Likewise.
26832         * modules/getline-tests (Files): Likewise.
26833         * modules/getopt-posix-tests (Files): Likewise.
26834         * modules/gettimeofday-tests (Files): Likewise.
26835         * modules/glob-tests (Files): Likewise.
26836         * modules/iconv-tests (Files): Likewise.
26837         * modules/inet_ntop-tests (Files): Likewise.
26838         * modules/inet_pton-tests (Files): Likewise.
26839         * modules/isblank-tests (Files): Likewise.
26840         * modules/lchown-tests (Files): Likewise.
26841         * modules/ldexpl-tests (Files): Likewise.
26842         * modules/link-tests (Files): Likewise.
26843         * modules/linkat-tests (Files): Likewise.
26844         * modules/lseek-tests (Files): Likewise.
26845         * modules/lstat-tests (Files): Likewise.
26846         * modules/mbrtowc-tests (Files): Likewise.
26847         * modules/mbsinit-tests (Files): Likewise.
26848         * modules/mbsnrtowcs-tests (Files): Likewise.
26849         * modules/mbsrtowcs-tests (Files): Likewise.
26850         * modules/memchr-tests (Files): Likewise.
26851         * modules/memcmp-tests (Files): Likewise.
26852         * modules/memmem-tests (Files): Likewise.
26853         * modules/memrchr-tests (Files): Likewise.
26854         * modules/mkdir-tests (Files): Likewise.
26855         * modules/mkfifo-tests (Files): Likewise.
26856         * modules/mkfifoat-tests (Files): Likewise.
26857         * modules/mknod-tests (Files): Likewise.
26858         * modules/nanosleep-tests (Files): Likewise.
26859         * modules/nl_langinfo-tests (Files): Likewise.
26860         * modules/obstack-printf-tests (Files): Likewise.
26861         * modules/open-tests (Files): Likewise.
26862         * modules/openat-tests (Files): Likewise.
26863         * modules/perror-tests (Files): Likewise.
26864         * modules/pipe2-tests (Files): Likewise.
26865         * modules/poll-tests (Files): Likewise.
26866         * modules/popen-tests (Files): Likewise.
26867         * modules/posix_spawn-tests (Files): Likewise.
26868         * modules/posix_spawnp-tests (Files): Likewise.
26869         * modules/pread-tests (Files): Likewise.
26870         * modules/printf-posix-tests (Files): Likewise.
26871         * modules/pty-tests (Files): Likewise.
26872         * modules/random_r-tests (Files): Likewise.
26873         * modules/rawmemchr-tests (Files): Likewise.
26874         * modules/readlink-tests (Files): Likewise.
26875         * modules/remove-tests (Files): Likewise.
26876         * modules/rename-tests (Files): Likewise.
26877         * modules/renameat-tests (Files): Likewise.
26878         * modules/rmdir-tests (Files): Likewise.
26879         * modules/round-tests (Files): Likewise.
26880         * modules/roundf-tests (Files): Likewise.
26881         * modules/roundl-tests (Files): Likewise.
26882         * modules/select-tests (Files): Likewise.
26883         * modules/setenv-tests (Files): Likewise.
26884         * modules/sigaction-tests (Files): Likewise.
26885         * modules/sleep-tests (Files): Likewise.
26886         * modules/snprintf-posix-tests (Files): Likewise.
26887         * modules/snprintf-tests (Files): Likewise.
26888         * modules/sprintf-posix-tests (Files): Likewise.
26889         * modules/stat-tests (Files): Likewise.
26890         * modules/strcasestr-tests (Files): Likewise.
26891         * modules/strchrnul-tests (Files): Likewise.
26892         * modules/strerror-tests (Files): Likewise.
26893         * modules/strsignal-tests (Files): Likewise.
26894         * modules/strstr-tests (Files): Likewise.
26895         * modules/strtod-tests (Files): Likewise.
26896         * modules/strverscmp-tests (Files): Likewise.
26897         * modules/symlink-tests (Files): Likewise.
26898         * modules/symlinkat-tests (Files): Likewise.
26899         * modules/times-tests (Files): Likewise.
26900         * modules/trunc-tests (Files): Likewise.
26901         * modules/truncf-tests (Files): Likewise.
26902         * modules/truncl-tests (Files): Likewise.
26903         * modules/tsearch-tests (Files): Likewise.
26904         * modules/uname-tests (Files): Likewise.
26905         * modules/unlink-tests (Files): Likewise.
26906         * modules/unsetenv-tests (Files): Likewise.
26907         * modules/usleep-tests (Files): Likewise.
26908         * modules/utimensat-tests (Files): Likewise.
26909         * modules/vasprintf-tests (Files): Likewise.
26910         * modules/vdprintf-posix-tests (Files): Likewise.
26911         * modules/vfprintf-posix-tests (Files): Likewise.
26912         * modules/vprintf-posix-tests (Files): Likewise.
26913         * modules/vsnprintf-posix-tests (Files): Likewise.
26914         * modules/vsnprintf-tests (Files): Likewise.
26915         * modules/vsprintf-posix-tests (Files): Likewise.
26916         * modules/wcrtomb-tests (Files): Likewise.
26917         * modules/wcsnrtombs-tests (Files): Likewise.
26918         * modules/wcsrtombs-tests (Files): Likewise.
26919         * modules/wcwidth-tests (Files): Likewise.
26920         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
26921         * tests/test-isinf.c (isinf): Likewise.
26922         * tests/test-isnan.c (isnan): Likewise.
26923         * tests/test-signbit.c (signbit): Likewise.
26924         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
26925         declaration, either as macro or with correct signature.
26926         (select): Ensure function under test is declared with correct
26927         signature in correct header.
26928         * tests/test-atexit.c (atexit): Likewise.
26929         * tests/test-btowc.c (btowc): Likewise.
26930         * tests/test-canonicalize-lgpl.c (realpath)
26931         (canonicalize_file_name): Likewise.
26932         * tests/test-ceilf1.c (ceilf): Likewise.
26933         * tests/test-ceill.c (ceill): Likewise.
26934         * tests/test-chown.c (chown): Likewise.
26935         * tests/test-dprintf-posix.c (dprintf): Likewise.
26936         * tests/test-dup2.c (dup2): Likewise.
26937         * tests/test-dup3.c (dup3): Likewise.
26938         * tests/test-duplocale.c (duplocale): Likewise.
26939         * tests/test-fchdir.c (fchdir): Likewise.
26940         * tests/test-fchownat.c (fchownat): Likewise.
26941         * tests/test-fcntl.c (fcntl): Likewise.
26942         * tests/test-fdopendir.c (fdopendir): Likewise.
26943         * tests/test-fflush.c (fflush): Likewise.
26944         * tests/test-flock.c (flock): Likewise.
26945         * tests/test-floorf1.c (floorf): Likewise.
26946         * tests/test-floorl.c (floorl): Likewise.
26947         * tests/test-fnmatch.c (fnmatch): Likewise.
26948         * tests/test-fopen.c (fopen): Likewise.
26949         * tests/test-fprintf-posix.c (fprintf): Likewise.
26950         * tests/test-freopen.c (freopen): Likewise.
26951         * tests/test-frexp.c (frexp): Likewise.
26952         * tests/test-frexpl.c (frexpl): Likewise.
26953         * tests/test-fseek.c (fseek): Likewise.
26954         * tests/test-fseeko.c (fseeko): Likewise.
26955         * tests/test-fstatat.c (fstatat): Likewise.
26956         * tests/test-fsync.c (fsync): Likewise.
26957         * tests/test-ftell.c (ftell): Likewise.
26958         * tests/test-ftello.c (ftello): Likewise.
26959         * tests/test-futimens.c (futimens): Likewise.
26960         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
26961         (gai_strerror): Likewise.
26962         * tests/test-getcwd.c (getcwd): Likewise.
26963         * tests/test-getdelim.c (getdelim): Likewise.
26964         * tests/test-getdtablesize.c (getdtablesize): Likewise.
26965         * tests/test-getgroups.c (getgroups): Likewise.
26966         * tests/test-gethostname.c (gethostname): Likewise.
26967         * tests/test-getline.c (getline): Likewise.
26968         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
26969         Likewise.
26970         * tests/test-gettimeofday.c (gettimeofday): Likewise.
26971         * tests/test-glob.c (glob, globfree): Likewise.
26972         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
26973         * tests/test-inet_ntop.c (inet_ntop): Likewise.
26974         * tests/test-inet_pton.c (inet_pton): Likewise.
26975         * tests/test-isblank.c (isblank): Likewise.
26976         * tests/test-lchown.c (lchown): Likewise.
26977         * tests/test-ldexpl.c (ldexpl): Likewise.
26978         * tests/test-link.c (link): Likewise.
26979         * tests/test-linkat.c (linkat): Likewise.
26980         * tests/test-lseek.c (lseek): Likewise.
26981         * tests/test-lstat.c (lstat): Likewise.
26982         * tests/test-mbrtowc.c (mbrtowc): Likewise.
26983         * tests/test-mbsinit.c (mbsinit): Likewise.
26984         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
26985         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
26986         * tests/test-memchr.c (memchr): Likewise.
26987         * tests/test-memcmp.c (memcmp): Likewise.
26988         * tests/test-memmem.c (memmem): Likewise.
26989         * tests/test-memrchr.c (memrchr): Likewise.
26990         * tests/test-mkdir.c (mkdir): Likewise.
26991         * tests/test-mkdirat.c (mkdirat): Likewise.
26992         * tests/test-mkfifo.c (mkfifo): Likewise.
26993         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
26994         * tests/test-mknod.c (mknod): Likewise.
26995         * tests/test-nanosleep.c (nanosleep): Likewise.
26996         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
26997         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
26998         Likewise.
26999         * tests/test-open.c (open): Likewise.
27000         * tests/test-openat.c (openat): Likewise.
27001         * tests/test-perror.c (perror): Likewise.
27002         * tests/test-pipe2.c (pipe2): Likewise.
27003         * tests/test-poll.c (poll): Likewise.
27004         * tests/test-popen.c (popen, pclose): Likewise.
27005         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
27006         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
27007         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
27008         (posix_spawn_file_actions_destroy)
27009         (posix_spawn_file_actions_addclose)
27010         (posix_spawn_file_actions_addopen)
27011         (posix_spawn_file_actions_adddup2): Likewise.
27012         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
27013         * tests/test-pread.c (pread): Likewise.
27014         * tests/test-printf-posix.c (printf): Likewise.
27015         * tests/test-pty.c (openpty, forkpty): Likewise.
27016         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
27017         (random_r): Likewise.
27018         * tests/test-rawmemchr.c (rawmemchr): Likewise.
27019         * tests/test-readlink.c (readlink): Likewise.
27020         * tests/test-remove.c (remove): Likewise.
27021         * tests/test-rename.c (rename): Likewise.
27022         * tests/test-renameat.c (renameat): Likewise.
27023         * tests/test-rmdir.c (rmdir): Likewise.
27024         * tests/test-round1.c (round): Likewise.
27025         * tests/test-roundf1.c (roundf): Likewise.
27026         * tests/test-roundl.c (roundl): Likewise.
27027         * tests/test-setenv.c (setenv): Likewise.
27028         * tests/test-sigaction.c (sigaction): Likewise.
27029         * tests/test-sleep.c (sleep): Likewise.
27030         * tests/test-snprintf.c (snprintf): Likewise.
27031         * tests/test-sprintf-posix.c (sprintf): Likewise.
27032         * tests/test-stat.c (stat): Likewise.
27033         * tests/test-stpncpy.c (stpncpy): Likewise.
27034         * tests/test-strcasestr.c (strcasestr): Likewise.
27035         * tests/test-strchrnul.c (strchrnul): Likewise.
27036         * tests/test-strerror.c (strerror): Likewise.
27037         * tests/test-strsignal.c (strsignal): Likewise.
27038         * tests/test-strstr.c (strstr): Likewise.
27039         * tests/test-strtod.c (strtod): Likewise.
27040         * tests/test-strverscmp.c (strverscmp): Likewise.
27041         * tests/test-symlink.c (symlink): Likewise.
27042         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
27043         * tests/test-times.c (times): Likewise.
27044         * tests/test-trunc1.c (trunc): Likewise.
27045         * tests/test-truncf1.c (truncf): Likewise.
27046         * tests/test-truncl.c (truncl): Likewise.
27047         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
27048         Likewise.
27049         * tests/test-uname.c (uname): Likewise.
27050         * tests/test-unlink.c (unlink): Likewise.
27051         * tests/test-unlinkat.c (unlinkat): Likewise.
27052         * tests/test-unsetenv.c (unsetenv): Likewise.
27053         * tests/test-usleep.c (usleep): Likewise.
27054         * tests/test-utimensat.c (utimensat): Likewise.
27055         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
27056         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
27057         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
27058         * tests/test-vprintf-posix.c (vprintf): Likewise.
27059         * tests/test-vsnprintf.c (vsnprintf): Likewise.
27060         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
27061         * tests/test-wcrtomb.c (wcrtomb): Likewise.
27062         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
27063         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
27064         * tests/test-wcwidth.c (wcwidth): Likewise.
27065
27066         build: pull in conditional headers during GNULIB_POSIXCHECK
27067         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
27068         definitions from any conditionally-included headers.
27069         * lib/stdlib.in.h (includes): Likewise.
27070         * lib/unistd.in.h (includes): Likewise.
27071
27072 2009-12-24  Bruno Haible  <bruno@clisp.org>
27073
27074         * tests/test-argv-iter.c: Include header file being tested immediately
27075         after config.h.
27076         * tests/test-base64.c: Likewise.
27077         * tests/test-flock.c: Likewise.
27078         * tests/test-fsync.c: Likewise.
27079         * tests/test-getdate.c: Likewise.
27080         * tests/test-getndelim2.c: Likewise.
27081         * tests/test-isfinite.c: Likewise.
27082         * tests/test-isinf.c: Likewise.
27083         * tests/test-strerror.c: Likewise.
27084         * tests/test-strsignal.c: Likewise.
27085
27086 2009-12-23  Eric Blake  <ebb9@byu.net>
27087
27088         unistd: work around cygwin bug
27089         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
27090         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
27091         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27092
27093 2009-12-23  Bruno Haible  <bruno@clisp.org>
27094
27095         localename: More tests.
27096         * tests/test-localename.c (SIZEOF): New macro.
27097         (categories): New variable.
27098         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
27099         test_locale_name_default): Add test w.r.t. thread locale.
27100         (test_locale_name_thread): New function.
27101         (main): Invoke it.
27102
27103         localename: Make aware of thread locale.
27104         * lib/localename.h (gl_locale_name_thread): New declaration.
27105         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
27106         behaviour with respect to thread locale.
27107         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
27108         <langinfo.h>, glthread/lock.h.
27109         (SIZE_BITS): New macro.
27110         (string_hash): New function.
27111         (struct hash_node): New type.
27112         (HASH_TABLE_SIZE): New macro.
27113         (struniq_hash_table, struniq_lock): New variables.
27114         (struniq): New function.
27115         (gl_locale_name_thread): New function.
27116         (gl_locale_name): Invoke it.
27117         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
27118         * modules/localename (Depends-on): Add lock.
27119         Reported by Mike Gran <spk121@yahoo.com>.
27120
27121 2009-12-23  Eric Blake  <ebb9@byu.net>
27122
27123         va-args: new module
27124         * modules/va-args: New file.
27125         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
27126         * MODULES.html.sh (Core language properties): Mention it.
27127
27128         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
27129         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
27130         named alias for __attribute__((__unused__)).
27131         * lib/chown.c: Update client.
27132         * lib/fchmodat.c: Likewise.
27133         * lib/fts.c: Likewise.
27134         * lib/getdate.y: Likewise.
27135         * lib/getgroups.c: Likewise.
27136         * lib/getopt.c: Likewise.
27137         * lib/getugroups.c: Likewise.
27138         * lib/mkdir.c: Likewise.
27139         * lib/mkfifo.c: Likewise.
27140         * lib/mkfifoat.c: Likewise.
27141         * lib/mknod.c: Likewise.
27142         * lib/mknodat.c: Likewise.
27143         * lib/readlink.c: Likewise.
27144         * lib/se-context.in.h: Likewise.
27145         * lib/se-selinux.in.h: Likewise.
27146         * lib/sockets.c: Likewise.
27147         * lib/symlink.c: Likewise.
27148         * lib/symlinkat.c: Likewise.
27149         * lib/unicodeio.c: Likewise.
27150         * lib/unistr.h: Likewise.
27151         * tests/test-areadlink.c: Likewise.
27152         * tests/test-areadlinkat.c: Likewise.
27153         * tests/test-filenamecat.c: Likewise.
27154         * tests/test-fseeko.c: Likewise.
27155         * tests/test-ftello.c: Likewise.
27156         * tests/test-getdate.c: Likewise.
27157         * tests/test-getgroups.c: Likewise.
27158         * tests/test-gethostname.c: Likewise.
27159         * tests/test-quotearg.c: Likewise.
27160         * tests/test-version-etc.c: Likewise.
27161         * tests/test-xalloc-die.c: Likewise.
27162         * tests/test-xfprintf-posix.c: Likewise.
27163         * tests/test-xprintf-posix.c: Likewise.
27164         * tests/test-xvasprintf.c: Likewise.
27165
27166         tests: avoid compiler warnings
27167         * tests/test-fcntl.c (main): Delete unused parameters.
27168         * tests/test-freopen-safer.c (main): Likewise.
27169         * tests/test-xalloc-die.c (main): Mark unused parameters.
27170         * tests/test-fseeko.c (main): Likewise.
27171         * tests/test-ftello.c (main): Likewise.
27172         * tests/test-nanosleep.c (main): Avoid declaration warning.
27173         * tests/test-sleep.c (main): Likewise.
27174         * tests/test-unsetenv.c (main): Silence warning about string
27175         literal.
27176         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27177
27178 2009-12-23  Bruno Haible  <bruno@clisp.org>
27179
27180         * tests/test-localename.c (test_locale_name): New function, extracted
27181         from main. Also test mixed situations.
27182         (test_locale_name_posix, test_locale_name_environ,
27183         test_locale_name_default): New functions.
27184         (main): Invoke them all.
27185         * modules/localename-tests (configure.ac): Test for newlocale.
27186
27187 2009-12-23  Bruno Haible  <bruno@clisp.org>
27188
27189         unistd: Ensure getcwd gets declared before being overridden.
27190         * lib/unistd.in.h: Conditionally include <io.h>.
27191
27192 2009-12-22  Bruno Haible  <bruno@clisp.org>
27193
27194         wchar: Diagnose broken combination of glibc and gcc versions and flags.
27195         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
27196         (gl_WCHAR_H): Invoke it.
27197         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
27198         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
27199         Reported by Karl Berry <karl@freefriends.org>.
27200
27201 2009-12-22  Eric Blake  <ebb9@byu.net>
27202
27203         math, unistd: avoid redundant includes
27204         * lib/math.in.h (isnan): No need to re-include <math.h>.
27205         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
27206
27207         getsubopt: work around cygwin bug
27208         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
27209         avoid conflicting with system getsubopt.
27210         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
27211         bug.
27212
27213         getopt: synchronize from glibc
27214         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
27215         parameter order.  Adjust all callers.
27216         (_getopt_internal_r, main): Adjust quoting in error messages.
27217         Drop considerations for outdated POSIX 1003.2 error message.
27218         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
27219         callers.
27220         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
27221
27222         test-getopt: test stderr behavior
27223         * modules/getopt-posix-tests (Depends-on): Add dup2.
27224         * tests/test-getopt.c (ASSERT): Avoid stderr.
27225         (main): Move stderr to a temporary file.
27226         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
27227         Instead, add parameter to inform caller if output occurred.
27228         (test_getopt): Adjust all existing tests to expect silence, and
27229         add new tests of leading ":".
27230         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27231         glibc shortcomings with leading "-:" or "+:" in optstring.
27232         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27233         Likewise.
27234         * doc/posix-functions/getopt.texi (getopt): Likewise.
27235
27236         test-getopt: enhance test
27237         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
27238         supports optind=0.
27239         * tests/test-getopt.c (OPTIND_MIN): Move...
27240         * tests/test-getopt.h (OPTIND_MIN): ...here.
27241         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
27242         Require that optind=0 works, since modern BSD supports it in
27243         addition to optreset, and since coreutils expects it.
27244         (test_getopt_long_only): New test.
27245         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27246         glibc shortcomings with 'W;', and enforcement of optind=0.
27247         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27248         Likewise.
27249
27250 2009-12-21  Bruno Haible  <bruno@clisp.org>
27251
27252         localename: Improvements for MacOS X and Cygwin.
27253         * lib/localename.h (gl_locale_name_environ): New declaration.
27254         * lib/localename.c (gl_locale_name_environ): New function, extracted from
27255         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
27256         (gl_locale_name_posix): Invoke it.
27257         (gl_locale_name_default): Add comments. Use Windows native API also on
27258         Cygwin.
27259
27260 2009-12-21  Bruno Haible  <bruno@clisp.org>
27261
27262         Update list of Win32 locale ids.
27263         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
27264         (LANG_SAMI): Renamed from LANG_SAAMI.
27265         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
27266         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
27267         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
27268         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
27269         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
27270         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
27271         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
27272         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
27273         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
27274         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
27275         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
27276         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
27277         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
27278         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
27279         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
27280         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
27281         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
27282         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
27283         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
27284         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
27285         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
27286         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
27287         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
27288         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
27289         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
27290         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
27291         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
27292         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
27293         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
27294         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
27295         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
27296         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
27297         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
27298         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
27299         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
27300         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
27301         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
27302         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
27303         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
27304         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
27305         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
27306         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
27307         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
27308         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
27309         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
27310         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
27311         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
27312         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
27313         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
27314         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
27315         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
27316         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
27317         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
27318         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
27319         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
27320         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
27321         Add more languages and countries for Sami, Sorbian. Add more countries
27322         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
27323         for Pashto. Change country for Syriac, Tswana.
27324
27325 2009-12-21  Eric Blake  <ebb9@byu.net>
27326
27327         test-utimens: avoid spurious failure
27328         * tests/test-chown.h (nap): Factor...
27329         * tests/nap.h: ...into new file.
27330         * tests/test-lchown.h (nap): Avoid duplication.
27331         * tests/test-utimens-common.h (nap): Use shared implementation,
27332         necessary on file systems with 1-second resolution.
27333         * modules/chown-tests (Files): Include new file.
27334         * modules/fdutimensat-tests (Files): Likewise.
27335         * modules/futimens-tests (Files): Likewise.
27336         * modules/lchown-tests (Files): Likewise.
27337         * modules/openat-tests (Files): Likewise.
27338         * modules/utimens-tests (Files): Likewise.
27339         * modules/utimensat-tests (Files): Likewise.
27340
27341 2009-12-19  Eric Blake  <ebb9@byu.net>
27342
27343         futimens, utimensat: work around Linux bug
27344         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
27345         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27346         * lib/utimensat.c (rpl_utimensat): Work around it.
27347         * lib/futimens.c (rpl_futimens): Adjust comment.
27348
27349         utimens: work around Linux ctime bug
27350         * lib/utimens.c (detect_ctime_bug): New helper function.
27351         (update_timespec): Differentiate between workaround needed for
27352         this bug vs. what is needed for systems that lack utimensat.
27353         (fdutimens, lutimens): Work around bug.
27354
27355         utimens: check for ctime update
27356         * tests/test-utimens-common.h (check_ctime): Define.
27357         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
27358         * tests/test-futimens.h (test_futimens): Likewise.
27359         * tests/test-lutimens.h (test_lutimens): Likewise.
27360         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27361         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27362
27363 2009-12-19  Bruno Haible  <bruno@clisp.org>
27364
27365         dprintf-posix: Check against memory leak fixed on 2009-12-15.
27366         * tests/test-dprintf-posix2.sh: New file.
27367         * tests/test-dprintf-posix2.c: New file.
27368         * modules/dprintf-posix-tests (Files): Add them.
27369         (configure.ac): Check for getrlimit and setrlimit.
27370         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27371
27372 2009-12-19  Bruno Haible  <bruno@clisp.org>
27373
27374         fprintf-posix: Check against memory leak fixed on 2009-12-15.
27375         * tests/test-fprintf-posix3.sh: New file.
27376         * tests/test-fprintf-posix3.c: New file.
27377         * modules/fprintf-posix-tests (Files): Add them.
27378         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27379
27380 2009-12-19  Eric Blake  <ebb9@byu.net>
27381
27382         dirfd: fix prototype
27383         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
27384         * lib/dirfd.c (dirfd): Likewise.
27385
27386         canonicalize: reduce memory usage
27387         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
27388         allocation to size.
27389         Reported by Solar Designer <solar@openwall.com>.
27390
27391 2009-12-19  Bruno Haible  <bruno@clisp.org>
27392
27393         New module attribute 'Applicability'.
27394         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
27395         * gnulib-tool: New option --extract-applicability.
27396         (func_usage): Document it.
27397         (sed_extract_prog): Recognize it.
27398         (func_get_applicability): New function.
27399         (func_import): Generalize handling of 'link-warning' module.
27400         * modules/link-warning (Applicability): New section.
27401         * modules/arg-nonnull (Applicability): New section.
27402         Repoted by Simon Josefsson <simon@josefsson.org>.
27403
27404 2009-12-19  Bruno Haible  <bruno@clisp.org>
27405
27406         fflush: tweak
27407         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
27408         * lib/fseeko.c (rpl_fseeko): Likewise.
27409
27410 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
27411
27412         * lib/gl_list.h: Fix typo in comment.
27413
27414 2009-12-16  Eric Blake  <ebb9@byu.net>
27415
27416         fcntl: use to simplify other modules
27417         * modules/cloexec (Depends-on): Add fcntl.
27418         * modules/fchdir (Depends-on): Likewise.
27419         * modules/fd-safer-flag (Depends-on): Likewise.
27420         * modules/unistd-safer (Depends-on): Likewise.
27421         * modules/dup3 (configure.ac): Set module indicator.
27422         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
27423         missing.
27424         * lib/fchdir.c (_gl_register_dup): Fix comment.
27425         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
27426         * lib/dup-safer.c (dup_safer): Likewise.
27427         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
27428         * lib/dup3.c (dup3): Likewise.
27429         * tests/test-fchdir.c (main): Enhance test.
27430         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
27431
27432         fcntl: port portions of fcntl to mingw
27433         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
27434         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
27435         replacement for mingw.
27436         * modules/fcntl (Description): Update.
27437         (Depends-on): Add dup2.
27438         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
27439         * modules/fcntl-h (Makefile.am): Substitute it.
27440         * lib/fcntl.in.h (fcntl): Update declaration.
27441         (F_DUPFD, F_GETFD): New macros, when needed.
27442         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27443         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
27444         * tests/test-fcntl.c (check_flags, main): Enhance test for items
27445         we now guarantee.
27446
27447         fcntl: work around cygwin bug in F_DUPFD
27448         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
27449         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
27450         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
27451         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
27452         * doc/posix-functions/fcntl.texi (fcntl): Document it.
27453
27454         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
27455         * modules/fcntl (Files): List new files.
27456         (configure.ac): Run a test.
27457         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
27458         * lib/fcntl.c (rpl_fcntl): Likewise.
27459         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
27460         (gl_FCNTL_H): Always replace fcntl.h.
27461         * modules/fcntl-h (Makefile.am): Substitute witnesses.
27462         * lib/fcntl.in.h (fcntl): Declare replacement.
27463         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
27464         needed, plus a witness.
27465         * doc/posix-functions/fcntl.texi (fcntl): Document this.
27466         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27467         * tests/test-fcntl.c: New file.
27468         * modules/fcntl-tests: Likewise.
27469
27470         binary-io: avoid potential compilation warning
27471         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
27472         directives.
27473
27474         fflush: avoid compilation error on NetBSD
27475         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
27476         between off_t and fpos_t, since the latter is sometimes a struct.
27477         * lib/fseeko.c (rpl_fseeko): Likewise.
27478         Reported by Alexander Nasonov <alnsn@yandex.ru>.
27479
27480 2009-12-15  Eric Blake  <ebb9@byu.net>
27481
27482         fcntl-h, stdio, sys_ioctl: fix declarations
27483         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
27484         function must not take arguments.
27485         * lib/sys_ioctl.in.h (ioctl): Likewise.
27486         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
27487         (open): Add a link warning.
27488
27489 2009-12-15  Jim Meyering  <meyering@redhat.com>
27490
27491         areadlink, areadlink-with-size: relax license to LGPLv2+
27492         * modules/areadlink (License): Relax to LGPLv2+.
27493         * modules/areadlink-with-size (License): Likewise.
27494
27495 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
27496             Bruno Haible  <bruno@clisp.org>
27497
27498         *printf: Fix memory leak.
27499         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
27500         * lib/vfprintf.c (vfprintf): Likewise.
27501         * lib/dprintf.c (dprintf): Likewise.
27502         * lib/vdprintf.c (vdprintf): Likewise.
27503
27504 2009-12-14  Eric Blake  <ebb9@byu.net>
27505
27506         accept4: adjust module dependencies
27507         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
27508
27509         utimens: one more try at avoiding compiler warning
27510         * lib/utimens.c (lutimens): Lower scope of result.
27511
27512 2009-12-13  Bruno Haible  <bruno@clisp.org>
27513
27514         Move the malloc checking from module 'list' to new module 'xlist'.
27515         * modules/xlist: New file.
27516         * lib/gl_xlist.h: New file.
27517         * lib/gl_xlist.c: New file.
27518         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
27519         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
27520         gl_list_add_last, gl_list_add_before, gl_list_add_after,
27521         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
27522         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
27523         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
27524         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
27525         gl_sortedlist_nx_add): New declarations.
27526         (struct gl_list_implementation): Rename and change methods accordingly.
27527         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
27528         (gl_list_nx_create): Renamed from gl_list_create.
27529         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27530         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27531         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27532         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27533         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27534         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27535         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27536         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27537         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
27538         gl_list_create_empty.
27539         (gl_list_nx_create): Renamed from gl_list_create.
27540         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27541         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27542         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27543         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27544         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27545         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27546         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27547         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27548         * lib/gl_array_list.c: Don't include xalloc.h.
27549         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
27550         NULL upon out-of-memory.
27551         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
27552         out-of-memory.
27553         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
27554         Change return type to 'int'.
27555         (gl_array_nx_set_at): Renamed from gl_array_set_at.
27556         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27557         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
27558         upon out-of-memory.
27559         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
27560         upon out-of-memory.
27561         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
27562         upon out-of-memory.
27563         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
27564         upon out-of-memory.
27565         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
27566         out-of-memory.
27567         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
27568         Update.
27569         (gl_array_list_implementation): Update.
27570         * lib/gl_carray_list.c: Don't include xalloc.h.
27571         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
27572         Return NULL upon out-of-memory.
27573         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
27574         out-of-memory.
27575         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
27576         Change return type to 'int'.
27577         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
27578         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27579         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
27580         upon out-of-memory.
27581         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
27582         upon out-of-memory.
27583         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
27584         out-of-memory.
27585         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
27586         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
27587         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
27588         Update.
27589         (gl_carray_list_implementation): Update.
27590         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
27591         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
27592         gl_linked_create_empty. Return NULL upon out-of-memory.
27593         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
27594         out-of-memory.
27595         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
27596         Change return type to 'int'. Return -1 upon out-of-memory.
27597         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
27598         out-of-memory.
27599         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
27600         upon out-of-memory.
27601         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
27602         upon out-of-memory.
27603         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
27604         NULL upon out-of-memory.
27605         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
27606         upon out-of-memory.
27607         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
27608         out-of-memory.
27609         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
27610         Update.
27611         * lib/gl_linked_list.c: Don't include xalloc.h.
27612         (gl_linked_list_implementation): Update.
27613         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
27614         (add_to_bucket): Change return type to 'int'.
27615         (gl_linkedhash_list_implementation): Update.
27616         * lib/gl_anytree_list1.h (free_subtree): New function.
27617         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
27618         gl_tree_create_empty. Return NULL upon out-of-memory.
27619         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
27620         Change return type to 'int'. Return -1 upon out-of-memory.
27621         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
27622         out-of-memory.
27623         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
27624         (gl_tree_remove_node): New function, moved here from
27625         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
27626         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
27627         Update.
27628         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
27629         malloc, not xmalloc. Return NULL upon out-of-memory.
27630         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27631         out-of-memory.
27632         (gl_tree_remove_node_from_tree): New function, extracted from
27633         gl_tree_remove_node.
27634         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27635         upon out-of-memory.
27636         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27637         out-of-memory.
27638         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27639         upon out-of-memory.
27640         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27641         upon out-of-memory.
27642         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27643         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
27644         not xmalloc. Return NULL upon out-of-memory.
27645         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27646         out-of-memory.
27647         (gl_tree_remove_node_from_tree): New function, extracted from
27648         gl_tree_remove_node.
27649         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27650         upon out-of-memory.
27651         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27652         out-of-memory.
27653         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27654         upon out-of-memory.
27655         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27656         upon out-of-memory.
27657         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27658         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
27659         gl_anytree_list1.h before gl_anyavltree_list2.h.
27660         (gl_avltree_list_implementation): Update.
27661         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
27662         gl_anytree_list1.h before gl_anyavltree_list2.h.
27663         (gl_rbtree_list_implementation): Update.
27664         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
27665         Change return type to 'int'. Return -1 upon out-of-memory. Use
27666         __builtin_expect.
27667         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
27668         (gl_avltreehash_list_implementation): Update.
27669         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
27670         (gl_rbtreehash_list_implementation): Update.
27671         * modules/array-list (Depends-on): Remove xalloc.
27672         * modules/carray-list (Depends-on): Likewise.
27673         * modules/linked-list (Depends-on): Likewise.
27674         * modules/linkedhash-list (Depends-on): Likewise.
27675         * modules/avltree-list (Depends-on): Likewise.
27676         * modules/rbtree-list (Depends-on): Likewise.
27677         * modules/avltreehash-list (Depends-on): Likewise.
27678         * modules/rbtreehash-list (Depends-on): Likewise.
27679
27680         * modules/xsublist: New file.
27681         * lib/gl_xsublist.h: New file.
27682         * lib/gl_xsublist.c: New file.
27683         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
27684         (gl_sublist_nx_create): New declaration.
27685         * lib/gl_sublist.c: Don't include xalloc.h.
27686         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
27687         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
27688         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
27689         Change return type to 'int'. Return -1 upon out-of-memory.
27690         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
27691         upon out-of-memory.
27692         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
27693         NULL upon out-of-memory.
27694         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
27695         upon out-of-memory.
27696         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
27697         NULL upon out-of-memory.
27698         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
27699         NULL upon out-of-memory.
27700         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
27701         upon out-of-memory.
27702         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
27703         (gl_sublist_list_implementation): Update.
27704         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
27705         upon out-of-memory.
27706         * modules/sublist (Depends-on): Remove xalloc.
27707
27708         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
27709         * tests/test-carray_list.c: Likewise.
27710         * tests/test-linked_list.c: Likewise.
27711         * tests/test-linkedhash_list.c: Likewise.
27712         * tests/test-avltree_list.c: Likewise.
27713         * tests/test-rbtree_list.c: Likewise.
27714         * tests/test-avltreehash_list.c: Likewise.
27715         * tests/test-rbtreehash_list.c: Likewise.
27716         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
27717         * modules/carray-list-tests (Makefile.am): Likewise.
27718         * modules/linked-list-tests (Makefile.am): Likewise.
27719         * modules/linkedhash-list-tests (Makefile.am): Likewise.
27720         * modules/avltree-list-tests (Makefile.am): Likewise.
27721         * modules/rbtree-list-tests (Makefile.am): Likewise.
27722         * modules/avltreehash-list-tests (Makefile.am): Likewise.
27723         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
27724
27725         * NEWS: Mention the changes.
27726
27727         * lib/clean-temp.c: Include gl_xlist.h.
27728         * modules/clean-temp (Depends-on): Add xlist.
27729
27730         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
27731         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
27732
27733         * tests/test-array_oset.c: Include gl_xlist.h.
27734         * modules/array-oset-tests (Depends-on): Add xlist.
27735
27736         Reported by José E. Marchesi <jemarch@gnu.org>.
27737
27738 2009-12-13  Bruno Haible  <bruno@clisp.org>
27739
27740         Move the malloc checking from module 'oset' to new module 'xoset'.
27741         * modules/xoset: New file.
27742         * lib/gl_xoset.h: New file.
27743         * lib/gl_xoset.c: New file.
27744         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
27745         declarations.
27746         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
27747         (struct gl_oset_implementation): Rename and change methods accordingly.
27748         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
27749         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27750         'int'. Mark as __warn_unused_result__.
27751         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
27752         gl_oset_create_empty.
27753         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27754         'int'.
27755         * lib/gl_array_oset.c: Don't include xalloc.h.
27756         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
27757         malloc, not xmalloc.
27758         (grow): Change return type to 'int'. Don't call xalloc_die.
27759         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
27760         to 'int'.
27761         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
27762         'int'.
27763         (gl_array_oset_implementation): Update.
27764         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
27765         gl_tree_create_empty.
27766         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
27767         'int'.
27768         * lib/gl_avltree_oset.c: Don't include xalloc.h.
27769         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27770         xmalloc.
27771         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27772         not xmalloc.
27773         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27774         xmalloc.
27775         (gl_avltree_oset_implementation): Update.
27776         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
27777         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27778         xmalloc.
27779         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27780         not xmalloc.
27781         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27782         xmalloc.
27783         (gl_rbtree_oset_implementation): Update.
27784         * modules/array-oset (Depends-on): Remove xalloc.
27785         * modules/avltree-oset (Depends-on): Likewise.
27786         * modules/rbtree-oset (Depends-on): Likewise.
27787         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
27788         * tests/test-avltree_oset.c: Likewise.
27789         * tests/test-rbtree_oset.c: Likewise.
27790         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
27791         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
27792         * modules/rbtree-oset-tests (Makefile.am): Likewise.
27793         * NEWS: Mention the change.
27794
27795 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
27796
27797         maint.mk: allow a project to override release-prep commands
27798         * top/maint.mk (alpha, beta, stable): Move release-preparatory
27799         commands into a new rule.
27800         (release-prep): New rule.
27801         (release-prep-hook): New overridable variable.
27802
27803 2009-12-13  Bruno Haible  <bruno@clisp.org>
27804
27805         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
27806
27807 2009-12-13  Jim Meyering  <meyering@redhat.com>
27808
27809         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
27810         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
27811
27812 2009-12-12  Bruno Haible  <bruno@clisp.org>
27813
27814         duplocale: Tweak.
27815         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
27816
27817 2009-12-12  Karl Berry  <karl@gnu.org>
27818
27819         * config/srclist.txt (strtoll.c): tab changes, no more sync.
27820
27821 2009-12-12  Bruno Haible  <bruno@clisp.org>
27822
27823         * m4/po.m4: Undo incorrect untabification.
27824
27825 2009-12-12  Bruno Haible  <bruno@clisp.org>
27826
27827         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
27828         * modules/c-strtod (Depends-on): Add locale.
27829         * modules/c-strtold (Depends-on): Likewise.
27830
27831 2009-12-12  Bruno Haible  <bruno@clisp.org>
27832
27833         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
27834
27835 2009-12-11  Eric Blake  <ebb9@byu.net>
27836
27837         setenv: relax requirement in light of POSIX ruling
27838         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
27839         not NULL.
27840         * tests/test-setenv.c (main): Relax test.
27841         * tests/test-unsetenv.c (main): Likewise.
27842         * doc/posix-functions/setenv.texi (setenv): Document this.
27843         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27844
27845 2009-12-11  Bruno Haible  <bruno@clisp.org>
27846
27847         New module 'fd-safer-flag'.
27848         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
27849         * lib/dup-safer.c (dup_safer_flag): Remove function.
27850         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
27851         * lib/fd-safer.c (fd_safer_flag): Remove function.
27852         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
27853         * modules/cloexec (configure.ac): Drop indicator macro.
27854         * modules/fd-safer-flag: New file.
27855         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
27856         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
27857         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
27858
27859 2009-12-11  Bruno Haible  <bruno@clisp.org>
27860
27861         Tests for module 'nl_langinfo'.
27862         * modules/nl_langinfo-tests: New file.
27863         * tests/test-nl_langinfo.sh: New file.
27864         * tests/test-nl_langinfo.c: New file.
27865
27866         New module 'nl_langinfo'.
27867         * lib/nl_langinfo.c: New file.
27868         * m4/nl_langinfo.m4: New file.
27869         * modules/nl_langinfo: New file.
27870         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
27871
27872 2009-12-11  Bruno Haible  <bruno@clisp.org>
27873
27874         Tests for module 'langinfo'.
27875         * modules/langinfo-tests: New file.
27876         * tests/test-langinfo.c: New file.
27877
27878         New module 'langinfo'.
27879         * lib/langinfo.in.h: New file.
27880         * m4/langinfo_h.m4: New file.
27881         * modules/langinfo: New file.
27882         * doc/posix-headers/langinfo.texi: Mention the new module.
27883
27884 2009-12-11  Bruno Haible  <bruno@clisp.org>
27885
27886         * lib/config.charset: Untabify.
27887
27888 2009-12-11  Bruno Haible  <bruno@clisp.org>
27889
27890         * modules/unistd-safer (configure.ac): Drop indicator macro.
27891
27892 2009-12-11  Bruno Haible  <bruno@clisp.org>
27893
27894         Move pipe2-safer code to its own file.
27895         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
27896         * lib/pipe-safer.c (pipe2_safer): Remove function.
27897         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
27898         (Makefile.am): Add it to lib_SOURCES.
27899
27900 2009-12-10  Bruno Haible  <bruno@clisp.org>
27901
27902         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
27903
27904 2009-12-10  Bruno Haible  <bruno@clisp.org>
27905
27906         Declare which arguments expect non-NULL values, for GCC and clang.
27907         * build-aux/arg-nonnull.h: New file.
27908         * modules/arg-nonnull: New file.
27909         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
27910         (inet_ntop, inet_pton): Use it.
27911         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
27912         (closedir, dirfd, opendir, scandir, alphasort): Use it.
27913         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
27914         (open, openat): Use it.
27915         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
27916         (fnmatch): Use it.
27917         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
27918         (getopt, getopt_long, getopt_long_only): Use it.
27919         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
27920         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
27921         Use it.
27922         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
27923         (iconv_open): Use it.
27924         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
27925         (strtoimax, strtoumax): Use it.
27926         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
27927         (duplocale): Use it.
27928         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
27929         (frexp, frexpl): Use it.
27930         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
27931         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
27932         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
27933         (tsearch, tfind, tdelete, twalk): Use it.
27934         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
27935         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27936         sigpending): Use it.
27937         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
27938         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27939         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27940         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27941         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27942         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27943         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27944         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27945         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27946         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27947         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27948         Use it.
27949         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
27950         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
27951         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
27952         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
27953         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
27954         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
27955         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
27956         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
27957         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
27958         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
27959         strtoull, unsetenv): Use it.
27960         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
27961         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27962         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27963         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
27964         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
27965         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
27966         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
27967         (strcasecmp, strncasecmp): Use it.
27968         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
27969         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
27970         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
27971         rpl_setsockopt): Use it.
27972         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
27973         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
27974         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
27975         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
27976         (gettimeofday): Use it.
27977         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
27978         (times): Use it.
27979         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
27980         (uname): Use it.
27981         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
27982         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
27983         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
27984         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
27985         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
27986         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
27987         unlinkat, write): Use it.
27988         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
27989         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
27990         * lib/argv-iter.h: Include arg-nonnull.h.
27991         (_ATTRIBUTE_NONNULL_): Remove macro.
27992         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
27993         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
27994         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
27995         optimization.
27996         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
27997         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
27998         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
27999         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
28000         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
28001         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
28002         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
28003         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
28004         * modules/arpa_inet (Depends-on): Add arg-nonnull.
28005         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
28006         * modules/dirent (Depends-on): Add arg-nonnull.
28007         (Makefile.am): Insert arg-nonnull.h into dirent.h.
28008         * modules/fcntl-h (Depends-on): Add arg-nonnull.
28009         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
28010         * modules/fnmatch (Depends-on): Add arg-nonnull.
28011         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
28012         * modules/getopt-posix (Depends-on): Add arg-nonnull.
28013         (Makefile.am): Insert arg-nonnull.h into getopt.h.
28014         * modules/glob (Depends-on): Add arg-nonnull.
28015         (Makefile.am): Insert arg-nonnull.h into glob.h.
28016         * modules/iconv_open (Depends-on): Add arg-nonnull.
28017         (Makefile.am): Insert arg-nonnull.h into iconv.h.
28018         * modules/inttypes (Depends-on): Add arg-nonnull.
28019         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
28020         * modules/locale (Depends-on): Add arg-nonnull.
28021         (Makefile.am): Insert arg-nonnull.h into locale.h.
28022         * modules/math (Depends-on): Add arg-nonnull.
28023         (Makefile.am): Insert arg-nonnull.h into math.h.
28024         * modules/netdb (Depends-on): Add arg-nonnull.
28025         (Makefile.am): Insert arg-nonnull.h into netdb.h.
28026         * modules/search (Depends-on): Add arg-nonnull.
28027         (Makefile.am): Insert arg-nonnull.h into search.h.
28028         * modules/signal (Depends-on): Add arg-nonnull.
28029         (Makefile.am): Insert arg-nonnull.h into signal.h.
28030         * modules/spawn (Depends-on): Add arg-nonnull.
28031         (Makefile.am): Insert arg-nonnull.h into spawn.h.
28032         * modules/stdio (Depends-on): Add arg-nonnull.
28033         (Makefile.am): Insert arg-nonnull.h into stdio.h.
28034         * modules/stdlib (Depends-on): Add arg-nonnull.
28035         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
28036         * modules/string (Depends-on): Add arg-nonnull.
28037         (Makefile.am): Insert arg-nonnull.h into string.h.
28038         * modules/strings (Depends-on): Add arg-nonnull.
28039         (Makefile.am): Insert arg-nonnull.h into strings.h.
28040         * modules/sys_socket (Depends-on): Add arg-nonnull.
28041         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
28042         * modules/sys_stat (Depends-on): Add arg-nonnull.
28043         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
28044         * modules/sys_time (Depends-on): Add arg-nonnull.
28045         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
28046         * modules/sys_times (Depends-on): Add arg-nonnull.
28047         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
28048         * modules/sys_utsname (Depends-on): Add arg-nonnull.
28049         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
28050         * modules/time (Depends-on): Add arg-nonnull.
28051         (Makefile.am): Insert arg-nonnull.h into time.h.
28052         * modules/unistd (Depends-on): Add arg-nonnull.
28053         (Makefile.am): Insert arg-nonnull.h into unistd.h.
28054         * modules/wchar (Depends-on): Add arg-nonnull.
28055         (Makefile.am): Insert arg-nonnull.h into wchar.h.
28056         * modules/argv-iter (Depends-on): Add arg-nonnull.
28057         * tests/test-canonicalize.c (null_ptr): New function.
28058         (main): Use it.
28059         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
28060         (main): Use it.
28061         * tests/test-memmem.c (null_ptr): New function.
28062         (main): Use it.
28063         Reported by Jim Meyering.
28064
28065 2009-12-10  Bruno Haible  <bruno@clisp.org>
28066
28067         Use spaces for indentation, not tabs.
28068         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28069         * m4/*.m4: Untabify.
28070         * build-aux/*.h: Untabify.
28071         * tests/**/*.[hc]: Untabify.
28072         * README: New section "Indent with spaces, not TABs", based on
28073         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
28074         * NEWS: Mention the change.
28075
28076 2009-12-10  Bruno Haible  <bruno@clisp.org>
28077
28078         pty test: Fix link error.
28079         * modules/pty-tests (Makefile.am): Add the default LDADD value to
28080         test_pty_LDADD.
28081
28082 2009-12-07  Simon Josefsson  <simon@josefsson.org>
28083
28084         * modules/pty: New file.
28085         * modules/pty-tests: New file.
28086         * m4/pty.m4: New file.
28087         * tests/test-pty.c: New file.
28088         * doc/glibc-headers/pty.texi: Modified.
28089         * doc/glibc-functions/forkpty.texi: Modified.
28090         * doc/glibc-functions/openpty.texi: Modified.
28091
28092 2009-12-10  Bruno Haible  <bruno@clisp.org>
28093
28094         Avoid syntax error in C++ mode.
28095         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
28096
28097 2009-12-10  Bruno Haible  <bruno@clisp.org>
28098
28099         Use sed with option -e.
28100         * gnulib-tool (func_version, func_emit_copyright_notice,
28101         func_emit_initmacro_end, func_import, func_create_testdir): Pass
28102         option -e to sed.
28103         * modules/link-warning (Makefile.am): Likewise.
28104
28105 2009-12-10  Jim Meyering  <meyering@redhat.com>
28106
28107         mgetgroups: do not write bytes beyond end of malloc'd buffer
28108         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
28109         username, we call getgroups with a one-element-shorter buffer,
28110         but still told it the length was original, max_n_groups.
28111
28112 2009-12-09  Eric Blake  <ebb9@byu.net>
28113
28114         cloexec: relax license
28115         * modules/cloexec (Maintainer): Add myself.
28116         (License): Use LGPL, not GPL.
28117
28118         link-warning: optimize generation
28119         * modules/link-warning (Makefile.am): Reduce process usage.
28120
28121 2009-12-09  Bruno Haible  <bruno@clisp.org>
28122
28123         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
28124         workaround was added on 2009-11-17.
28125
28126 2009-12-09  Jim Meyering  <meyering@redhat.com>
28127             Bruno Haible  <bruno@clisp.org>
28128
28129         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
28130         * modules/link-warning (Makefile.am): Make the comment-removing sed
28131         command more robust in the face of bootstrap-prepended comment lines.
28132
28133 2009-12-09  Bruno Haible  <bruno@clisp.org>
28134
28135         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
28136         most one group.
28137
28138 2009-12-09  Simon Josefsson <simon@josefsson.org>
28139             Bruno Haible  <bruno@clisp.org>
28140
28141         * build-aux/link-warning.h: Add copyright notice.
28142         * modules/link-warning (Makefile.am): Generate link-warning.h from
28143         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
28144         * NEWS: Mention change in link-warning module.
28145         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
28146         * modules/dirent (Makefile.am): Add dependency to dirent.h.
28147         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
28148         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
28149         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
28150         * modules/math (Makefile.am): Add dependency to math.h.
28151         * modules/search (Makefile.am): Add dependency to search.h.
28152         * modules/signal (Makefile.am): Add dependency to signal.h.
28153         * modules/spawn (Makefile.am): Add dependency to spawn.h.
28154         * modules/stdio (Makefile.am): Add dependency to stdio.h.
28155         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
28156         * modules/string (Makefile.am): Add dependency to string.h.
28157         * modules/strings (Makefile.am): Add dependency to strings.h.
28158         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
28159         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
28160         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
28161         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
28162         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
28163         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
28164         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
28165         * modules/unistd (Makefile.am): Add dependency to unistd.h.
28166         * modules/wchar (Makefile.am): Add dependency to wchar.h.
28167
28168 2009-12-09  Bruno Haible  <bruno@clisp.org>
28169
28170         fchdir: Optimize away rpl_fstat when possible.
28171         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
28172         REPLACE_OPEN_DIRECTORY.
28173         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
28174
28175 2009-12-09  Bruno Haible  <bruno@clisp.org>
28176
28177         * lib/fchdir.c: Update comment.
28178
28179 2009-12-09  Bruno Haible  <bruno@clisp.org>
28180
28181         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
28182
28183 2009-12-08  Eric Blake  <ebb9@byu.net>
28184
28185         fchdir: avoid memory leak on re-registration.
28186         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
28187
28188 2009-12-08  Jim Meyering  <meyering@redhat.com>
28189
28190         init.sh: avoid Solaris 10 /bin/sh portability problem
28191         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
28192         sourced script:
28193           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
28194           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
28195           bar
28196         tests/init.sh relied on that, accepting a --set-path=DIR argument,
28197         and two tests used that idiom.
28198         * tests/init.sh: Update suggested usage comments.
28199         (path_prepend_): New function, to be used in place
28200         of the --src-path=DIR option.
28201         (setup_): Move PATH-prepending code into path_prepend_.
28202         * tests/test-pread.sh: Adapt to new usage.
28203         * tests/test-xalloc-die.sh: Likewise.
28204
28205 2009-12-08  Simon Josefsson  <simon@josefsson.org>
28206
28207         * doc/gnulib.texi (Glibc pty.h): Add.
28208         * doc/glibc-functions/forkpty.texi: Add.
28209         * doc/glibc-functions/openpty.texi: Add.
28210         Suggested by Bruno Haible.
28211
28212 2009-12-08  Eric Blake  <ebb9@byu.net>
28213
28214         fchdir: fix logic bugs
28215         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
28216         * tests/test-fchdir.c (main): Enhance test.
28217         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
28218         is in use.
28219
28220         dup2: fix logic bugs
28221         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
28222         REPLACE_DUP2 to decide when rpl_dup2 is needed.
28223         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
28224         exists.
28225         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
28226
28227 2009-12-07  Eric Blake  <ebb9@byu.net>
28228
28229         unlink: fix m4 detection
28230         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
28231
28232         unistd-safer: add unit test
28233         * modules/unistd-safer-tests: New file.
28234         * tests/test-dup-safer.c: Likewise.
28235         * tests/test-cloexec.c (setmode): Avoid compiler warning.
28236         * tests/test-dup2.c (setmode): Likewise.
28237         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
28238
28239         cloexec: preserve text vs. binary across dup_cloexec
28240         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
28241         mode.
28242         * modules/dup2-tests (Depends-on): Add binary-io.
28243         * modules/cloexec-tests (Depends-on): Likewise.
28244         * tests/test-dup2.c (setmode, is_mode): New helpers.
28245         (main): Add tests that translation mode is preserved.
28246         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
28247         Reported by Bruno Haible.
28248
28249         mgetgroups: reduce duplicate listings
28250         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
28251         resulting array.
28252         * tests/test-chown.h (test_chown): Simplify client.
28253         * tests/test-lchown.h (test_lchown): Likewise.
28254
28255 2009-12-06  Bruno Haible  <bruno@clisp.org>
28256
28257         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
28258         value.
28259
28260 2009-12-06  Bruno Haible  <bruno@clisp.org>
28261
28262         * lib/progname.c: Include stdio.h, stdlib.h.
28263         (set_program_name): Reject a NULL argument.
28264
28265 2009-12-05  Eric Blake  <ebb9@byu.net>
28266
28267         pipe2-safer: new module
28268         * modules/pipe2-safer: New file.
28269         * lib/unistd-safer.h (pipe2_safer): New prototype.
28270         * lib/unistd--.h (pipe2): New wrapper.
28271         * lib/pipe-safer.c (pipe2_safer): New function.
28272         * modules/pipe (Depends-on): Add pipe2-safer.
28273         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
28274
28275         stdlib-safer: preserve cloexec flag for mkostemp[s]
28276         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
28277         fd_safer_flag.
28278
28279         unistd-safer: allow preservation of cloexec status via flag
28280         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
28281         prototypes.
28282         * lib/dup-safer.c (dup_safer_flag): New function.
28283         * lib/fd-safer.c (fd_safer_flag): Likewise.
28284         * modules/cloexec (configure.ac): Set witness.
28285
28286         test-dup2: enhance test
28287         * modules/dup2-tests (Depends-on): Add cloexec.
28288         * tests/test-dup2.c (main): Enhance test.
28289
28290         cloexec: add dup_cloexec
28291         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
28292         header and comments.
28293         * lib/cloexec.c (set_cloexec_flag): Add comments.
28294         (dup_cloexec): New function, with mingw implementation borrowed
28295         from...
28296         * lib/w32spawn.h (dup_noinherit): ...here.
28297         * modules/execute (Depends-on): Add cloexec.
28298         * modules/pipe (Depends-on): Likewise.
28299         * modules/cloexec (Depends-on): Add dup2.
28300         * modules/cloexec-tests (Files): New file.
28301         * tests/test-cloexec.c: Likewise.
28302
28303         test-xalloc-die: fix test for mingw
28304         * modules/xalloc-die-tests (Files): Add tests/init.sh.
28305         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
28306         directory and .exe suffix off argv[0] output.
28307
28308         test-fseeko: fix test for mingw
28309         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
28310         than undefining fseek, so test will pass on mingw.
28311
28312 2009-12-05  Bruno Haible  <bruno@clisp.org>
28313
28314         * lib/progname.h (set_program_name): Clarify specification.
28315         * lib/progname.c (set_program_name): Likewise.
28316         Reported by Jim Meyering.
28317
28318 2009-12-05  Jim Meyering  <meyering@redhat.com>
28319
28320         maint.mk: backslash-escape parens in default regexp
28321         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
28322         backslash-escape the literal parentheses.
28323
28324         maint.mk: news-date-check: use grep -E
28325         * top/maint.mk (today): Define a Make variable, not a...
28326         (news-date-check): ...shell variable.
28327         (news-date-regexp): Use the Make variable.
28328         Use grep's -E option.  Change the failing diagnostic to mention
28329         the variable, $(news-date-regexp).
28330
28331 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
28332
28333         maintainer-makefile: allow customization of NEWS entry format
28334         * top/maint.mk (news-date-regexp): New overridable variable.
28335         (news-date-check): Use it.
28336
28337 2009-12-04  Eric Blake  <ebb9@byu.net>
28338
28339         mgetgroups: add xgetgroups, and avoid ENOSYS failures
28340         * lib/mgetgroups.h (xgetgroups): New prototype.
28341         * lib/mgetgroups.c (xgetgroups): New wrapper.
28342         (mgetgroups): Handle ENOSYS.
28343         * modules/mgetgroups (Depends-on): Add realloc.
28344         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
28345
28346         mgetgroups: avoid argument promotion issues with -1
28347         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
28348         for invalid gid_t.
28349         * tests/test-chown.h (getegid, test_chown): Likewise.
28350         * tests/test-lchown.h (getegid, test_lchown): Likewise.
28351
28352 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
28353
28354         exclude: Fix header file problems.
28355         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
28356
28357 2009-12-01  Jim Meyering  <meyering@redhat.com>
28358
28359         fts: fts_open: do not let an empty string cause immediate failure
28360         This is required in support of GNU rm, for which the command
28361         "rm A '' B" must process and remove both A and B, in spite of
28362         the empty string argument.
28363         * lib/fts.c (fts_open): Do not let the presence of an empty string
28364         cause fts_open to fail immediately.  Most fts-using tools must be
28365         able to process all arguments, in order, and can be expected to
28366         diagnose such arguments themselves.
28367
28368 2009-11-30  Eric Blake  <ebb9@byu.net>
28369
28370         utimens: fix compilation error
28371         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
28372         Declare variable at right scope.
28373
28374 2009-11-29  Jim Meyering  <meyering@redhat.com>
28375
28376         bootstrap: handle perl-5.11's changed --version output
28377         * build-aux/bootstrap (get_version): Handle perl separately,
28378         since perl-5.11's --version output is different.
28379
28380 2009-11-28  Jim Meyering  <meyering@redhat.com>
28381
28382         userspec: depend on the inttostr module, too
28383         * modules/userspec (Depends-on): Add inttostr.
28384
28385         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
28386         * lib/userspec.c (parse_with_separator): Do not accept a user ID
28387         number of MAXUID when it evaluates to (uid_t) -1.
28388         Likewise for group ID.  Reported by Matt McCutchen in
28389         <http://savannah.gnu.org/bugs/?28113>
28390
28391         userspec: reformat to use spaces, not TABs
28392         * lib/userspec.c: Expand TABs to spaces.
28393         Add Emacs' "indent-tabs-mode: nil" hint.
28394
28395 2009-11-27  Eric Blake  <ebb9@byu.net>
28396
28397         getopt-gnu: flush out another BSD bug
28398         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
28399         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
28400         flush out BSD bug.
28401         * tests/test-getopt.h (test_getopt): End lists with NULL.
28402         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28403         (test_getopt_long_posix): Enhance test.
28404         * modules/getopt-posix-tests (Depends-on): Add stdbool.
28405         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
28406         getopt-gnu.
28407         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28408         Likewise.
28409
28410 2009-11-27  Simon Josefsson  <simon@josefsson.org>
28411
28412         * modules/idpriv-droptemp-tests (Notice): Fix text.
28413
28414 2009-11-27  Jim Meyering  <meyering@redhat.com>
28415
28416         test-xalloc-die: avoid spurious failure due to libtool argv difference
28417         In a libtool-enabled project, this test would fail due to a difference
28418         in the emitted program name, e.g.,
28419         -test-xalloc-die: memory exhausted
28420         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
28421         Use program to avoid that.
28422         * modules/xalloc-die-tests (Depends-on): Add progname.
28423         * tests/test-xalloc-die.c: Include progname.h".
28424         (program_name): Remove decl.
28425         (main): Call set_program_name.
28426         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
28427
28428 2009-11-26  Richard Jones  <rjones@redhat.com>
28429
28430         w32sock: leave win32 error in place.
28431         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
28432
28433 2009-11-26  Eric Blake  <ebb9@byu.net>
28434
28435         init.sh: suggest to use skip_ and fail_ functions in comments
28436         * tests/init.sh: Add a sentence.
28437
28438 2009-11-25  Bruno Haible  <bruno@clisp.org>
28439
28440         init.sh: add documentation in comments
28441         * tests/init.sh: Add some developer and user documentation.
28442
28443 2009-11-26  Jim Meyering  <meyering@redhat.com>
28444
28445         init.sh: accommodate even those who specify bogus srcdir manually
28446         * tests/init.sh: Normally, srcdir is guaranteed by automake and
28447         configure-time tests to be sanitized, so that there is no need to
28448         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
28449         (with no double quotes) suffices.  However, since tests may be
28450         invoked manually, and since you may explicitly set srcdir to the
28451         name of a directory containing spaces, do quote its uses here.
28452         * tests/test-pread.sh: Likewise.
28453         Suggested by Bruno Haible.
28454
28455         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
28456         * tests/test-pread.sh: Write no data into the pipe, because
28457         test-pread actually reads none.  This avoids a diagnostic,
28458         "bash: echo: write error: Broken pipe", that arises in the unusual
28459         event something is ignoring SIGPIPE, and might be interpreted
28460         as some sort of failure.  Reported by Bruno Haible.
28461
28462 2009-11-25  Jim Meyering  <meyering@redhat.com>
28463
28464         test-pread: cover failure with ESPIPE and EINVAL
28465         * tests/test-pread.c (main): Test for failure, too.
28466         * tests/test-pread.sh: Invoke with stdin on a pipe.
28467         Suggested by Eric Blake.
28468
28469         pread: improvement and fix
28470         * modules/pread (Depends-on): Depend on lseek, for portability to
28471         e.g., mingw.  Suggested by Eric Blake.
28472         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
28473
28474         unistd.in.h: correct declaration of pread
28475         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
28476         Reported by Richard W.M. Jones.
28477
28478         test-pread.sh: distribute the test script
28479         * modules/pread-tests (Files): Include test-pread.sh.
28480
28481         test-pread.sh: clean up
28482         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
28483         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
28484         That is unnecessary, since it's always ".".
28485         Suggestion from Eric Blake.
28486
28487         test-pread.sh: make executable
28488         * tests/test-pread.sh: Set executable bit.
28489         Reported by Eric Blake.
28490
28491         correct typo in test-pread.sh
28492         * tests/test-pread.sh: Add #! line.
28493
28494         test pread
28495         * tests/test-pread.c: New file.
28496         * tests/test-pread.sh: Likewise.
28497         * modules/pread-tests: Likewise.
28498
28499         pread: new module
28500         * modules/pread: New file.
28501         * lib/unistd.in.h (pread): Define/declare.
28502         * lib/pread.c (pread): New file.
28503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
28504         * modules/unistd (Makefile.am): Substitute witnesses.
28505         * doc/posix-functions/pread.texi (pread): Update.
28506         * MODULES.html.sh: Add pread.
28507
28508 2009-11-25  Jim Meyering  <meyering@redhat.com>
28509
28510         tests/init.sh: new file to be used via most *.sh tests
28511         * tests/init.sh: New file.
28512
28513 2009-11-25  Eric Blake  <ebb9@byu.net>
28514
28515         utimens: work around older Linux failure with symlinks
28516         * lib/utimens.c (lutimensat_works_really): New variable.
28517         (fdutimens, lutimens): Use it to manage kernels that support
28518         nanosecond times on files, but not on symlinks.
28519         Reported by OndÅ™ej Vašík.
28520
28521         utimes: fix configure grammar
28522         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
28523
28524 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
28525
28526         regex: Fix fastmap for multibyte character ranges.
28527         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
28528         characters when a multibyte character range is included.
28529
28530 2009-11-22  Andy Wingo  <wingo@pobox.com>
28531
28532         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
28533         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
28534
28535 2009-11-24  Bruno Haible  <bruno@clisp.org>
28536
28537         doc: Most *_l functions exist in MacOS X 10.5.
28538         * doc/posix-functions/duplocale.texi: Update platforms list.
28539         * doc/posix-functions/freelocale.texi: Likewise.
28540         * doc/posix-functions/newlocale.texi: Likewise.
28541         * doc/posix-functions/uselocale.texi: Likewise.
28542         * doc/posix-functions/isalnum_l.texi: Likewise.
28543         * doc/posix-functions/isalpha_l.texi: Likewise.
28544         * doc/posix-functions/isblank_l.texi: Likewise.
28545         * doc/posix-functions/iscntrl_l.texi: Likewise.
28546         * doc/posix-functions/isdigit_l.texi: Likewise.
28547         * doc/posix-functions/isgraph_l.texi: Likewise.
28548         * doc/posix-functions/islower_l.texi: Likewise.
28549         * doc/posix-functions/isprint_l.texi: Likewise.
28550         * doc/posix-functions/ispunct_l.texi: Likewise.
28551         * doc/posix-functions/isspace_l.texi: Likewise.
28552         * doc/posix-functions/isupper_l.texi: Likewise.
28553         * doc/posix-functions/iswalnum_l.texi: Likewise.
28554         * doc/posix-functions/iswalpha_l.texi: Likewise.
28555         * doc/posix-functions/iswblank_l.texi: Likewise.
28556         * doc/posix-functions/iswcntrl_l.texi: Likewise.
28557         * doc/posix-functions/iswctype_l.texi: Likewise.
28558         * doc/posix-functions/iswdigit_l.texi: Likewise.
28559         * doc/posix-functions/iswgraph_l.texi: Likewise.
28560         * doc/posix-functions/iswlower_l.texi: Likewise.
28561         * doc/posix-functions/iswprint_l.texi: Likewise.
28562         * doc/posix-functions/iswpunct_l.texi: Likewise.
28563         * doc/posix-functions/iswspace_l.texi: Likewise.
28564         * doc/posix-functions/iswupper_l.texi: Likewise.
28565         * doc/posix-functions/iswxdigit_l.texi: Likewise.
28566         * doc/posix-functions/isxdigit_l.texi: Likewise.
28567         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
28568         * doc/posix-functions/strcasecmp_l.texi: Likewise.
28569         * doc/posix-functions/strcoll_l.texi: Likewise.
28570         * doc/posix-functions/strfmon_l.texi: Likewise.
28571         * doc/posix-functions/strftime_l.texi: Likewise.
28572         * doc/posix-functions/strncasecmp_l.texi: Likewise.
28573         * doc/posix-functions/strxfrm_l.texi: Likewise.
28574         * doc/posix-functions/tolower_l.texi: Likewise.
28575         * doc/posix-functions/toupper_l.texi: Likewise.
28576         * doc/posix-functions/towctrans_l.texi: Likewise.
28577         * doc/posix-functions/towlower_l.texi: Likewise.
28578         * doc/posix-functions/towupper_l.texi: Likewise.
28579         * doc/posix-functions/wcscoll_l.texi: Likewise.
28580         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
28581         * doc/posix-functions/wctrans_l.texi: Likewise.
28582         * doc/posix-functions/wctype_l.texi: Likewise.
28583         * doc/glibc-functions/strptime_l.texi: Likewise.
28584         * doc/glibc-functions/strtod_l.texi: Likewise.
28585         * doc/glibc-functions/strtof_l.texi: Likewise.
28586         * doc/glibc-functions/strtol_l.texi: Likewise.
28587         * doc/glibc-functions/strtold_l.texi: Likewise.
28588         * doc/glibc-functions/strtoll_l.texi: Likewise.
28589         * doc/glibc-functions/strtoul_l.texi: Likewise.
28590         * doc/glibc-functions/strtoull_l.texi: Likewise.
28591         * doc/glibc-functions/wcsftime_l.texi: Likewise.
28592         * doc/glibc-functions/wcstod_l.texi: Likewise.
28593         * doc/glibc-functions/wcstof_l.texi: Likewise.
28594         * doc/glibc-functions/wcstol_l.texi: Likewise.
28595         * doc/glibc-functions/wcstold_l.texi: Likewise.
28596         * doc/glibc-functions/wcstoll_l.texi: Likewise.
28597         * doc/glibc-functions/wcstoul_l.texi: Likewise.
28598         * doc/glibc-functions/wcstoull_l.texi: Likewise.
28599
28600 2009-11-24  Bruno Haible  <bruno@clisp.org>
28601
28602         duplocale: Fix logic bug.
28603         * lib/duplocale.c: Don't include <langinfo.h>.
28604         (_NL_LOCALE_NAME): Remove macro.
28605         (rpl_duplocale): Use setlocale instead of nl_langinfo.
28606         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
28607
28608 2009-11-23  Jim Meyering  <meyering@redhat.com>
28609
28610         test-update-copyright: don't hard-code /usr/bin/perl
28611         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
28612         perl to print the current year.  Gilles Espinasse reported that
28613         the replaced use of perl was hard-coded as /usr/bin/perl.
28614
28615 2009-11-23  Bruno Haible  <bruno@clisp.org>
28616
28617         duplocale: Add support for glibc 2.3.x.
28618         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
28619
28620 2009-11-22  Bruno Haible  <bruno@clisp.org>
28621
28622         vasnprintf: Tiny optimization.
28623         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
28624         MacOS X.
28625
28626 2009-11-22  Bruno Haible  <bruno@clisp.org>
28627
28628         Tests for module 'duplocale'.
28629         * modules/duplocale-tests: New file.
28630         * tests/test-duplocale.c: New file.
28631
28632         New module 'duplocale'.
28633         * m4/duplocale.m4: New file.
28634         * lib/locale.in.h (duplocale): New declaration.
28635         * lib/duplocale.c: New file.
28636         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
28637         gl_LOCALE_H_DEFAULTS): New macros.
28638         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
28639         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
28640         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
28641         REPLACE_DUPLOCALE.
28642         * modules/duplocale: New file.
28643         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
28644
28645 2009-11-22  Bruno Haible  <bruno@clisp.org>
28646
28647         * modules/locale-tests (configure.ac): Test for newlocale function.
28648         * tests/test-locale.c: When the system has extended locale functions,
28649         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
28650
28651         locale: Make locale_t available when possible.
28652         * lib/locale.in.h: Include <xlocale.h> when it exists.
28653         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
28654         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
28655         * modules/locale (Depends-on): Add extensions.
28656         (Makefile.am): Also substitute HAVE_XLOCALE_H.
28657         * doc/posix-headers/locale.texi: Document the problem with locale_t.
28658
28659 2009-11-22  Bruno Haible  <bruno@clisp.org>
28660
28661         Add comments.
28662         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
28663         invocation.
28664         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
28665         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28666         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28667
28668 2009-11-22  Bruno Haible  <bruno@clisp.org>
28669
28670         error: account for the possibility of freopen (stdout).
28671         * lib/error.c: Include <unistd.h>.
28672         (flush_stdout): New function, extracted from error and error_at_line.
28673         Determine stdout's fd dynamically.
28674         (error, error_at_line): Invoke flush_stdout.
28675         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
28676         * modules/error (Depends-on): Add unistd.
28677
28678 2009-11-22  Bruno Haible  <bruno@clisp.org>
28679
28680         diffseq: Add comment.
28681         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
28682
28683 2009-11-22  Jim Meyering  <meyering@redhat.com>
28684
28685         c-stack: avoid defining an unused static function
28686         * lib/c-stack.c (find_stack_direction): Do not define this function
28687         when it will not be used.
28688
28689         diffseq: avoid spurious gcc warnings
28690         * lib/diffseq.h (IF_LINT2): Define.
28691         (compareseq): Use it to initialize two members of "part".
28692         This avoids two used-uninitialized warnings.
28693
28694 2009-11-21  Jim Meyering  <meyering@redhat.com>
28695
28696         c-stack: avoid "ignoring return value of `write'" warning
28697         * lib/c-stack.c: Include "ignore-value.h".
28698         (die): Explicitly ignore each write return value.
28699         * modules/c-stack (Depends-on): Add ignore-value.
28700
28701 2009-11-21  Bruno Haible  <bruno@clisp.org>
28702
28703         diffseq: reduce scope of variable 'best'.
28704         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
28705         variable, earlier used for two different purposes.
28706
28707 2009-11-21  Jim Meyering  <meyering@redhat.com>
28708
28709         diffseq: remove useless assignment to "best"
28710         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
28711         assignment.  At that point "best" is already guaranteed to be zero.
28712
28713 2009-11-20  Eric Blake  <ebb9@byu.net>
28714
28715         build: mention ftp redirector in release announcements
28716         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
28717         values that used to come from cfg.mk; mention FTP redirect URL.
28718         * build-aux/announce-gen: Mention the mirror list.
28719         Suggested by Karl Berry.
28720
28721         nanosleep: improve port to mingw
28722         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
28723         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
28724         LIB_NANOSLEEP, but only when needed.
28725         * modules/select (Link): Document LIBSOCKET.
28726         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
28727         enough.
28728
28729         nanosleep: work around cygwin bug
28730         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
28731         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
28732         bug.
28733         (getnow): Delete, not needed.
28734         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
28735         LIB_CLOCK_GETTIME.
28736         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
28737         clock-time, gettime.
28738         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
28739         bug.
28740         * modules/nanosleep-tests: New test.
28741         * tests/test-nanosleep.c: New file.
28742
28743         sleep: work around cygwin bug
28744         * lib/sleep.c (rpl_sleep): Work around the bug.
28745         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
28746         (gl_PREREQ_SLEEP): Delete unused macro.
28747         * modules/sleep (Depends-on): Add verify.
28748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
28749         * modules/unistd (Makefile.am): Substitute witness.
28750         * lib/unistd.in.h (sleep): Update prototype.
28751         * doc/posix-functions/sleep.texi (sleep): Document the bug.
28752         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
28753         * modules/sleep-tests (Depends-on): Check for alarm.
28754
28755 2009-11-20  Jim Meyering  <meyering@redhat.com>
28756
28757         maint.mk: improve sc_prohibit_magic_number_exit
28758         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
28759         so it does not match uses like System.exit(1).
28760         Add comments showing how to correct all offenders.
28761
28762 2009-11-19  Eric Blake  <ebb9@byu.net>
28763
28764         xalloc-die-tests: add missing library
28765         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
28766
28767         test-xvasprintf: silence compiler warnings
28768         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
28769         empty string from gcc.
28770
28771 2009-11-19  Jim Meyering  <meyering@redhat.com>
28772
28773         xfreopen: new module, from coreutils
28774         * modules/xfreopen: New module.
28775         * lib/xfreopen.c: New file.
28776         * lib/xfreopen.h: New file.
28777         * MODULES.html.sh (File stream based Input/Output"): Add it.
28778
28779 2009-11-19  Eric Blake  <ebb9@byu.net>
28780
28781         manywarnings: depend on warnings
28782         * modules/manywarnings (Depends-on): Add warnings.
28783
28784         build: avoid compiler warnings
28785         * lib/select.c (rpl_select): Delete unused variable.
28786         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
28787
28788 2009-11-18  Eric Blake  <ebb9@byu.net>
28789
28790         tests: avoid false negative with --with-packager
28791         * tests/test-version-etc.sh: Discard packager information.
28792         * tests/test-argp-version-etc-1.sh: Likewise.
28793         Reported by Mike Frysinger.
28794
28795         utimens: fix regression on Solaris
28796         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
28797         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
28798         can only change fd timestamps via futimesat.  Instead, use an
28799         additional witness macro to avoid BSD bug.
28800         Reported by Jim Meyering.
28801
28802 2009-11-17  Eric Blake  <ebb9@byu.net>
28803
28804         usleep: use it to simplify tests
28805         * modules/stat-time-tests (Depends-on): Add usleep.
28806         (configure.ac): Drop usleep check.
28807         * modules/chown-tests (Depends-on, configure.ac): Likewise.
28808         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
28809         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
28810         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
28811         * modules/openat-tests (Depends-on, configure.ac): Likewise.
28812         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
28813         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
28814         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
28815         Likewise.
28816         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
28817         * tests/test-lchown.h (nap): Likewise.
28818         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
28819         * tests/test-stat-time.c (nap): Likewise.
28820         * tests/test-utimens-common.h (nap): Update comments.
28821
28822         usleep: new module
28823         * modules/usleep: New file.
28824         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
28825         * lib/usleep.c (usleep): Likewise.
28826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
28827         * modules/unistd (Makefile.am): Substitute witnesses.
28828         * lib/unistd.in.h (usleep): Add declaration.
28829         * doc/pastposix-functions/usleep.texi (usleep): Document this.
28830         * MODULES.html.sh (Date and time): Likewise.
28831         * modules/usleep-tests (Depends-on): New test.
28832         * tests/test-usleep.c: New file.
28833
28834         chown: work around OpenBSD bug
28835         * lib/chown.c (rpl_chown): Work around the bug.
28836         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
28837         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
28838         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
28839         * modules/chown (Depends-on): Add stdbool.
28840         * modules/lchown (Depends-on): Likewise.
28841         * doc/posix-functions/chown.texi (chown): Document the bug.
28842         * doc/posix-functions/lchown.texi (lchown): Likewise.
28843         * tests/test-lchown.h (test_chown): Relax test.
28844
28845         mkstemp: avoid conflict with C++ keyword template
28846         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
28847         * lib/mkostemp.c (mkostemp): Likewise.
28848         * lib/mkostemps.c (mkostemps): Likewise.
28849         * lib/mkstemp.c (mkstemp): Likewise.
28850         * lib/mkstemps.c (mkstemps): Likewise.
28851
28852         xalloc-die-tests: optimize
28853         * tests/test-xalloc-die.sh: Reduce number of processes.
28854
28855 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28856
28857         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
28858         patch from ludo@gnu.org (Ludovic Courtès).
28859
28860 2009-11-17  Jim Meyering  <meyering@redhat.com>
28861
28862         version-etc: use proper license string
28863         * modules/version-etc (License): Use LGPL, not LGPLv3+.
28864         * modules/version-etc-fsf: Likewise.
28865
28866 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28867
28868         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
28869         printed to stdout.  Deal with EOL differences.
28870
28871 2009-11-17  Eric Blake  <ebb9@byu.net>
28872
28873         unsetenv: work around Solaris bug
28874         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
28875         * lib/unsetenv.c (rpl_unsetenv): Work around it.
28876         Reported by Jim Meyering.
28877
28878         vasnprintf: avoid compiler warnings
28879         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
28880         variables.
28881         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
28882
28883 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28884
28885         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
28886         settings since xalloc-die is no longer the self test,
28887         xalloc-die.sh is.
28888
28889 2009-11-17  Jim Meyering  <meyering@redhat.com>
28890
28891         test-xalloc-die.sh: make the code agree with the commit log
28892         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
28893         at the end, just in case you happen to have a test-xalloc-die
28894         program in some other PATH directory.
28895
28896         test-xalloc-die.sh: fix a portability bug
28897         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
28898         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
28899         Otherwise, argv[0] (as often seen in diagnostics) would be too
28900         system-dependent, sometimes with, and sometimes without the leading "./".
28901
28902         version-etc-fsf: relax license to LGPLv3+
28903         * modules/version-etc-fsf (License): Relax license.
28904
28905 2009-11-16  Eric Blake  <ebb9@byu.net>
28906
28907         xalloc-die-tests: avoid printing null pointer
28908         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
28909         shell script.
28910         * tests/test-xalloc-die.c (program_name): Declare.
28911         * tests/test-xalloc-die.sh (tmpfiles): New file.
28912
28913         setenv, unsetenv: work around various bugs
28914         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
28915         (setenv) [HAVE_SETENV]: Work around bugs.
28916         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
28917         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
28918         for bugs.
28919         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
28920         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
28921         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
28922         * modules/stdlib (Makefile.am): Update substitutions.
28923         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
28924         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
28925         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28926         * modules/setenv-tests: New test.
28927         * modules/unsetenv-tests: Likewise.
28928         * tests/test-setenv.c: New file.
28929         * tests/test-unsetenv.c: Likewise.
28930
28931 2009-11-16  Jim Meyering  <meyering@redhat.com>
28932
28933         version-etc: relax license to LGPLv3+
28934         * modules/version-etc (License): Relax license.
28935
28936         better AC_REQUIRE expanded-before-required-warning avoidance
28937         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
28938         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
28939         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
28940         which is no longer needed.
28941
28942 2009-11-16  Eric Blake  <ebb9@byu.net>
28943
28944         test-freading: clean up temporary file
28945         * tests/test-freading.c (main): Remove file on success, and use
28946         ASSERT more liberally.
28947         Reported by Jim Meyering.
28948
28949 2009-11-16  Jim Meyering  <meyering@redhat.com>
28950
28951         avoid new AC_REQUIRE expanded-before-required warnings
28952         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
28953         merely using it.
28954         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
28955         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
28956
28957 2009-11-15  Simon Josefsson  <simon@josefsson.org>
28958
28959         * tests/test-xalloc-die.c: New file.
28960         * modules/xalloc-die-tests: New file.
28961         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
28962         XFAIL_TESTS so it can be appended by modules.
28963
28964 2009-11-15  Simon Josefsson  <simon@josefsson.org>
28965
28966         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
28967         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
28968
28969 2009-11-14  Eric Blake  <ebb9@byu.net>
28970
28971         fnmatch: avoid compiler warning
28972         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
28973         to silence compiler warning about mismatch signedness in ?:.
28974         Reported by Robert Millan.
28975
28976         intprops: add double-inclusion guard
28977         * lib/intprops.h: Allow idempotent includes.
28978         Suggested by Bruce Korb.
28979
28980         openat: detect Solaris fchownat bug
28981         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
28982         penalizing glibc chownat when only lchownat is broken.
28983         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
28984         trailing slash bugs.
28985         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
28986         * modules/openat-tests (Files): Include more files.
28987         (Depends-on): Add mgetgroups, sleep, stat-time.
28988         (configure.ac): Add additional checks.
28989         (Makefile.am): Build new test.
28990         * tests/test-fchownat.c: New file.
28991
28992         lchown: detect Solaris and FreeBSD bug
28993         * lib/lchown.c (rpl_lchown): Work around bug.
28994         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
28995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28996         * modules/unistd (Makefile.am): Populate it.
28997         * lib/unistd.in.h (lchown): Update declaration.
28998         * doc/posix-functions/lchown.texi (lchown): Document the bug.
28999         * modules/lchown-tests: New file.
29000         * tests/test-lchown.h (test_lchown): Likewise.
29001         * tests/test-lchown.c (main): Likewise.
29002
29003         chown: detect Solaris and FreeBSD bug
29004         * lib/chown.c (rpl_chown): Work around bug.
29005         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
29006         (gl_PREREQ_CHOWN): Delete.
29007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29008         * modules/unistd (Makefile.am): Populate it.
29009         * lib/unistd.in.h (chown): Update declaration.
29010         * lib/lchown.c (chown): Update client.
29011         * modules/lchown (Depends-on): Add lstat.
29012         * doc/posix-functions/chown.texi (chown): Document the bug.
29013         * doc/posix-functions/getgroups.texi (getgroups): Document
29014         getgroups pitfall.
29015         * modules/chown-tests: New file.
29016         * tests/test-chown.h (test_chown): Likewise.
29017         * tests/test-chown.c (main): Likewise.
29018
29019 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
29020
29021         gnulib-tool: correctly detect absence of m4 directories
29022         * gnulib-tool: Avoid extra newline on data passed to wc -l.
29023
29024 2009-11-14  Jim Meyering  <meyering@redhat.com>
29025
29026         maint.mk: Prohibit inclusion of "xalloc.h" without use.
29027         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29028
29029 2009-11-14  John W. Eaton  <jwe@gnu.org>
29030
29031         strftime.h: wrap funtion declaration in extern "C" block
29032         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
29033
29034 2009-11-13  Eric Blake  <ebb9@byu.net>
29035
29036         getgroups: avoid compiler warning
29037         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
29038
29039         getgroups: work around FreeBSD bug
29040         * lib/getgroups.c (rpl_getgroups): Work around the bug.
29041         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
29042         * doc/posix-functions/getgroups.texi (getgroups): Document it.
29043         * tests/test-getgroups.c (main): Fix buffer overrun.
29044
29045         getgroups: avoid compilation failure
29046         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
29047         * modules/getgroups (Depends-on): Add stdint.
29048
29049 2009-11-13  Jim Meyering  <meyering@redhat.com>
29050
29051         test-getgroups: avoid compilation failure
29052         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
29053
29054 2009-11-13  Eric Blake  <ebb9@byu.net>
29055
29056         mgetgroups: new module, taken from coreutils
29057         * modules/mgetgroups: New file.
29058         * lib/mgetgroups.h: Likewise.
29059         * lib/mgetgroups.c (mgetgroups): Likewise.
29060         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
29061         * MODULES.html.sh (Users and groups): Mention it.
29062
29063         getgroups: don't expose GETGROUPS_T to user
29064         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
29065         an element at a time if GETGROUPS_T is wrong size.
29066         * lib/getugroups.h (getugroups): Change signature.
29067         * lib/unistd.in.h (getgroups): Likewise.
29068         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
29069         signature needs fixing.
29070         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
29071         AC_TYPE_GETGROUPS.
29072         * modules/group-member (Depends-on): Add getgroups.
29073         * lib/group-member.c (group_info, get_group_info): Use gid_t.
29074         (group_member): Rely on getgroups replacement.
29075         * lib/getugroups.c (getugroups): Use gid_t.
29076         * tests/test-getgroups.c (main): Likewise.
29077         * NEWS: Mention the signature change.
29078         * doc/posix-functions/getgroups.texi (getgroups): Mention the
29079         problem with signature.
29080         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
29081         GETGROUPS_T is still useful for setgroups.
29082
29083         getgroups, getugroups: provide stubs for mingw
29084         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
29085         * lib/getugroups.c (getugroups): Likewise.
29086         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
29087         function.  Modernize replacement scheme.
29088         (gl_PREREQ_GETGROUPS): Delete.
29089         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
29090         * modules/getgroups (configure.ac): Declare witness.
29091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29092         * modules/unistd (Depends-on): Substitute witness.
29093         * lib/unistd.in.h (getgroups): Declare replacement.
29094
29095         getgroups: avoid calling exit
29096         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
29097         drop xalloc.
29098         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
29099         dependencies.
29100         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
29101         exiting, in the rare case of malloc failure.
29102
29103         getgroups: fix logic error
29104         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
29105         has more than 20 groups.
29106         * modules/getgroups-tests: New test.
29107         * tests/test-getgroups.c: New file.
29108
29109 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29110
29111         * tests/test-base64.c: Improve.
29112
29113 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29114
29115         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
29116         Blake <ebb9@byu.net>.
29117
29118 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29119
29120         * tests/test-xvasprintf.c: Add %s%s related checks.
29121
29122 2009-11-12  Eric Blake  <ebb9@byu.net>
29123
29124         version-etc: match standards.texi style
29125         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
29126         and use <> only for URLs.
29127
29128 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
29129
29130         fts: do not fail on a submount during traversal
29131         * lib/fts.c (fts_build): Read the stat info again after opening
29132         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
29133         Original report at http://bugzilla.redhat.com/501848.
29134
29135 2009-11-12  Jim Meyering  <meyering@redhat.com>
29136
29137         bootstrap: sync from coreutils
29138         * build-aux/bootstrap (bootstrap_epilogue): New function.
29139         Use git_modules_config in one more place.  This make bootstrap's
29140         --gnulib-srcdir option more useful for testing.
29141
29142         bootstrap: generalize autoheader check
29143         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
29144         AC_CONFIG_HEADERS.
29145
29146 2009-11-11  Eric Blake  <ebb9@byu.net>
29147
29148         mkfifoat: use new modules for Solaris and BSD bugs
29149         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
29150         * lib/mkfifoat.c (mknodat): Split...
29151         * lib/mknodat.c (mknodat): ...into new file.
29152         * modules/mkfifoat (Files): Ship new file.
29153         (Depends-on): Add mkfifo, mknod.
29154         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
29155         (Depends-on): Add symlink.
29156         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
29157         redundant with test_mkfifo.h.
29158         (do_mkfifoat, do_mknodat): New helpers.
29159
29160         mknod: new module
29161         * modules/mknod: New file.
29162         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
29163         * lib/mknod.c (mknod): Likewise.
29164         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29165         defaults.
29166         * modules/sys_stat (Makefile.am): Substitute them.
29167         * lib/sys_stat.in.h (mknod): Declare replacement.
29168         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29169         Document it.
29170         * doc/posix-functions/mknod.texi (mknod): Likewise.
29171         * modules/mknod-tests: New test.
29172         * tests/test-mknod.c: Likewise.
29173
29174         mkfifo: new module
29175         * modules/mkfifo: New file.
29176         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29177         * lib/mkfifo.c (mkfifo): Likewise.
29178         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29179         defaults.
29180         * modules/sys_stat (Makefile.am): Substitute them.
29181         * lib/sys_stat.in.h (mkfifo): Declare replacement.
29182         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29183         Document it.
29184         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
29185         * modules/mkfifo-tests: New test.
29186         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
29187         from test-mkfifoat.c.
29188         * tests/test-mkfifo.c: New file.
29189
29190         readlink: detect FreeBSD bug
29191         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
29192         slash on symlink.
29193         * doc/posix-functions/readlink.texi (readlink): Document the bug.
29194         * tests/test-readlink.h (test_readlink): Enhance test.
29195
29196         symlink: detect FreeBSD bug
29197         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
29198         slash on symlink.
29199         * doc/posix-functions/symlink.texi (symlink): Document the bug.
29200         * tests/test-symlink.h (test_symlink): Enhance test.
29201
29202 2009-11-10  Eric Blake  <ebb9@byu.net>
29203
29204         link: detect FreeBSD bug
29205         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
29206         symlink.
29207         * doc/posix-functions/link.texi (link): Document the bug.
29208         * tests/test-link.h (test_link): Enhance test.
29209         * tests/test-linkat.c (main): Update caller.
29210
29211         unlink, remove: detect FreeBSD bug
29212         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
29213         slash on symlink.
29214         * doc/posix-functions/unlink.texi (unlink): Document the bug.
29215         * doc/posix-functions/remove.texi (remove): Likewise.
29216         * tests/test-unlink.h (test_unlink): Enhance test.
29217         * tests/test-remove.c (main): Likewise.
29218
29219 2009-11-09  Eric Blake  <ebb9@byu.net>
29220
29221         rename: detect FreeBSD bug
29222         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
29223         slash on symlink.
29224         * modules/renameat-tests (Depends-on): Add filenamecat.
29225         * tests/test-rename.h (test_rename): Allow one more errno.
29226         * tests/test-renameat.c (main): Likewise.
29227         * doc/posix-functions/rename.texi (rename): Document the bug.
29228
29229         open: detect FreeBSD bug
29230         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
29231         symlink.
29232         * doc/posix-functions/open.texi (open): Document the bug.
29233         * doc/posix-functions/utimes.texi (utimes): Likewise.
29234         * tests/test-open.h (test_open): Add parameters, and test symlink
29235         handling.
29236         * tests/test-open.c (main): Adjust caller.
29237         * tests/test-fcntl-safer.c (main): Likewise.
29238         * modules/open-tests (Depends-on): Add stdbool, symlink.
29239         * modules/fcntl-safer-tests (Depends-on): Likewise.
29240         * tests/test-openat.c (main): Add test-open tests.
29241
29242         stat: detect FreeBSD bug
29243         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
29244         symlink.
29245         * doc/posix-functions/stat.texi (stat): Document the bug.
29246         * tests/test-stat.h (test_stat_func): Add argument.
29247         * tests/test-stat.c (main): Adjust caller.
29248         * tests/test-fstatat.c (main): Likewise.
29249         * modules/stat-tests (Depends-on): Add stdbool, symlink.
29250         Reported by Jim Meyering.
29251
29252 2009-11-09  James Youngman  <jay@gnu.org>
29253
29254         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
29255         * lib/strftime.c: Correct placement of #include "ignore-value.h".
29256
29257 2009-11-08  Jim Meyering  <meyering@redhat.com>
29258
29259         utimens: remove invalid futimesat call
29260         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
29261         It used the file descriptor of the target file as the DIR_FD
29262         parameter and NULL as the file name.  That caused failure with
29263         errno == EFAULT on FreeBSD-8.0-rc2
29264
29265 2009-11-07  Eric Blake  <ebb9@byu.net>
29266
29267         fflush, freadseek: use fseeko, not fseek
29268         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
29269         (clear_ungetc_buffer): Avoid potential problems on large files.
29270         * lib/freadseek.c (freadseek): Likewise.
29271         * modules/freadseek (Depends-on): Add fseeko.
29272         * modules/fseek (configure.ac): Set a witness.
29273         * tests/test-fflush.c (main): Use fseeko.
29274         * tests/test-fpurge.c (fseek): Disable link warning.
29275         * tests/test-freadable.c (fseek): Likewise.
29276         * tests/test-freading.c (fseek): Likewise.
29277         * tests/test-fseeko.c (fseek): Likewise.
29278         * tests/test-ftell.c (fseek): Likewise.
29279         * tests/test-ftello.c (fseek): Likewise.
29280         * tests/test-fwritable.c (fseek): Likewise.
29281         * tests/test-fwriting.c (fseek): Likewise.
29282
29283 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29284
29285         * modules/memchr (Depends-on): Drop getpagesize dependency.
29286
29287 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29288
29289         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
29290         Reported by Ludovic Courtès.
29291         * build-aux/pmccabe2html: Improve example usage.
29292         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
29293
29294 2009-11-06  Jim Meyering  <meyering@redhat.com>
29295
29296         do-release-commit-and-tag: New module.
29297         Automate the release-commit and tag process.
29298         * build-aux/do-release-commit-and-tag: New script, from coreutils.
29299         * modules/do-release-commit-and-tag: New file.
29300         * MODULES.html.sh (Support for maintaining and releasing): Add it.
29301
29302 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29303
29304         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
29305         because test-select.c uses inet_pton.
29306
29307 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29308
29309         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
29310         GETADDRINFO_LIB.  Bump serial number.
29311         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
29312         Suggested by Eric Blake <ebb9@byu.net>.
29313
29314 2009-11-05  Eric Blake  <ebb9@byu.net>
29315
29316         strtod: detect darwin bug
29317         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
29318         Reported by Leo Davis.
29319
29320         freopen-safer: new module
29321         * modules/freopen-safer: New module.
29322         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
29323         * lib/freopen-safer.c (freopen_safer): New file.
29324         * lib/stdio-safer.h (freopen_safer): New declaration.
29325         * lib/stdio--.h (freopen): New override.
29326         * MODULES.html.sh (File stream based Input/Output): Mention it.
29327         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
29328         freopen-safer module.
29329         * doc/posix-functions/stderr.texi (stderr): Likewise.
29330         * doc/posix-functions/stdin.texi (stdin): Likewise.
29331         * doc/posix-functions/stdout.texi (stdout): Likewise.
29332         * modules/freopen-safer-tests: New test.
29333         * tests/test-reopen-safer.c: New file.
29334
29335 2009-11-05  Jim Meyering  <meyering@redhat.com>
29336
29337         maint.mk: Prohibit inclusion of "close-stream.h" without use.
29338         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29339
29340 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29341
29342         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
29343
29344 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29345
29346         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
29347
29348 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29349
29350         Fix link error.
29351         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29352         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29353
29354 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29355
29356         * tests/test-func.c: Also test value of __func__.
29357
29358 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29359
29360         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
29361         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
29362
29363 2009-11-05  Bruno Haible  <bruno@clisp.org>
29364
29365         Fix link error.
29366         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29367         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29368         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
29369
29370 2009-11-05  Bruno Haible  <bruno@clisp.org>
29371
29372         Tests for module 'inet_pton'.
29373         * modules/inet_pton-tests: New file.
29374         * tests/test-inet_pton.c: New file.
29375
29376 2009-11-05  Bruno Haible  <bruno@clisp.org>
29377
29378         Tests for module 'inet_ntop'.
29379         * modules/inet_ntop-tests: New file.
29380         * tests/test-inet_ntop.c: New file.
29381
29382 2009-11-04  Eric Blake  <ebb9@byu.net>
29383
29384         stdlib-safer: wrap all mkstemp variants
29385         * modules/mkostemp (configure.ac): Set witness.
29386         * modules/mkostemps (configure.ac): Likewise.
29387         * modules/mkstemps (configure.ac): Likewise.
29388         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
29389         (mkstemps_safer): Wrap more functions.
29390         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
29391         wrapping.
29392         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
29393         (mkstemps_safer): Implement the wrappers.
29394
29395         mkstemps, mkostemps: new modules
29396         * modules/mkostemps: New module.
29397         * modules/mkstemps: Likewise.
29398         * lib/mkostemps.c (mkostemps): New file.
29399         * lib/mkstemps.c (mkstemps): Likewise.
29400         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
29401         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
29402         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
29403         * modules/stdlib (Makefile.am): Substitute them.
29404         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
29405         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
29406         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29407         * doc/gnulib.texi (Glibc stdlib.h): Include them.
29408         * MODULES.html.sh (File system functions): Mention them.
29409
29410         tempname: resync from glibc
29411         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
29412         same values for __GT_FILE as glibc.  Abort even when assertions
29413         are disabled.
29414         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
29415         match its value otherwise.  Allow idempotent inclusion.
29416         * lib/mkdtemp.c (mkdtemp): Adjust caller.
29417         * lib/mkostemp.c (mkostemp): Likewise.
29418         * lib/mkstemp.c (mkstemp): Likewise.
29419         * lib/tmpfile.c (tmpfile): Likewise.
29420         * NEWS: Document this.
29421
29422         utimens: fix use of futimens on older Linux
29423         * lib/utimens.c (fdutimens): Use updated, rather than original,
29424         timespec to avoid bug in older Linux kernel.
29425         Reported by Simon Josefsson.
29426
29427 2009-11-04  Bruno Haible  <bruno@clisp.org>
29428
29429         Make num_processors more flexible and consistent.
29430         * lib/nproc.h (enum nproc_query): New type.
29431         (num_processors): Add a 'query' argument.
29432         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
29433         (num_processors): Add a 'query' argument. Test the value of the
29434         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
29435         mingw, count the number of CPUs available for the current process.
29436         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
29437         Check for sched_getaffinity and sched_getaffinity_np.
29438         * modules/nproc (Depends-on): Add c-ctype, extensions.
29439         * NEWS: Mention the change.
29440
29441 2009-11-03  Bruno Haible  <bruno@clisp.org>
29442
29443         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
29444
29445 2009-11-03  Jim Meyering  <meyering@redhat.com>
29446
29447         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
29448         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
29449         if it is defined.
29450
29451 2009-11-02  Eric Blake  <ebb9@byu.net>
29452
29453         mktime, timegm: share common declaration
29454         * lib/mktime-internal.h: New file.
29455         * lib/mktime.c: Use it rather than open-coding a declaration.
29456         * lib/timegm.c: Likewise.
29457         * modules/mktime (Files): Ship it.
29458         * modules/timegm (Files): Likewise.
29459         Suggested by Bruno Haible.
29460
29461         test-update-copyright: update test to match script changes
29462         * tests/test-update-copyright.sh: Avoid hard-coding perl
29463         location.  Don't update *.bak created by earlier runs.
29464
29465 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29466             Simon Josefsson  <simon@josefsson.org>
29467             Bruno Haible  <bruno@clisp.org>
29468
29469         Fix link error on Solaris 8.
29470         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
29471         also in libnsl. Define also INET_PTON_LIB.
29472         * modules/inet_pton (Link): New section.
29473
29474 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29475             Bruno Haible  <bruno@clisp.org>
29476
29477         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
29478         * modules/inet_ntop (Link): New section.
29479         Reported by Boyan Kasarov <bkasarov@gmail.com>.
29480
29481 2009-11-02  Eric Blake  <ebb9@byu.net>
29482
29483         maint: avoid compiler warnings in m4 macros
29484         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
29485         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
29486
29487 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29488
29489         * m4/pmccabe2html.m4: Remove file.
29490         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
29491         function.  Change maintainer.
29492         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
29493         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
29494         Courtès).
29495
29496 2009-10-31  Eric Blake  <ebb9@byu.net>
29497
29498         fseeko: fix m4 regression
29499         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
29500         regression from 2009-10-27.
29501         Reported by Ralf Wildenhues.
29502
29503 2009-10-31  Jim Meyering  <meyering@redhat.com>
29504
29505         inttostr: aesthetics and improved (compile-time) safety
29506         Define inttype_is_signed rather than inttype_is_unsigned,
29507         since the sole use is via "#if inttype_is_signed".
29508         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
29509         inttype_is_unsigned.
29510         * lib/offtostr.c (inttype_is_signed): Likewise.
29511         * lib/uinttostr.c (inttype_is_signed): Likewise.
29512         * lib/umaxtostr.c (inttype_is_signed): Likewise.
29513         * lib/inttostr.c (inttostr): Use verify to cross-check the
29514         inttype_is_signed value and the signedness of the actual type.
29515         * modules/inttostr (Depends-on): Add verify.
29516
29517 2009-10-30  Eric Blake  <ebb9@byu.net>
29518
29519         build: avoid compiler warnings
29520         * lib/fchmodat.c (lchmod): Mark unused variables.
29521         * lib/getopt.c (_getopt_initialize): Likewise.
29522         * lib/mktime.c (__mktime_internal): Provide prototype.
29523         * lib/inttostr.c (inttostr): Avoid compiler warning even with
29524         older gcc that do not understand #pragma GCC diagnostic.
29525         * lib/uinttostr.c (inttype_is_unsigned): Define.
29526         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
29527
29528 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
29529
29530         stat: fix compilation on AIX
29531         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
29532         only see struct stat64.
29533
29534 2009-10-30  Eric Blake  <ebb9@byu.net>
29535
29536         exclude: make more robust
29537         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
29538         rather than masking a coding bug.
29539         Suggested by Bruno Haible.
29540
29541 2009-10-30  Jim Meyering  <meyering@redhat.com>
29542
29543         perl scripts: remove #!/usr/bin/perl in favor of more portable...
29544         Rather than putting #!/usr/bin/perl on the first line,
29545         start with a variant of what's recommended by "man perlrun" that
29546         invokes the first "perl" program from your shell's search path.
29547         * build-aux/gitlog-to-changelog: Replace #!... as above.
29548         Add a "Local Variables" perl mode setting.
29549         Prompted by a patch from Ludovic Courtès.
29550         Improved by Eric Blake.
29551         * build-aux/useless-if-before-free: Likewise.
29552         * build-aux/announce-gen: Likewise.
29553         * build-aux/update-copyright: Likewise.
29554
29555 2009-10-29  Eric Blake  <ebb9@byu.net>
29556
29557         filenamecat-lgpl: adjust clients
29558         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
29559         filenamecat.
29560         * modules/renameat (Depends-on): Likewise.
29561
29562         filenamecat: split into filenamecat-lgpl
29563         * modules/filenamecat-lgpl: New module.
29564         * modules/filenamecat (Files): Move library-safe files into
29565         filenamecat-lgpl.
29566         (Depends-on): Add filenamecat-lgpl.
29567         (configure.ac): Declare witness.
29568         * lib/filenamecat.h (file_name_concat): Only declare when using
29569         GPL module.
29570         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
29571         Move...
29572         * lib/filenamecat-lgpl.c: ...into new file.
29573         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
29574         (gl_FILE_NAME_CONCAT): Use it.
29575         * MODULES.html.sh (File system functions): Mention new module.
29576
29577         argp: avoid memory leak
29578         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
29579         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
29580         base_name, since the latter malloc()s and can call exit().
29581         Leak introduced 2006-07-03.
29582
29583         dirname-lgpl: adjust clients that don't need full dirname
29584         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
29585         * modules/filenamecat (Depends-on): Likewise.
29586         * modules/linkat (Depends-on): Likewise.
29587         * modules/mkancesdirs (Depends-on): Likewise.
29588         * modules/mkdir (Depends-on): Likewise.
29589         * modules/openat (Depends-on): Likewise.
29590         * modules/savewd (Depends-on): Likewise.
29591         * modules/rename (Depends-on): Likewise.
29592         (License): Relax license.
29593         * modules/mkdir-tests (Depends-on): Drop progname.
29594         (Makefile.am): Delete unneeded LDADD.
29595         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
29596
29597         dirname: split into dirname-lgpl
29598         * modules/dirname-lgpl: New module.
29599         * modules/dirname (Files): Move library-safe files into
29600         dirname-lgpl.
29601         (Depends-on): Add dirname-lgpl.
29602         (configure.ac): Declare witness.
29603         * modules/double-slash-root (License): Relax license.
29604         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
29605         module.
29606         * lib/dirname.c (dir_len, mdir_name): Move...
29607         * lib/dirname-lgpl.c: ...into new file.
29608         * lib/basename.c (last_component, base_len): Move...
29609         * lib/basename-lgpl.c: ...into new file.
29610         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
29611         (gl_DIRNAME): Use it.
29612         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
29613         Mention new module.
29614         * modules/dirname-tests (Depends-on): Add progname.
29615         * tests/test-dirname.c (program_name): Delete.
29616
29617         mkdir: make safe for libraries
29618         * modules/mkdir (Depends-on): Drop xalloc.
29619         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
29620         exit.
29621
29622         tests: avoid some compiler warnings
29623         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
29624         literals.
29625         * tests/test-memchr.c (main): Avoid type mismatch.
29626         * tests/test-arpa_inet.c (main): Avoid unused parameters.
29627         * tests/test-base64.c (main): Likewise.
29628         * tests/test-getdelim.c (main): Likewise.
29629         * tests/test-gethostname.c (main): Likewise.
29630         * tests/test-getline.c (main): Likewise.
29631         * tests/test-netinet_in.c (main): Likewise.
29632         * tests/test-select.c (open_server_socket, main): Likewise.
29633         * tests/test-select-stdin.c (main): Likewise.
29634         * tests/test-sockets.c (main): Likewise.
29635         * tests/test-strsignal.c (main): Likewise.
29636         * tests/test-sys_select.c (main): Likewise.
29637         * tests/test-sys_socket.c (main): Likewise.
29638         * tests/test-u64.c (main): Likewise.
29639         * tests/test-xfprintf-posix.c (main): Likewise.
29640         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
29641
29642         sockets: avoid compiler warning
29643         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
29644
29645         maint: detect usage(1) and other suspicious exits
29646         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
29647
29648 2009-10-29  Jim Meyering  <meyering@redhat.com>
29649
29650         timespec: long-to-int truncation could make timespec_cmp malfunction
29651         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
29652         a multiple of 2^32 nanoseconds as no difference.
29653
29654 2009-10-28  Jim Meyering  <meyering@redhat.com>
29655
29656         fprintftime: wrap macro code argument in "do {...} while(0)"
29657         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
29658         cpy macro must be a statement that can be followed by a semicolon.
29659         Now that the else clause contains a comment and is hence longer
29660         than one line, I require curly braces.  That in turn requires
29661         that we wrap this code block in the standard do...while(0).
29662
29663         fprintftime: remove stray semicolon from previous change
29664         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
29665
29666         fprintftime: avoid a warning about ignored fwrite return value
29667         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
29668         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
29669         that is unsafe.
29670         * modules/fprintftime (Depends-on): Add ignore-value.
29671
29672         exclude: avoid an unwarranted warning
29673         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
29674
29675 2009-10-27  Eric Blake  <ebb9@byu.net>
29676
29677         fseek: avoid compilation failure when fflush is replaced
29678         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
29679         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
29680         module is in use.
29681         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
29682         module is not in use; since REPLACE_FSEEK worked otherwise.
29683         (GNULIB_FTELLO): Likewise for ftell.
29684         Reported by Ian Beckwith and others.
29685
29686 2009-10-27  Bruno Haible  <bruno@clisp.org>
29687
29688         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
29689         Reported by Jim Meyering.
29690
29691 2009-10-27  Jim Meyering  <jim@meyering.net>
29692             Bruno Haible  <bruno@clisp.org>
29693
29694         Avoid warning despite dropping the return value of fwrite.
29695         * lib/unicodeio.c: Include ignore-value.h.
29696         (fwrite_success_callback): Explicitly ignore fwrite's return value.
29697         * modules/unicodeio (Depends-on): Add ignore-value.
29698
29699 2009-10-26  Eric Blake  <ebb9@byu.net>
29700
29701         areadlinkat: fix fallback path
29702         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
29703         pointer and zero.
29704
29705 2009-10-22  Pádraig Brady  <P@draigBrady.com>
29706
29707         Use a better IO block size for modern systems
29708         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
29709         * lib/md2.c: Likewise.
29710         * lib/md4.c: Likewise.
29711         * lib/md5.c: Likewise.
29712         * lib/sha1.c: Likewise.
29713         * lib/sha256.c: Likewise.
29714         * lib/sha512.c: Likewise.
29715
29716 2009-10-22  Eric Blake  <ebb9@byu.net>
29717
29718         tests: avoid several compiler warnings
29719         * tests/test-getcwd.c (main): Avoid buffer underflow.
29720         * tests/test-getdate.c (main): String literals are not safe with
29721         putenv, so use setenv.  Declare unused argument.
29722         * modules/getdate-tests (Depends-on): Add setenv.
29723         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
29724         problems with string literals in char *.
29725         * tests/test-hash.c (main): Avoid shadowing declaration.
29726         (insert_new): Treat string literals as char const *.
29727         * tests/test-getopt.h (test_getopt): Likewise.
29728         (getopt_loop): Alter types to minimize casting elsewhere.
29729         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
29730         (test_getopt_long_posix): Likewise.
29731         (do_getopt_long): Add wrapper to minimize casting.
29732         * tests/test-atexit.c (clear_temp_file): Use void.
29733         * tests/test-areadlink-with-size.c (main): Declare unused
29734         arguments.
29735         * tests/test-areadlink.c (main): Likewise.
29736         * tests/test-areadlinkat-with-size.c (main): Likewise.
29737         * tests/test-areadlinkat.c (main): Likewise.
29738         * tests/test-canonicalize-lgpl.c (main): Likewise.
29739         * tests/test-canonicalize.c (main): Likewise.
29740         * tests/test-dirent-safer.c (main): Likewise.
29741         * tests/test-dirname.c (main): Likewise.
29742         * tests/test-dup2.c (main): Likewise.
29743         * tests/test-fchdir.c (main): Likewise.
29744         * tests/test-fcntl-h.c (main): Likewise.
29745         * tests/test-fcntl-safer.c (main): Likewise.
29746         * tests/test-fdopendir.c (main): Likewise.
29747         * tests/test-fdutimensat.c (main): Likewise.
29748         * tests/test-fflush.c (main): Likewise.
29749         * tests/test-filenamecat.c (main): Likewise.
29750         * tests/test-filevercmp.c (main): Likewise.
29751         * tests/test-fopen-safer.c (main): Likewise.
29752         * tests/test-fopen.c (main): Likewise.
29753         * tests/test-fpending.c (main): Likewise.
29754         * tests/test-fpurge.c (main): Likewise.
29755         * tests/test-freading.c (main): Likewise.
29756         * tests/test-fstatat.c (main): Likewise.
29757         * tests/test-fsync.c (main): Likewise.
29758         * tests/test-futimens.c (main): Likewise.
29759         * tests/test-getndelim2.c (main): Likewise.
29760         * tests/test-gettimeofday.c (main): Likewise.
29761         * tests/test-getopt.c (main): Likewise.
29762         * tests/test-i-ring.c (main): Likewise.
29763         * tests/test-inttypes.c (main): Likewise.
29764         * tests/test-link.c (main): Likewise.
29765         * tests/test-lstat.c (main): Likewise.
29766         * tests/test-math.c (main): Likewise.
29767         * tests/test-md5.c (main): Likewise.
29768         * tests/test-memchr2.c (main): Likewise.
29769         * tests/test-memrchr.c (main): Likewise.
29770         * tests/test-mkdir.c (main): Likewise.
29771         * tests/test-mkdirat.c (main): Likewise.
29772         * tests/test-mkfifoat.c (main): Likewise.
29773         * tests/test-open.c (main): Likewise.
29774         * tests/test-openat-safer.c (main): Likewise.
29775         * tests/test-openat.c (main): Likewise.
29776         * tests/test-quotearg.c (main): Likewise.
29777         * tests/test-rawmemchr.c (main): Likewise.
29778         * tests/test-readlink.c (main): Likewise.
29779         * tests/test-remove.c (main): Likewise.
29780         * tests/test-rename.c (main): Likewise.
29781         * tests/test-renameat.c (main): Likewise.
29782         * tests/test-rmdir.c (main): Likewise.
29783         * tests/test-sha1.c (main): Likewise.
29784         * tests/test-signal.c (main): Likewise.
29785         * tests/test-sigaction.c (main): Likewise.
29786         * tests/test-stat.c (main): Likewise.
29787         * tests/test-stat-time.c (main): Likewise.
29788         * tests/test-stddef.c (main): Likewise.
29789         * tests/test-stdint.c (main): Likewise.
29790         * tests/test-stdio.c (main): Likewise.
29791         * tests/test-stdlib.c (main): Likewise.
29792         * tests/test-strchrnul.c (main): Likewise.
29793         * tests/test-strerror.c (main): Likewise.
29794         * tests/test-string.c (main): Likewise.
29795         * tests/test-strtod.c (main): Likewise.
29796         * tests/test-strverscmp.c (main): Likewise.
29797         * tests/test-symlink.c (main): Likewise.
29798         * tests/test-symlinkat.c (main): Likewise.
29799         * tests/test-sys_stat.c (main): Likewise.
29800         * tests/test-sys_time.c (main): Likewise.
29801         * tests/test-time.c (main): Likewise.
29802         * tests/test-unistd.c (main): Likewise.
29803         * tests/test-unlink.c (main): Likewise.
29804         * tests/test-unlinkat.c (main): Likewise.
29805         * tests/test-utimens.c (main): Likewise.
29806         * tests/test-utimensat.c (main): Likewise.
29807         * tests/test-version-etc.c (main): Likewise.
29808         * tests/test-wchar.c (main): Likewise.
29809         * tests/test-wctype.c (main): Likewise.
29810         * tests/test-xprintf-posix.c (main): Likewise.
29811         * tests/test-posixtm.c (main): Likewise.
29812         (STREQ): Delete unused macro.
29813         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
29814         shadowed variables.
29815         * tests/test-memchr.c (main): Likewise.
29816
29817 2009-10-21  Eric Blake  <ebb9@byu.net>
29818
29819         areadlinkat: avoid failure on older glibc
29820         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
29821         rather than mis-comparing 0 against FUNC_RESULT of char*.
29822
29823 2009-10-21  Bruno Haible  <bruno@clisp.org>
29824
29825         * modules/stpncpy (License): Relicense under LGPLv2+.
29826         Reported by David Lutterkort <lutter@redhat.com>.
29827
29828 2009-10-20  Eric Blake  <ebb9@byu.net>
29829
29830         utimensat: work around Solaris 9 bug
29831         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
29832         has trailing slash bugs.
29833         * tests/test-lutimens.h (test_lutimens): Enhance test.
29834         * tests/test-utimens.h (test_utimens): Likewise.
29835         * doc/posix-functions/utime.texi (utime): Enhance documentation.
29836         * doc/posix-functions/utimes.texi (utimes): Likewise.
29837         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29838         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
29839         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
29840         * doc/posix-functions/futimens.texi (futimens): Likewise.
29841
29842         fdutimensat: new module
29843         * modules/fdutimensat: New file.
29844         * lib/fdutimensat.c (fdutimensat): Likewise.
29845         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
29846         * MODULES.html.sh (File system functions): Mention module.
29847         * modules/fdutimensat-tests: New test.
29848         * tests/test-fdutimensat.c: Likewise.
29849
29850         doc: regenerate INSTALL
29851         * doc/INSTALL: Reflect recent autoconf update.
29852         * doc/INSTALL.ISO: Likewise.
29853         * doc/INSTALL.UTF-8: Likewise.
29854
29855 2009-10-20  Pádraig Brady  <P@draigBrady.com>
29856
29857         acl: warn if ACL support is not detected
29858         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
29859
29860 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
29861
29862         * lib/nproc.h: Add extern "C" block for C++.
29863
29864 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
29865             Bruno Haible  <bruno@clisp.org>
29866
29867         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
29868         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
29869         * doc/posix-functions/isalpha.texi: Likewise.
29870         * doc/posix-functions/isblank.texi: Likewise.
29871         * doc/posix-functions/iscntrl.texi: Likewise.
29872         * doc/posix-functions/isdigit.texi: Likewise.
29873         * doc/posix-functions/isgraph.texi: Likewise.
29874         * doc/posix-functions/islower.texi: Likewise.
29875         * doc/posix-functions/isprint.texi: Likewise.
29876         * doc/posix-functions/ispunct.texi: Likewise.
29877         * doc/posix-functions/isspace.texi: Likewise.
29878         * doc/posix-functions/isupper.texi: Likewise.
29879         * doc/posix-functions/isxdigit.texi: Likewise.
29880
29881 2009-10-18  Bruno Haible  <bruno@clisp.org>
29882
29883         Tests for module 'isblank'.
29884         * modules/isblank-tests: New file.
29885         * tests/test-isblank.c: New file.
29886
29887         New module 'isblank'.
29888         * lib/isblank.c: New file.
29889         * m4/isblank.m4: New file.
29890         * modules/isblank: New file.
29891         * doc/posix-functions/isblank.texi: Mention the new module.
29892
29893 2009-10-18  Bruno Haible  <bruno@clisp.org>
29894
29895         New module 'ctype'.
29896         * lib/ctype.in.h: New file.
29897         * m4/ctype.m4: New file.
29898         * modules/ctype: New file.
29899         * doc/posix-headers/ctype.texi: Mention the new module.
29900
29901 2009-10-18  Jim Meyering  <meyering@redhat.com>
29902
29903         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
29904         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
29905         right after its initialization, rather than farther down.
29906         Keeping these in close proximity makes it easier to ensure
29907         that each such variable is initialized.  E.g.,
29908
29909             LIB_CLOCK_GETTIME=
29910             AC_SUBST([LIB_CLOCK_GETTIME])
29911
29912         This change also increments these serial numbers.
29913         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
29914         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
29915         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29916
29917 2009-10-18  Bruno Haible  <bruno@clisp.org>
29918
29919         Don't let environment variables perturb build.
29920         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
29921         (gl_PREREQ_GETHRXTIME): ... not here.
29922
29923 2009-10-18  Bruno Haible  <bruno@clisp.org>
29924
29925         Avoid symlink attack in localcharset module.
29926         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
29927         (O_NOFOLLOW): Define fallback.
29928         (get_charset_aliases): Don't open the file if it is a symbolic link.
29929         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
29930         gl_FCNTL_H.
29931         (gl_FCNTL_H): Require it.
29932         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
29933         * modules/localcharset (Files): Add m4/fcntl_h.m4.
29934         Reported by Fergal Glynn <fglynn@veracode.com>.
29935
29936 2009-10-18  Bruno Haible  <bruno@clisp.org>
29937
29938         Implement nproc for mingw.
29939         * lib/nproc.c: Include <windows.h>
29940         (num_processors): On native Windows platforms, try GetSystemInfo.
29941
29942 2009-10-18  Bruno Haible  <bruno@clisp.org>
29943
29944         Implement nproc for IRIX.
29945         * lib/nproc.c: Include <sys/sysmp.h>.
29946         (num_processors): On IRIX systems, try sysmp.
29947         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
29948
29949 2009-10-18  Bruno Haible  <bruno@clisp.org>
29950
29951         Implement nproc for HP-UX.
29952         * lib/nproc.c: Include <sys/pstat.h>
29953         (num_processors): On HP-UX systems, try pstat_getdynamic.
29954         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
29955         pstat_getdynamic.
29956
29957 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
29958             Bruno Haible  <bruno@clisp.org>
29959
29960         Implement nproc for NetBSD, OpenBSD.
29961         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
29962         (ARRAY_SIZE): New macro.
29963         (num_processors): On BSD systems, try sysctl of HW_NCPU.
29964         * m4/nproc.m4: New file.
29965         * modules/nproc (Files): Add m4/nproc.m4.
29966         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
29967         (Makefile.am): Instead, augment lib_SOURCES.
29968
29969 2009-10-18  Bruno Haible  <bruno@clisp.org>
29970
29971         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
29972         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
29973         sys/param.h.
29974
29975 2009-10-16  Eric Blake  <ebb9@byu.net>
29976
29977         utimensat: new module
29978         * modules/utimensat: New file.
29979         * lib/utimensat.c (utimensat): Likewise.
29980         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29981         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
29982         so we can work around Linux bugs.
29983         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29984         * modules/sys_stat (Makefile.am): Substitute them.
29985         * lib/sys_stat.in.h (utimensat): Declare it.
29986         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29987         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29988         * modules/utimensat-tests: New test.
29989         * tests/test-utimensat.c: Likewise.
29990
29991         utimens: let lutimens work on non-symlinks
29992         * lib/utimens.c (lutimens): Fall back to utimens rather than
29993         failing with ENOSYS, when file is not a symlink.
29994         (utimens): Reduce redirection.
29995         * tests/test-lutimens.h (test_lutimens): Update test to cover
29996         non-symlinks.
29997         * tests/test-utimens.h (test_utimens): Update test to cover
29998         symlinks.
29999         * tests/test-utimens.c (main): Update caller.
30000
30001         utimens: cache whether utimensat syscall works
30002         * lib/utimens.c (utimensat_works_really): New cache variable.
30003         (fdutimens, lutimens): Use it to avoid failing syscall.
30004
30005         test-stat-time, test-utimens: improve portability
30006         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
30007         ext4 on alpha, and for cygwin.
30008         * tests/test-utimens-common.h: New file.
30009         (nap): Factor delays into single function.
30010         * tests/test-lutimens.h (test_lutimens): Use new header.
30011         * tests/test-futimens.h (test_futimens): Likewise.
30012         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
30013         timestamps to occur from same machine, as was done previously for
30014         test_utimens.
30015         * modules/utimens-tests (Files): Ship new file.
30016         * modules/futimens-tests (Files): Likewise.
30017         Reported in part by Jim Meyering.
30018
30019         sys_stat: sort replacement declarations
30020         * lib/sys_stat.in.h: Sort declarations.
30021         * lib/futimens.c (futimens): Fix typo.
30022
30023 2009-10-15  Jim Meyering  <meyering@redhat.com>
30024
30025         don't let environment settings perturb build
30026         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
30027         could cause a configure-time and/or build-time malfunction.
30028         Typically, a configure-time function-in-library test is performed
30029         via code like this:
30030
30031           LIB_VAR=
30032           AC_SUBST([LIB_VAR])
30033           prefix_saved_LIBS=$LIBS
30034             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
30035                        [test "$ac_cv_search_FUNC" = "none required" ||
30036                         LIB_VAR=$ac_cv_search_FUNC])
30037           LIBS=$prefix_saved_LIBS
30038
30039         However, in each of the files affected by this change, the LIB_VAR=
30040         initialization was omitted.  Thus, when set in the environment, its
30041         value would propagate into generated Makefiles when FUNC is not found
30042         in LIB_NAME.
30043         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
30044         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30045         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30046
30047 2009-10-14  Eric Blake  <ebb9@byu.net>
30048
30049         fchdir: avoid infinite recursion in mingw
30050         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
30051         recursing.
30052
30053         test-stat-time: port to mingw
30054         * tests/test-stat-time.c (force_unlink): Return a value.
30055         (test_ctime) [W32]: Fix compilation error.
30056         (nap): Don't call usleep with too large an argument.  Use
30057         force_unlink.
30058         * doc/pastposix-functions/usleep.texi (usleep): Document the
30059         portability issue.
30060
30061 2009-10-13  Jim Meyering  <meyering@redhat.com>
30062
30063         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
30064         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
30065         * modules/pipe-filter-ii: Likewise.
30066         * modules/sys_socket-tests: Likewise.
30067         * modules/tsearch-tests: Likewise.
30068         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
30069         (check): Depend on it.
30070
30071 2009-10-12  Eric Blake  <ebb9@byu.net>
30072
30073         utimens-tests: port to NFS file systems
30074         * tests/test-utimens.h (test_utimens): Refactor utimecmp
30075         comparisons to avoid spurious failures from timestamp drift
30076         between NFS machines.
30077
30078 2009-10-12  Eric Blake  <ebb9@byu.net>
30079
30080         stat-time-tests: minor cleanups
30081         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
30082         * tests/test-stat-time.c (nap): Separate assignment from call.
30083         Suggested by Paolo Bonzini and Bruno Haible.
30084
30085         sys_stat: guarantee struct timespec
30086         * lib/sys_stat.in.h (includes): Always include <time.h>
30087         * modules/sys_stat (Depends-on): Add time.
30088         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
30089         mode_t permission values.
30090         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
30091         get at subsecond timestamps.
30092
30093 2009-10-10  Eric Blake  <ebb9@byu.net>
30094
30095         futimens: new module
30096         * modules/futimens: New file.
30097         * lib/futimens.c (futimens): Likewise.
30098         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
30099         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
30100         we can work around Linux bugs.
30101         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30102         * modules/sys_stat (Makefile.am): Substitute them.
30103         * lib/sys_stat.in.h (futimens): Declare it.
30104         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30105         * doc/posix-functions/futimens.texi (futimens): Likewise.
30106         * modules/futimens-tests: New test.
30107         * tests/test-futimens.c: Likewise.
30108
30109         utimens: introduce fdutimens
30110         * lib/utimens.h (fdutimens): New prototype.
30111         * lib/utimens.c (gl_futimens): Move guts...
30112         (fdutimens): ...to new interface.
30113         * tests/test-utimens.c (do_fdutimens): Use it.
30114
30115         utimens: add UTIME_NOW and UTIME_OMIT support
30116         * lib/utimens.c (validate_timespec, update_timespec): New helper
30117         functions.
30118         (gl_futimens, lutimens): Use them.
30119         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
30120         stdbool, sys_stat.
30121         (Link): Mention resulting library dependency.
30122         * modules/utimecmp (Link): Likewise.
30123         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
30124         (Makefile.am): Pick up library dependency.
30125         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
30126         definition.
30127         * tests/test-sys_stat.c: Test the definitions.
30128         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
30129         * NEWS: Document library dependency.
30130
30131         utimecmp: support symlink timestamps
30132         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
30133         hashing when possible.  Use pathconf when available.
30134         (SYSCALL_RESOLUTION): Recognize tighter resolution.
30135         * modules/utimecmp (Depends-on): Add lstat.
30136
30137         utimens: add lutimens interface
30138         * lib/utimens.c (lutimens): New function.
30139         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
30140         * lib/utimens.h (lutimens): Declare new interface.
30141         * tests/test-utimens.c (main): Enhance test.
30142         * tests/test-lutimens.h (test_lutimens): New file.
30143         * modules/utimens-tests (Files): Distribute it.
30144         (Depends-on): Add symlink.
30145         (configure.ac): Check for usleep.
30146
30147         utimens: validate futimens usage
30148         * lib/utimens.c (gl_futimens): Require valid fd up front, using
30149         fewer syscalls on failure later on.  Avoid compiler warning on
30150         mingw.
30151         * modules/utimens (Depends-on): Add dup2.
30152
30153         utimens: add test
30154         * modules/utimens-tests: New test.
30155         * tests/test-utimens.h: New file.
30156         * tests/test-futimens.h: Likewise.
30157         * tests/test-utimens.c: Likewise.
30158
30159         doc: mention timestamp portability issues
30160         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
30161         instead.
30162         * doc/posix-functions/utime.texi (utime): Likewise.
30163         * doc/posix-functions/utimes.texi (utimes): Likewise.
30164         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
30165         instead.
30166         * doc/posix-functions/futimens.texi (futimens): Mention utimens
30167         module.
30168         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30169         Mention weakness with symlink timestamps.
30170         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
30171         to utimensat/futimens instead.
30172         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
30173
30174         test-dup2: enhance test
30175         * tests/test-dup2.c (main): Also check AT_FDCWD.
30176
30177         test-stat-time: avoid more spurious failures
30178         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
30179         xfs; and avoid race if the two timestamps cross quantization edge.
30180
30181         relocatable: prefer 'file system' over 'filesystem'
30182         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
30183         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
30184         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
30185         * doc/relocatable.texi (Enabling Relocatability): Likewise.
30186         * lib/relocatable.c (compute_curr_prefix): Likewise.
30187
30188 2009-10-10  Jim Meyering  <meyering@redhat.com>
30189
30190         stat-time-tests: check for the usleep function
30191         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
30192
30193 2009-10-10  Bruno Haible  <bruno@clisp.org>
30194
30195         * modules/xnanosleep: Put the Link section after the Include section.
30196
30197 2009-10-09  Eric Blake  <ebb9@byu.net>
30198
30199         dup2: work around FreeBSD 6.1 bug
30200         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
30201         * doc/posix-functions/dup2.texi (dup2): Document it.
30202         Reported by Nelson H. F. Beebe and Jim Meyering.
30203
30204         test-stat-time: port to buggy NFS clients
30205         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
30206         (test_ctime): Also skip test if mtime and ctime are skewed.
30207
30208         maint: prefer 'file system' over 'filesystem'
30209         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30210         * doc/posix-functions/lstat.texi (lstat): Likewise.
30211         * lib/file-has-acl.c (file_has_acl): Likewise.
30212         * lib/fwriteerror.c [TEST]: Likewise.
30213         * tests/test-areadlink.h (test_areadlink): Likewise.
30214         * tests/test-areadlinkat-with-size.c (main): Likewise.
30215         * tests/test-areadlinkat.c (main): Likewise.
30216         * tests/test-canonicalize-lgpl.c (main): Likewise.
30217         * tests/test-canonicalize.c (main): Likewise.
30218         * tests/test-fstatat.c (main): Likewise.
30219         * tests/test-linkat.c (main): Likewise.
30220         * tests/test-lstat.h (test_lstat_func): Likewise.
30221         * tests/test-mkdir.h (test_mkdir): Likewise.
30222         * tests/test-readlink.h (test_readlink): Likewise.
30223         * tests/test-remove.c (main): Likewise.
30224         * tests/test-rename.h (test_rename): Likewise.
30225         * tests/test-renameat.c (main): Likewise.
30226         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30227         * tests/test-symlink.h (test_symlink): Likewise.
30228         * tests/test-symlinkat.c (main): Likewise.
30229         * tests/test-unlink.h (test_unlink_func): Likewise.
30230         * tests/test-unlinkat.c (main): Likewise.
30231
30232         maint: make realtime library usage explicit
30233         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
30234         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
30235         * modules/settime (Link): Likewise.
30236         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
30237
30238         test-stat-time: speed up execution
30239         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
30240         warning on mingw.
30241         (nap): New helper function.
30242         (prepare_test): Use it to reduce sleep time.
30243         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
30244         execution.
30245         * modules/stat-time-tests (configure.ac): Check for usleep.
30246
30247 2009-10-09  Jim Meyering  <meyering@redhat.com>
30248
30249         selinux-h: always use getfilecon wrappers
30250         * lib/getfilecon.c: New file.
30251         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
30252         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
30253         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
30254         (fgetfilecon): Provide a stub.
30255         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
30256         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
30257         file unconditionally.
30258         When <selinux/selinux.h> is found, arrange to use wrappers.
30259         * modules/selinux-h (Files): Add getfilecon.c.
30260         (Makefile.am): Substitute include-next-related bits
30261         into the now-always-generated selinux/selinux.h file.
30262         * doc/glibc-functions/lgetfilecon.texi: New file.
30263         * doc/glibc-functions/fgetfilecon.texi: New file.
30264         * doc/glibc-functions/getfilecon.texi: New file.
30265         * doc/glibc-functions/getfilecon-desc.texi: New file.
30266         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
30267         which to pull in the new files.
30268         * MODULES.html.sh (Misc): Add selinux-h.
30269
30270 2009-10-08  Jim Meyering  <meyering@redhat.com>
30271
30272         unistd: fix comment typo
30273         * lib/unistd.in.h (euidaccess): Fix a comment typo.
30274
30275 2009-10-08  Eric Blake  <ebb9@byu.net>
30276
30277         areadlink: use SIZE_MAX consistently
30278         * modules/areadlink (Depends-on): Add stdint.
30279         * modules/areadlink-with-size (Depends-on): Likewise.
30280         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
30281         gives NULL; drop sys/types, since unistd gives size_t; and add
30282         stdint for SIZE_MAX.
30283         (SIZE_MAX): Rely on headers.
30284         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
30285         and add stdint.
30286         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
30287         (SIZE_MAX): Likewise.
30288         (INITIAL_BUF_SIZE): Turn into enum.
30289         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
30290
30291 2009-10-08  Jim Meyering  <meyering@redhat.com>
30292
30293         areadlinkat: avoid compilation failure
30294         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
30295         Fix typo in comment.
30296
30297 2009-10-07  Eric Blake  <ebb9@byu.net>
30298
30299         areadlinkat-with-size: new module
30300         * modules/areadlinkat-with-size: New module.
30301         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
30302         * lib/areadlink.h (areadlinkat): Declare it.
30303         * MODULES.html.sh (File system functions): Mention it.
30304         * modules/areadlinkat-with-size-tests: New test.
30305         * tests/test-areadlinkat-with-size.c: New file.
30306
30307         xreadlinkat: new module
30308         * modules/xreadlinkat: New module.
30309         * lib/xreadlinkat.c (xreadlinkat): New file.
30310         * lib/xreadlink.h (xreadlinkat): Declare it.
30311         * MODULES.html.sh (File system functions): Mention it.
30312
30313         areadlinkat: new module
30314         * lib/at-func.c (FUNC_FAIL): New define.
30315         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
30316         * modules/areadlinkat: New module.
30317         * lib/linkat.c (areadlinkat): Move...
30318         * lib/areadlinkat.c (areadlinkat): ...to new file.
30319         * lib/areadlink.h (areadlinkat): Declare it.
30320         * modules/linkat (Depends-on): Add areadlinkat.
30321         * MODULES.html.sh (File system functions): Mention it.
30322         * modules/areadlinkat-tests: New test.
30323         * tests/test-areadlinkat.c: New file.
30324
30325         areadlink, areadlink-with-size: add tests
30326         * modules/areadlink-tests: New test.
30327         * modules/areadlink-with-size-tests: Likewise.
30328         * tests/test-areadlink.h: New file.
30329         * tests/test-areadlink.c: Likewise.
30330         * tests/test-areadlink-with-size.c: Likewise.
30331
30332         maint: minor cleanups
30333         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
30334         _UNUSED_PARAMETER_ instead.
30335         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
30336         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
30337         * modules/linkat-tests (Files): Distribute test-link.h.
30338
30339         openat, utimens: whitespace cleanup
30340         * lib/openat.c: Prefer space throughout, rather than mix of 8
30341         spaces vs. tabs.
30342         * lib/at-func.c: Likewise.
30343         * lib/utimens.c: Likewise.
30344
30345         openat: avoid using wrong fd
30346         * lib/openat.c (openat_permissive): Reject user's fd if saving the
30347         working directory chooses same fd.
30348         * lib/at-func.c (AT_FUNC_NAME): Likewise.
30349
30350         mkdir, mkdirat: fix cygwin 1.5.x bug
30351         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
30352         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
30353         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
30354         bug.
30355         (gl_PREREQ_MKDIR): Delete unused macro.
30356         * modules/mkdir (Files): Track file rename.
30357         (configure.ac): Update macro name.
30358         * modules/openat (Depends-on): Add mkdir.
30359         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
30360
30361         mkdir, mkdirat: add tests
30362         * modules/mkdir-tests: New test.
30363         * tests/test-mkdir.h: New file.
30364         * tests/test-mkdir.c: Likewise.
30365         * tests/test-mkdirat.c: Likewise.
30366         * modules/openat-tests (Files): Add new files.
30367         (Makefile.am): Run new test.
30368
30369 2009-10-06  Eric Blake  <ebb9@byu.net>
30370
30371         doc: tweak *at function documentation
30372         * doc/posix-functions/faccessat.texi (faccessat): Mention
30373         known issue with replacement.
30374         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
30375         * doc/posix-functions/linkat.texi (linkat): Likewise.
30376         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30377         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30378         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30379         * doc/posix-functions/renameat.texi (renameat): Likewise.
30380         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30381
30382         openat: fix GNU/Hurd bug in unlinkat
30383         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
30384         broken.
30385         * doc/posix-functions/unlink.texi (unlink): Document this.
30386         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
30387
30388         fdopendir: fix GNU/Hurd bug
30389         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
30390         allowing non-directory fds.
30391         * lib/fdopendir.c (rpl_fdopendir): Work around it.
30392         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30393         * modules/dirent (Makefile.am): Substitute it.
30394         * lib/dirent.in.h (fdopendir): Declare replacement.
30395         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
30396         * tests/test-fdopendir.c (main): Test something other than
30397         /dev/null, since on Hurd that behaves like a directory.
30398
30399         test-symlink: port to GNU/Hurd
30400         * tests/test-symlink.h (test_symlink): Relax expected errno.
30401
30402         doc: tweak more cygwin information
30403         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
30404         now compatible with glibc.
30405         * doc/posix-functions/getopt.texi (getopt): Likewise.
30406
30407         getopt-gnu: add another test
30408         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
30409         guarantee behavior relied on by m4.
30410         * tests/test-getopt.c (main): Use it.
30411         * modules/getopt-posix-tests (Depends-on): Add setenv.
30412         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
30413
30414         getopt: fix compilation on darwin
30415         * lib/getopt.in.h (includes): Leave breadcrumbs during system
30416         include.
30417         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
30418         Reported by Ludovic Courtès.
30419
30420 2009-10-06  Bruno Haible  <bruno@clisp.org>
30421
30422         * modules/size_max (Description): Discourage its use.
30423         Reported by Simon Josefsson.
30424
30425 2009-10-06  Jim Meyering  <meyering@redhat.com>
30426
30427         linkat: avoid compilation failure
30428         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
30429
30430 2009-10-05  Eric Blake  <ebb9@byu.net>
30431
30432         linkat: support Linux 2.6.17
30433         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
30434         linkat on Linux, but allow cache variable override.
30435         * lib/linkat.c (rpl_linkat): Define override.
30436         * modules/linkat (Depends-on): Add symlinkat.
30437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
30438         * modules/unistd (Makefile.am): Substitute it.
30439         * lib/unistd.in.h (linkat): Declare replacement.
30440         Reported by Pádraig Brady.
30441
30442         quotearg: port test to systems with C.UTF-8 locale
30443         * tests/test-quotearg.c (struct result_strings): Add another
30444         member, differentiating between C.ASCII and C.UTF-8 handling.
30445         (compare_strings): Add parameter.
30446         (main): Adjust all callers.
30447
30448         getopt: avoid clash with FreeBSD _getopt_internal
30449         * lib/getopt.in.h (_getopt_internal): Override the name.
30450         * lib/getopt_int.h (includes): Pick up any overrides.
30451         Reported by Reuben Thomas.
30452
30453         hash: allow C89 compilation
30454         * lib/hash.c (check_tuning): Move declaration before statement.
30455         Reported by Reuben Thomas.
30456
30457 2009-10-05  Karl Berry  <karl@gnu.org>
30458
30459         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
30460
30461 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
30462             Bruno Haible  <bruno@clisp.org>
30463
30464         * lib/uname.c (uname): Use a table-driven algorithm to compute
30465         Windows NT versions.
30466
30467 2009-10-04  Bruno Haible  <bruno@clisp.org>
30468
30469         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
30470         program_invocation_short_name.
30471         * modules/progname (configure.ac): Test for presence of
30472         program_invocation_short_name.
30473         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30474
30475 2009-10-04  Bruno Haible  <bruno@clisp.org>
30476
30477         * lib/progname.c (set_program_name): Fix comment.
30478         Reported by Jim Meyering.
30479
30480 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30481             Bruno Haible  <bruno@clisp.org>
30482
30483         * lib/uname.c: Include <string.h>.
30484         (uname): Do only one call to GetVersionEx in the common case.
30485
30486 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30487             Bruno Haible  <bruno@clisp.org>
30488
30489         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
30490         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
30491         (uname): Add support for Windows CE and various non-x86 CPU types.
30492
30493 2009-10-03  Bruno Haible  <bruno@clisp.org>
30494
30495         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
30496         invocation to tests/configure.ac.
30497         Reported by Ian Beckwith <ianb@erislabs.net>.
30498
30499 2009-10-02  Eric Blake  <ebb9@byu.net>
30500
30501         fchdir: avoid compiler warning
30502         * lib/fchdir.c (canonicalize_file_name)
30503         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
30504
30505         test-open: support mingw errno values
30506         * tests/test-open.h (test_open): Relax test.
30507         * tests/test-fopen.h (test_fopen): Likewise.
30508         * tests/test-openat-safer.c (main): Likewise.
30509
30510         open: fix opening directory on mingw
30511         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
30512
30513         test-open: on GNU/Hurd, /dev/null is a directory
30514         * tests/test-fopen.h (main): Rename...
30515         (test_fopen): ...to this.  Use a guaranteed non-directory when
30516         confirming open behavior on trailing slash.
30517         * tests/test-openat-safer.c (main): Likewise.
30518         * tests/test-open.h (main): Likewise....
30519         (test_open): ...to this.
30520         * tests/test-fopen.c (main): Adjust caller.
30521         * tests/test-fopen-safer.c (main): Likewise.
30522         * tests/test-open.c (main): Likewise.
30523         * tests/test-fcntl-safer.c (main): Likewise.
30524         Reported by Samuel Thibault.
30525
30526         rename, fchdir: don't ignore chdir failure
30527         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
30528         * lib/rename.c (rpl_rename) [W32]: Likewise.
30529         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
30530         an empty destination directory if source cannot be renamed,
30531         although there is still possibility for failure.
30532         * doc/posix-functions/rename.texi (rename): Document the race.
30533         Reported by Jim Meyering.
30534
30535         maint: cleanup whitespace in recent commits
30536         * lib/rename.c (rpl_rename): Remove tabs.
30537         * tests/test-link.h (test_link): Likewise.
30538         * lib/fchdir.c (get_name): Likewise.
30539         Reported by Jim Meyering.
30540
30541 2009-10-02  Ben Pfaff  <blp@gnu.org>
30542
30543         relocatable-prog-wrapper: Add missing dependency on
30544         double-slash-root.
30545         * modules/relocatable-prog-wrapper: Add dependency.
30546         Reported by Ian Beckwith <ianb@erislabs.net>.
30547
30548 2009-10-02  Eric Blake  <ebb9@byu.net>
30549
30550         renameat: fix Solaris bugs
30551         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
30552         needed fixing.
30553         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
30554         * modules/stdio (Makefile.am): Substitute it.
30555         * lib/stdio.in.h (renameat): Declare replacement.
30556         * lib/renameat.c (rpl_renameat): Implement fix.
30557
30558         renameat: new module
30559         * modules/renameat: New file.
30560         * lib/renameat.c (renameat): Likewise.
30561         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
30562         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30563         * modules/stdio (Makefile.am): Substitute them.
30564         * lib/stdio.in.h (renameat): Declare it.
30565         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30566         * doc/posix-functions/renameat.texi (renameat): Likewise.
30567         * modules/renameat-tests: New test.
30568         * tests/test-renameat.c: Likewise.
30569
30570         rename: fix mingw bugs
30571         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
30572         directory overwrite bugs.
30573
30574         rename: fix another cygwin 1.5 bug
30575         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
30576         checks.
30577         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
30578         unnecessary cygwin workarounds.  Also work around bug with moving
30579         full directory onto an empty one.
30580         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
30581
30582         rename-dest-slash: merge into rename module
30583         * modules/rename-dest-slash (Status): Mark obsolete.
30584         (Depends-on): Add rename.
30585         (Files): Let rename do it all.
30586         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
30587         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
30588         * m4/rename-dest-slash.m4: ...so this file can be deleted.
30589         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
30590         * lib/rename.c (rpl_rename): Update comments.
30591
30592         rename: fix cygwin 1.5.x bugs
30593         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
30594         * lib/rename.c (rpl_rename): Work around them.
30595         * modules/rename (Depends-on): Add same-inode.
30596
30597         rename: fix Solaris 10 bug
30598         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30599         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
30600         was the only bug.
30601
30602         rename: fix Solaris 9 bug
30603         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
30604         on non-directory.  Avoid calling exit.
30605         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
30606         strdup.
30607         * modules/rename-tests (Depends-on): Drop lstat.
30608         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30609         (gl_PREREQ_RENAME): Delete unused macro.
30610
30611         rename-dest-slash: fix NetBSD bug
30612         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
30613         links.
30614         * modules/rename-dest-slash (Depends-on): Add same-inode.
30615
30616         rename-tests: new test, exposes several platform bugs
30617         * modules/rename-tests: New file.
30618         * tests/test-rename.h: Likewise.
30619         * tests/test-rename.c: Likewise.
30620         * doc/posix-functions/rename.texi (rename): Improve documentation,
30621         including bugs that will eventually be fixed in gnulib.
30622
30623 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
30624
30625         * lib/uname.c: Include <stdlib.h>
30626         (uname): Assume version info is available.
30627
30628 2009-10-02  Jim Meyering  <meyering@redhat.com>
30629
30630         gnu-web-doc-update: correct --help output
30631         * build-aux/gnu-web-doc-update: Make --help output relevant.
30632
30633         gnu-web-doc-update: add standard options
30634         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
30635
30636         gnu-web-doc-update: New module.
30637         Use this script to automatically update the on-line web documentation
30638         for your GNU project at http://www.gnu.org/software/$pkg/manual/
30639         * modules/gnu-web-doc-update: New file, from coreutils.
30640         * build-aux/gnu-web-doc-update: New script.
30641
30642 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
30643
30644         link: LoadLibrary is not needed.
30645         * lib/link.c: Use GetModuleHandle.
30646
30647 2009-10-01  Eric Blake  <ebb9@byu.net>
30648
30649         getopt: bump serial number
30650         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
30651         change.
30652
30653         tests: tighten link, rmdir, and remove tests
30654         * tests/test-link.h (includes): No need to use <config.h> here.
30655         Clean up if directory hard link was created, otherwise test for
30656         trailing '.'.
30657         * tests/test-linkat.c (main): Simplify.
30658         * tests/test-remove.c (main): Enhance test for trailing '.'.
30659         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30660
30661 2009-10-01  Jim Meyering  <meyering@redhat.com>
30662
30663         maint.mk: requiring "make major" was annoying, for a "minor" release.
30664         What is intended is "stable", to contrast with alpha and beta,
30665         so require "make stable", not "make major".
30666         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
30667         (get_tool_versions): Likewise.
30668         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
30669
30670 2009-09-30  Ben Pfaff  <blp@gnu.org>
30671
30672         Fix broken build of replacement for Windows tmpfile().
30673         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
30674         flags argument added along with the 'mkostemp' module.
30675
30676 2009-09-28  Bruno Haible  <bruno@clisp.org>
30677
30678         Avoid identifier clash with POSIX function 'remove' defined as a macro.
30679         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
30680         to 'remove_elt'.
30681         (gl_list_remove): Update.
30682         * lib/gl_list.c (gl_list_remove): Update.
30683         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
30684         to 'remove_elt'.
30685         (gl_oset_remove): Update.
30686         * lib/gl_list.c (gl_oset_remove): Update.
30687         Reported by Eric Blake.
30688
30689 2009-09-28  Eric Blake  <ebb9@byu.net>
30690
30691         doc: mention yet more cygwin 1.7 status
30692         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
30693         cygwin.
30694         * doc/glibc-functions/execvpe.texi (execvpe): New file.
30695         * doc/gnulib.texi (Glibc unistd.h): Mention it.
30696
30697         argp: fix test failure
30698         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
30699         that are not upper-case.  Pass correct range to tolower.
30700
30701 2009-09-27  Jim Meyering  <meyering@redhat.com>
30702
30703         test-yesno: work around sparc-dash here-document infelicity
30704         Without this change, the literal \177 byte in a here document
30705         would make dash 0.5.5.1-3 access uninitialized memory.
30706         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
30707         Instead, use a marker, "@", and filter through tr to create the desired
30708         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
30709
30710 2009-09-27  Bruno Haible  <bruno@clisp.org>
30711
30712         Disable untested support for new flavours of ACLs on AIX.
30713         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
30714         progress.
30715         * lib/set-mode-acl.c (qset_acl): Likewise.
30716
30717 2008-12-07  Bruno Haible  <bruno@clisp.org>
30718
30719         Add support for new flavours of ACLs on AIX. (Untested.)
30720         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
30721         (file_has_acl): Add support for newer AIX.
30722         * lib/set-mode-acl.c (qset_acl): Likewise.
30723         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
30724         Rainer Tammer <tammer@tammer.net>.
30725
30726 2009-09-26  Eric Blake  <ebb9@byu.net>
30727
30728         argp: fix compilation of getopt
30729         * lib/getopt.in.h (includes): Use different guard than glibc.
30730         Reported by Sergey Poznyakoff.
30731
30732         doc: mention more cygwin 1.7 status
30733         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
30734         bug.
30735         * doc/posix-functions/execl.texi (execl): Likewise.
30736         * doc/posix-functions/execle.texi (execle): Likewise.
30737         * doc/posix-functions/execlp.texi (execlp): Likewise.
30738         * doc/posix-functions/execv.texi (execv): Likewise.
30739         * doc/posix-functions/execve.texi (execve): Likewise.
30740         * doc/posix-functions/execvp.texi (execvp): Likewise.
30741         * doc/glibc-functions/canonicalize_file_name.texi
30742         (canonicalize_file_name): Cygwin 1.7 now provides this.
30743         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
30744         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
30745         on AT_SYMLINK_NOFOLLOW.
30746
30747 2009-09-24  Eric Blake  <ebb9@byu.net>
30748
30749         test-linkat: make test more robust
30750         * tests/test-linkat.c (main): Avoid collision with EEXIST.
30751
30752         getopt: fix inclusion guards for cygwin
30753         * modules/getopt-posix (Depends-on): Add include-next.
30754         (Makefile.am): Substitute more items in replacement header.
30755         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
30756         <getopt.h>.
30757         * lib/getopt.in.h (includes): Use split inclusion guard, and
30758         prefer <getopt.h> over include <unistd.h> when one is present.
30759         (option): Also override name of 'struct option'.
30760
30761         same-inode: revert prior change; it is not yet ready
30762         * NEWS: Undo mention of this change.
30763         * lib/same-inode.h (same-inode.h): Undo tri-state change.
30764         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30765         * lib/cycle-check.c (cycle_check): Likewise.
30766         * lib/same.c (same_name): Likewise.
30767         * lib/at-func2.c (at_func2): Likewise.
30768
30769 2009-09-23  Eric Blake  <ebb9@byu.net>
30770
30771         linkat: new module
30772         * modules/linkat: New file.
30773         * lib/at-func2.c (at_func2): Likewise.
30774         * lib/linkat.c (linkat): Likewise.
30775         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
30776         * lib/openat-priv.h (at_func2): Add declaration.
30777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30778         * modules/unistd (Makefile.am): Substitute them.
30779         * lib/unistd.in.h (linkat): Declare it.
30780         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30781         * doc/posix-functions/linkat.texi (linkat): Likewise.
30782         * doc/posix-functions/link.texi (link): Tweak wording.
30783         * tests/test-link.c (main): Move guts...
30784         * tests/test-link.h (test_link): ...into new file.
30785         * modules/linkat-tests: New test.
30786         * tests/test-linkat.c: Likewise.
30787         * modules/link-tests (Files): Ship new file.
30788         (Depends-on): Add stdbool.
30789
30790         dirname: add library-safe mdir_name
30791         * lib/dirname.h (mdir_name): New prototype.
30792         * lib/dirname.c (dir_name): Move guts...
30793         (mdir_name): ...to new function that avoids xalloc_die.
30794
30795         fchdir: another mingw fix
30796         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
30797         * lib/fchdir.c (get_name): New helper method; skips canonicalize
30798         on mingw (where it has not yet been ported), and make it optional
30799         elsewhere.
30800         (_gl_register_fd): Use it.
30801
30802         same-inode: make SAME_INODE tri-state, to port to mingw
30803         * NEWS: Mention this change.
30804         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
30805         st_ino always being 0.
30806         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30807         * lib/cycle-check.c (cycle_check): Likewise.
30808         * lib/same.c (same_name): Likewise.
30809
30810         lstat: avoid mingw compilation error
30811         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
30812         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
30813         lstat ourselves.
30814         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
30815         was adequate.
30816         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
30817         the checks for lstat.
30818         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
30819
30820         link: fix test failure on Solaris 9
30821         * lib/link.c (rpl_link): Don't assume link will catch bogus
30822         trailing slash on source.
30823
30824         test-symlinkat: enhance test
30825         * tests/test-readlink.c (main): Move guts...
30826         * tests/test-readlink.h (test_readlink): ...into new file.
30827         * tests/test-symlink.c (main): Move guts...
30828         * tests/test-symlink.h (test_symlink): ...into new file.
30829         * tests/test-symlinkat.c (main): Use new files for further
30830         coverage.
30831         (do_symlink, do_readlink): New helper functions.
30832         * modules/symlink-tests (Files): Ship new file.
30833         (Depends-on): Add stdbool.
30834         * modules/readlink-tests (Files): Ship new file.
30835         (Depends-on): Add stdbool.
30836         * modules/symlinkat-tests (Files): Use new files.
30837
30838 2009-09-23  Eric Blake  <ebb9@byu.net>
30839
30840         readlink: document portability issue with symlink length
30841         * doc/posix-functions/lstat.texi (lstat): Mention that some file
30842         systems have bogus st_size on symlinks, and mention the
30843         areadlink-with-size module.
30844         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30845         * doc/posix-functions/readlink.texi (readlink): Mention the
30846         areadlink module, and ERANGE failure.
30847         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30848         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
30849
30850         readlink: fix Solaris 9 bug with trailing slash
30851         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
30852         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
30853         * doc/posix-functions/readlink.texi (readlink): Document this.
30854         * modules/readlink-tests: New test.
30855         * tests/test-readlink.c: Likewise.
30856
30857         readlink: fix cygwin 1.5.x bug with return type
30858         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
30859         * lib/unistd.in.h (readlink): Use ssize_t.
30860         * lib/readlink.c (readlink): Likewise.
30861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30862         * modules/unistd (Makefile.am): Substitute it.
30863         * lib/unistd.in.h (readlink): Declare replacement.
30864         * doc/posix-functions/readlink.texi (readlink): Document this.
30865
30866         symlink: use throughout gnulib
30867         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
30868         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
30869         symlink is not used.
30870         * modules/symlinkat (Depends-on): Add symlink.
30871         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
30872         * modules/canonicalize-tests (Depends-on): Likewise.
30873         * modules/lstat-tests (Depends-on): Likewise.
30874         * modules/openat-tests (Depends-on): Likewise.
30875         * modules/remove-tests (Depends-on): Likewise.
30876         * modules/rmdir-tests (Depends-on): Likewise.
30877         * modules/unlink-tests (Depends-on): Likewise.
30878         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
30879         * tests/test-canonicalize.c (symlink): Likewise.
30880         * tests/test-fstatat.c (symlink): Likewise.
30881         * tests/test-lstat.c (symlink): Likewise.
30882         * tests/test-remove.c (symlink): Likewise.
30883         * tests/test-rmdir.c (symlink): Likewise.
30884         * tests/test-unlink.c (symlink): Likewise.
30885         * tests/test-unlinkat.c (symlink): Likewise.
30886
30887         symlink: new module, for Solaris 9 bug
30888         * modules/symlink: New file.
30889         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
30890         * lib/symlink.c: Likewise.
30891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
30892         * modules/unistd (Makefile.am): Substitute them.
30893         * lib/unistd.in.h (symlink): Declare replacement.
30894         * MODULES.html.sh (File system functions): Mention it.
30895         * doc/posix-functions/symlink.texi (symlink): Likewise.
30896         * modules/symlink-tests: New test.
30897         * tests/test-symlink.c: Likewise.
30898
30899 2009-09-23  Bruno Haible  <bruno@clisp.org>
30900
30901         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
30902         when needed.
30903         Test case: gnulib-tool --import --with-tests atexit inttypes.
30904         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
30905
30906 2009-09-23  Bruno Haible  <bruno@clisp.org>
30907
30908         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
30909         subcommand, not in a subshell.
30910
30911 2009-09-22  Eric Blake  <ebb9@byu.net>
30912
30913         unistd: sort replacement declarations
30914         * lib/unistd.in.h: Sort declarations.
30915
30916         open, openat: minor optimization
30917         * lib/open.c (open): If open succeeded, len is non-zero.
30918         * lib/openat.c (rpl_openat): Likewise.
30919
30920         link-follow: ensure correct result
30921         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
30922         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
30923         distinguish between possible failures.
30924
30925 2009-09-21  Eric Blake  <ebb9@byu.net>
30926
30927         fts: avoid compiler warning
30928         * lib/fts.c (dirent_inode_sort_may_be_useful)
30929         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
30930
30931 2009-09-19  Bruno Haible  <bruno@clisp.org>
30932
30933         * lib/progreloc.c (canonicalize_file_name): New declaration.
30934
30935 2009-09-19  Eric Blake  <ebb9@byu.net>
30936
30937         link: fix quoting
30938         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
30939
30940         openat: fix openat bugs on Solaris 9
30941         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
30942         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
30943         * modules/openat (Depends-on): Add open.
30944         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
30945         * modules/fcntl-h (Makefile.am): Substitute it.
30946         * lib/fcntl.in.h (openat): Declare replacement.
30947         * doc/posix-functions/openat.texi (openat): Document this.
30948
30949         openat: move fstatat and unlinkat into correct files
30950         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
30951         compiled.
30952         * lib/openat.c (fstatat, unlinkat): Move...
30953         * lib/fstatat.c (fstatat): ...into correct files.
30954         * lib/unlinkat.c (unlinkat): Likewise.
30955
30956         openat: fix unlinkat bugs on Solaris 9
30957         * lib/unlinkat.c (unlinkat): New file.
30958         * modules/openat (Depends-on): Add unlink.
30959         (Files): Distribute it.
30960         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
30961         trailing slash behavior is broken.
30962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30963         * modules/unistd (Makefile.am): Substitute it.
30964         * lib/unistd.in.h (unlinkat): Declare replacement.
30965         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
30966
30967         openat: fix fstatat bugs on Solaris 9
30968         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
30969         stat.
30970         * doc/posix-functions/fstatat.texi (fstatat): Document this.
30971
30972         test-unlinkat: enhance test, to expose Solaris 9 bug
30973         * tests/test-unlink.c (main): Factor guts...
30974         * tests/test-unlink.h (test_rmdir_func): ...into new file.
30975         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
30976         * tests/test-rmdir.c (main): Adjust caller.
30977         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
30978         (unlinker): New helper function.
30979         (rmdirat): Enhance check.
30980         * modules/rmdir-tests (Depends-on): Add stdbool.
30981         * modules/unlink-tests (Depends-on): Likewise.
30982         (Files): Add test-unlink.h.
30983         * modules/openat-tests (Files): Likewise.
30984         (Depends-on): Add unlinkdir.
30985
30986         test-fstatat: new test, to expose Solaris 9 bugs
30987         * tests/test-stat.c (main): Factor guts...
30988         * tests/test-stat.h (test_stat_func): ...into new file.
30989         * tests/test-lstat.c (main): Factor guts...
30990         * tests/test-lstat.h (test_lstat_func): ...into new file.
30991         * tests/test-fstatat.c: New file.
30992         * modules/stat-tests (Files): Add test-stat.h.
30993         * modules/lstat-tests (Files): Add test-lstat.h.
30994         (Depends-on): Add stdbool.
30995         * modules/openat-tests (Depends-on): Add pathmax.
30996         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
30997         (Makefile.am): Run new test.
30998
30999         remove: new module, for mingw and Solaris 9 bugs
31000         * modules/remove: New file.
31001         * lib/remove.c: Likewise.
31002         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
31003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31004         * modules/stdio (Makefile.am): Use them.
31005         * lib/stdio.in.h (remove): Declare replacement.
31006         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31007         * doc/posix-functions/remove.texi (remove): Likewise.
31008         * modules/remove-tests: New test.
31009         * tests/test-remove.c: Likewise.
31010
31011         unlink: new module, for Solaris 9 bug
31012         * modules/unlink: New file.
31013         * lib/unlink.c: Likewise.
31014         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
31015         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31016         * modules/unistd (Makefile.am): Use them.
31017         * lib/unistd.in.h (stat): Declare replacement.
31018         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31019         * doc/posix-functions/unlink.texi (unlink): Likewise.
31020         * modules/unlink-tests: New test.
31021         * tests/test-unlink.c: Likewise.
31022
31023         lstat: fix Solaris 9 bug
31024         * lib/lstat.c (lstat): Also check for trailing slash on
31025         non-symlink, non-directories.  Use stat module to simplify logic.
31026         * doc/posix-functions/lstat.texi (lstat): Document it.
31027         * modules/lstat-tests (Depends-on): Add errno, same-inode.
31028         (configure.ac): Check for symlink.
31029         * tests/test-lstat.c (main): Add more tests.
31030
31031         stat: add as dependency to other modules
31032         * modules/chown (Depends-on): Add stat.
31033         * modules/euidaccess (Depends-on): Likewise.
31034         * modules/fchdir (Depends-on): Likewise.
31035         * modules/isdir (Depends-on): Likewise.
31036         * modules/link (Depends-on): Likewise.
31037         * modules/lstat (Depends-on): Likewise.
31038         * modules/mkdir-p (Depends-on): Likewise.
31039         * modules/modechange (Depends-on): Likewise.
31040         * modules/open (Depends-on): Likewise.
31041         * modules/readlink (Depends-on): Likewise.
31042         * modules/same (Depends-on): Likewise.
31043
31044         stat: fix Solaris 9 bug
31045         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
31046         slash.
31047         * lib/stat.c (rpl_stat): Work around it.
31048         * doc/posix-functions/stat.texi (stat): Update documentation.
31049
31050         stat: new module, for mingw bug
31051         * modules/stat: New file.
31052         * lib/stat.c: Likewise.
31053         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31054         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31055         * modules/sys_stat (Makefile.am): Use them.
31056         * lib/sys_stat.in.h (stat): Declare replacement.
31057         * lib/openat.c (fstatat): Deal with lstat and stat being function
31058         macros.
31059         * modules/openat (Depends-on): Add inline.
31060         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31061         * doc/posix-functions/stat.texi (stat): Likewise.
31062         * modules/stat-tests: New test.
31063         * tests/test-stat.c: Likewise.
31064
31065 2009-09-19  Jim Meyering  <meyering@redhat.com>
31066
31067         syntax-check: detect unnecessary inclusion of canonicalize.h
31068         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
31069
31070 2009-09-19  Eric Blake  <ebb9@byu.net>
31071
31072         canonicalize-lgpl: adjust clients to use correct header
31073         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31074         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
31075         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
31076         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
31077         * lib/progreloc.c (includes): Likewise.
31078
31079 2009-09-19  Jim Meyering  <meyering@redhat.com>
31080
31081         test-posixtm.c: correct a comment
31082         * tests/test-posixtm.c: Correct first-line comment.
31083         Spotted by Eric Blake.
31084
31085 2009-09-16  Jim Meyering  <meyering@redhat.com>
31086
31087         posixtm-tests: make T const-correct; add a test case
31088         * tests/test-posixtm.c (T): Declare const.
31089         Add a test for -(2^31+1).
31090         Remove useless can-succeed-only-in-2002 test.
31091
31092         posixtm-tests: adjust the sole failing test
31093         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
31094         expected output matches what mktime now produces.  Cross-checked via
31095         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
31096
31097         posixtm: move #ifdef'd tests into a new module
31098         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
31099         * tests/test-posixtm.c: ... this new file.
31100         * modules/posixtm-tests: New module.
31101
31102 2009-09-19  Eric Blake  <ebb9@byu.net>
31103
31104         openat: simplify use of at-func.c
31105         * lib/at-func.c (includes): Include prerequisites here, to
31106         simplify requirements on client files.
31107         * lib/openat-priv.h: Add double-inclusion guard.
31108         * lib/faccessat.c (includes): Simplify.
31109         * lib/fchmodat.c (includes): Likewise.
31110         * lib/fchownat.c (includes): Likewise.
31111         * lib/mkdirat.c (includes): Likewise.
31112         * lib/mkfifoat.c (includes): Likewise.
31113         * lib/symlinkat.c (includes): Likewise.
31114
31115         openat: allow return of fd 0
31116         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
31117         * modules/save-cwd (Depends-on): Replace fcntl-safer with
31118         unistd-safer.
31119         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
31120         <fcntl.h>; this module does not leak fds.
31121         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
31122         must be allowed to return 0, leaving openat_safer to add the
31123         safety.
31124         (openat_permissive): Avoid writing to just-opened fd 2 if
31125         restoring the current directory fails.
31126         * lib/openat-die.c (openat_restore_fail): Add comment.
31127         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
31128         (save_cwd): Guarantee safe fd, but without use of open_safer.
31129         * tests/test-openat.c: New test.
31130         * modules/openat-tests (Files, Makefile.am): Distribute and build
31131         new file.
31132
31133         relocatable-prog-wrapper: fix build
31134         * modules/relocatable-prog-wrapper (Files): Update name of
31135         canonicalize m4 file, broken on 2009-09-17.
31136         Reported by emad hajjar <aleppos@hotmail.com>.
31137
31138 2009-09-19  Bruno Haible  <bruno@clisp.org>
31139
31140         * lib/safe-alloc.h: Use the standard header with GPL copyright.
31141         * lib/safe-alloc.c: Likewise.
31142         Reported by Ian Beckwith <ianb@erislabs.net>.
31143
31144 2009-09-18  Bruno Haible  <bruno@clisp.org>
31145
31146         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
31147         Reported by <erobles@sensacd.com.mx>.
31148
31149 2009-09-17  Eric Blake  <ebb9@byu.net>
31150
31151         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
31152         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
31153         slashes when checking if last component is missing.
31154         * tests/test-canonicalize.c (main): Test this.
31155
31156         canonicalize, canonicalize-lgpl: honor // if distinct from /
31157         * modules/canonicalize (Files): Add double-slash-root.m4.
31158         * modules/canonicalize-lgpl (Files): Likewise.
31159         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31160         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
31161         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
31162         fallback definition.
31163         (canonicalize_filename_mode): Use it to protect //.
31164         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
31165         (__realpath): Likewise.
31166         * tests/test-canonicalize.c (main): Test this.
31167         * tests/test-canonicalize-lgpl.c (main): Likewise.
31168         * modules/canonicalize-tests (Depends-on): Add same-inode.
31169         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31170
31171         canonicalize-lgpl: fix glibc bug with trailing slash
31172         * m4/canonicalize-lgpl.m4: Move contents...
31173         * m4/canonicalize.m4: ...here.
31174         (gl_CANONICALIZE_LGPL): Factor realpath check...
31175         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
31176         glibc 2.3.5 bug, fixed 2005-04-27.
31177         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
31178         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
31179         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
31180         * modules/canonicalize-lgpl (Files): Manage file rename.
31181         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31182         * modules/stdlib (Makefile.am): Substitute witness.
31183         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
31184         is needed.
31185         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
31186         replacement is required.
31187         * lib/canonicalize.c (canonicalize_file_name): Likewise.
31188         * doc/glibc-functions/canonicalize_file_name.texi
31189         (canonicalize_file_name): Document this.
31190         * doc/posix-functions/realpath.texi (realpath): Likewise.
31191
31192         canonicalize-lgpl: reject non-directory with trailing slash
31193         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
31194         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
31195         catches failures in glibc 2.3.5.
31196         * tests/test-canonicalize.c (main): Likewise.
31197
31198         canonicalize-lgpl: use native realpath if it works
31199         * lib/canonicalize-lgpl.c (realpath): Guard with
31200         FUNC_REALPATH_WORKS.
31201         * lib/stdlib.in.h (realpath): Make declaration optional based on
31202         HAVE_REALPATH.
31203         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
31204         native realpath works.
31205         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31206         * modules/stdlib (Makefile.am): Substitute witness.
31207
31208         canonicalize, canonicalize-lgpl: use <stdlib.h>
31209         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
31210         (Include): Mention <stdlib.h>.
31211         (configure.ac): Mention functions we provide.
31212         * modules/canonicalize (configure.ac): Likewise.
31213         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
31214         realpath if canonicalize_file_name is missing.
31215         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
31216         * modules/stdlib (Makefile.am): Substitute witnesses.
31217         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
31218         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
31219         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
31220         * NEWS: Document this.
31221         * doc/glibc-functions/canonicalize_file_name.texi
31222         (canonicalize_file_name): Likewise.
31223         * doc/posix-functions/realpath.texi (realpath): Likewise.
31224         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
31225
31226         test-canonicalize: consolidate into single C program
31227         * tests/test-canonicalize.sh: Delete; move setup into...
31228         * tests/test-canonicalize.c (main): ...the program, making it
31229         easier to run in debugger.  Add some tests.
31230         * modules/canonicalize-tests (Files): Remove unused file.
31231         (Depends-on): Add progname.
31232         (configure.ac, Makefile.am): Simplify.
31233
31234         test-canonicalize-lgpl: consolidate into single C program
31235         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
31236         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
31237         easier to run in debugger.  Add some tests.
31238         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
31239         (configure.ac, Makefile.am): Simplify.
31240
31241         canonicalize: avoid resolvepath
31242         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
31243         unnecessary checks.
31244         * lib/canonicalize.c (includes): Simplify.
31245         (canonicalize_file_name): Drop resolvepath implementation.
31246         * modules/canonicalize (Depends-on): Drop filenamecat.
31247
31248         canonicalize: don't lose errno
31249         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
31250         over calls to free.
31251
31252         canonicalize: simplify errno handling
31253         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
31254         assignment.
31255
31256         canonicalize, canonicalize-lgpl: update module dependencies
31257         * modules/canonicalize (Depends-on): Add extensions, lstat,
31258         pathmax, stdlib.
31259         (Files): Drop pathmax.h.
31260         (configure.ac): Adjust macro name.
31261         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
31262         lstat, stdlib, sys_stat.
31263         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
31264         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
31265         extensions.
31266         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
31267         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
31268         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
31269         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
31270         declaration, if available.
31271         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
31272         we can rely on the readlink module.
31273         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
31274         (includes): Use <unistd.h> unconditionally.
31275
31276 2009-09-17  Eric Blake  <ebb9@byu.net>
31277
31278         maint: make Include sections of modules consistent
31279         * modules/alloca: Use only header name; no need to list #include.
31280         * modules/alloca-opt: Likewise.
31281         * modules/arpa_inet: Likewise.
31282         * modules/canon-host: Likewise.
31283         * modules/configmake: Likewise.
31284         * modules/dirent: Likewise.
31285         * modules/eealloc: Likewise.
31286         * modules/environ: Likewise.
31287         * modules/fchdir: Likewise.
31288         * modules/fcntl: Likewise.
31289         * modules/fcntl-h: Likewise.
31290         * modules/gethrxtime: Likewise.
31291         * modules/gettime: Likewise.
31292         * modules/ignore-value: Likewise.
31293         * modules/inet_ntop: Likewise.
31294         * modules/inet_pton: Likewise.
31295         * modules/inttypes: Likewise.
31296         * modules/isnand-nolibm: Likewise.
31297         * modules/isnanf-nolibm: Likewise.
31298         * modules/mbchar: Likewise.
31299         * modules/mbfile: Likewise.
31300         * modules/mbiter: Likewise.
31301         * modules/mbuiter: Likewise.
31302         * modules/netdb: Likewise.
31303         * modules/netinet_in: Likewise.
31304         * modules/nproc: Likewise.
31305         * modules/pagealign_alloc: Likewise.
31306         * modules/poll: Likewise.
31307         * modules/printf-frexp: Likewise.
31308         * modules/pthread: Likewise.
31309         * modules/putenv: Likewise.
31310         * modules/random_r: Likewise.
31311         * modules/relocatable-prog: Likewise.
31312         * modules/search: Likewise.
31313         * modules/select: Likewise.
31314         * modules/selinux-h: Likewise.
31315         * modules/settime: Likewise.
31316         * modules/signal: Likewise.
31317         * modules/size_max: Likewise.
31318         * modules/socklen: Likewise.
31319         * modules/ssize_t: Likewise.
31320         * modules/stdarg: Likewise.
31321         * modules/stdbool: Likewise.
31322         * modules/stddef: Likewise.
31323         * modules/stdint: Likewise.
31324         * modules/stdio: Likewise.
31325         * modules/stdlib: Likewise.
31326         * modules/string: Likewise.
31327         * modules/strings: Likewise.
31328         * modules/sys_file: Likewise.
31329         * modules/sys_ioctl: Likewise.
31330         * modules/sys_select: Likewise.
31331         * modules/sys_socket: Likewise.
31332         * modules/sys_stat: Likewise.
31333         * modules/sys_time: Likewise.
31334         * modules/sys_times: Likewise.
31335         * modules/sys_utsname: Likewise.
31336         * modules/sys_wait: Likewise.
31337         * modules/sysexits: Likewise.
31338         * modules/time: Likewise.
31339         * modules/times: Likewise.
31340         * modules/tmpfile: Likewise.
31341         * modules/trim: Likewise.
31342         * modules/unistd: Likewise.
31343         * modules/wchar: Likewise.
31344         * modules/wctype: Likewise.
31345
31346 2009-09-17  Bruno Haible  <bruno@clisp.org>
31347
31348         Make getdate.y compile on QNX and NetBSD 5 / i386.
31349         * m4/getdate.m4 (gl_GETDATE): Conditionally define
31350         TIME_T_FITS_IN_LONG_INT.
31351         * lib/getdate.y (long_time_t): New type.
31352         (relative_time): Change type of 'seconds' field to long_time_t.
31353         (get_date): Update types of local variables. Check against overflow
31354         during conversion from long_time_t to time_t.
31355         Reported by Matt Kraai <kraai@ftbfs.org>
31356         and Hasso Tepper <hasso@netbsd.org>.
31357
31358 2009-09-17  Bruno Haible  <bruno@clisp.org>
31359
31360         * modules/COPYING: Update copyright years.
31361         * modules/README: Likeiwse.
31362         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
31363         Reported by Ian Beckwith <ianb@erislabs.net>.
31364
31365 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31366
31367         * users.txt: Update references for gnuit package.
31368
31369 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31370
31371         * m4/getdelim.m4: Fix typo in copyright line.
31372
31373 2009-09-17  Bruno Haible  <bruno@clisp.org>
31374
31375         * lib/atoll.c: Use the standard header with GPL copyright.
31376         * lib/argz.in.h: Likewise.
31377         * lib/glob.c: Likewise.
31378         * lib/glob-libc.h: Likewise.
31379         * lib/random_r.c: Likewise.
31380         * lib/siglist.h: Likewise.
31381         * lib/strsignal.c: Likewise.
31382         Reported by Ian Beckwith <ianb@erislabs.net>.
31383
31384 2009-09-17  Eric Blake  <ebb9@byu.net>
31385
31386         rmdir: ensure correct dependency order
31387         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
31388
31389 2009-09-17  Bruno Haible  <bruno@clisp.org>
31390
31391         Disable assertion that fails on NetBSD 5 / i386.
31392         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
31393         Reported by Sam Steingold <sds@gnu.org>
31394         and Hasso Tepper <hasso@netbsd.org>.
31395
31396 2009-09-16  Eric Blake  <ebb9@byu.net>
31397
31398         unlinkdir: port to mingw
31399         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
31400         on which no one can unlink a directory.
31401
31402         stdlib: sort witness names
31403         * modules/stdlib (Makefile.am): Sort replacements.
31404         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31405         * lib/stdlib.in.h: Likewise.
31406
31407         parse-duration-tests: avoid link failure
31408         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
31409         LIBINTL.
31410         Reported by Tom G. Christensen.
31411
31412         openat-tests: ensure unlinkat behaves like rmdir
31413         * tests/test-rmdir.c (main): Factor guts...
31414         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
31415         * modules/rmdir-tests (Files): Ship new file.
31416         * modules/openat-tests: New test.
31417         * tests/test-unlinkat.c: Likewise.
31418
31419         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
31420         * modules/rmdir-errno (Status, Notice): Now obsolete.
31421
31422         rmdir: work around cygwin 1.5.x and mingw bugs
31423         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
31424         * lib/rmdir.c (rmdir): Work around it.
31425         * modules/rmdir (Status, Notice): No longer obsolete.
31426         (Files): Add dos.m4.
31427         (Depends-on): Add unistd.
31428         (configure.ac): Set witnesses.
31429         (License): Relax to LGPLv2+.
31430         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
31431         * modules/unistd (Makefile.am): Substitute witnesses.
31432         * lib/unistd.in.h (rmdir): Declare replacement.
31433         * doc/posix-functions/rmdir.texi (rmdir): Document this.
31434         * modules/rmdir-tests: New tests.
31435         * tests/test-rmdir.c: Likewise.
31436
31437 2009-09-15  Eric Blake  <ebb9@byu.net>
31438
31439         fchdir: improve use of replacement functions
31440         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
31441         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
31442         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
31443         REPLACE_CLOSEDIR.
31444         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
31445         * modules/sys_stat (Makefile.am): Substitute correct witness.
31446         * modules/dirent (Makefile.am): Likewise.
31447         * modules/unistd (Makefile.am): Likewise.
31448         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
31449         * lib/unistd.in.h (dup): Likewise.
31450         * lib/sys_stat.in.h (fstat): Likewise.
31451
31452         maint: ignore gnulib-tool temp files
31453         * .gitignore: Ignore files created during gnulib-tool --test.
31454
31455 2009-09-13  Jim Meyering  <meyering@redhat.com>
31456
31457         posixtm: don't reject a time that specify "60" as the number of seconds
31458         * lib/posixtm.c (posixtime): The code to reject invalid dates
31459         would also reject a time specified with the .60 suffix.
31460         But POSIX allows that, in order to accommodate leap seconds.
31461         So don't reject it.
31462         (main): Adjust tests accordingly.
31463         * modules/posixtm (Depends-on): Add stpcpy.
31464
31465 2009-09-11  Jim Meyering  <meyering@redhat.com>
31466
31467         announce-gen: include [$release_type] in emitted Subject:
31468         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
31469         e.g., [stable] in the emitted Subject: line.
31470
31471 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31472
31473         Remove obsolete macros from several modules.
31474         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
31475         obsolete Autoconf macros with their modern counterparts.
31476         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
31477         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
31478         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
31479         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
31480         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
31481         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31482         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31483         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31484         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
31485         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
31486         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31487         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31488         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
31489         * m4/sockets.m4 (gl_SOCKETS): Likewise.
31490         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
31491         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
31492         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31493         * m4/time_r.m4 (gl_TIME_R): Likewise.
31494         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
31495         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
31496         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31497
31498         Fix copyright header in build-aux scripts.
31499         * build-aux/git-version-gen: Fix copyright header to match GPLv3
31500         recommendation.
31501         * build-aux/ncftpput-ftp: Likewise.
31502         * build-aux/update-copyright: Likewise.
31503
31504 2009-09-09  Eric Blake  <ebb9@byu.net>
31505
31506         test-link: allow Linux choice of errno
31507         * tests/test-link.c (main): Relax test for alternate error.
31508
31509         strndup: fix improper m4 caching
31510         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
31511         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
31512         (gl_PREREQ_STRNDUP): Delete.
31513         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
31514         * modules/string (Makefile.am): Substitute it.
31515         * lib/string.in.h (strndup): Modernize prototype.
31516
31517         getcwd: port to mingw
31518         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
31519         different from the POSIX assumptions made throughout the getcwd
31520         module; fortunately, the mingw getcwd does not need replacement.
31521         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
31522         * modules/getcwd-tests: New test.
31523         * tests/test-getcwd.c: Likewise.
31524
31525         link: fix platform bugs
31526         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
31527         * lib/link.c (link): Work around them.  Fix related mingw bug.
31528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
31529         * modules/unistd (Makefile.am): Substitute it.
31530         * lib/unistd.in.h (link): Declare replacement.
31531         * doc/posix-functions/link.texi (link): Document this.
31532         * modules/link (Depends-on): Add strdup-posix, sys_stat.
31533
31534         test-link: consolidate into single C program, test more cases
31535         * tests/test-link.sh: Delete.
31536         * tests/test-link.c: Test more error conditions.  Exposes bugs on
31537         at least Cygwin and Solaris.
31538         * modules/link-tests (Files): Remove unused file.
31539         (Depends-on): Add errno, sys_stat.
31540         (Makefile.am): Simplify.
31541
31542 2009-09-08  Bruno Haible  <bruno@clisp.org>
31543
31544         Work around towlower, towupper bug on mingw.
31545         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
31546         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
31547         * doc/posix-functions/towlower.texi: Mention the mingw bug.
31548         * doc/posix-functions/towupper.texi: Likewise.
31549         Reported by Eric Blake.
31550
31551 2009-09-08  Jim Meyering  <meyering@redhat.com>
31552
31553         build: don't try to run autoheader if we don't use it
31554         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
31555         is not used in configure.ac.
31556
31557 2009-09-08  Eric Blake  <ebb9@byu.net>
31558
31559         euidaccess: fix compilation error
31560         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
31561
31562         rawmemchr: relax license
31563         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
31564         okay.
31565         Reported by Jim Meyering.
31566
31567         mkfifoat: new module
31568         * modules/mkfifoat: New file.
31569         * lib/mkfifoat.c: Likewise.
31570         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
31571         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31572         * modules/sys_stat (Makefile.am): Use them.
31573         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
31574         * MODULES.html.sh (File system functions): Mention module.
31575         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31576         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31577         * modules/mkfifoat-tests: New test.
31578         * tests/test-mkfifoat.c: Likewise.
31579
31580         strchrnul: relax license
31581         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
31582         okay.
31583         Reported by Jim Meyering.
31584
31585 2009-09-08  Eric Blake  <ebb9@byu.net>
31586
31587         fstatat: fix compilation on Solaris
31588         * lib/fstatat.c (includes): Add fcntl.h.
31589         Reported by Pádraig Brady.
31590
31591 2009-09-07  Eric Blake  <ebb9@byu.net>
31592
31593         rename: modernize replacement
31594         * modules/rename (Depends-on): Add stdio.
31595         (configure.ac): Declare witness.
31596         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
31597         stdio take care of replacement.
31598         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31599         * modules/stdio (Makefile.am): Substitute them.
31600         * lib/stdio.in.h (rename): Declare replacement.
31601         * lib/rename.c (includes): Allow cross-compilation to non-windows
31602         machines.
31603         * doc/posix-functions/rename.texi (rename): Improve
31604         documentation.
31605
31606         stdio: sort witness names
31607         * modules/stdio (Makefile.am): Sort replacements.
31608         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31609         * lib/stdio.in.h: Likewise.
31610
31611         getcwd: minor cleanups
31612         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
31613         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
31614
31615         openat: provide more convenience names
31616         * modules/faccessat (configure.ac): Add C witness.
31617         * lib/unistd.in.h (readlinkat): Fix typo.
31618         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
31619         convenience wrappers.
31620         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
31621         wrappers in syntax checks.
31622
31623 2009-09-06  Eric Blake  <ebb9@byu.net>
31624
31625         doc: fix comments in recent patches
31626         * lib/faccessat.c: Mention correct function.
31627         * lib/fchmodat.c: Likewise.
31628         * lib/fchownat.c: Likewise.
31629         * lib/symlinkat.c: Likewise.
31630         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
31631         constants.
31632
31633         faccessat, symlinkat: continue cleanup of previous patch
31634         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
31635         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31636         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
31637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
31638         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
31639         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
31640         set.
31641
31642 2009-09-06  Bruno Haible  <bruno@clisp.org>
31643
31644         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
31645         (fstatat): Declare if GNULIB_FSTATAT is set.
31646         (mkdirat): Declare if GNULIB_MKDIRAT is set.
31647         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
31648         (unlinkat): Declare if GNULIB_UNLINKAT is set.
31649         * modules/fcntl-h (Files): Remove m4/openat.m4.
31650         * modules/sys_stat (Files): Remove m4/openat.m4.
31651         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
31652         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
31653         * modules/unistd (Files): Remove m4/openat.m4.
31654         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
31655         GNULIB_OPENAT.
31656         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
31657         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
31658         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
31659         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
31660         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
31661         gl_OPENAT_DEFAULTS.
31662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
31663         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
31664         Don't require gl_OPENAT_DEFAULTS.
31665         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
31666         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
31667         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
31668         (gl_OPENAT_DEFAULTS): Remove macro.
31669
31670 2009-09-06  Bruno Haible  <bruno@clisp.org>
31671
31672         * modules/openat (configure.ac): Remove unneeded witness.
31673
31674 2009-09-06  Bruno Haible  <bruno@clisp.org>
31675
31676         Set errno to ENOSYS when a function is entirely unsupported.
31677         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
31678         EOPNOTSUPP.
31679         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
31680         * modules/chown (Depends-on): Remove errno.
31681
31682 2009-09-06  Bruno Haible  <bruno@clisp.org>
31683
31684         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
31685
31686 2009-09-06  Bruno Haible  <bruno@clisp.org>
31687
31688         * lib/sys_stat.in.h: Fix preprocessor command indentation.
31689
31690 2009-09-06  Ben Pfaff  <blp@gnu.org>
31691             Bruno Haible  <bruno@clisp.org>
31692
31693         Work around a glibc bug in strtok_r.
31694         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
31695         Undefine if UNDEFINE_STRTOK_R is set.
31696         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
31697         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31698         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
31699         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
31700         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
31701         UNDEFINE_STRTOK_R.
31702         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
31703
31704 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31705
31706         exclude: minor fix
31707         * lib/exclude.c: Include wctype.h
31708
31709 2009-09-06  Akim Demaille  <demaille@gostai.com>
31710
31711         bootstrap: improve error message
31712         * build-aux/bootstrap (find_tool): Upon failure, report the list
31713         of candidates.
31714         Honor the initial value of the envvar.
31715
31716 2009-09-05  Eric Blake  <ebb9@byu.net>
31717
31718         symlinkat: new module
31719         * modules/symlinkat: New file.
31720         * lib/symlinkat.c: Likewise.
31721         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
31722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31723         * modules/unistd (Makefile.am): Use them.
31724         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
31725         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
31726         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
31727         * MODULES.html.sh (File system functions): Mention module.
31728         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31729         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31730         * modules/symlinkat-tests: New test.
31731         * tests/test-symlinkat.c: Likewise.
31732
31733         test-openat-safer: add more checks
31734         * tests/test-openat-safer.c (main): Check more code paths.
31735
31736 2009-09-05  Jim Meyering  <meyering@redhat.com>
31737
31738         syntax-check: detect unnecessary inclusion of openat.h
31739         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
31740
31741 2009-09-05  Bruno Haible  <bruno@clisp.org>
31742
31743         Support towlower, towupper.
31744         * doc/posix-functions/towlower.texi: Mention module wctype.
31745         * doc/posix-functions/towupper.texi: Likewise.
31746         * lib/wctype.in.h (towlower, towupper): New functions.
31747         * tests/test-wctype.c: Include stdio.h, stdlib.h.
31748         (ASSERT): New macro.
31749         (e): New variable.
31750         (main): Test also towlower, towupper. Test WEOF argument.
31751         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31752
31753 2009-09-05  Bruno Haible  <bruno@clisp.org>
31754
31755         Fix conversion behaviour when the input is invalid.
31756         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
31757         mark occurring in first pass of indirect conversion.
31758         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
31759         input.
31760         Found by clang's static analyzer.
31761
31762 2009-09-05  Bruno Haible  <bruno@clisp.org>
31763
31764         * tests/test-striconveh.c (main): Test indirect conversion on platforms
31765         where direct conversion is possible.
31766
31767 2009-09-04  Eric Blake  <ebb9@byu.net>
31768
31769         openat: fail with ENOENT on empty name
31770         * lib/openat-proc.c (openat_proc_name): Special-case the empty
31771         buffer.
31772
31773         link-follow: fix logic bug in prior patch
31774         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
31775         reversed sense of yes and no in prior patch.  Avoid confusing
31776         compilation failure with desired semantics.
31777
31778         link-follow: accomodate mingw and cross-compilation
31779         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
31780         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
31781         cross-compilation results to -1, to make linkat easier to
31782         implement when cross-compiling.  Trivially support mingw.
31783         * modules/link-follow (configure.ac): Call new name.
31784         * NEWS: Mention this.
31785
31786 2009-09-03  Eric Blake  <ebb9@byu.net>
31787
31788         faccessat: compile replacement
31789         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
31790         needed.
31791
31792         fts: fix compilation error
31793         * lib/fts.c (includes): Re-add "openat.h", for
31794         openat_needs_fchdir.
31795
31796         faccessat: new module
31797         * modules/faccessat: New file.
31798         * lib/faccessat.c: Likewise.
31799         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31801         * modules/unistd (Makefile.am): Use it.
31802         * lib/unistd.in.h (faccessat): Declare it.
31803         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
31804         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
31805         * MODULES.html.sh (File system functions): Mention it.
31806         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
31807         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31808
31809         euidaccess: prefer POSIX over non-standard implementation
31810         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
31811         * lib/euidaccess.c (euidaccess): Use it if available.
31812
31813         openat: make template easier to use
31814         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
31815         AT_FUNC_F2 to be undefined.
31816         (VALIDATE_FLAG): New macro; use it to reject bad flags.
31817         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
31818         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
31819         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
31820         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
31821         Likewise.
31822         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
31823         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
31824         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
31825         Likewise.
31826
31827         openat: declare in POSIX headers
31828         * NEWS: Mention this.
31829         * modules/openat (configure.ac): Declare witnesses.
31830         (Depends-on): Add fcntl-h, sys_stat, unistd.
31831         (Include): Mention correct headers.
31832         * modules/fcntl-h (Depends-on): Add link-warning.
31833         (Files): Add openat.m4.
31834         (Makefile.am): Substitute witnesses.
31835         * modules/sys_stat (Files, Makefile.am): Likewise.
31836         * modules/unistd (Files, Makefile.am): Likewise.
31837         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
31838         (gl_OPENAT_DEFAULTS): New macro.
31839         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
31840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
31841         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
31842         (SYS_STAT_H): Remove unused variable.
31843         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
31844         * lib/fcntl--.h (includes): Remove unneeded header.
31845         * lib/openat-safer.c (includes): Likewise.
31846         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
31847         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
31848         appropriate headers.
31849         (__OPENAT_PREFIX): Delete.
31850         * lib/fcntl.in.h (openat): Provide declaration.
31851         (AT_FDCWD): Fix Solaris bug.
31852         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
31853         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
31854         * lib/fchmodat.c (includes):  Adjust to find declaration.
31855         * lib/fchownat.c (includes): Likewise.
31856         * lib/mkdirat.c (includes): Likewise.
31857         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
31858         still visible.
31859
31860 2009-09-02  Eric Blake  <ebb9@byu.net>
31861
31862         errno: use consistently
31863         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
31864         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
31865         * lib/canonicalize.c (ELOOP): Likewise.
31866         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
31867         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
31868         * lib/lchown.c (EOPNOTSUPP): Likewise.
31869         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
31870         * lib/savewd.c (ESTALE): Likewise.
31871         * lib/settime.c (ENOSYS): Likewise.
31872         * lib/utimens.c (ENOSYS): Likewise.
31873         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
31874         * lib/chdir-safer.c (ELOOP): Likewise.
31875         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
31876         * modules/c-stack (Depends-on): Add errno.
31877         * modules/canonicalize (Depends-on): Likewise.
31878         * modules/chdir-safer (Depends-on): Likewise.
31879         * modules/fdopendir (Depends-on): Likewise.
31880         * modules/inet_ntop (Depends-on): Likewise.
31881         * modules/inet_pton (Depends-on): Likewise.
31882         * modules/lchown (Depends-on): Likewise.
31883         * modules/openat (Depends-on): Likewise.
31884         * modules/savewd (Depends-on): Likewise.
31885         * modules/settime (Depends-on): Likewise.
31886         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
31887
31888         fts: avoid leaking fds
31889         * modules/fts (Depends-on): Add cloexec.
31890         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
31891         flag.
31892
31893         fts: make directory fds more robust
31894         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
31895         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
31896
31897         backupfile, chdir-long, fts, savedir: make safer
31898         * lib/backupfile.c (includes): Use "dirent--.h", since
31899         numbered_backup can write to stderr during readdir.
31900         * lib/savedir.c (includes): Likewise.
31901         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
31902         emulation can write to stderr on failure.
31903         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
31904         * lib/getcwd.c: Document why opendir_safer is unused.
31905         * lib/glob.c: Likewise.
31906         * lib/scandir.c: Likewise.
31907         * lib/openat-proc.c: Likewise, for open_safer.
31908         * modules/backupfile (Depends-on): Add dirent-safer.
31909         * modules/savedir (Depends-on): Likewise.
31910         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
31911         * modules/chdir-long (Depends-on): Add openat-safer.
31912
31913         openat-safer: new module
31914         * modules/openat-safer: New file.
31915         * lib/openat-safer.c: Likewise.
31916         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
31917         * lib/fcntl-safer.h (openat_safer): Declare.
31918         * lib/fcntl--.h (openat): Override.
31919         * MODULES.html.sh (File descriptor based I/O): Mention it.
31920         * lib/openat.h: Add double-inclusion guards.
31921         * lib/openat.c (includes): Only include "fcntl-safer.h", not
31922         "fcntl--.h", so we can implement openat.
31923         * modules/openat-safer-tests: New test.
31924         * tests/test-openat-safer.c: New file.
31925
31926         dirent-safer: new module
31927         * modules/dirent-safer: New file.
31928         * lib/dirent--.h: Likewise.
31929         * lib/dirent-safer.h: Likewise.
31930         * lib/opendir-safer.c: Likewise.
31931         * m4/dirent-safer.m4: Likewise.
31932         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
31933         * modules/dirent-safer-tests: New test.
31934         * tests/test-dirent-safer.c: New file.
31935         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
31936
31937         fdopendir: optimize on mingw
31938         * lib/unistd.in.h (_gl_directory_name): New prototype.
31939         * lib/fchdir.c (_gl_directory_name): Implement it.
31940         (fchdir): Use it to simplify implementation.
31941         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
31942         fchdir, when available, to avoid calling [f]chdir().
31943
31944         fdopendir: split into its own module
31945         * lib/openat.c (fdopendir): Move...
31946         * lib/fdopendir.c: ...into new file.
31947         * modules/fdopendir: New module.
31948         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
31949         * modules/openat (Depends-on): Add fdopendir.
31950         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
31951         fdopendir here.
31952         * modules/savedir (Depends-on): Only need fdopendir, not full
31953         openat.
31954         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
31955         * lib/openat.h (fdopendir): Drop prototype.
31956         * lib/dirent.in.h (fdopendir): Provide prototype.
31957         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
31958         * modules/dirent (Makefile.am): Substitute them.
31959         * MODULES.html.sh (File system functions): Mention it.
31960         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
31961         * modules/fdopendir-tests: New file.
31962         * tests/test-fdopendir.c: Likewise.
31963
31964         fchdir: use more consistent macro convention
31965         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
31966         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
31967         REPLACE_FCHDIR, rather than relying on config.h macros.
31968         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
31969         inside a single make-time REPLACE_FCHDIR block, rather than using
31970         the config.h FCHDIR_REPLACEMENT.
31971         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
31972         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
31973         Manage fstat replacement.
31974         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
31975         REPLACE_FCHDIR.
31976         * modules/sys_stat (Files): Add m4/unistd_h.m4.
31977         (Makefile.am): Substitute REPLACE_FCHDIR.
31978         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
31979         FCHDIR_REPLACEMENT.
31980         * lib/dup-safer.c (dup_safer): Likewise.
31981         * lib/dup2.c (rpl_dup2): Likewise.
31982         * lib/dup3.c (rpl_dup3): Likewise.
31983         * lib/open.c (rpl_open): Likewise.
31984
31985         fchdir: simplify error handling, and support dup3
31986         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
31987         stdbool, malloc-posix, realloc-posix.
31988         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
31989         (ensure_dirs_slot): Return false on allocation failure.
31990         (rpl_dup2): Delete.
31991         (_gl_register_dup): New function.
31992         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
31993         (_gl_register_fd): Close fd on allocation failure.
31994         * lib/fcntl.in.h (_gl_register_fd): Update signature.
31995         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
31996         prototype.
31997         (rpl_dup2_fchdir): Delete prototype.
31998         * lib/open.c (open): Update caller.
31999         * lib/dup2.c (dup2): Track fchdir metadata.
32000         * lib/dup3.c (dup3): Likewise.
32001         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
32002         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
32003
32004 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32005
32006         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
32007         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
32008         don't pass arguments to AC_OUTPUT.
32009
32010 2009-09-02  Bruno Haible  <bruno@clisp.org>
32011
32012         * modules/mkdtemp (License): Relicense under LGPLv2+.
32013         Reported by Paolo Bonzini.
32014
32015 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32016
32017         Replace uses of obsolete autoconf macros in Jim's modules.
32018         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
32019         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
32020         can evoke a warning from autoconf when run with -Wobsolete
32021         enabled.  They were declared obsolete for good reasons (see
32022         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
32023         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
32024         should not continue using the deprecated macros.
32025         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
32026         obsolete Autoconf macros with modern counterparts.
32027         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32028         * m4/dos.m4 (gl_AC_DOS): Likewise.
32029         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
32030         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
32031         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
32032         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
32033         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
32034         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
32035         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
32036         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
32037         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
32038         Likewise.
32039         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
32040         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32041         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
32042         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
32043         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
32044         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32045
32046 2009-09-01  Eric Blake  <ebb9@byu.net>
32047
32048         fchdir: fix off-by-one bug in previous patch
32049         * lib/fchdir.c (rpl_fstat): Use correct bounds.
32050         (_gl_unregister_fd): Delete useless if.
32051
32052 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
32053
32054         maint.mk: sort the list of syntax-check rules
32055         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
32056         easier to get a sense of progress when the rules are run sequentially
32057         and take a long time.
32058
32059 2009-09-01  Simon Josefsson  <simon@josefsson.org>
32060
32061         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
32062         * modules/netinet_in: Likewise.
32063         * modules/sys_file: Likewise.
32064         * modules/sys_ioctl: Likewise.
32065         * modules/sys_select: Likewise.
32066         * modules/sys_socket: Likewise.
32067         * modules/sys_stat: Likewise.
32068         * modules/sys_time: Likewise.
32069         * modules/sys_times: Likewise.
32070         * modules/sys_utsname: Likewise.
32071         * modules/sys_wait: Likewise.
32072
32073 2009-09-01  Jim Meyering  <meyering@redhat.com>
32074
32075         fts: help ensure that return values are not ignored
32076         * lib/fts_.h (__GNUC_PREREQ): Define.
32077         (__attribute_warn_unused_result__): Define.
32078         (fts_children, fts_close, fts_open, fts_read): Declare with
32079         __attribute_warn_unused_result__.
32080
32081         fts: fts_close now fails also when closing a dir file descriptor fails
32082         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
32083         and propagate to caller, along with errno.
32084
32085         announce-gen: correct formatting in --help output
32086         * build-aux/announce-gen (usage): Move the one-line description in
32087         --help output "up", to where it belongs, just after Usage:.
32088
32089 2009-08-31  Eric Blake  <ebb9@byu.net>
32090
32091         fchdir: port to mingw
32092         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
32093         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
32094         opened, then use a substitute.
32095         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
32096         replacement.
32097         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
32098         (_gl_register_fd): No need to check stat if open already filters
32099         all directories.
32100         (fchdir): Fix error condition to match POSIX.
32101         * modules/fchdir (Depends-on): Add sys_stat.
32102         * doc/posix-functions/open.texi (open): Document the limitation.
32103         * modules/fchdir-tests: New file.
32104         * tests/test-fchdir.c: Likewise.
32105
32106         canonicalize: allow cross-testing from cygwin to mingw
32107         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
32108         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
32109         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
32110         Likewise.
32111         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
32112         target does not support symlinks.
32113         * tests/test-canonicalize-lgpl.sh: Likewise.
32114
32115         chown: avoid compilation warning on mingw
32116         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
32117         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
32118         mingw.
32119         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32120         * modules/chown (Depends-on): Add errno.
32121
32122 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
32123
32124         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
32125         command.
32126
32127 2009-08-31  Jim Meyering  <meyering@redhat.com>
32128
32129         canonicalize: remove useless initialization
32130         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
32131         initialization of local, "end".
32132
32133 2009-08-30  Bruno Haible  <bruno@clisp.org>
32134
32135         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
32136         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
32137         ENOSYS.
32138
32139 2009-08-30  Bruno Haible  <bruno@clisp.org>
32140
32141         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
32142         /usr/xpg4/bin/tr when it exists.
32143         * tests/test-pipe-filter-gi1.sh: Likewise.
32144
32145 2009-08-30  Bruno Haible  <bruno@clisp.org>
32146
32147         Work around deficient /usr/bin/id program on Solaris.
32148         * tests/test-file-has-acl.sh (ID): New variable.
32149         * tests/test-set-mode-acl.sh (ID): Likewise.
32150         * tests/test-copy-acl.sh (ID): Likewise.
32151         * tests/test-copy-file.sh (ID): Likewise.
32152
32153 2009-08-30  Bruno Haible  <bruno@clisp.org>
32154
32155         New module 'xstriconveh'.
32156         * lib/xstriconveh.h: New file.
32157         * lib/xstriconveh.c: New file.
32158         * modules/xstriconveh: New file.
32159
32160 2009-08-30  Bruno Haible  <bruno@clisp.org>
32161
32162         Make it easier to use mem_cd_iconveh.
32163         * lib/striconveh.h (iconveh_t): New type.
32164         (iconveh_open, iconveh_close): New declarations.
32165         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32166         with a single 'const iconveh_t *' argument.
32167         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
32168         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32169         with a single 'const iconveh_t *' argument.
32170         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
32171         * tests/test-striconveh.c (main): Update.
32172         * NEWS: Mention the change.
32173
32174 2009-08-30  Bruno Haible  <bruno@clisp.org>
32175
32176         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
32177         problem.
32178
32179 2009-08-30  Bruno Haible  <bruno@clisp.org>
32180
32181         Work around iconv_open problem on Solaris.
32182         * lib/iconv_open-solaris.gperf: New file.
32183         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
32184         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
32185         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
32186         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
32187         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
32188         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
32189
32190 2009-08-29  Jim Meyering  <meyering@redhat.com>
32191
32192         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
32193         * top/maint.mk (cvs-check): Remove target; it was just an alias
32194         to the better-named vc-diff-check.
32195         (maintainer-distcheck): Remove rule.  It was used only from
32196         the (alpha/beta/major) target, and all of its commands but one
32197         were coreutils-specific.
32198         (vc-dist): Remove rule.
32199         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
32200         Run vc-diff-check, not vc-dist.
32201         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
32202
32203 2009-08-27  Bruno Haible  <bruno@clisp.org>
32204
32205         * tests/test-bitrotate.c (main): Remove test that uses a shift count
32206         of 0.
32207
32208 2009-08-27  Bruno Haible  <bruno@clisp.org>
32209
32210         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
32211         compilers.
32212         * doc/func.texi: Document the SunPRO C bug.
32213
32214 2009-08-27  Bruno Haible  <bruno@clisp.org>
32215
32216         Fix link error on Solaris.
32217         * tests/test-parse-duration.c (xstrdup): Remove function.
32218
32219 2009-08-26  Pádraig Brady  <P@draigbrady.com>
32220
32221         ignore-value: handle pointer types, too
32222         * lib/ignore-value.h (__attribute__): Remove definition.
32223         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
32224         of a more concise and more-often effective "(void) i" statement.
32225         (ignore_ptr): New function to suppress warnings from functions that
32226         return pointers, and to make it explicit that one function doesn't
32227         handle all cases.
32228
32229 2009-08-25  Bruno Haible  <bruno@clisp.org>
32230
32231         dup2: work around a Linux bug.
32232         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
32233         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
32234         * doc/posix-functions/dup2.texi: Mention the Linux bug.
32235         Reported by Simon Josefsson.
32236
32237 2009-08-25  Jim Meyering  <meyering@redhat.com>
32238
32239         libguestfs uses gnulib
32240         * users.txt: Add libguestfs.
32241
32242 2009-08-24  Eric Blake  <ebb9@byu.net>
32243
32244         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
32245         * lib/pipe2.c (includes): Add binary-io.h.
32246         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
32247
32248 2009-08-24  Bruno Haible  <bruno@clisp.org>
32249
32250         Tolerate declared but missing accept4 syscall.
32251         * lib/accept4.c (accept4): Invoke original accept4 function first, if
32252         available.
32253         * lib/sys_socket.in.h (accept4): If the function is already present,
32254         override it.
32255         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
32256         * modules/accept4 (Makefile.am): Compile accept4.c always.
32257         Reported by Paolo Bonzini and Eric Blake.
32258
32259 2009-08-23  Bruno Haible  <bruno@clisp.org>
32260
32261         New module 'accept4'.
32262         * lib/sys_socket.in.h (accept4): New declaration.
32263         * lib/accept4.c: New file.
32264         * m4/accept4.m4: New file.
32265         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
32266         GNULIB_ACCEPT4, HAVE_ACCEPT4.
32267         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
32268         HAVE_ACCEPT4.
32269         * modules/accept4: New file.
32270         * doc/glibc-functions/accept4.texi: Mention the new module.
32271
32272 2009-08-24  Jim Meyering  <meyering@redhat.com>
32273
32274         progname: also set global program_invocation_name, when possible
32275         Before this change, a libtool-enabled program that calls glibc's
32276         error function would report the program name as
32277         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
32278         * modules/progname (configure.ac): Check for a declaration of
32279         program_invocation_name.
32280         * lib/progname.c:  Include <errno.h>.
32281         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
32282         Set program_invocation_name.
32283
32284 2009-08-23  Bruno Haible  <bruno@clisp.org>
32285
32286         * lib/dup3.c: Include <string.h>.
32287
32288 2009-08-23  Bruno Haible  <bruno@clisp.org>
32289
32290         * lib/dup3.c (dup3): Test only once whether the system actually exists.
32291         * lib/pipe2.c (pipe2): Likewise.
32292         Suggested by Eric Blake.
32293
32294 2009-08-23  Bruno Haible  <bruno@clisp.org>
32295
32296         Tolerate declared but missing dup3 syscall.
32297         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
32298         * lib/unistd.in.h (dup3): If the function is already present,
32299         override it.
32300         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
32301         * modules/dup3 (Makefile.am): Compile dup3.c always.
32302         Reported by Paolo Bonzini.
32303
32304 2009-08-23  Bruno Haible  <bruno@clisp.org>
32305
32306         Tolerate declared but missing pipe2 syscall.
32307         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
32308         available.
32309         * lib/unistd.in.h (pipe2): If the function is already present,
32310         override it.
32311         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
32312         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
32313         Reported by Paolo Bonzini.
32314
32315 2009-08-23  Bruno Haible  <bruno@clisp.org>
32316
32317         * lib/pipe2.c (pipe2): Move #ifs inside function.
32318
32319 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32320
32321         quotearg: document limitations of quote_these_too
32322         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
32323         those limitations are created.
32324         * lib/quotearg.h (set_char_quoting): Document that digits and
32325         letters that are special after backslash are not permitted.
32326         (quotearg_char): Cross-reference set_char_quoting documentation.
32327
32328 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
32329
32330         quotearg: implement custom_quoting_style
32331         * lib/quotearg.c: (struct quoting_options): Add left_quote and
32332         right_quote fields.
32333         (set_custom_quoting): New public function.
32334         (quotearg_buffer_restyled): Add left_quote and right_quote
32335         arguments, handle them very much like locale quoting, and update
32336         all uses.
32337         (quotearg_n_custom): New public function.
32338         (quotearg_n_custom_mem): New public function.
32339         (quotearg_custom): New public function.
32340         (quotearg_custom_mem): New public function.
32341         * lib/quotearg.h: Prototype and document new public functions.
32342         (enum quoting_style): For escape_quoting_style and
32343         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
32344         ignored even though they're otherwise like c_quoting_style.
32345         Add custom_quoting_style member and document with comparison to
32346         clocale_quoting_style.
32347         * tests/test-quotearg.c (custom_quotes): New array.
32348         (custom_results): New array.
32349         (main): Extend to test custom quoting.
32350
32351 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32352
32353         quotearg: fix right quote escaping when it's in quote_these_too
32354         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
32355         quote, be sure to prepend only one backslash.
32356         * tests/test-quotearg.c (use_quote_double_quotes): New function.
32357         (main): Test it.
32358
32359 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32360
32361         quotearg-tests: test escaping of embedded locale quotes
32362         * tests/test-quotearg.c (struct result_strings): Add member for
32363         new input.
32364         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
32365         (inputs): Add new input.
32366         (results_g): Add expected results.
32367         (flag_results): Likewise.
32368         (locale_results): Likewise.
32369         (compare_strings): Check those.
32370
32371 2009-08-23  Bruno Haible  <bruno@clisp.org>
32372
32373         Tests for module 'dup3'.
32374         * modules/dup3-tests: New file.
32375         * tests/test-dup3.c: New file.
32376
32377         New module 'dup3'.
32378         * lib/unistd.in.h (dup3): New declaration.
32379         * lib/dup3.c: New file.
32380         * m4/dup3.m4: New file.
32381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
32382         HAVE_DUP3.
32383         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
32384         * modules/dup3: New file.
32385         * doc/glibc-functions/dup3.texi: Mention the new module.
32386
32387 2009-08-23  Bruno Haible  <bruno@clisp.org>
32388
32389         Tweak the dup2 test.
32390         * tests/test-dup2.c (main): Create the test file empty. Verify that an
32391         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
32392         the test file is still empty. Fix argument order of lseek.
32393
32394 2009-08-23  Bruno Haible  <bruno@clisp.org>
32395
32396         Avoid test link errors when the modules getopt-gnu, gettext are used.
32397         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
32398         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32399
32400 2009-08-23  Bruno Haible  <bruno@clisp.org>
32401
32402         Fix getdtablesize() on mingw.
32403         * lib/getdtablesize.c (getdtablesize): Implement differently.
32404         * lib/unistd.in.h (getdtablesize): Improve comment.
32405
32406 2009-08-23  Bruno Haible  <bruno@clisp.org>
32407
32408         New module 'mkostemp'.
32409         Based on Ulrich Drepper's 2007-08-10 change in glibc.
32410         * lib/stdlib.in.h (mksotemp): New declaration.
32411         * lib/mkostemp.c: New file, from glibc with modifications.
32412         * lib/tempname.h (GT_FILE): Remove outdated comment.
32413         (gen_tempname): Add flags argument.
32414         * lib/tempname.c (__GT_BIGFILE): Remove macro.
32415         (__GT_FILE): Map to 1.
32416         (small_open, large_open): Remove macros.
32417         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
32418         * lib/mkstemp.c (mkstemp): Update.
32419         * lib/mkdtemp.c (mkdtemp): Likewise.
32420         * m4/mkostemp.m4: New file.
32421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
32422         HAVE_MKOSTEMP.
32423         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
32424         HAVE_MKOSTEMP.
32425         * modules/mkostemp: New file, based on modules/mkstemp.
32426         * doc/glibc-functions/mkostemp.texi: Mention the new module.
32427         * NEWS: Mention the change.
32428
32429 2009-08-23  Bruno Haible  <bruno@clisp.org>
32430
32431         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
32432         Reported by Eric Blake.
32433
32434 2009-08-23  Bruno Haible  <bruno@clisp.org>
32435
32436         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
32437         Reported by Eric Blake.
32438
32439 2009-08-23  Bruno Haible  <bruno@clisp.org>
32440
32441         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
32442         * modules/pipe2 (Depends-on): Likewise.
32443
32444 2009-08-23  Eric Blake  <ebb9@byu.net>
32445
32446         fcntl-h: add O_TTY_INIT support
32447         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
32448         * tests/test-fcntl-h.c (o): Test it.
32449         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32450
32451         fcntl-h: rename from fcntl, in preparation for fcntl(2)
32452         * modules/fcntl: Move <fcntl.h> header replacement...
32453         * modules/fcntl-h: ...to new name, so as not to collide with
32454         like-named function.
32455         * tests/test-fcntl.c: Rename...
32456         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
32457         * modules/fcntl-tests: Rename...
32458         * modules/fcntl-h-tests: ...to this.  Update test file name.
32459         * modules/chdir-long (Depends-on): Update clients.
32460         * modules/chdir-safer (Depends-on): Likewise.
32461         * modules/fcntl-safer (Depends-on): Likewise.
32462         * modules/fts (Depends-on): Likewise.
32463         * modules/mkancesdirs (Depends-on): Likewise.
32464         * modules/mkdir-p (Depends-on): Likewise.
32465         * modules/open (Depends-on): Likewise.
32466         * modules/savewd (Depends-on): Likewise.
32467         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
32468         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32469
32470 2009-08-22  Bruno Haible  <bruno@clisp.org>
32471
32472         * modules/binary-io (License): Relicense under LGPL.
32473         * modules/pipe2 (License): Likewise.
32474
32475 2009-08-22  Bruno Haible  <bruno@clisp.org>
32476
32477         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
32478         return value.
32479         * lib/pipe-filter-gi.c (filter_init): Likewise.
32480         Reported by Eric Blake.
32481
32482 2009-08-22  Bruno Haible  <bruno@clisp.org>
32483
32484         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
32485         * modules/pipe (Depends-on): Add pipe2.
32486
32487 2009-08-22  Bruno Haible  <bruno@clisp.org>
32488
32489         Tests for module 'pipe2'.
32490         * modules/pipe2-tests: New file.
32491         * tests/test-pipe2.c: New file.
32492
32493         New module 'pipe2'.
32494         * lib/unistd.in.h (pipe2): New declaration.
32495         * lib/pipe2.c: New file.
32496         * m4/pipe2.m4: New file.
32497         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
32498         HAVE_PIPE2.
32499         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
32500         * modules/pipe2: New file.
32501         * doc/glibc-functions/pipe2.texi: Mention the new module.
32502
32503 2009-08-22  Bruno Haible  <bruno@clisp.org>
32504
32505         Reference some new glibc functions.
32506         * doc/glibc-functions/accept4.texi: New file.
32507         * doc/glibc-functions/dup3.texi: New file.
32508         * doc/glibc-functions/mkostemp.texi: New file.
32509         * doc/glibc-functions/pipe2.texi: New file.
32510         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
32511         (Glibc sys/socket.h): Refer to accept4.
32512         (Glibc unistd.h): Refer to dup3, pipe2.
32513         Reported by Eric Blake.
32514
32515 2009-08-22  Jim Meyering  <meyering@redhat.com>
32516             Bruno Haible  <bruno@clisp.org>
32517
32518         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
32519         This makes it so packages using automake-1.11's silent-rules option
32520         can print e.g., a single "GEN    configmake.h" line, rather than
32521         the 30+ statements that perform the job.  If you want to see the
32522         actual commands, you can still run "make V=1".
32523         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
32524         so that make output is abbreviated when those variables are defined
32525         appropriately.
32526         * modules/argz: Likewise.
32527         * modules/arpa_inet: Likewise.
32528         * modules/byteswap: Likewise.
32529         * modules/configmake: Likewise.
32530         * modules/dirent: Likewise.
32531         * modules/errno: Likewise.
32532         * modules/fcntl: Likewise.
32533         * modules/float: Likewise.
32534         * modules/fnmatch: Likewise.
32535         * modules/getopt-posix: Likewise.
32536         * modules/glob: Likewise.
32537         * modules/iconv_open: Likewise.
32538         * modules/inttypes: Likewise.
32539         * modules/localcharset: Likewise.
32540         * modules/locale: Likewise.
32541         * modules/math: Likewise.
32542         * modules/netdb: Likewise.
32543         * modules/netinet_in: Likewise.
32544         * modules/poll: Likewise.
32545         * modules/posix_spawnp-tests: Likewise.
32546         * modules/sched: Likewise.
32547         * modules/search: Likewise.
32548         * modules/selinux-h: Likewise.
32549         * modules/signal: Likewise.
32550         * modules/spawn: Likewise.
32551         * modules/stdarg: Likewise.
32552         * modules/stdbool: Likewise.
32553         * modules/stddef: Likewise.
32554         * modules/stdint: Likewise.
32555         * modules/stdio: Likewise.
32556         * modules/stdlib: Likewise.
32557         * modules/string: Likewise.
32558         * modules/strings: Likewise.
32559         * modules/sys_file: Likewise.
32560         * modules/sys_ioctl: Likewise.
32561         * modules/sys_select: Likewise.
32562         * modules/sys_socket: Likewise.
32563         * modules/sys_stat: Likewise.
32564         * modules/sys_time: Likewise.
32565         * modules/sys_times: Likewise.
32566         * modules/sys_utsname: Likewise.
32567         * modules/sys_wait: Likewise.
32568         * modules/sysexits: Likewise.
32569         * modules/time: Likewise.
32570         * modules/unistd: Likewise.
32571         * modules/wchar: Likewise.
32572         * modules/wctype: Likewise.
32573
32574 2009-08-22  Jim Meyering  <meyering@redhat.com>
32575
32576         announce-gen: detect write failure
32577         * build-aux/announce-gen: Add Coda at end.
32578         Remove equivalent-but-more-verbose block at top.
32579
32580 2009-08-19  Akim Demaille  <demaille@gostai.com>
32581
32582         bootstrap: --help to stdout.
32583         * bootstrap (usage): Don't send --help to stderr.
32584         Use a here doc instead of a long string.
32585
32586 2009-08-21  Eric Blake  <ebb9@byu.net>
32587
32588         test-popen-safer: split from test-popen
32589         * tests/test-popen.c (main): Move...
32590         * tests/test-popen.h: ...into new file.
32591         * tests/test-popen-safer2.c: New file.
32592         * modules/popen-tests (Files): Add test-popen.h.
32593         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
32594         Suggested by Bruno Haible.
32595
32596         test-fcntl-safer: split from test-open
32597         * tests/test-open.c (main): Move...
32598         * tests/test-open.h: ...into new file.
32599         * tests/test-fcntl-safer.c: New file.
32600         * modules/open-tests (Files): Add test-open.h.
32601         * modules/fcntl-safer-tests: New file.
32602         Suggested by Bruno Haible.
32603
32604         test-fopen-safer: split from test-fopen
32605         * tests/test-fopen.c (main): Move...
32606         * tests/test-fopen.h: ...into new file.
32607         * tests/test-fopen-safer.c: New file.
32608         * modules/fopen-tests (Files): Add test-fopen.h.
32609         * modules/fopen-safer-tests: New file.
32610         Suggested by Bruno Haible.
32611
32612 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32613
32614         popen-safer: test O_CLOEXEC at run-time.
32615         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
32616
32617 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32618
32619         fcntl: move more flags to the header
32620         * lib/cloexec.c: Do not define FD_CLOEXEC here.
32621         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
32622         * lib/fcntl.in.h: Do both things here.
32623
32624 2009-08-21  Jim Meyering  <meyering@redhat.com>
32625
32626         consistently remove $@-t before redirecting to it
32627         * modules/argz: Remove $@-t and $@ before redirecting to the former.
32628         * modules/alloca-opt: Likewise.
32629         * modules/byteswap: Likewise.
32630         * modules/fnmatch: Likewise.
32631         * modules/getopt-posix: Likewise.
32632         * modules/glob: Likewise.
32633         * modules/poll: Likewise.
32634         * modules/posix_spawnp-tests: Likewise.
32635         * modules/sys_socket: Likewise.
32636         * modules/sysexits: Likewise.
32637
32638 2009-08-21  Eric Blake  <ebb9@byu.net>
32639
32640         popen: simplify access to original popen
32641         * lib/popen.c (rpl_popen): No need to worry about popen being a
32642         macro.
32643         Reported by Bruno Haible.
32644
32645 2009-08-20  Eric Blake  <ebb9@byu.net>
32646
32647         build: avoid some compiler warnings
32648         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
32649         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
32650         type.
32651         (new_exclude_segment, excluded_file_pattern_p)
32652         (excluded_file_name_p): Reduce scope.
32653         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
32654         old-style declaration.
32655
32656 2009-08-20  Simon Josefsson  <simon@josefsson.org>
32657
32658         * tests/test-exclude1.sh: Handle Windows EOL.
32659         * tests/test-exclude2.sh: Likewise.
32660         * tests/test-exclude3.sh: Likewise.
32661         * tests/test-exclude4.sh: Likewise.
32662         * tests/test-exclude5.sh: Likewise.
32663         * tests/test-exclude6.sh: Likewise.
32664         * tests/test-exclude7.sh: Likewise.
32665
32666 2009-08-19  Akim Demaille  <demaille@gostai.com>
32667
32668         bootstrap: find sha1sum when named gsha1sum.
32669         * bootstrap (find_tool): New.
32670         ($SHA1SUM): New.
32671         Use it.
32672
32673 2009-08-20  Jim Meyering  <meyering@redhat.com>
32674
32675         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
32676         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
32677         expression that converts "." in a file name to "\." in the resulting
32678         regexp.  Start with a dummy statement, so that prior shell variable
32679         definitions are expanded portably.  Reported by Simon Josefsson.
32680
32681 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
32682
32683         Fix polling for writeability of a screen buffer.
32684         * lib/poll.c: Distinguish input and screen buffers for the
32685         Win32 implementation.
32686         * lib/select.c: Likewise.
32687
32688 2009-08-19  Eric Blake  <ebb9@byu.net>
32689
32690         popen-safer: prevent popen from clobbering std descriptors
32691         * modules/popen-safer: New file.
32692         * lib/popen-safer.c: Likewise.
32693         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
32694         * lib/stdio--.h (popen): Provide override.
32695         * lib/stdio-safer.h (popen_safer): Provide declaration.
32696         * tests/test-popen.c (includes): Partially test this.
32697         * modules/popen-safer-tests: New file, for more tests.
32698         * tests/test-popen-safer.c: Likewise.
32699         * MODULES.html.sh (file stream based Input/Output): Mention it.
32700
32701         tests: test some of the *-safer modules
32702         * modules/fopen-safer (Depends-on): Add fopen.
32703         * modules/fcntl-safer (Depends-on): Add fcntl.
32704         * modules/stdlib-safer (Depends-on): Add stdlib.
32705         (configure.ac): Set indicator.
32706         * modules/unistd-safer (configure.ac): Likewise.
32707         * modules/tmpfile-safer (configure.ac): Likewise.
32708         (Depends-on): Add tmpfile.
32709         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
32710         active.
32711         * tests/test-fopen.c (includes): Test safer versions when they are
32712         in use.
32713         * tests/test-open.c (includes): Likewise.
32714
32715         popen: fix cygwin 1.5 bug when stdin closed
32716         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
32717         * modules/popen: New file.
32718         * modules/popen-tests: Likewise.
32719         * tests/test-popen.c: Likewise.
32720         * m4/popen.m4: Likewise.
32721         * lib/popen.c: Likewise.
32722         * lib/stdio.in.h (popen): New declaration.
32723         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
32724         * modules/stdio (Makefile.am): Likewise.
32725         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
32726
32727 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
32728
32729         maint.mk: give full control over update-copyright exclusions
32730         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
32731         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
32732         (update-copyright): Don't force inclusion of top-level
32733         ChangeLog.  Don't force exclusion of all COPYING files, but make
32734         them the default exclusion instead.
32735
32736 2009-08-16  Bruno Haible  <bruno@clisp.org>
32737
32738         Fix test failures on Solaris 10.
32739         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
32740         tests when Solaris iconv() is used.
32741         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
32742         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
32743         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
32744         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
32745         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
32746
32747 2009-08-16  Bruno Haible  <bruno@clisp.org>
32748
32749         Fix test failures on Solaris 10.
32750         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
32751         'tr' program and pass it as first argument.
32752         * tests/test-pipe-filter-gi1.sh: Likewise.
32753         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
32754         program as first argument.
32755         * tests/test-pipe-filter-gi1.c (main): Likewise.
32756
32757 2009-08-16  Eric Blake  <ebb9@byu.net>
32758
32759         fpurge: fix previous commits
32760         * modules/fpurge (Makefile.am): Make replacement conditional,
32761         partially reverting 2007-04-29 change; missed in previous
32762         attempt.
32763         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
32764         is missing.
32765
32766 2009-08-16  Bruno Haible  <bruno@clisp.org>
32767
32768         Clarify fpurge's effect on the file position.
32769         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
32770         * tests/test-fpurge.c (main): Make a second pass for checking the file
32771         position.
32772
32773 2009-08-16  Bruno Haible  <bruno@clisp.org>
32774
32775         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
32776         declaration of fpurge is missing.
32777         * tests/test-fpurge.c (main): Check that the file has not more contents
32778         than expected. Close the file before removing it.
32779
32780 2009-08-15  Eric Blake  <ebb9@byu.net>
32781
32782         fpurge: don't wrap working cygwin implementation
32783         * lib/fpurge.c (fpurge): Fix comment typo.
32784         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
32785         1.7 to avoid replacement.
32786         * tests/test-fpurge.c (main): Enhance test.
32787
32788 2009-08-15  Eric Blake  <ebb9@byu.net>
32789         and Jim Meyering  <meyering@redhat.com>
32790
32791         test-update-copyright: skip if perl is insufficient
32792         * tests/test-update-copyright.sh: Failure to run maintainer tool
32793         should not cause testsuite failure on cygwin 1.5.
32794
32795 2009-08-14  Eric Blake  <ebb9@byu.net>
32796
32797         doc: mention more functions added in cygwin 1.7.0
32798         * doc/posix-headers/limits.texi (limits.h): Update for recent
32799         cygwin additions.
32800         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
32801         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
32802         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
32803         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
32804         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
32805
32806 2009-08-14  Eric Blake  <ebb9@byu.net>
32807
32808         maint.mk: simplify update-copyright rule
32809         * top/maint.mk (update-copyright-local): Delete, and document how
32810         to do it in cfg.mk instead.
32811         (update-copyright-exclude-regexp): Delete, and document how to do
32812         it in .x-update-copyright instead.
32813         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
32814         exclude ChangeLog.
32815
32816 2009-08-14  Bruno Haible  <bruno@clisp.org>
32817
32818         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
32819
32820 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32821
32822         maint.mk: support update-copyright-env
32823         * top/maint.mk (update-copyright-env): Define place-holder.
32824         (update-copyright): Expand $(update-copyright-env) before
32825         invoking update-copyright.
32826
32827 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32828
32829         update-copyright: implement forced reformatting
32830         * build-aux/update-copyright: Implement and document
32831         UPDATE_COPYRIGHT_FORCE.
32832         * tests/test-update-copyright.sh: Test it.
32833
32834 2009-08-14  Eric Blake  <ebb9@byu.net>
32835         and Bruno Haible  <bruno@clisp.org>
32836
32837         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
32838         * tests/test-locale.c: Revert previous patch related to NULL.
32839         * tests/test-stdio.c: Likewise.
32840         * tests/test-stdlib.c: Likewise.
32841         * tests/test-string.c: Likewise.
32842         * tests/test-unistd.c: Likewise.
32843         * modules/time-tests (Depends-on): Add verify.
32844         * modules/wchar-tests (Depends-on): Likewise.
32845         * tests/test-time.c: Test for NULL compliance.
32846         * tests/test-wchar.c: Likewise.
32847         * modules/locale (Depends-on): Add stddef.
32848         * modules/stdio (Depends-on): Likewise.
32849         * modules/stdlib (Depends-on): Likewise.
32850         * modules/string (Depends-on): Likewise.
32851         * modules/time (Depends-on): Likewise.
32852         * modules/unistd (Depends-on): Likewise.
32853         * modules/wchar (Depends-on): Likewise.
32854         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
32855         * lib/stdlib.in.h (includes): Likewise.
32856         * lib/string.in.h (includes): Likewise.
32857         * lib/time.in.h (includes): Likewise.
32858         * lib/unistd.in.h (includes): Likewise.
32859         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
32860         replaced.
32861         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32862         * m4/stddef_h.m4: New file.
32863         * modules/stddef: Likewise.
32864         * lib/stddef.in.h: Likewise.
32865         * modules/stddef-tests: Likewise.
32866         * tests/test-stddef.c: Likewise.
32867         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
32868         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
32869         * doc/posix-headers/locale.texi (locale.h): Likewise.
32870         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
32871         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
32872         * doc/posix-headers/string.texi (string.h): Likewise.
32873         * doc/posix-headers/time.texi (time.h): Likewise.
32874         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
32875         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
32876
32877 2009-08-14  Eric Blake  <ebb9@byu.net>
32878
32879         doc: improve git diff of texinfo files
32880         * .gitattributes: Add rule for *.texi files, with hint on how to
32881         use it.
32882         Copied from m4, and based on a report by Bruno Haible.
32883
32884 2009-08-14  Bruno Haible  <bruno@clisp.org>
32885
32886         Disable multithread support by default on Cygwin 1.5.x for real.
32887         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
32888
32889 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32890
32891         update-copyright: much ado about intervals
32892         * build-aux/update-copyright: Implement and document
32893         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
32894         of copyright year intervals.
32895         Also, document UPDATE_COPYRIGHT_YEAR.
32896         * tests/test-update-copyright.sh: Test it.
32897
32898         update-copyright: convert 2-digit to 4-digit years
32899         * build-aux/update-copyright: Implement and document.
32900         * tests/test-update-copyright.sh: Update.
32901
32902 2009-08-14  Jim Meyering  <meyering@redhat.com>
32903
32904         test-exclude: avoid coreutils "make check" failure
32905         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
32906         just as in test-argmatch.c.
32907
32908 2009-08-13  Eric Blake  <ebb9@byu.net>
32909
32910         test-dup2: fix bad assumption
32911         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
32912         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
32913
32914         test-version-etc: fix CRLF portability issue
32915         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
32916         recognize \r.
32917         * tests/test-argp-version-etc-1.sh: Likewise.
32918
32919         getopt: update client modules
32920         * modules/argp (Depends-on): Use getopt-gnu.
32921         * modules/git-merge-changelog (Depends-on): Likewise.
32922         * modules/long-options (Depends-on): Likewise.
32923         * modules/xstrtol (Depends-on): Likewise.
32924
32925 2009-08-13  Simon Josefsson  <simon@josefsson.org>
32926
32927         * tests/test-version-etc.sh: Don't fail on different
32928         project/version.  Don't fail on CRLF differences.  Rewrite to use
32929         multiple -e instead of multiple sed forks, suggested by Eric Blake
32930         <ebb9@byu.net>.
32931         * tests/test-argp-version-etc-1.sh: Likewise.
32932
32933 2009-08-13  Simon Josefsson  <simon@josefsson.org>
32934
32935         * tests/test-version-etc.sh: Don't fail on different
32936         project/version.
32937
32938 2009-08-12  Bruno Haible  <bruno@clisp.org>
32939
32940         Tests for modules 'getopt-posix', 'getopt-gnu'.
32941         * modules/getopt-posix-tests: New file.
32942         * tests/test-getopt.c: New file.
32943         * tests/test-getopt.h: New file.
32944         * tests/test-getopt_long.h: New file.
32945
32946         New modules 'getopt-posix', 'getopt-gnu'.
32947         * modules/getopt-gnu: New file, renamed from modules/getopt.
32948         * modules/getopt-posix: New file.
32949         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
32950         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
32951         (gl_GETOPT): Remove macro.
32952         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
32953         Disable the test against BSD systems that declare optreset. Test
32954         against mingw bug. Test against lack of support of optional arguments
32955         on many platforms.
32956         * doc/glibc-headers/getopt.texi: Update module name and list of
32957         relevant platforms.
32958         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
32959         'getopt-gnu' and more portability problems.
32960         * NEWS: Mention the changes.
32961
32962 2009-08-12  Bruno Haible  <bruno@clisp.org>
32963
32964         Ensure that optarg etc. get declared by <unistd.h>.
32965         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
32966         AC_USE_SYSTEM_EXTENSIONS.
32967         * modules/getopt (Depends-on): Add 'extensions'.
32968
32969 2009-08-12  Bruno Haible  <bruno@clisp.org>
32970
32971         Avoid test link errors.
32972         * modules/pipe-filter-ii-tests (Makefile.am): Define
32973         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
32974         * modules/pipe-filter-gi-tests (Makefile.am): Define
32975         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
32976         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32977
32978 2009-08-12  Bruno Haible  <bruno@clisp.org>
32979
32980         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
32981         gl_GETOPT_SUBSTITUTE before.
32982         (gl_GETOPT): Use it.
32983         * m4/argp.m4 (gl_ARGP): Update.
32984         Reported by Sergey Poznyakoff.
32985
32986         * m4/getopt.m4: Reorder macros.
32987         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
32988         (gl_GETOPT_SUBSTITUTE): Remove macro.
32989
32990 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32991
32992         Minor improvement in gitlog-to-changelog
32993
32994         * build-aux/gitlog-to-changelog: New option `--format' makes
32995         output format string configurable.
32996
32997 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32998
32999         Optimize exclude: use hash tables for non-wildcard patterns.
33000
33001         * lib/exclude.c: Include hash.h and mbuiter.h
33002         (struct exclude_pattern, exclude_segment): New data types.
33003         (struct exclude): Rewrite.
33004         (fnmatch_pattern_has_wildcards): New function.
33005         (new_exclude_segment, free_exclude_segment): New functions.
33006         (excluded_file_pattern_p, excluded_file_name_p): New functions.
33007         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
33008         * lib/exclude.h (is_fnmatch_pattern): New prototype.
33009         * modules/exclude: Depend on hash and mbuiter.
33010
33011         * modules/exclude-tests: New file.
33012         * tests/test-exclude.c: New file.
33013         * tests/test-exclude1.sh: New file.
33014         * tests/test-exclude2.sh: New file.
33015         * tests/test-exclude3.sh: New file.
33016         * tests/test-exclude4.sh: New file.
33017         * tests/test-exclude5.sh: New file.
33018         * tests/test-exclude6.sh: New file.
33019         * tests/test-exclude7.sh: New file.
33020
33021 2009-08-12  Bruno Haible  <bruno@clisp.org>
33022
33023         Ensure that getopt() gets declared by <unistd.h>.
33024         * lib/unistd.in.h: Conditionally include getopt.h.
33025         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
33026         Set GNULIB_UNISTD_H_GETOPT.
33027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33028         GNULIB_UNISTD_H_GETOPT.
33029         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
33030
33031 2009-08-12  Bruno Haible  <bruno@clisp.org>
33032
33033         Clarify logic.
33034         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
33035         gl_replace_getopt instead of GETOPT_H.
33036
33037 2009-08-12  Bruno Haible  <bruno@clisp.org>
33038
33039         * m4/getopt.m4: Add comments.
33040
33041 2009-08-12  Bruno Haible  <bruno@clisp.org>
33042
33043         Disable multithread support by default on Cygwin 1.5.x.
33044         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
33045         set gl_use_threads=no if not specified otherwise.
33046
33047 2009-08-11  Bruno Haible  <bruno@clisp.org>
33048
33049         Avoid compilation error on NetBSD 5.0.
33050         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
33051         * tests/test-stdio.c: Likewise.
33052         * tests/test-stdlib.c: Likewise.
33053         * tests/test-string.c: Likewise.
33054         * tests/test-unistd.c: Likewise.
33055         Reported by Greg Troxel <gdt@ir.bbn.com>
33056         at <https://savannah.gnu.org/support/?106973>.
33057
33058 2009-08-11  Bruno Haible  <bruno@clisp.org>
33059
33060         * modules/dup2-tests (Depends-on): Remove close.
33061
33062         Undo 2009-07-19 commit.
33063         * modules/acl-tests (Depends-on): Remove close.
33064         * modules/binary-io-tests (Depends-on): Likewise.
33065         * modules/closein-tests (Depends-on): Likewise.
33066         * modules/flock-tests (Depends-on): Likewise.
33067         * modules/fsync-tests (Depends-on): Likewise.
33068         * modules/lseek-tests (Depends-on): Likewise.
33069         * modules/pipe-tests (Depends-on): Likewise.
33070         * modules/posix_spawn-tests (Depends-on): Likewise.
33071         * modules/posix_spawnp-tests (Depends-on): Likewise.
33072         * modules/stat-time-tests (Depends-on): Likewise.
33073         * modules/yesno-tests (Depends-on): Likewise.
33074
33075 2009-08-10  Bruno Haible  <bruno@clisp.org>
33076
33077         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
33078
33079 2009-08-10  Bruno Haible  <bruno@clisp.org>
33080
33081         Fix a gcc warning.
33082         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
33083
33084 2009-08-10  Bruno Haible  <bruno@clisp.org>
33085
33086         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
33087         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
33088         not only the first time.
33089         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
33090         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
33091         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
33092         is 1, not only the the first time.
33093
33094 2009-08-10  Bruno Haible  <bruno@clisp.org>
33095
33096         Make it possible to use module 'gethostname' without module 'close'.
33097         * lib/unistd.in.h (close): Evoke a link error only if
33098         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33100         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33101         * modules/unistd (Makefile.am): Substitute
33102         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33103         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
33104         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33105         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33106         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33107         * modules/sys_ioctl (Makefile.am): Substitute
33108         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33109         * modules/socket (configure.ac): On native Windows, set
33110         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
33111         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33112         Reported by Sam Steingold <sds@gnu.org>.
33113
33114 2009-08-10  Bruno Haible  <bruno@clisp.org>
33115
33116         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
33117         * modules/ioctl (configure.ac): Likewise.
33118
33119 2009-08-10  Bruno Haible  <bruno@clisp.org>
33120
33121         Avoid collision between gnulib wrapper and libintl wrapper.
33122         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
33123         already defined in intl/printf.c.
33124         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
33125         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
33126
33127 2009-08-09  Bruno Haible  <bruno@clisp.org>
33128
33129         Make <sys/select.h> really self-contained, also on Solaris 10.
33130         * lib/sys_select.in.h: Include <string.h>.
33131         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
33132         Solaris 10 problem.
33133         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
33134         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
33135         Reported by Jim Meyering.
33136
33137 2009-08-09  Bruno Haible  <bruno@clisp.org>
33138
33139         Avoid warnings from 'aclocal' that are due to a use of macro name
33140         AM_XGETTEXT_OPTION that is not defined in automake.
33141         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
33142         automake.
33143         * modules/error (configure.ac): Likewise.
33144         * modules/propername (configure.ac): Likewise.
33145         * modules/vasprintf (configure.ac): Likewise.
33146         * modules/verror (configure.ac): Likewise.
33147         * modules/xprintf (configure.ac): Likewise.
33148         * modules/xvasprintf (configure.ac): Likewise.
33149
33150 2009-08-08  Bruno Haible  <bruno@clisp.org>
33151
33152         Avoid compilation error in C++ mode.
33153         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
33154         Reported by Sam Steingold <sds@gnu.org>.
33155
33156 2009-08-08  Bruno Haible  <bruno@clisp.org>
33157
33158         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
33159         for the various Unix platforms.
33160         * doc/posix-headers/limits.texi: Update platforms list regarding
33161         HOST_NAME_MAX.
33162         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33163
33164 2009-08-07  Jim Meyering  <meyering@redhat.com>
33165
33166         selinux-at: fix typo in a comment
33167         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
33168         Spotted by Paolo Bonzini.
33169
33170         selinux-at: remove redundant m4 code, add documentation
33171         * modules/selinux-at (configure.ac): Remove redundant code.
33172         LIB_SELINUX is already set via the dependent module, selinux-h.
33173         (Include): Add quotes around selinux-at.h.
33174         * lib/selinux-at.h: Add documentation.
33175         Reported by Bruno Haible in
33176         http://marc.info/?l=gnulib-bug&m=124958988300749
33177
33178 2009-08-07  Bruno Haible  <bruno@clisp.org>
33179
33180         Avoid link error on MacOS X 10.3 and 10.4.
33181         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
33182         on non-ELF systems.
33183         * lib/argp-pv.c (argp_program_version): Likewise.
33184         Reported by Simon Josefsson.
33185
33186 2009-08-07  Simon Josefsson  <simon@josefsson.org>
33187
33188         * tests/test-version-etc.sh: Use $EXEEXT.
33189
33190 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
33191
33192         update-copyright: update documentation to point to maint.mk
33193         * build-aux/update-copyright: Here.
33194
33195 2009-08-06  Jim Meyering  <meyering@redhat.com>
33196
33197         maint.mk: support update-copyright-local
33198         * top/maint.mk (update-copyright-local): Define place-holder.
33199         (update-copyright): Depend on $(update-copyright-local).
33200
33201 2009-08-06  Jim Meyering  <meyering@redhat.com>
33202
33203         selinux-at: new module
33204         Initially written for coreutils, this module will soon be
33205         used by findutils, too.
33206         * MODULES.html.sh [Misc]: Add selinux-at.
33207         * lib/selinux-at.h: New file, from coreutils.
33208         * lib/selinux-at.c: Likewise.
33209         * modules/selinux-at: Likewise.
33210         (License): Change from LGPL to GPL, since it depends
33211         on the GPL'd openat module.
33212
33213         doc: update README
33214         * README: Remove references to cogito.
33215         Remove cvs-repo-updating instructions from 2007.
33216         Don't imply that CVS is better if you have limited disk space.
33217
33218 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33219
33220         update-copyright: support C-style comments
33221         * build-aux/update-copyright: Implement and document.
33222         * tests/test-update-copyright.sh: Test.
33223
33224 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33225
33226         update-copyright: support omitted "(C)"
33227         * build-aux/update-copyright: Implement and document.  Also,
33228         allow variable whitespace before "(C)".
33229         * tests/test-update-copyright.sh: Test.
33230
33231 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33232
33233         update-copyright: don't trip on non-FSF copyright statements
33234         * build-aux/update-copyright: Fix so that the first correctly
33235         formatted FSF copyright statement is recognized no matter what
33236         appears before it.  Update documentation.
33237         * tests/test-update-copyright.sh: Test that.
33238
33239 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33240
33241         update-copyright: clean up code a little
33242         * build-aux/update-copyright: Append "_re" to the name of any
33243         variable holding a regular expression.
33244         Replace "old" and "new" with "stmt" in variable names.
33245         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
33246         handled correctly.
33247         Format code more consistently.
33248
33249 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33250
33251         update-copyright-tests: improve portability
33252         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
33253         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
33254
33255 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33256
33257         update-copyright: support @copyright{} and &copy;
33258         * build-aux/update-copyright: Implement and document.
33259         * tests/test-update-copyright.sh: Test.
33260
33261 2009-08-04  Jim Meyering  <meyering@redhat.com>
33262
33263         update-copyright-tests: correctly test EOL=\r\n handling
33264         * tests/test-update-copyright.sh: Put \r at the end of some lines
33265         for the dos-eol tests.  Based on a patch by Joel E. Denny.
33266
33267         maint.mk: make update-copyright exclusion list more configurable
33268         * top/maint.mk (update-copyright): Default to excluding COPYING,
33269         but allow an override, in case someone does want to update that file.
33270
33271         maint.mk: don't update copyright date in COPYING
33272         * top/maint.mk (update-copyright): Exclude COPYING.
33273
33274         maint.mk: add a copyright-updating rule
33275         * top/maint.mk (update-copyright): New rule.
33276         Derived from coreutils/Makefile.am.
33277
33278         update-copyright: rename some variables
33279         * build-aux/update-copyright: Rename a few variables for clarity.
33280         Tweak syntax.  List Joel E. Denny as coauthor.
33281
33282 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33283
33284         update-copyright: fix bug for 2-digit last year and add tests
33285         * build-aux/update-copyright: Fix bug.
33286         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
33287         specified.
33288         * modules/update-copyright-tests: New
33289         * tests/test-update-copyright.sh: New.
33290
33291 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33292
33293         update-copyright: handle leading tabs in line prefix
33294         * build-aux/update-copyright: Count leading tabs as 8 spaces
33295         when computing margin.  This helps with the formatting of
33296         ChangeLogs, for example.
33297         Fix documentation a little.
33298
33299 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33300
33301         update-copyright: support EOL=\r\n
33302         * build-aux/update-copyright: Implement that.
33303
33304 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33305
33306         update-copyright: automatically format copyright statements
33307         * build-aux/update-copyright: Implement that.
33308         Also, be a little more predictable and safer by always failing
33309         when the full copyright format is not perfectly recognized as an
33310         unbroken whole.  Discussed at
33311         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
33312         Rewrite documentation.
33313
33314 2009-08-03  Bruno Haible  <bruno@clisp.org>
33315
33316         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
33317
33318 2009-08-02  Bruno Haible  <bruno@clisp.org>
33319
33320         Tests for module 'uname'.
33321         * modules/uname-tests: New file.
33322         * tests/test-uname.c: New file.
33323
33324         New module 'uname'.
33325         * lib/uname.c: New file.
33326         * m4/uname.m4: New file.
33327         * modules/uname: New file.
33328         * doc/posix-functions/uname.texi: Mention the new module.
33329
33330 2009-08-02  Bruno Haible  <bruno@clisp.org>
33331
33332         Tests for module 'sys_utsname'.
33333         * modules/sys_utsname-tests: New file.
33334         * tests/test-sys_utsname.c: New file.
33335
33336         New module 'sys_utsname'.
33337         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
33338         * m4/sys_utsname_h.m4: New file.
33339         * modules/sys_utsname: New file.
33340         * doc/posix-headers/sys_utsname.texi: Mention the new module.
33341
33342 2009-08-02  Bruno Haible  <bruno@clisp.org>
33343
33344         Implicitly initialize the sockets library.
33345         * lib/gethostname.c: Include sockets.h.
33346         (rpl_gethostname): Invoke gl_sockets_startup.
33347         * lib/socket.c: Include sockets.h.
33348         (rpl_socket): Invoke gl_sockets_startup.
33349         * modules/gethostname (Depends-on): Add sockets.
33350         * modules/socket (Depends-on): Likewise.
33351         * tests/test-poll.c: Don't include sockets.h.
33352         (main): Don't invoke gl_sockets_startup.
33353         * tests/test-select.c: Don't include sockets.h.
33354         (main): Don't invoke gl_sockets_startup.
33355
33356 2009-08-02  Bruno Haible  <bruno@clisp.org>
33357
33358         Allow multiple calls to gl_sockets_startup.
33359         * lib/sockets.c (initialized_sockets_version): New variable.
33360         (gl_sockets_startup): Do nothing if already called for this or a higher
33361         version.
33362         (gl_sockets_cleanup): Reset initialized_sockets_version.
33363
33364 2009-08-03  Simon Josefsson  <simon@josefsson.org>
33365
33366         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
33367         different project/version.
33368
33369 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
33370             Bruno Haible  <bruno@clisp.org>
33371
33372         Tests for module 'pipe-filter-gi'.
33373         * modules/pipe-filter-gi-tests: New file.
33374         * tests/test-pipe-filter-gi1.sh: New file.
33375         * tests/test-pipe-filter-gi1.c: New file.
33376         * tests/test-pipe-filter-gi2.sh: New file.
33377         * tests/test-pipe-filter-gi2-main.c: New file.
33378         * tests/test-pipe-filter-gi2-child.c: New file.
33379
33380         New module 'pipe-filter-gi'.
33381         * lib/pipe-filter-gi.c: New file.
33382         * modules/pipe-filter-gi: New file.
33383
33384 2009-08-02  Bruno Haible  <bruno@clisp.org>
33385             Paolo Bonzini  <bonzini@gnu.org>
33386
33387         Tests for module 'pipe-filter-ii'.
33388         * modules/pipe-filter-ii-tests: New file.
33389         * tests/test-pipe-filter-ii1.sh: New file.
33390         * tests/test-pipe-filter-ii1.c: New file.
33391         * tests/test-pipe-filter-ii2.sh: New file.
33392         * tests/test-pipe-filter-ii2-main.c: New file.
33393         * tests/test-pipe-filter-ii2-child.c: New file.
33394
33395         New module 'pipe-filter-ii'.
33396         * lib/pipe-filter.h: New file.
33397         * lib/pipe-filter-ii.c: New file.
33398         * lib/pipe-filter-aux.h: New file.
33399         * modules/pipe-filter-ii: New file.
33400
33401 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33402
33403         * lib/gc-libgcrypt.c: Change copyright to FSF.
33404         * lib/gc-gnulib.c: Likewise.
33405
33406 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
33407
33408         * lib/gethostname.c: Include limits.h.
33409
33410 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33411             Bruno Haible  <bruno@clisp.org>
33412
33413         Ensure HOST_NAME_MAX as part of the gethostname module.
33414         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
33415         define also HOST_NAME_MAX.
33416         * tests/test-gethostname.c: Include <limits.h>.
33417         (main): Check also HOST_NAME_MAX.
33418         * doc/posix-headers/limits.texi: Document the mingw problem.
33419
33420 2009-08-02  Bruno Haible  <bruno@clisp.org>
33421
33422         * lib/gethostname.c (gethostname): Fix handling of large len argument.
33423         Add comments.
33424
33425 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33426
33427         * lib/gethostname.c: Add Windows wrapper.
33428         * m4/gethostname.m4: Look for gethostname in -lws2_32.
33429         * modules/gethostname: Depend on sys_socket & errno, for also
33430         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
33431         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
33432
33433 2009-07-31  Jim Meyering  <meyering@redhat.com>
33434
33435         getloadavg: fix symbol name in comment
33436         * lib/getloadavg.c: Correct a typo I introduced when adding
33437         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
33438         Matt Kraai spotted the problem.
33439
33440 2009-07-29  Matt Kraai  <mkraai@beckman.com>
33441
33442         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
33443         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
33444         code also if ! defined N_NAME_POINTER.
33445         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
33446         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
33447         but the n_name member is a 12-byte array.
33448
33449 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
33450
33451         update-copyright: generalize comment handling
33452         * build-aux/update-copyright: Handle copyright statements
33453         within more comment styles.
33454         Document usage.
33455         Report any file with an external copyright holder or parse failure.
33456
33457 2009-07-29  Jim Meyering  <meyering@redhat.com>
33458
33459         mktime: correct setting of REPLACE_MKTIME
33460         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
33461
33462         update-copyright: new module
33463         * modules/update-copyright: New file.
33464         * build-aux/update-copyright: New file.
33465         * MODULES.html.sh (maint+release support): Add update-copyright.
33466
33467 2009-07-27  Bruno Haible  <bruno@clisp.org>
33468
33469         Fix compilation error when <ctime> is used and mktime is replaced.
33470         * lib/time.in.h (mktime): New declaration.
33471         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
33472         REPLACE_MKTIME instead of defining mktime in config.h.
33473         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
33474         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
33475         Reported by Ross McFarland <rwmcfa1@neces.com>.
33476
33477 2009-07-27  Bruno Haible  <bruno@clisp.org>
33478
33479         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
33480         Reported by Matt Kraai <mkraai@beckman.com>.
33481
33482 2009-07-25  Jim Meyering  <meyering@redhat.com>
33483
33484         maint.mk: avoid warnings about missing files
33485         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
33486         diagnostic when .prev-version does not exist.
33487         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
33488         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
33489         nonexistent cfg.mk.
33490         Suggestions from Simon Josefsson.
33491
33492 2009-07-25  Bruno Haible  <bruno@clisp.org>
33493
33494         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
33495         defined as macros. Needed on QNX 6.4.1.
33496         Reported by Matt Kraai <mkraai@beckman.com>.
33497
33498 2009-07-23  Jim Meyering  <meyering@redhat.com>
33499
33500         maint.mk: invoke "make dist" with a working value of XZ_OPT
33501         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
33502
33503 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
33504
33505         Make fseeko.c compile on QNX.
33506         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
33507
33508 2009-07-22  Peter Simons  <simons@cryp.to>
33509
33510         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
33511         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
33512         * lib/md4.h: Likewise.
33513         * lib/md5.h: Likewise.
33514         * lib/sha1.h: Likewise.
33515         * lib/sha256.h: Likewise.
33516         * lib/sha512.h: Likewise.
33517
33518         tests-sha1: don't assign literal string to 'char *' variable
33519         * tests/test-sha1.c (main): Declare locals with "const" to match
33520         attributes of the right hand side.
33521
33522 2009-07-21  Eric Blake  <ebb9@byu.net>
33523
33524         dup2: fix more mingw problems
33525         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
33526         fd to itself.
33527         * doc/posix-functions/dup2.texi (dup2): Document the bug.
33528         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
33529         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
33530         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
33531         care of mingw bugs.
33532
33533 2009-07-21  Jim Meyering  <meyering@redhat.com>
33534
33535         vc-list-files: avoid failure when /bin/sh is dash
33536         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
33537         On some Debian based systems, /bin/sh is a symlink to dash, and running
33538         this command would omit the "/" following each 'tests' prefix:
33539           dash -x build-aux/vc-list-files -C . tests
33540         That is because bash and dash work differently:
33541           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
33542           bash ok
33543           dash odd
33544
33545 2009-07-21  Eric Blake  <ebb9@byu.net>
33546
33547         dup2-tests: test previous patch
33548         * modules/dup2-tests: New file.
33549         * tests/test-dup2.c: Likewise.
33550         * tests/test-open.c (main): Avoid unspecified behavior.
33551         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
33552         test.
33553
33554         dup2: work around mingw and cygwin 1.5 bug
33555         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
33556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33557         * modules/unistd (Makefile.am): Substitute it.
33558         * lib/unistd.in.h (dup2): Declare the replacement.
33559         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
33560         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
33561         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
33562         * modules/execute (Depends-on): Add dup2.
33563         * modules/fseterr (Depends-on): Likewise.
33564         * modules/pipe (Depends-on): Likewise.
33565         * modules/posix_spawn-internal (Depends-on): Likewise.
33566
33567 2009-07-21  Bruno Haible  <bruno@clisp.org>
33568
33569         * modules/.gitattributes: New file.
33570
33571 2009-07-20  Bruno Haible  <bruno@clisp.org>
33572
33573         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
33574         (main): Use it.
33575
33576 2009-07-20  Eric Blake  <ebb9@byu.net>
33577
33578         test-pipe: make a bit more robust.
33579         * tests/test-pipe.c (myerr): Allow error messages regardless of
33580         what we do to stderr.
33581         (test_pipe): Rearrange to avoid deadlock.
33582         (child_main): Try a larger read, to ensure we avoided deadlock.
33583         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
33584         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
33585         if misused.
33586
33587 2009-07-19  Jim Meyering  <meyering@redhat.com>
33588
33589         fts: avoid false-positive cycle-detection
33590         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
33591         for each new command line argument.
33592
33593 2009-07-19  Bruno Haible  <bruno@clisp.org>
33594
33595         Fix build error on mingw with the modules sys_select and unistd.
33596         * modules/acl-tests (Depends-on): Add close.
33597         * modules/binary-io-tests (Depends-on): Likewise.
33598         * modules/closein-tests (Depends-on): Likewise.
33599         * modules/flock-tests (Depends-on): Likewise.
33600         * modules/fsync-tests (Depends-on): Likewise.
33601         * modules/lseek-tests (Depends-on): Likewise.
33602         * modules/pipe-tests (Depends-on): Likewise.
33603         * modules/posix_spawn-tests (Depends-on): Likewise.
33604         * modules/posix_spawnp-tests (Depends-on): Likewise.
33605         * modules/stat-time-tests (Depends-on): Likewise.
33606         * modules/yesno-tests (Depends-on): Likewise.
33607
33608 2009-07-19  Bruno Haible  <bruno@clisp.org>
33609
33610         Unify conditionals.
33611         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
33612         macros, not at the compiler macros.
33613         * lib/pipe.c: Likewise.
33614         * lib/execute.c: Likewise.
33615         * lib/spawni.c: Likewise.
33616
33617 2009-07-19  Bruno Haible  <bruno@clisp.org>
33618
33619         Fix handling of closed stdin/stdout/stderr on mingw.
33620         * lib/w32spawn.h: Include unistd.h.
33621         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
33622         file descriptor with O_NOINHERIT flag.
33623         (fd_safer_noinherit): New function, based on fd-safer.c.
33624         (dup_safer_noinherit): New function, based on dup-safer.c.
33625         (undup_safer_noinherit): New function.
33626         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
33627         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
33628         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
33629         instead of fd_safer.
33630         * tests/test-pipe.c: Include <windows.h>.
33631         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
33632         result.
33633
33634         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
33635         from main.
33636         (test_pipe): Pass an extra argument for disambiguation.
33637         (main): Invoke parent_main or child_main.
33638
33639         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
33640         consistently.
33641
33642 2009-07-18  Eric Blake  <ebb9@byu.net>
33643
33644         test-pipe: fix mingw build
33645         * tests/test-pipe.c (main): Avoid fcntl on mingw.
33646
33647 2009-07-18  Bruno Haible  <bruno@clisp.org>
33648
33649         * modules/pipe-tests (Makefile.am): Fix typo.
33650
33651 2009-07-18  Eric Blake  <ebb9@byu.net>
33652
33653         error: fix mingw build
33654         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
33655         Reported by Bruno Haible.
33656
33657         error: avoid undefined use of stdout
33658         * lib/error.c (error, error_at_line): Check that fd 1 is open
33659         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
33660         is handling faults and the close_stdout module wants to report the
33661         detection of closed stdout as an error.
33662
33663 2009-07-17  Eric Blake  <ebb9@byu.net>
33664
33665         pipe: be robust in face of closed fds
33666         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
33667         should cause child to misbehave.
33668         * modules/pipe-tests: New module.
33669         * tests/test-pipe.c: New file.
33670         * tests/test-pipe.sh: New file.
33671         Reported by Akim Demaille.
33672
33673 2009-07-14  Bruno Haible  <bruno@clisp.org>
33674
33675         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
33676         Reported by anonymous kc.
33677
33678 2009-07-07  Jim Meyering  <meyering@redhat.com>
33679
33680         maint.mk: don't look for translatable strings in *.m4 or *.mk
33681         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
33682         when searching for translatable strings.
33683
33684 2009-07-05  Jim Meyering  <meyering@redhat.com>
33685
33686         remove superfluous parentheses in STREQ definition
33687         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
33688         * lib/getugroups.c (STREQ): Likewise.
33689         * lib/fnmatch.c (STREQ): Likewise.
33690         Spotted by Bruno Haible.
33691
33692 2009-07-04  Jim Meyering  <meyering@redhat.com>
33693
33694         argv-iter: new module
33695         * MODULES.html.sh: Add argv-iter.
33696         * lib/argv-iter.c, lib/argv-iter.h: New files.
33697         * modules/argv-iter: New file.
33698         * modules/argv-iter-tests: New file.
33699         * tests/test-argv-iter.c: Test it.
33700
33701 2009-07-04  Bruno Haible  <bruno@clisp.org>
33702
33703         Fix assertion.
33704         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
33705         contains more exact copies of a given entry than file2, leave the extra
33706         copies unpaired rather than aborting.
33707         Reported by Eric Blake.
33708
33709 2009-07-02  Bruno Haible  <bruno@clisp.org>
33710
33711         Speedup git-merge-changelog for git cherry-pick.
33712         * lib/git-merge-changelog.c (struct entries_mapping): New type.
33713         (entries_mapping_get): New function, extracted from compute_mapping.
33714         (entries_mapping_reverse_get): New function.
33715         (compute_mapping): Add a 'full' argument. Return the result in a
33716         'struct entries_mapping'.
33717         (main): Update. Access the mappings through entries_mapping_get.
33718         Reported by Eric Blake.
33719
33720 2009-07-02  Bruno Haible  <bruno@clisp.org>
33721
33722         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
33723         best_i.
33724
33725 2009-07-02  Bruno Haible  <bruno@clisp.org>
33726
33727         Speed up approximate search for matching ChangeLog entries.
33728         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
33729         argument. Call fstrcmp_bounded instead of fstrcmp.
33730         (compute_mapping, try_split_merged_entry, main): Update callers.
33731
33732 2009-07-02  Bruno Haible  <bruno@clisp.org>
33733
33734         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
33735
33736 2009-06-30  Bruno Haible  <bruno@clisp.org>
33737
33738         Reduce the number of uc_is_cased calls.
33739         * lib/unicase.h (casing_suffix_context_t): Add
33740         'first_char_except_ignorable' field.
33741         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
33742         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
33743         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
33744         Update initializer.
33745         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
33746         case-ignorable characters.
33747         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
33748         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
33749         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
33750         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
33751         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
33752
33753 2009-06-30  Bruno Haible  <bruno@clisp.org>
33754
33755         Tests for module 'unicase/ignorable'.
33756         * modules/unicase/ignorable-tests: New file.
33757         * tests/unicase/test-ignorable.c: New file, generated by
33758         gen-uni-tables.
33759
33760         Tests for module 'unicase/cased'.
33761         * modules/unicase/cased-tests: New file.
33762         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
33763         * tests/unicase/test-predicate-part1.h: New file, derived from
33764         tests/unictype/test-predicate-part1.h.
33765         * tests/unicase/test-predicate-part2.h: New file, same as
33766         tests/unictype/test-predicate-part2.h.
33767
33768         Fix evaluation of "Before C" condition of FINAL_SIGMA.
33769         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
33770         (output_casing_properties): New function.
33771         (main): Call it.
33772         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
33773         * lib/unicase/cased.c: Include unictype/bitmap.h.
33774         (uc_is_cased): Define through a bitmap lookup.
33775         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
33776         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
33777         (uc_is_case_ignorable): Define through a bitmap lookup.
33778         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
33779         lib/unictype/bitmap.h.
33780         (Depends-on): Add inline. Clean up.
33781         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
33782         lib/unictype/bitmap.h.
33783         (Depends-on): Add inline. Clean up.
33784         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
33785         recognition.
33786         * tests/unicase/test-u16-tolower.c (main): Likewise.
33787         * tests/unicase/test-u32-tolower.c (main): Likewise.
33788
33789 2009-06-30  Bruno Haible  <bruno@clisp.org>
33790
33791         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
33792         * lib/unicase/u16-casemap.c: Likewise.
33793         * lib/unicase/u32-casemap.c: Likewise.
33794
33795 2009-06-29  Bruno Haible  <bruno@clisp.org>
33796
33797         Define u32_casefold as a wrapper around u32_ct_casefold.
33798         * lib/unicase/u32-casefold.c: Update.
33799         * modules/unicase/u32-casefold (Depends-on): Add
33800         unicase/u32-ct-casefold, unicase/empty-prefix-context,
33801         unicase/empty-suffix-context. Clean up.
33802
33803         Define u16_casefold as a wrapper around u16_ct_casefold.
33804         * lib/unicase/u16-casefold.c: Update.
33805         * modules/unicase/u16-casefold (Depends-on): Add
33806         unicase/u16-ct-casefold, unicase/empty-prefix-context,
33807         unicase/empty-suffix-context. Clean up.
33808
33809         Define u8_casefold as a wrapper around u8_ct_casefold.
33810         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
33811         * lib/unicase/u8-casefold.c: Update.
33812         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
33813         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33814
33815         Define u32_totitle as a wrapper around u32_ct_totitle.
33816         * lib/unicase/u32-totitle.c: Update.
33817         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
33818         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33819
33820         Define u16_totitle as a wrapper around u16_ct_totitle.
33821         * lib/unicase/u16-totitle.c: Update.
33822         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
33823         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33824
33825         Define u8_totitle as a wrapper around u8_ct_totitle.
33826         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
33827         functions.
33828         (FUNC): Delegate to U_CT_TOTITLE.
33829         * lib/unicase/u8-totitle.c: Update.
33830         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
33831         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33832
33833         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
33834         invocation.
33835         * modules/unicase/u32-tolower (Depends-on): Add
33836         unicase/empty-prefix-context, unicase/empty-suffix-context.
33837
33838         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
33839         invocation.
33840         * modules/unicase/u16-tolower (Depends-on): Add
33841         unicase/empty-prefix-context, unicase/empty-suffix-context.
33842
33843         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
33844         * modules/unicase/u8-tolower (Depends-on): Add
33845         unicase/empty-prefix-context, unicase/empty-suffix-context.
33846
33847         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
33848         invocation.
33849         * modules/unicase/u32-toupper (Depends-on): Add
33850         unicase/empty-prefix-context, unicase/empty-suffix-context.
33851
33852         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
33853         invocation.
33854         * modules/unicase/u16-toupper (Depends-on): Add
33855         unicase/empty-prefix-context, unicase/empty-suffix-context.
33856
33857         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
33858         * modules/unicase/u8-toupper (Depends-on): Add
33859         unicase/empty-prefix-context, unicase/empty-suffix-context.
33860
33861         New module 'unicase/u32-ct-casefold'.
33862         * lib/unicase/u32-ct-casefold.c: New file.
33863         * modules/unicase/u32-ct-casefold: New file.
33864
33865         New module 'unicase/u16-ct-casefold'.
33866         * lib/unicase/u16-ct-casefold.c: New file.
33867         * modules/unicase/u16-ct-casefold: New file.
33868
33869         New module 'unicase/u8-ct-casefold'.
33870         * lib/unicase/u8-ct-casefold.c: New file.
33871         * lib/unicase/u-ct-casefold.h: New file, derived from
33872         lib/unicase/u-casefold.h.
33873         * modules/unicase/u8-ct-casefold: New file.
33874
33875         New module 'unicase/u32-ct-totitle'.
33876         * lib/unicase/u32-ct-totitle.c: New file.
33877         * modules/unicase/u32-ct-totitle: New file.
33878
33879         New module 'unicase/u16-ct-totitle'.
33880         * lib/unicase/u16-ct-totitle.c: New file.
33881         * modules/unicase/u16-ct-totitle: New file.
33882
33883         New module 'unicase/u8-ct-totitle'.
33884         * lib/unicase/u8-ct-totitle.c: New file.
33885         * lib/unicase/u-ct-totitle.h: New file, derived from
33886         lib/unicase/u-totitle.h.
33887         * modules/unicase/u8-ct-totitle: New file.
33888
33889         New module 'unicase/u32-ct-tolower'.
33890         * lib/unicase/u32-ct-tolower.c: New file.
33891         * modules/unicase/u32-ct-tolower: New file.
33892
33893         New module 'unicase/u16-ct-tolower'.
33894         * lib/unicase/u16-ct-tolower.c: New file.
33895         * modules/unicase/u16-ct-tolower: New file.
33896
33897         New module 'unicase/u8-ct-tolower'.
33898         * lib/unicase/u8-ct-tolower.c: New file.
33899         * modules/unicase/u8-ct-tolower: New file.
33900
33901         New module 'unicase/u32-ct-toupper'.
33902         * lib/unicase/u32-ct-toupper.c: New file.
33903         * modules/unicase/u32-ct-toupper: New file.
33904
33905         New module 'unicase/u16-ct-toupper'.
33906         * lib/unicase/u16-ct-toupper.c: New file.
33907         * modules/unicase/u16-ct-toupper: New file.
33908
33909         New module 'unicase/u8-ct-toupper'.
33910         * lib/unicase/u8-ct-toupper.c: New file.
33911         * modules/unicase/u8-ct-toupper: New file.
33912
33913         Add context arguments to u*_casemap functions.
33914         * lib/unicase/unicasemap.h: Include unicase.h.
33915         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
33916         suffix_context arguments.
33917         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
33918         functions.
33919         (FUNC): Add prefix_context and suffix_context arguments. Use
33920         uc_is_cased and uc_is_case_ignorable.
33921         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
33922         * lib/unicase/u16-casemap.c: Likewise.
33923         * lib/unicase/u32-casemap.c: Likewise.
33924         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
33925         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33926         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
33927         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33928         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
33929         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33930
33931         New module 'unicase/u32-suffix-context'.
33932         * lib/unicase/u32-suffix-context.c: New file.
33933         * modules/unicase/u32-suffix-context: New file.
33934
33935         New module 'unicase/u16-suffix-context'.
33936         * lib/unicase/u16-suffix-context.c: New file.
33937         * modules/unicase/u16-suffix-context: New file.
33938
33939         New module 'unicase/u8-suffix-context'.
33940         * lib/unicase/u8-suffix-context.c: New file.
33941         * lib/unicase/u-suffix-context.h: New file.
33942         * modules/unicase/u8-suffix-context: New file.
33943
33944         New module 'unicase/empty-suffix-context'.
33945         * lib/unicase/empty-suffix-context.c: New file.
33946         * modules/unicase/empty-suffix-context: New file.
33947
33948         New module 'unicase/u32-prefix-context'.
33949         * lib/unicase/u32-prefix-context.c: New file.
33950         * modules/unicase/u32-prefix-context: New file.
33951
33952         New module 'unicase/u16-prefix-context'.
33953         * lib/unicase/u16-prefix-context.c: New file.
33954         * modules/unicase/u16-prefix-context: New file.
33955
33956         New module 'unicase/u8-prefix-context'.
33957         * lib/unicase/u8-prefix-context.c: New file.
33958         * lib/unicase/u-prefix-context.h: New file.
33959         * lib/unicase/context.h: New file.
33960         * modules/unicase/u8-prefix-context: New file.
33961
33962         New module 'unicase/empty-prefix-context'.
33963         * lib/unicase/empty-prefix-context.c: New file.
33964         * modules/unicase/empty-prefix-context: New file.
33965
33966         New module 'unicase/ignorable'.
33967         * lib/unicase/ignorable.c: New file.
33968         * modules/unicase/ignorable: New file.
33969
33970         New module 'unicase/cased'.
33971         * lib/unicase/caseprop.h: New file.
33972         * lib/unicase/cased.c: New file.
33973         * modules/unicase/cased: New file.
33974
33975         New functions for case mapping of substrings.
33976         * lib/unicase.h (casing_prefix_context_t): New type.
33977         (unicase_empty_prefix_context): New variable.
33978         (u8_casing_prefix_context, u16_casing_prefix_context,
33979         u32_casing_prefix_context, u8_casing_prefixes_context,
33980         u16_casing_prefixes_context, u32_casing_prefixes_context): New
33981         declarations.
33982         (casing_suffix_context_t): New type.
33983         (unicase_empty_suffix_context): New variable.
33984         (u8_casing_suffix_context, u16_casing_suffix_context,
33985         u32_casing_suffix_context, u8_casing_suffixes_context,
33986         u16_casing_suffixes_context, u32_casing_suffixes_context,
33987         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
33988         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
33989         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
33990         declarations.
33991
33992 2009-06-28  Jim Meyering  <meyering@redhat.com>
33993
33994         boostrap: indent only with spaces
33995         * build-aux/bootstrap: Indent only with spaces, never TABs.
33996
33997         bootstrap: split long lines
33998         * build-aux/bootstrap: Keep line length < 80.
33999
34000         bootstrap: sync from coreutils
34001         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
34002         just as autoreconf does.  Verify a list of prerequisite
34003         package-name,version-number pairs if defined in bootstrap.conf.
34004         Refer to README-prereq, if prerequisites are not satisfied.
34005
34006 2009-06-27  Eric Blake  <ebb9@byu.net>
34007
34008         tests: add test for bogus NULL definition
34009         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
34010         * tests/test-stdlib.c: Likewise.
34011         * tests/test-string.c: Likewise.
34012         * tests/test-locale.c: Likewise.
34013         * tests/test-unistd.c: Likewise.
34014         * modules/stdio-tests (Depends-on): Add verify.
34015         * modules/stdlib-tests (Depends-on): Likewise.
34016         * modules/string-tests (Depends-on): Likewise.
34017         * modules/locale-tests (Depends-on): Likewise.
34018         * modules/unistd-tests (Depends-on): Likewise.
34019
34020 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
34021
34022         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
34023         self-explaining comment.
34024         * m4/selinux-selinux-h: Update serial.
34025         (gl_LIBSELINUX): New macro, adding a warning for missing development
34026         packages to code extracted from...
34027         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
34028         Add warning for missing development packages here, too.
34029
34030 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
34031
34032         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
34033
34034 2009-06-25  Eric Blake  <ebb9@byu.net>
34035
34036         version-etc: fix regression
34037         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
34038         gcc.
34039         (version_etc): Use it, to catch bugs with trailing NULL.
34040         * lib/version-etc.c (version_etc_arn): Delete unused argument.
34041         (version_etc_va): Fix logic bug.
34042         * modules/version-etc-tests: Add test.
34043         * tests/test-version-etc.c: New file.
34044         * tests/test-version-etc.sh: Likewise.
34045
34046 2009-06-25  Sam Steingold  <sds@gnu.org>
34047
34048         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
34049         mbtowc declaration.
34050
34051 2009-06-25  Eric Blake  <ebb9@byu.net>
34052
34053         fpurge: migrate into <stdio.h>
34054         * lib/fpurge.h: Delete...
34055         * lib/stdio.in.h (fpurge): ...and declare here, instead.
34056         * lib/fpurge.c (fpurge): Change declaring header.
34057         * modules/fpurge (Files): Drop deleted file.
34058         (Depends-on): Add stdio.
34059         (configure.ac): Set witness.
34060         * modules/stdio (Makefile.am): Support fpurge macros.
34061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34062         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
34063         * lib/fflush.c: Update client.
34064         * tests/test-fpurge.c: Likewise.
34065         * NEWS: Mention the change.
34066
34067 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34068
34069         * lib/argp-version-etc.c (program_authors): Add const
34070         qualifier.
34071         * lib/version-etc.c: Fix typos in the comments.
34072         * modules/argp-version-etc: Depends on version-etc.
34073
34074 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34075
34076         argp-version-etc: new module.
34077
34078         * lib/argp-version-etc.c: New file.
34079         * lib/argp-version-etc.h: New file.
34080         * modules/argp-version-etc: New file.
34081         * modules/argp-version-etc-tests: New file.
34082         * tests/test-argp-version-etc.c: New test.
34083         * tests/test-argp-version-etc-1.sh: New test.
34084
34085 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34086
34087         Provide additional interfaces and documentation for version-etc
34088         module.
34089
34090         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
34091         interfaces.
34092         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
34093         prototypes.
34094
34095 2009-06-24  Bruno Haible  <bruno@clisp.org>
34096
34097         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
34098         HAVE_LIB${NAME} macro.
34099         Reported by Sam Steingold <sds@gnu.org>.
34100
34101 2009-06-23  Simon Josefsson  <simon@josefsson.org>
34102
34103         * modules/hash-tests (test_hash_LDADD): Link to libintl when
34104         needed.
34105
34106 2009-06-21  Bruno Haible  <bruno@clisp.org>
34107
34108         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
34109         work.
34110         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
34111         together with LIB${NAME}, LTLIB${NAME}.
34112         Reported by Sam Steingold <sds@gnu.org>.
34113
34114 2009-06-20  Jim Meyering  <meyering@redhat.com>
34115
34116         tests: make sc_require_test_exit_idiom more generic
34117         * top/maint.mk (Exit_witness_file): New overridable variable.
34118         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
34119         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
34120
34121 2009-06-19  Jim Meyering  <meyering@redhat.com>
34122
34123         hash: reverse order of src/dst parameters in an internal interface
34124         * lib/hash.c (transfer_entries): Reverse order of parameters to
34125         put DST before SRC.  Adjust callers.
34126
34127         tests: test-hash: avoid wholesale duplication
34128         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
34129         Instead, use a loop and add a single conditional.
34130
34131         tests: test-hash: allow seed selection via a command line argument
34132         * tests/test-hash.c (get_seed): New function.
34133         (main): Use it.
34134
34135 2009-06-19  Eric Blake  <ebb9@byu.net>
34136
34137         hash: avoid memory leak on allocation failure
34138         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
34139         failure.  Factor repeated algorithm...
34140         (transfer_entries): ...into new helper routine.
34141         (hash_delete): React to hash_rehash return value.
34142
34143         hash: reduce memory pressure in hash_rehash no-op case
34144         * lib/hash.c (next_prime): Avoid overflow.
34145         (hash_initialize): Factor bucket size computation...
34146         (compute_bucket_size): ...into new helper function.
34147         (hash_rehash): Use new function and open coding to reduce memory
34148         pressure, and avoid a memory leak in USE_OBSTACK code.
34149         Reported by Jim Meyering.
34150
34151 2009-06-18  Eric Blake  <ebb9@byu.net>
34152
34153         hash: make rotation more obvious
34154         * modules/hash (Depends-on): Add bitrotate and stdint.
34155         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
34156         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
34157         (SIZE_MAX): Rely on headers for definition.
34158         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
34159         (raw_hasher): Use rotr_sz.
34160         Suggested by Jim Meyering.
34161
34162         hash: fix memory leak in last patch
34163         * lib/hash.c (hash_rehash): Avoid memory leak.
34164
34165         hash: avoid no-op rehashing
34166         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
34167
34168         hash: provide default callback functions
34169         * lib/hash.c (raw_hasher, raw_comparator): New functions.
34170         (hash_initialize): Use them as defaults.
34171         * tests/test-hash.c (main): Test this.
34172
34173         hash: minor optimization
34174         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
34175         when possible.
34176         (hash_initialize): Document this promise.
34177         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
34178         * tests/test-hash.c (hash_compare_strings): Test this.
34179
34180 2009-06-18  Bruno Haible  <bruno@clisp.org>
34181
34182         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
34183         going to be replaced anyway.
34184
34185 2009-06-18  Bruno Haible  <bruno@clisp.org>
34186
34187         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
34188         in one place.
34189         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
34190         be replaced anyway.
34191
34192 2009-06-18  Eric Blake  <ebb9@byu.net>
34193
34194         hash: check for resize before insertion
34195         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
34196         threshold before insertion, so that a pathological hash_rehash
34197         that fills every bucket can still trigger another rehash.
34198
34199 2009-06-18  Jim Meyering  <meyering@redhat.com>
34200
34201         hash-tests: add a loop around the small tests
34202         * tests/test-hash.c (main): Repeat small tests with selected
34203         small initial table sizes.
34204
34205 2009-06-17  Eric Blake  <ebb9@byu.net>
34206
34207         hash: minor cleanups
34208         * lib/hash.h (hash_entry): Make opaque, by moving...
34209         * lib/hash.c (hash_entry): ...here.
34210         (hash_insert): Clarify restrictions on what can be inserted.
34211         (hash_get_next): Clarify when it is safe to remove an element
34212         during traversal.
34213         (check_tuning): Skip verification when tuning is known safe.
34214         (hash_initialize): Clarify restrictions on tuning.
34215
34216 2009-06-17  Jim Meyering  <jim@meyering.net>
34217         and Eric Blake  <ebb9@byu.net>
34218
34219         hash-tests: new module
34220         * modules/hash-tests: New file.
34221         * tests/test-hash.c: New file.
34222
34223 2009-06-17  Eric Blake  <ebb9@byu.net>
34224
34225         strstr-simple: document new module
34226         * MODULES.html.sh: Document new module.
34227
34228         strstr, strcasestr: replace on platforms with broken memchr
34229         * modules/strstr: Split into...
34230         * modules/strstr-simple: ...new module that does not care about
34231         performance, but does care about glibc bug.
34232         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
34233         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
34234         if platform memchr is broken, per Debian bug 521737.
34235         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
34236         memchr.
34237         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
34238         * doc/posix-functions/strstr.texi (strstr): Document the fix.
34239         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34240         * modules/mountlist (Depends-on): Add strstr-simple.
34241         * modules/gen-uni-tables (Depends-on): Likewise.
34242         * modules/argz (Depends-on): Add strstr.
34243
34244 2009-06-17  Bruno Haible  <bruno@clisp.org>
34245
34246         * modules/posix_spawn-internal (Depends-on): Add errno.
34247
34248 2009-06-17  Bruno Haible  <bruno@clisp.org>
34249
34250         Define missing ESTALE on Interix 3.5.
34251         * lib/errno.in.h (ESTALE): Assign a value if missing.
34252         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
34253         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
34254         missing.
34255         * doc/posix-headers/errno.texi: Mention the Interix bug.
34256         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
34257
34258 2009-06-15  Eric Blake  <ebb9@byu.net>
34259
34260         memchr, memchr2: add valgrind exception
34261         * lib/memchr.valgrind: New file.
34262         * lib/memchr2.valgrind: New file.
34263         * modules/memchr (Files): Distribute valgrind file.
34264         * modules/memchr2 (Files): Likewise.
34265
34266         docs: memchr is no longer obsolete
34267         * MODULES.html.sh: Move memchr from obsolete to string.h section.
34268         * lib/string.in.h (memchr): Simplify logic.
34269
34270 2009-06-14  Jim Meyering  <meyering@redhat.com>
34271
34272         link-follow: fix the "checking..." message to not mention trailing slash
34273         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
34274         never considered trailing slashes.
34275
34276 2009-06-14  Bruno Haible  <bruno@clisp.org>
34277
34278         * m4/memchr.m4: Mention also the bug on IA-64.
34279         * doc/posix-functions/memchr.texi: Likewise.
34280
34281 2009-06-12  Eric Blake  <ebb9@byu.net>
34282
34283         memchr: detect broken x86_64 and alpha implementations
34284         * modules/memchr-tests (Depends-on): Move mmap detection...
34285         * modules/memchr (Depends-on): ...here.
34286         (configure.ac): Set indicator.
34287         * lib/string.in.h (memchr): Declare replacement.
34288         * modules/string (Makefile.am): Trigger replacement.
34289         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34290         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
34291         bugs.
34292         * doc/posix-functions/memchr.texi (memchr): Document the bug.
34293         * modules/getpagesize (License): Relax license.
34294
34295 2009-06-11  Bruno Haible  <bruno@clisp.org>
34296
34297         * lib/idpriv.h: Add more references.
34298
34299 2009-06-08  Bruno Haible  <bruno@clisp.org>
34300
34301         Tests for module 'idpriv-droptemp'.
34302         * modules/idpriv-droptemp-tests: New file.
34303         * tests/test-idpriv-droptemp.sh: New file.
34304         * tests/test-idpriv-droptemp.su.sh: New file.
34305         * tests/test-idpriv-droptemp.c: New file.
34306
34307         New module 'idpriv-droptemp'.
34308         * lib/idpriv-droptemp.c: New file.
34309         * modules/idpriv-droptemp: New file.
34310
34311 2009-06-08  Bruno Haible  <bruno@clisp.org>
34312
34313         Tests for module 'idpriv-drop'.
34314         * modules/idpriv-drop-tests: New file.
34315         * tests/test-idpriv-drop.sh: New file.
34316         * tests/test-idpriv-drop.su.sh: New file.
34317         * tests/test-idpriv-drop.c: New file.
34318
34319         New module 'idpriv-drop'.
34320         * lib/idpriv.h: New file.
34321         * lib-idpriv-drop.c: New file.
34322         * m4/idpriv.m4: New file.
34323         * modules/idpriv-drop: New file.
34324
34325 2009-06-08  Bruno Haible  <bruno@clisp.org>
34326
34327         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
34328         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34329         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34330         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34331         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34332         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34333         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34334
34335 2009-06-08  Eric Blake  <ebb9@byu.net>
34336
34337         test-strstr: use memory fence, when possible
34338         * tests/test-strstr.c (main): Use memory fence, in order to be
34339         more likely to trigger Debian bug 521737.
34340         * modules/strstr-tests (Files): Pull in additional files.
34341
34342         memchr: no longer obsolete, for wider field testing
34343         * modules/memchr (Status, Notice): Delete, this module is no
34344         longer obsolete.
34345         * modules/vasnprintf (Depends-on): Add memchr.
34346
34347 2009-06-07  Jim Meyering  <meyering@redhat.com>
34348
34349         hash: declare some functions with the warn_unused_result attribute
34350         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
34351
34352 2009-06-07  Bruno Haible  <bruno@clisp.org>
34353
34354         * tests/test-alignof.c: Don't test int64_t if it does not exist.
34355         Reported by Eric Blake.
34356
34357 2009-06-06  Eric Blake  <ebb9@byu.net>
34358
34359         test-alignof: fix typo with long double
34360         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
34361         compiler error.
34362
34363 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
34364
34365         Escape non-texinfo { and }s.
34366         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
34367         markup error.
34368
34369 2009-06-04  Jim Meyering  <meyering@redhat.com>
34370
34371         gitlog-to-changelog: don't infloop on an empty commit log
34372         * build-aux/gitlog-to-changelog: Warn about an empty log message.
34373         Reported by Boris Petersen <transacid@centerim.org>.
34374
34375 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
34376
34377         version-etc: extend for packagers
34378         Add three new configure options, intended for packagers:
34379           --with-packager="packager name"
34380           --with-packager-version="packager-specific version"
34381           --with-packager-bug-reports="packager bug reporting"
34382         An example with coreutils:
34383           $ ./configure \
34384             --with-packager=Gentoo \
34385             --with-packager-bug-report=http://bugs.gentoo.org/ \
34386             --with-packager-version="patchset 1.6"
34387           $ ./src/ls --version | head -n2
34388           ls (GNU coreutils) 7.1-dirty
34389           Packaged by Gentoo (patchset 1.6)
34390         Note that the bug reporting info via --help doesn't show up because
34391         coreutils uses its own custom emit_bug_reporting_address() implementation
34392         in src/system.h.  If it didn't, it'd look like:
34393           $ ./src/ls --help | tail -n4
34394           Report bugs to <bug-coreutils@gnu.org>.
34395           Report Gentoo bugs to <http://bugs.gentoo.org/>.
34396           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
34397           General help using GNU software: <http://www.gnu.org/gethelp/>.
34398         * lib/version-etc.c: Print new information, if provided.
34399         * m4/version-etc.m4: New file.
34400         * modules/version-etc (Files): Add m4/version-etc.m4.
34401         (configure.ac): Add gl_VERSION_ETC.
34402
34403 2009-05-31  Bruno Haible  <bruno@clisp.org>
34404
34405         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
34406         and 'int64_t'.
34407         * modules/alignof-tests (Dependencies): Add stdint.
34408         Reported by Eric Blake.
34409
34410 2009-05-31  Bruno Haible  <bruno@clisp.org>
34411
34412         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
34413         restriction due to compiler bugs.
34414         Reported by Eric Blake.
34415
34416 2009-05-31  Simon Josefsson  <simon@josefsson.org>
34417             Bruno Haible  <bruno@clisp.org>
34418
34419         Fix test-alignof failure.
34420         * lib/alignof.h (alignof_slot): New macro.
34421         (alignof_type): New macro, with the same semantics as the previous
34422         'alignof'.
34423         (alignof): Alias to alignof_slot.
34424         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
34425         check that the results are usable as constant expressions.
34426
34427 2009-05-31  Bruno Haible  <bruno@clisp.org>
34428
34429         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
34430         * tests/test-memchr.c (main): Check that memchr does not read past the
34431         first occurrence of the byte.
34432         * tests/test-strstr.c (main): Update comment.
34433         Suggested by Eric Blake.
34434
34435 2009-05-30  Bruno Haible  <bruno@clisp.org>
34436
34437         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
34438         detail how to use dumpbin.
34439         Reported by David Byron <dbyron@dbyron.com>.
34440
34441 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34442
34443         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
34444
34445 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34446
34447         * m4/manywarnings.m4: Add GCC 4.4 warnings.
34448
34449 2009-05-28  Bruno Haible  <bruno@clisp.org>
34450
34451         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
34452         build-aux/ files.
34453
34454 2009-05-28  Simon Josefsson  <simon@josefsson.org>
34455
34456         * gnulib-tool (func_import): Transform license on build-aux/ files too.
34457
34458 2009-05-27  Simon Josefsson  <simon@josefsson.org>
34459
34460         * gnulib-tool (sed_transform_main_lib_file)
34461         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
34462         regexps.
34463
34464 2009-05-26  Simon Josefsson  <simon@josefsson.org>
34465
34466         * tests/test-strstr.c: Add another self-test.
34467         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
34468         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
34469
34470 2009-05-23  Bruno Haible  <bruno@clisp.org>
34471
34472         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
34473         change.
34474
34475 2009-05-21  Bruno Haible  <bruno@clisp.org>
34476
34477         Simplify use of mode_t varargs.
34478         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
34479         uses 'mode_t' or 'int'.
34480         * lib/openat.c (openat): Likewise.
34481         * lib/open-safer.c (open_safer): Likewise.
34482         * m4/mode_t.m4: New file.
34483         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
34484         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
34485         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
34486         * modules/open (Files): Add m4/mode_t.m4.
34487         * modules/openat (Files): Likewise.
34488         * modules/fcntl-safer (Files): Likewise.
34489         Suggested by Eric Blake.
34490
34491 2009-05-21  Pádraig Brady  <P@draigbrady.com>
34492
34493         * doc/glibc-functions/fallocate.texi: New file.
34494         * doc/gnulib.texi: Include it.
34495
34496 2009-05-21  Eric Blake  <ebb9@byu.net>
34497             Bruno Haible  <bruno@clisp.org>
34498
34499         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
34500         invocations.
34501         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34502
34503 2009-05-21  Eric Blake  <ebb9@byu.net>
34504             Bruno Haible  <bruno@clisp.org>
34505
34506         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
34507         include_next. Fix of 2008-11-20 commit.
34508         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
34509         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
34510         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
34511         NEXT_MATH_H.
34512         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
34513         instead of NEXT_MATH_H.
34514
34515 2009-05-21  Bruno Haible  <bruno@clisp.org>
34516
34517         Avoid redefinition warnings for SIZE_MAX.
34518         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
34519         Reported by Simon Josefsson.
34520
34521 2009-05-21  Bruno Haible  <bruno@clisp.org>
34522
34523         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
34524         AC_CACHE_VAL.
34525
34526 2009-05-20  Bruno Haible  <bruno@clisp.org>
34527
34528         Make zeroptr.h work on mingw.
34529         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
34530         mprotect.
34531         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
34532         * modules/memchr2-tests (configure.ac): Likewise.
34533         * modules/memcmp-tests (configure.ac): Likewise.
34534         * modules/memmem-tests (configure.ac): Likewise.
34535         * modules/memrchr-tests (configure.ac): Likewise.
34536         Reported by Simon Josefsson.
34537
34538 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34539
34540         * tests/test-glob.c: Include string.h for strcmp prototype.
34541
34542 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34543
34544         * modules/getdelim (Depends-on): Add explicit stdint, although it
34545         was implicitly already pulled in via realloc-posix.
34546         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
34547
34548 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34549
34550         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
34551         G. Christensen" <tgc@jupiterrise.com>.
34552         * m4/sys_socket_h.m4: Check for sa_family_t.
34553         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
34554         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
34555         * tests/test-sys_socket.c: Check that sa_family_t works.
34556
34557 2009-05-18  Eric Blake  <ebb9@byu.net>
34558
34559         maint.mk: allow gnulib_dir in VPATH build
34560         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
34561
34562 2009-05-15  Jim Meyering  <meyering@redhat.com>
34563
34564         maint.mk: Give gnulib_dir a default definition.
34565         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
34566         Thus, most packages no longer need to specify this variable in cfg.mk
34567
34568 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
34569
34570         rename.m4: fix typos that would make non-mingw cross-configure fail
34571         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
34572
34573 2009-05-13  Eric Blake  <ebb9@byu.net>
34574
34575         mmap-anon: avoid out-of-order autoconf expansion
34576         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
34577         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
34578         * modules/memchr-tests (Depends-on): Add extensions.
34579         * modules/memchr2-tests (Depends-on): Add extensions.
34580         * modules/memcmp-tests (Depends-on): Add extensions.
34581         * modules/memmem-tests (Depends-on): Add extensions.
34582         * modules/memrchr-tests (Depends-on): Add extensions.
34583
34584 2009-05-13  Bruno Haible  <bruno@clisp.org>
34585
34586         Make some tests ISO C 99 compliant.
34587         * tests/zerosize-ptr.h: New file.
34588         * tests/test-memchr.c: Include zerosize-ptr.h.
34589         (main): Use a zero-size object pointer instead of NULL.
34590         * tests/test-memchr2.c: Include zerosize-ptr.h.
34591         (main): Use a zero-size object pointer instead of NULL.
34592         * tests/test-memcmp.c: Include zerosize-ptr.h.
34593         (main): Use a zero-size object pointer instead of NULL.
34594         * tests/test-memmem.c: Include zerosize-ptr.h.
34595         (main): Use a zero-size object pointer instead of NULL.
34596         * tests/test-memrchr.c: Include zerosize-ptr.h.
34597         (main): Use a zero-size object pointer instead of NULL.
34598         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
34599         m4/mmap-anon.m4.
34600         (Depends-on): Add getpagesize.
34601         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34602         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
34603         m4/mmap-anon.m4.
34604         (Depends-on): Add getpagesize.
34605         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34606         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
34607         m4/mmap-anon.m4.
34608         (Depends-on): Add getpagesize.
34609         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34610         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
34611         m4/mmap-anon.m4.
34612         (Depends-on): Add getpagesize.
34613         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34614         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
34615         m4/mmap-anon.m4.
34616         (Depends-on): Add getpagesize.
34617         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34618
34619 2009-05-12  Bruno Haible  <bruno@clisp.org>
34620
34621         Tests for module 'alignof'.
34622         * modules/alignof-tests: New file.
34623         * tests/test-alignof.c: New file.
34624
34625 2009-05-12  Bruno Haible  <bruno@clisp.org>
34626
34627         Fix alignof macro.
34628         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
34629         vendor compilers that are always correct.
34630
34631 2009-05-12  Bruno Haible  <bruno@clisp.org>
34632
34633         Make the MAP_ANONYMOUS detection work on HP-UX 11.
34634         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
34635         not whether its fully works.
34636
34637 2009-05-12  Bruno Haible  <bruno@clisp.org>
34638
34639         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
34640
34641 2009-05-12  Jim Meyering  <meyering@redhat.com>
34642
34643         * top/maint.mk: Adjust backslash alignment.
34644
34645 2009-05-11  Simon Josefsson  <simon@josefsson.org>
34646
34647         * top/maint.mk: Make $(srcdir)/build-aux configurable.
34648
34649 2009-05-11  Eric Blake  <ebb9@byu.net>
34650
34651         argp: avoid undefined behavior
34652         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
34653         macros.
34654
34655 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34656
34657         * tests/test-vc-list-files-git.sh: Do git config of user.email and
34658         user.name to prevent git commit from complaining.
34659
34660 2009-05-10  Bruno Haible  <bruno@clisp.org>
34661
34662         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
34663         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
34664         it rewrites every file name only once.
34665         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
34666
34667 2009-05-08  Bruno Haible  <bruno@clisp.org>
34668
34669         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
34670         instead of 'max'.
34671
34672 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34673
34674         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
34675         sockaddr_storage test.
34676
34677 2009-05-07  Simon Josefsson  <simon@josefsson.org>
34678
34679         * modules/sys_socket (Makefile.am): Substitute
34680         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
34681         * m4/sys_socket_h.m4: Check for sockaddr_storage.
34682         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
34683         * tests/test-sys_socket.c: Check sockaddr_storage.
34684
34685 2009-05-08  Bruno Haible  <bruno@clisp.org>
34686
34687         New module 'alignof'.
34688         * lib/alignof.h: New file.
34689         * modules/alignof: New file.
34690
34691 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34692             Bruno Haible  <bruno@clisp.org>
34693
34694         Fix test-file-has-acl on FreeBSD.
34695         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
34696         mask is implicitly added.
34697         * tests/test-file-has-acl.c: Include <signal.h>.
34698         (main): Terminate the test after 5 seconds.
34699         * modules/acl-tests (configure.ac): Check for alarm function.
34700
34701 2009-05-04  Bruno Haible  <bruno@clisp.org>
34702
34703         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
34704         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
34705         * modules/errno (configure.ac): Drop AC_REQUIRE.
34706         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
34707         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
34708
34709 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34710
34711         * modules/glob-tests: New module.
34712         * tests/test-glob.c: Add.
34713
34714 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34715
34716         * modules/fnmatch-tests: New module.
34717         * tests/test-fnmatch.c: Add.
34718
34719 2009-05-04  Eric Blake  <ebb9@byu.net>
34720
34721         maint: make the new no-submodule-changes rule VPATH-safe
34722         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
34723
34724 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34725             Bruno Haible  <bruno@clisp.org>
34726
34727         acl: Fix infinite loop on FreeBSD.
34728         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
34729         of return value from acl_get_entry.
34730         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
34731         Likewise.
34732
34733 2009-05-03  Bruno Haible  <bruno@clisp.org>
34734
34735         * lib/acl-internal.h (acl_entries): Clarify return value.
34736         * lib/acl_entries.c (acl_entries): Likewise.
34737
34738 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34739
34740         Bug fix in acl module.
34741         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
34742
34743 2009-05-03  Bruno Haible  <bruno@clisp.org>
34744
34745         Create gperf-generated file in the source dir, not in the build dir.
34746         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
34747         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
34748         * modules/unicase/locale-language (unicase/locale-languages.h):
34749         Likewise.
34750         * modules/unicase/special-casing (unicase/special-casing-table.h):
34751         Likewise.
34752         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
34753         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
34754         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
34755         Reported by Ralf Wildenhues.
34756
34757 2009-05-03  Bruno Haible  <bruno@clisp.org>
34758
34759         * modules/fnmatch (Description, configure.ac): Taken from
34760         fnmatch-posix.
34761         * modules/fnmatch-posix: Turn into a symbolic reference to the
34762         'fnmatch' module, and deprecate.
34763         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
34764
34765 2009-05-03  Bruno Haible  <bruno@clisp.org>
34766
34767         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
34768         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
34769         Reported by Ralf Wildenhues.
34770
34771 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34772
34773         * m4/fnmatch.m4: Fix fnmatch re-define.
34774
34775 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34776
34777         priv-set: new module and tests; adapt write-any-file
34778         * lib/priv-set.c: New file.
34779         * lib/priv-set.h: New file.
34780         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
34781         * lib/write-any-file.c: Simplify by using priv-set module.
34782         * m4/priv-set.m4: New file.
34783         * modules/priv-set: New file.
34784         * modules/unlinkdir: Add dependency on priv-set module.
34785         * modules/write-any-file: Likewise.
34786
34787         Tests for module 'priv-set'.
34788         * modules/priv-set-tests: New file.
34789         * tests/test-priv-set.c: New file.
34790
34791 2009-05-03  Jim Meyering  <meyering@redhat.com>
34792             Bruno Haible  <bruno@clisp.org>
34793
34794         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
34795         use the converted UTF-8 variant of the name instead.
34796
34797 2009-05-03  Jim Meyering  <meyering@redhat.com>
34798
34799         tests: tighten some getdate tests
34800         * tests/test-getdate.c (main): Tighten tests: require equality,
34801         not just greater than.  Set TZ envvar to UTC0.
34802
34803 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34804
34805         getdate: correctly interpret "next monday" when run on a Monday
34806         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
34807         that e.g., "next tues" (when run on a tuesday) results in a date
34808         that is one week in the future, and not today's date.
34809         I.e., add a week when the wday is the same as the current one.
34810         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
34811         and earlier by Martin Bernreuther and Jan Minář.
34812         * tests/test-getdate.c (main): Check that "next DAY" is always in
34813         the future and that "last DAY" is always in the past.
34814
34815 2009-05-02  Jim Meyering  <meyering@redhat.com>
34816
34817         build: ensure that a release build fails when a submodule is unclean
34818         * top/maint.mk (no-submodule-changes): New rule.
34819         (alpha beta major): Depend on it.
34820
34821 2009-05-02  Bruno Haible  <bruno@clisp.org>
34822
34823         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
34824         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
34825         shell variable gl_fnmatch_required to detect which variant is
34826         requested.
34827         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
34828         gl_FUNC_FNMATCH_POSIX.
34829         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
34830         exclude fnmatch-posix.
34831
34832 2009-05-02  Bruno Haible  <bruno@clisp.org>
34833
34834         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
34835         * modules/mbsrtowcs (License): Change to LGPLv2+.
34836         * modules/strnlen1 (License): Likewise.
34837         Reported by Simon Josefsson.
34838
34839 2009-05-02  Bruno Haible  <bruno@clisp.org>
34840
34841         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
34842         "cross".
34843         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
34844         gnulib-tool was called with option --source-base=lib.
34845
34846 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34847
34848         Use automake *-local hooks without commands, for extensibility.
34849         * modules/localcharset (Makefile.am): Rename install-exec-local
34850         rule to install-exec-localcharset, and make it a prerequisite of
34851         install-exec-local.  Likewise, rename the uninstall-local rule to
34852         uninstall-localcharset, and make it a prerequisite of the former.
34853
34854 2009-05-01  Bruno Haible  <bruno@clisp.org>
34855
34856         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
34857         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
34858         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
34859         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
34860         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
34861         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
34862         m4/locale-zh.m4, m4/codeset.m4.
34863
34864         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
34865         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
34866         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
34867         m4/locale-zh.m4.
34868
34869         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
34870         REPLACE_WCRTOMB if mbstate_t must be replaced.
34871         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
34872         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
34873
34874 2009-05-01  Bruno Haible  <bruno@clisp.org>
34875
34876         Avoid compiler warnings when redefining macros defined by <libintl.h>.
34877         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
34878         dngettext, dcngettext, textdomain, bindtextdomain,
34879         bind_textdomain_codeset): Undefine before redefining.
34880
34881 2009-04-30  Bruno Haible  <bruno@clisp.org>
34882
34883         Fix bug introduced on 2009-04-25.
34884         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
34885         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
34886         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
34887         is defined.
34888         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
34889         is defined.
34890         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
34891         is defined.
34892         Reported by Elbert_Pol <elbert.pol@gmail.com>.
34893
34894 2009-04-28  Bruno Haible  <bruno@clisp.org>
34895
34896         Comment tweaks.
34897         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
34898         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
34899         * lib/unicase.h (u*_casexfrm): Likewise.
34900         Reported by Paolo Bonzini.
34901
34902 2009-04-28  Bruno Haible  <bruno@clisp.org>
34903
34904         Fix a compilation error.
34905         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
34906         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
34907         Reported by Jim Meyering.
34908
34909 2009-04-27  Bruno Haible  <bruno@clisp.org>
34910
34911         New module 'libunistring'.
34912         * modules/libunistring: New file.
34913         * m4/libunistring.m4: New file.
34914         * MODULES.html.sh (Unicode string functions): Add it.
34915
34916 2009-04-27  Eric Blake  <ebb9@byu.net>
34917
34918         maint.mk: allow package-specific header to provide <config.h>
34919         * top/maint.mk (sc_require_config_h): New variable.
34920         (sc_require_config_h, sc_require_config_h_first): Use it.
34921
34922 2009-04-27  Simon Josefsson  <simon@josefsson.org>
34923
34924         * top/maint.mk (sc_avoid_if_before_free): Except
34925         useless-if-before-free script.
34926
34927 2009-04-27  Eric Blake  <ebb9@byu.net>
34928
34929         maintainer-makefile: depend on all required helper scripts
34930         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
34931         useless-if-before-free.
34932         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
34933         version, rather than assuming gnulib checkout is available.
34934         Reported by Simen Josefsson.
34935
34936 2009-04-26  Bruno Haible  <bruno@clisp.org>
34937
34938         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
34939         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
34940         "../" or "..".
34941
34942 2009-04-26  Bruno Haible  <bruno@clisp.org>
34943
34944         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
34945         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
34946         AC_LIB_HAVE_LINKFLAGS.
34947
34948 2009-04-26  Bruno Haible  <bruno@clisp.org>
34949
34950         Simplify calling convention of u*_conv_from_encoding.
34951         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
34952         u32_conv_from_encoding): Expect a resultbuf argument and return the
34953         result directly as a pointer.
34954         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
34955         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
34956         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
34957         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
34958         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
34959         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
34960         Update.
34961         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
34962         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
34963         * lib/vasnprintf.c (VASNPRINTF): Update.
34964         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
34965         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
34966         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
34967         * NEWS: Mention the change.
34968
34969 2009-04-26  Bruno Haible  <bruno@clisp.org>
34970
34971         Simplify calling convention of u*_conv_to_encoding.
34972         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
34973         u32_conv_to_encoding): Expect a resultbuf argument and return the
34974         result directly as a pointer.
34975         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
34976         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
34977         freeing scaled_offsets if mem_iconveha failed.
34978         * lib/unicase/u-casexfrm.h (FUNC): Update.
34979         * lib/uninorm/u-normxfrm.h (FUNC): Update.
34980         * lib/vasnprintf.c (VASNPRINTF): Update.
34981         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
34982         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
34983         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
34984         * NEWS: Mention the change.
34985
34986 2009-04-26  Bruno Haible  <bruno@clisp.org>
34987
34988         Avoid test failures on AIX and OSF/1.
34989         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
34990         malloc(0).
34991         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
34992         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
34993         Likewise.
34994         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
34995         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
34996         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
34997         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
34998         * doc/posix-functions/malloc.texi: Document the portability problem
34999         related to malloc(0).
35000
35001 2009-04-26  Bruno Haible  <bruno@clisp.org>
35002
35003         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
35004         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
35005         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
35006
35007 2009-04-25  Bruno Haible  <bruno@clisp.org>
35008
35009         Avoid link error when creating a namespace clean library.
35010         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
35011         as macro with arguments if already defined as an alias.
35012         * lib/signbitf.c (gl_signbitf): Don't undefine.
35013         * lib/signbitd.c (gl_signbitd): Don't undefine.
35014         * lib/signbitl.c (gl_signbitl): Don't undefine.
35015
35016 2009-04-25  Jim Meyering  <meyering@redhat.com>
35017
35018         vc-list-files: fix another quoting bug
35019         * build-aux/vc-list-files: Avoid sed backslash expansion
35020         of pathological directory names.
35021
35022 2009-04-25  Eric Blake  <ebb9@byu.net>
35023
35024         vc-list-files: fix shell quoting error
35025         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
35026         timestamp.
35027
35028 2009-04-25  Jim Meyering  <meyering@redhat.com>
35029
35030         vc-list-files: restore lost functionality with subdir argument
35031         * build-aux/vc-list-files: When given a non-"." sub-directory
35032         argument, substitute the $dir/ prefix back onto each resulting name.
35033         Otherwise, coreutils' root_tests check would fail.
35034
35035 2009-04-24  Eric Blake  <ebb9@byu.net>
35036
35037         vc-list-files: ignore git symlinks
35038         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
35039         than ls-files, to ignore git symlinks.
35040
35041         maint.mk: import improvements from m4
35042         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
35043         (move_if_change): Delete unused macro.
35044         (news-date-check, vc-diff-check): Support VPATH builds.
35045         (announcement): Likewise.  Split --bootstrap-tools list...
35046         (boostrap-tools): ...into separate list, which can be overridden
35047         in cfg.mk.
35048         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
35049         requiring dependency on useless-if-before-free module.
35050         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
35051         Support VPATH builds.
35052
35053 2009-04-24  Jim Meyering  <meyering@redhat.com>
35054
35055         maint.mk: remove coreutils-specific rules and variables
35056         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
35057         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
35058         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
35059
35060         maint.mk: remove obsolete rule
35061         * top/maint.mk (rel-check): Remove rule.
35062         (WGET, WGETFLAGS): Remove now-unused variables.
35063
35064 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35065
35066         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
35067         consistency.
35068
35069         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
35070         '$(PATH_SEPARATOR)' instead of ':'.
35071
35072 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35073
35074         * lib/getopt1.c (main): Use 'const' for static array.
35075
35076 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35077
35078         * top/maint.mk: Sync with coreutils.
35079         * NEWS: Explain incompatibilities.
35080
35081 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35082             Bruno Haible  <bruno@clisp.org>
35083
35084         Fix cross-compilation results.
35085         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
35086         statement, as third argument of AC_TRY_RUN.
35087         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
35088         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
35089         Likewise.
35090         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
35091         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
35092         Likewise.
35093         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
35094         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
35095         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
35096
35097 2009-04-20  Bruno Haible  <bruno@clisp.org>
35098
35099         Avoid test failure on mingw.
35100         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
35101
35102 2009-04-20  Bruno Haible  <bruno@clisp.org>
35103
35104         Avoid compilation error on mingw.
35105         * modules/localename-tests (Depends-on): Add locale.
35106
35107 2009-04-19  Bruno Haible  <bruno@clisp.org>
35108
35109         Support for building a shared library on Windows platforms.
35110         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
35111         (main): Test the presence of UNINORM_NFC here.
35112         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
35113         (main): Test the presence of UNINORM_NFD here.
35114         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
35115         (main): Test the presence of UNINORM_NFKC here.
35116         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
35117         (main): Test the presence of UNINORM_NFKD here.
35118
35119 2009-04-19  Bruno Haible  <bruno@clisp.org>
35120
35121         Avoid a compiler warning.
35122         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
35123         Change type of variable 'sequence'.
35124
35125 2009-04-19  Bruno Haible  <bruno@clisp.org>
35126
35127         * modules/configmake (Makefile.am): When the contents of configmake.h
35128         does not change, arrange to preserve its modification time.
35129
35130 2009-04-17  Simon Josefsson  <simon@josefsson.org>
35131
35132         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
35133         gettext domain.
35134
35135 2009-04-16  Jim Meyering  <meyering@redhat.com>
35136
35137         useless-if-before-free: improve conversion code
35138         * build-aux/useless-if-before-free: Adjust code-in-comment to match
35139         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
35140
35141 2009-04-14  Bruno Haible  <bruno@clisp.org>
35142
35143         * modules/fcntl (Depends-on): Add extensions.
35144         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
35145
35146 2009-04-12  Ben Pfaff  <blp@gnu.org>
35147
35148         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
35149         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
35150
35151 2009-03-20  Ben Pfaff  <blp@gnu.org>
35152
35153         Make rename replace existing destinations on Windows.
35154         * m4/rename.m4: Add test for Mingw.
35155         * lib/rename.c: Add rename replacement that uses MoveFileEx with
35156         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
35157         * doc/posix-functions/rename.texi: Document.
35158
35159 2009-04-10  Bruno Haible  <bruno@clisp.org>
35160
35161         New include file "iconveh.h".
35162         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
35163         * lib/striconveh.h: Include it.
35164         (enum iconv_ilseq_handler): Remove definition.
35165         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
35166         striconveh.h.
35167         * lib/striconveha.c: Include striconveh.h.
35168         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
35169         * modules/striconveh (Files): Add lib/iconveh.h.
35170         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
35171         lib/striconveh.h.
35172
35173 2009-04-10  Bruno Haible  <bruno@clisp.org>
35174
35175         * lib/uniconv.h: Update comment.
35176
35177 2009-04-10  Bruno Haible  <bruno@clisp.org>
35178
35179         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
35180         always.
35181         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35182         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35183         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35184         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
35185         "unistring-notinline.h", so that the function gets defined always.
35186         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35187         * lib/unistr/u8-uctomb.c: Likewise.
35188         * lib/unistr/u16-mbtouc.c: Likewise.
35189         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35190         * lib/unistr/u16-uctomb.c: Likewise.
35191         * lib/unistr/u32-mbtouc.c: Likewise.
35192         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35193         * lib/unistr/u32-uctomb.c: Likewise.
35194
35195 2009-04-10  Bruno Haible  <bruno@clisp.org>
35196
35197         Mark 'utime' obsolete.
35198         * modules/utime (Status, Notice): New sections.
35199         Suggested by Jim Meyering.
35200
35201         Fix cross-compile guess for utime test.
35202         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
35203         autoconf.
35204         * doc/posix-functions/utime.texi: Give more precisions.
35205         Reported by Jan <ipif@ymail.com>.
35206
35207 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
35208
35209         filevercmp: correct today's change
35210         * lib/filevercmp.c: Also handle coreutils' test inputs.
35211         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
35212
35213         Fix regression in 'filevercmp' module. Thanks Sven Joachim
35214         for reporting it.
35215         * lib/filevercmp.c: Special handle for "", "." and "..".
35216         * tests/test-filevercmp.c: Enlarge the set suite.
35217
35218 2009-04-07  Jim Meyering  <meyering@redhat.com>
35219
35220         useless-if-before-free: show how to remove braced useless free, too
35221         * build-aux/useless-if-before-free: still only in a comment, though.
35222
35223 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
35224
35225         maint.mk: import changes to syntax-check macros from coreutils
35226         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
35227         Use them in the relevant macros.
35228
35229 2009-04-06  Bruno Haible  <bruno@clisp.org>
35230
35231         Fix unportable use of bit-fields.
35232         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
35233         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
35234         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
35235
35236 2009-04-06  Bruno Haible  <bruno@clisp.org>
35237
35238         Avoid test failures on AIX and OSF/1.
35239         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
35240         that malloc(0) = NULL.
35241         * tests/unicase/test-u8-tolower.c (check): Likewise.
35242         * tests/unicase/test-u8-totitle.c (check): Likewise.
35243         * tests/unicase/test-u8-toupper.c (check): Likewise.
35244         * tests/unicase/test-u16-casefold.c (check): Likewise.
35245         * tests/unicase/test-u16-tolower.c (check): Likewise.
35246         * tests/unicase/test-u16-totitle.c (check): Likewise.
35247         * tests/unicase/test-u16-toupper.c (check): Likewise.
35248         * tests/unicase/test-u32-casefold.c (check): Likewise.
35249         * tests/unicase/test-u32-tolower.c (check): Likewise.
35250         * tests/unicase/test-u32-totitle.c (check): Likewise.
35251         * tests/unicase/test-u32-toupper.c (check): Likewise.
35252         * tests/uninorm/test-u8-nfc.c (check): Likewise.
35253         * tests/uninorm/test-u8-nfd.c (check): Likewise.
35254         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
35255         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
35256         * tests/uninorm/test-u16-nfc.c (check): Likewise.
35257         * tests/uninorm/test-u16-nfd.c (check): Likewise.
35258         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
35259         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
35260         * tests/uninorm/test-u32-nfc.c (check): Likewise.
35261         * tests/uninorm/test-u32-nfd.c (check): Likewise.
35262         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
35263         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
35264
35265 2009-04-05  Bruno Haible  <bruno@clisp.org>
35266
35267         Work around an autoconf limitation.
35268         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
35269         comment line if it would be longer than 3 KB.
35270
35271 2009-04-05  Bruno Haible  <bruno@clisp.org>
35272
35273         Avoid test failure with libiconv-1.13.
35274         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
35275         of the expected test results.
35276
35277 2009-04-05  Bruno Haible  <bruno@clisp.org>
35278
35279         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
35280         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
35281         that it should be installed.
35282
35283 2009-04-05  Bruno Haible  <bruno@clisp.org>
35284
35285         * gnulib-tool: New option --copy-file.
35286         (func_usage): Document it.
35287         (func_dest_tmpfilename): Moved out of func_import.
35288         (func_add_file, func_update_file): New functions, extracted from
35289         func_import.
35290         (func_import): Update.
35291
35292 2009-04-05  Karl Berry  <karl@gnu.org>
35293
35294         * README: prominently mention gnulib-tool.
35295         Rearrange sections so getting the code is near the top.
35296
35297 2009-04-05  Bruno Haible  <bruno@clisp.org>
35298
35299         * lib/unicase.h: Mention u*_cmp2.
35300         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35301         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
35302         * lib/unicase/ulc-casecmp.c: Likewise.
35303         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
35304         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
35305         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
35306         unistr/u8-cmp.
35307         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
35308         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
35309         unistr/u16-cmp.
35310         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
35311         unistr/u32-cmp.
35312
35313         * lib/uninorm.h: Mention u*_cmp2.
35314         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35315         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
35316         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
35317         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
35318         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
35319         unistr/u8-cmp.
35320         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
35321         unistr/u16-cmp.
35322         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
35323         unistr/u32-cmp.
35324
35325         New module 'unistr/u32-cmp2'.
35326         * lib/unistr/u32-cmp2.c: New file.
35327         * modules/unistr/u32-cmp2: New file.
35328
35329         New module 'unistr/u16-cmp2'.
35330         * lib/unistr/u16-cmp2.c: New file.
35331         * modules/unistr/u16-cmp2: New file.
35332
35333         New module 'unistr/u8-cmp2'.
35334         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
35335         * lib/unistr/u8-cmp2.c: New file.
35336         * lib/unistr/u-cmp2.h: New file.
35337         * modules/unistr/u8-cmp2: New file.
35338
35339 2009-04-05  Bruno Haible  <bruno@clisp.org>
35340
35341         * lib/unictype.h (uc_property_is_valid): New macro.
35342         * tests/unictype/test-pr_byname.c (main): Use it.
35343
35344         * lib/unistr.h: Doc fixes.
35345         * lib/uniconv.h: Doc fixes.
35346         * lib/unictype.h: Doc fixes.
35347
35348 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
35349
35350         Port coreutils 7.2 to Solaris 8.
35351
35352         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
35353         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
35354         for Solaris 8.  This is a bit of a hack, as it means it's the
35355         caller's responsibility to add -lnsl if needed, but most likely it
35356         won't be needed since only getaddrinfo uses this and getaddrinfo
35357         isn't needed on Solaris 8.
35358
35359         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
35360         problem to Solaris 8 encountered with coreutils 7.2, which
35361         resulted in a message "fnmatch.c:292: warning: passing argument 4
35362         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
35363         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
35364
35365 2009-04-03  Simon Josefsson  <simon@josefsson.org>
35366
35367         * m4/ld-version-script.m4: Add FIXME comment.
35368
35369 2009-04-02  Simon Josefsson  <simon@josefsson.org>
35370
35371         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
35372         SOVERSION variable.
35373
35374 2009-04-02  Bruno Haible  <bruno@clisp.org>
35375
35376         * Makefile (info, html, dvi, pdf): Combine the rules.
35377         Suggested by Jim Meyering.
35378
35379 2009-04-01  Bruno Haible  <bruno@clisp.org>
35380
35381         * Makefile (info, html, dvi, pdf): New targets.
35382         Reported by Reuben Thomas <rrt@sc3d.org>.
35383
35384 2009-04-01  Bruno Haible  <bruno@clisp.org>
35385
35386         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
35387         can be put into PATH.
35388         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
35389
35390 2009-04-01  Bruno Haible  <bruno@clisp.org>
35391
35392         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
35393
35394 2009-04-01  Bruno Haible  <bruno@clisp.org>
35395
35396         Rename module 'visibility'.
35397         * modules/lib-symbol-visibility: Renamed from modules/visibility.
35398         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
35399         * doc/gnulib.texi: Update.
35400         * MODULES.html.sh (Misc): Update.
35401         * NEWS: Mention the change.
35402
35403 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35404
35405         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
35406         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
35407         Eric Blake <ebb9@byu.net> for review.
35408         * MODULES.html.sh: Add lib-msvc-compat.
35409         * doc/gnulib.texi: Link to new section.
35410         * m4/ld-output-def.m4: New file.
35411         * doc/ld-output-def.texi: New file.
35412
35413 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35414
35415         Rename ld-version-script to lib-symbol-versions.  Suggested by
35416         Bruno Haible <bruno@clisp.org>.
35417         * modules/ld-version-script: Renamed to lib-symbol-versions.
35418         * doc/ld-version-script.texi: Fix module name.
35419         * MODULES.html.sh: Add lib-symbol-versions.
35420
35421 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35422
35423         * modules/u64-tests: New file.
35424         * tests/test-u64.c: New file.
35425
35426 2009-03-04  Simon Josefsson  <simon@josefsson.org>
35427
35428         * MODULES.html.sh: Mention u64.
35429         * modules/u64: New module.
35430         * modules/crypto/sha512: Depend on u64 module instead of providing
35431         u64.h.
35432
35433 2009-03-27  Eric Blake  <ebb9@byu.net>
35434
35435         test-strerror: make debugging EAI_SYSTEM easier
35436         * modules/getaddrinfo-tests (Depends-on): Add strerror.
35437         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
35438         failure was EAI_SYSTEM.
35439
35440 2009-03-25  Bruno Haible  <bruno@clisp.org>
35441
35442         Fix a problem with --enable-relocatable on Solaris 7.
35443         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
35444         since 2008-02-24.
35445
35446 2009-03-25  Eric Blake  <ebb9@byu.net>
35447
35448         test-sockets: avoid gcc warning
35449         * tests/test-sockets.c (main): Silence compiler warning.
35450
35451 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
35452
35453         New modules nproc, pthread, contributed by Glen Lenker.
35454
35455         * MODULES.html.sh: Add pthread, nproc.
35456         * lib/nproc.c: New file.
35457         * lib/nproc.h: New file.
35458         * lib/pthread.in.h: New file.
35459         * m4/pthread.m4: New file.
35460         * modules/nproc: New file.
35461         * modules/pthread: New file.
35462
35463 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35464
35465         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
35466         New variable.
35467
35468 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
35469
35470         filevercmp: handle simple~ and numbered.~3~ backup suffixes
35471         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
35472         * tests/test-filevercmp.c: Add tests for backup suffixes.
35473
35474 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35475
35476         * modules/stdlib (Depends-on): Add stdint, needed when defining
35477         struct random_data on, for example, HP-UX 10.20.  Reported by
35478         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35479
35480 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35481
35482         * lib/readline.c (readline): Call fflush on stdout after printing
35483         prompt.
35484
35485 2009-03-20  Bruno Haible  <bruno@clisp.org>
35486
35487         Remove dependency from 'close' module to -lws2_32 on native Windows.
35488         * lib/close-hook.h: New file.
35489         * lib/close-hook.c: New file.
35490         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
35491         w32sock.h.
35492         (_gl_close_fd_maybe_socket): Remove function.
35493         (rpl_close): Invoke execute_all_close_hooks instead of
35494         _gl_close_fd_maybe_socket.
35495         * lib/sockets.c: Include close-hook.h, w32sock.h.
35496         (close_fd_maybe_socket): New function, essentially from lib/close.c.
35497         (close_sockets_hook): New variable.
35498         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
35499         (gl_sockets_cleanup): Unregister it.
35500         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
35501         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
35502         * modules/close-hook: New file.
35503         * modules/close (Files): Remove lib/w32sock.h.
35504         (Depends-on): Add close-hook.
35505         (Link): Remove section.
35506         * modules/sockets (Files): Add lib/w32sock.h.
35507         (Depends-on): Add close-hook.
35508         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
35509         invocation.
35510         * NEWS: Mention that LIB_CLOSE is gone.
35511
35512 2009-03-23  Eric Blake  <ebb9@byu.net>
35513
35514         signal-tests: test previous patch
35515         * tests/test-signal.c: New file.
35516         * modules/signal-tests: Likewise.
35517
35518         signal.h: always support 'volatile sig_atomic_t'
35519         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
35520         (gl_SIGNAL_H_DEFAULTS): Add a default.
35521         * modules/signal (Makefile.am): Substitute if needed.
35522         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
35523         users can blindly add volatile.
35524         * doc/posix-headers/signal.texi (signal.h): Document it.
35525         Reported by Matthew Woehlke.
35526
35527 2009-03-23  Jim Meyering  <meyering@redhat.com>
35528
35529         pathmax: PATH_MAX: use pathconf only when available
35530         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
35531         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
35532         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
35533         This avoids a link failure in a PSP cross-compilation environment
35534         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
35535
35536         * lib/vasnprintf.c (divide): Fix typo in comment.
35537
35538 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35539
35540         * gnulib-tool (func_filter_filelist): Fix comment.
35541
35542 2009-03-20  Bruno Haible  <bruno@clisp.org>
35543
35544         Make sockets.h self-contained.
35545         * lib/sockets.c: Include sockets.h first.
35546         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
35547
35548 2009-03-19  Eric Blake  <ebb9@byu.net>
35549
35550         doc: mention more functions added in cygwin 1.7.0
35551         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
35552         addition.
35553         * doc/posix-functions/log2f.texi: Likewise.
35554
35555 2009-03-19  Jim Meyering  <meyering@redhat.com>
35556
35557         fsusage: avoid syntax error due to statement-before-declaration
35558         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
35559         after all declarations.  Reported by Matthew Woehlke in
35560         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
35561
35562 2009-03-18  Eric Blake  <ebb9@byu.net>
35563
35564         build-aux/compile: sync from automake
35565         * build-aux/compile: New file, from automake.
35566         * config/srclist.txt: Mention build-aux/compile.
35567
35568 2009-03-17  Bruno Haible  <bruno@clisp.org>
35569
35570         * lib/git-merge-changelog.c: Fix typo in comment.
35571         Reported by Reuben Thomas <rrt@sc3d.org>.
35572
35573 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
35574
35575         * m4/regex.m4: update and improve help for
35576         --without-included-regex.
35577
35578 2009-03-17  Simon Josefsson  <simon@josefsson.org>
35579
35580         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
35581         failure on missing include files.
35582
35583 2009-03-17  Eric Blake  <ebb9@byu.net>
35584
35585         doc: mention more functions added in cygwin 1.7.0
35586         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
35587         addition.
35588         * doc/posix-functions/fwscanf.texi: Likewise.
35589         * doc/posix-functions/swprintf.texi: Likewise.
35590         * doc/posix-functions/swscanf.texi: Likewise.
35591         * doc/posix-functions/vfwprintf.texi: Likewise.
35592         * doc/posix-functions/vfwscanf.texi: Likewise.
35593         * doc/posix-functions/vswprintf.texi: Likewise.
35594         * doc/posix-functions/vswscanf.texi: Likewise.
35595         * doc/posix-functions/vwprintf.texi: Likewise.
35596         * doc/posix-functions/vwscanf.texi: Likewise.
35597         * doc/posix-functions/wcscasecmp.texi: Likewise.
35598         * doc/posix-functions/wcsdup.texi: Likewise.
35599         * doc/posix-functions/wcsftime.texi: Likewise.
35600         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35601         * doc/posix-functions/wprintf.texi: Likewise.
35602         * doc/posix-functions/wscanf.texi: Likewise.
35603         * doc/glibc-functions/gethostbyname2.texi: Likewise.
35604
35605 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35606
35607         maint.mk: really add $(AM_MAKEFLAGS)
35608         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
35609         was inadvertently omitted in the last commit.
35610         Spotted by Bruno Haible.
35611
35612         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
35613         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
35614         $(AM_MAKEFLAGS)' rather than plain `make'.
35615
35616         gnulib-tool: execute $MAKE not make
35617         * gnulib-tool: Default $MAKE to 'make'.
35618         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
35619         than make.  Initialize $MAKE in the do-autobuild script.
35620
35621         gnulib-tool: use $MAKE not make in generated files
35622         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
35623         make, in generated files.  Initialize $MAKE in the do-autobuild
35624         script.
35625
35626         * top/GNUmakefile (_have-git-version-gen): Fix typo.
35627
35628         GNUmakefile: disable parallelism only for multiple, recursive targets
35629         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
35630         additions in the Makefile.
35631         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
35632         by Automake.
35633         (.NOTPARALLEL): Only disable parallel builds if multiple targets
35634         are listed on the command line and at least one of them is
35635         listed in $(ALL_RECURSIVE_TARGETS).
35636
35637 2009-03-14  Bruno Haible  <bruno@clisp.org>
35638
35639         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
35640         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
35641         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
35642         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
35643         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
35644         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
35645         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
35646         unistr/u8-uctomb.
35647         * modules/unistr/u8-strchr (Depends-on): Likewise.
35648         * modules/unistr/u8-strrchr (Depends-on): Likewise.
35649         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
35650         unistr/u16-uctomb.
35651         * modules/unistr/u16-strchr (Depends-on): Likewise.
35652         * modules/unistr/u16-strrchr (Depends-on): Likewise.
35653
35654 2009-03-12  Bruno Haible  <bruno@clisp.org>
35655
35656         Work around select() bug on Interix 3.5.
35657         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
35658         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
35659         * m4/select.m4: New file.
35660         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
35661         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
35662         * modules/select (Files): Add m4/select.m4.
35663         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
35664         * modules/nanosleep (Depends-on): Add select.
35665         * modules/poll (Depends-on): Likewise.
35666         * doc/posix-functions/select.texi: Mention the Interix bug.
35667         Reported by Markus Duft <mduft@gentoo.org>.
35668
35669         * lib/select.c: Renamed from lib/winsock-select.c.
35670         * modules/select (Files): Add lib/select.c, remove
35671         lib/winsock-select.c.
35672         (configure.ac): Update.
35673
35674 2009-03-12  Jim Meyering  <meyering@redhat.com>
35675
35676         avoid gcc warnings about unused macro definitions
35677         * lib/readtokens.c (STREQ): Remove unused definition.
35678         * lib/xmalloc.c (SIZE_MAX): Likewise.
35679         * lib/openat-die.c (N_): Likewise.
35680         * lib/mountlist.c (SIZE_MAX): Remove definition.
35681         Instead, include <stdint.h>.
35682         * lib/readutmp.c: Likewise.
35683         * modules/readutmp (Depends-on): Add stdint.
35684         * modules/mountlist (Depends-on): Add stdint.
35685         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
35686
35687 2009-03-10  Bruno Haible  <bruno@clisp.org>
35688
35689         Tests for module 'mbmemcasecoll'.
35690         * modules/mbmemcasecoll-tests: New file.
35691         * tests/test-mbmemcasecoll1.sh: New file.
35692         * tests/test-mbmemcasecoll2.sh: New file.
35693         * tests/test-mbmemcasecoll3.sh: New file.
35694         * tests/test-mbmemcasecoll.c: New file.
35695
35696         New module 'mbmemcasecoll'.
35697         * lib/mbmemcasecoll.h: New file.
35698         * lib/mbmemcasecoll.c: New file.
35699         * modules/mbmemcasecoll: New file.
35700
35701         * tests/test-mbmemcasecmp.h: New file, extracted from
35702         tests/test-mbmemcasecmp.c.
35703         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
35704         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
35705         (main): Update.
35706         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
35707
35708 2009-03-09  Bruno Haible  <bruno@clisp.org>
35709
35710         Tests for module 'mbmemcasecmp'.
35711         * modules/mbmemcasecmp-tests: New file.
35712         * tests/test-mbmemcasecmp1.sh: New file.
35713         * tests/test-mbmemcasecmp2.sh: New file.
35714         * tests/test-mbmemcasecmp3.sh: New file.
35715         * tests/test-mbmemcasecmp.c: New file.
35716
35717         New module 'mbmemcasecmp'.
35718         * lib/mbmemcasecmp.h: New file.
35719         * lib/mbmemcasecmp.c: New file.
35720         * modules/mbmemcasecmp: New file.
35721
35722 2009-03-09  Bruno Haible  <bruno@clisp.org>
35723
35724         Tests for module 'unicase/ulc-casecoll'.
35725         * modules/unicase/ulc-casecoll-tests: New file.
35726         * tests/unicase/test-ulc-casecoll1.sh: New file.
35727         * tests/unicase/test-ulc-casecoll2.sh: New file.
35728         * tests/unicase/test-ulc-casecoll.c: New file.
35729
35730         New module 'unicase/ulc-casecoll'.
35731         * lib/unicase.h (ulc_casecoll): New declaration.
35732         * lib/unicase/ulc-casecoll.c: New file.
35733         * modules/unicase/ulc-casecoll: New file.
35734
35735         New module 'unicase/ulc-casexfrm'.
35736         * lib/unicase.h (ulc_casexfrm): New declaration.
35737         * lib/unicase/ulc-casexfrm.c: New file.
35738         * modules/unicase/ulc-casexfrm: New file.
35739
35740 2009-03-09  Bruno Haible  <bruno@clisp.org>
35741
35742         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
35743         invocations.
35744
35745         * m4/mbscasecmp.m4: Remove file.
35746         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
35747         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
35748
35749         * m4/mbscasestr.m4: Remove file.
35750         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
35751         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
35752
35753         * m4/mbschr.m4: Remove file.
35754         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
35755         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
35756
35757         * m4/mbscspn.m4: Remove file.
35758         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
35759         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
35760
35761         * m4/mbslen.m4: Remove file.
35762         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
35763         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
35764
35765         * m4/mbsncasecmp.m4: Remove file.
35766         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
35767         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
35768
35769         * m4/mbsnlen.m4: Remove file.
35770         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
35771         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
35772
35773         * m4/mbspbrk.m4: Remove file.
35774         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
35775         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
35776
35777         * m4/mbspcasecmp.m4: Remove file.
35778         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
35779         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
35780
35781         * m4/mbsrchr.m4: Remove file.
35782         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
35783         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
35784
35785         * m4/mbssep.m4: Remove file.
35786         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
35787         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
35788
35789         * m4/mbsspn.m4: Remove file.
35790         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
35791         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
35792
35793         * m4/mbsstr.m4: Remove file.
35794         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
35795         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
35796
35797         * m4/mbstok_r.m4: Remove file.
35798         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
35799         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
35800
35801         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
35802
35803         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
35804         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
35805
35806         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
35807
35808 2009-03-08  Bruno Haible  <bruno@clisp.org>
35809
35810         Tests for module 'unicase/ulc-casecmp'.
35811         * modules/unicase/ulc-casecmp-tests: New file.
35812         * tests/unicase/test-ulc-casecmp1.sh: New file.
35813         * tests/unicase/test-ulc-casecmp2.sh: New file.
35814         * tests/unicase/test-ulc-casecmp.c: New file.
35815
35816         New module 'unicase/ulc-casecmp'.
35817         * lib/unicase.h (ulc_casecmp): New declaration.
35818         * lib/unicase/ulc-casecmp.c: New file.
35819         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
35820         'const SRC_UNIT *'.
35821         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
35822         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
35823         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
35824         * modules/unicase/ulc-casecmp: New file.
35825
35826         Tests for module 'unicase/u32-is-cased'.
35827         * modules/unicase/u32-is-cased-tests: New file.
35828         * tests/unicase/test-u32-is-cased.c: New file.
35829
35830         Tests for module 'unicase/u16-is-cased'.
35831         * modules/unicase/u16-is-cased-tests: New file.
35832         * tests/unicase/test-u16-is-cased.c: New file.
35833
35834         Tests for module 'unicase/u8-is-cased'.
35835         * modules/unicase/u8-is-cased-tests: New file.
35836         * tests/unicase/test-u8-is-cased.c: New file.
35837         * tests/unicase/test-is-cased.h: New file.
35838
35839         New module 'unicase/u32-is-cased'.
35840         * lib/unicase/u32-is-cased.c: New file.
35841         * modules/unicase/u32-is-cased: New file.
35842
35843         New module 'unicase/u16-is-cased'.
35844         * lib/unicase/u16-is-cased.c: New file.
35845         * modules/unicase/u16-is-cased: New file.
35846
35847         New module 'unicase/u8-is-cased'.
35848         * lib/unicase/u8-is-cased.c: New file.
35849         * lib/unicase/u-is-cased.h: New file.
35850         * modules/unicase/u8-is-cased: New file.
35851
35852         Tests for module 'unicase/u32-is-casefolded'.
35853         * modules/unicase/u32-is-casefolded-tests: New file.
35854         * tests/unicase/test-u32-is-casefolded.c: New file.
35855
35856         Tests for module 'unicase/u16-is-casefolded'.
35857         * modules/unicase/u16-is-casefolded-tests: New file.
35858         * tests/unicase/test-u16-is-casefolded.c: New file.
35859
35860         Tests for module 'unicase/u8-is-casefolded'.
35861         * modules/unicase/u8-is-casefolded-tests: New file.
35862         * tests/unicase/test-u8-is-casefolded.c: New file.
35863         * tests/unicase/test-is-casefolded.h: New file.
35864
35865         New module 'unicase/u32-is-casefolded'.
35866         * lib/unicase/u32-is-casefolded.c: New file.
35867         * modules/unicase/u32-is-casefolded: New file.
35868
35869         New module 'unicase/u16-is-casefolded'.
35870         * lib/unicase/u16-is-casefolded.c: New file.
35871         * modules/unicase/u16-is-casefolded: New file.
35872
35873         New module 'unicase/u8-is-casefolded'.
35874         * lib/unicase/u8-is-casefolded.c: New file.
35875         * modules/unicase/u8-is-casefolded: New file.
35876
35877         Tests for module 'unicase/u32-is-titlecase'.
35878         * modules/unicase/u32-is-titlecase-tests: New file.
35879         * tests/unicase/test-u32-is-titlecase.c: New file.
35880
35881         Tests for module 'unicase/u16-is-titlecase'.
35882         * modules/unicase/u16-is-titlecase-tests: New file.
35883         * tests/unicase/test-u16-is-titlecase.c: New file.
35884
35885         Tests for module 'unicase/u8-is-titlecase'.
35886         * modules/unicase/u8-is-titlecase-tests: New file.
35887         * tests/unicase/test-u8-is-titlecase.c: New file.
35888         * tests/unicase/test-is-titlecase.h: New file.
35889
35890         New module 'unicase/u32-is-titlecase'.
35891         * lib/unicase/u32-is-titlecase.c: New file.
35892         * modules/unicase/u32-is-titlecase: New file.
35893
35894         New module 'unicase/u16-is-titlecase'.
35895         * lib/unicase/u16-is-titlecase.c: New file.
35896         * modules/unicase/u16-is-titlecase: New file.
35897
35898         New module 'unicase/u8-is-titlecase'.
35899         * lib/unicase/u8-is-titlecase.c: New file.
35900         * modules/unicase/u8-is-titlecase: New file.
35901
35902         Tests for module 'unicase/u32-is-lowercase'.
35903         * modules/unicase/u32-is-lowercase-tests: New file.
35904         * tests/unicase/test-u32-is-lowercase.c: New file.
35905
35906         Tests for module 'unicase/u16-is-lowercase'.
35907         * modules/unicase/u16-is-lowercase-tests: New file.
35908         * tests/unicase/test-u16-is-lowercase.c: New file.
35909
35910         Tests for module 'unicase/u8-is-lowercase'.
35911         * modules/unicase/u8-is-lowercase-tests: New file.
35912         * tests/unicase/test-u8-is-lowercase.c: New file.
35913         * tests/unicase/test-is-lowercase.h: New file.
35914
35915         New module 'unicase/u32-is-lowercase'.
35916         * lib/unicase/u32-is-lowercase.c: New file.
35917         * modules/unicase/u32-is-lowercase: New file.
35918
35919         New module 'unicase/u16-is-lowercase'.
35920         * lib/unicase/u16-is-lowercase.c: New file.
35921         * modules/unicase/u16-is-lowercase: New file.
35922
35923         New module 'unicase/u8-is-lowercase'.
35924         * lib/unicase/u8-is-lowercase.c: New file.
35925         * modules/unicase/u8-is-lowercase: New file.
35926
35927         Tests for module 'unicase/u32-is-uppercase'.
35928         * modules/unicase/u32-is-uppercase-tests: New file.
35929         * tests/unicase/test-u32-is-uppercase.c: New file.
35930
35931         Tests for module 'unicase/u16-is-uppercase'.
35932         * modules/unicase/u16-is-uppercase-tests: New file.
35933         * tests/unicase/test-u16-is-uppercase.c: New file.
35934
35935         Tests for module 'unicase/u8-is-uppercase'.
35936         * modules/unicase/u8-is-uppercase-tests: New file.
35937         * tests/unicase/test-u8-is-uppercase.c: New file.
35938         * tests/unicase/test-is-uppercase.h: New file.
35939
35940         New module 'unicase/u32-is-uppercase'.
35941         * lib/unicase/u32-is-uppercase.c: New file.
35942         * modules/unicase/u32-is-uppercase: New file.
35943
35944         New module 'unicase/u16-is-uppercase'.
35945         * lib/unicase/u16-is-uppercase.c: New file.
35946         * modules/unicase/u16-is-uppercase: New file.
35947
35948         New module 'unicase/u8-is-uppercase'.
35949         * lib/unicase/u8-is-uppercase.c: New file.
35950         * modules/unicase/u8-is-uppercase: New file.
35951
35952         New module 'unicase/u32-is-invariant'.
35953         * lib/unicase/u32-is-invariant.c: New file.
35954         * modules/unicase/u32-is-invariant: New file.
35955
35956         New module 'unicase/u16-is-invariant'.
35957         * lib/unicase/u16-is-invariant.c: New file.
35958         * modules/unicase/u16-is-invariant: New file.
35959
35960         New module 'unicase/u8-is-invariant'.
35961         * lib/unicase/u8-is-invariant.c: New file.
35962         * lib/unicase/invariant.h: New file.
35963         * lib/unicase/u-is-invariant.h: New file.
35964         * modules/unicase/u8-is-invariant: New file.
35965
35966         Tests for module 'unicase/u32-casecoll'.
35967         * modules/unicase/u32-casecoll-tests: New file.
35968         * tests/unicase/test-u32-casecoll.c: New file.
35969
35970         Tests for module 'unicase/u16-casecoll'.
35971         * modules/unicase/u16-casecoll-tests: New file.
35972         * tests/unicase/test-u16-casecoll.c: New file.
35973
35974         Tests for module 'unicase/u8-casecoll'.
35975         * modules/unicase/u8-casecoll-tests: New file.
35976         * tests/unicase/test-u8-casecoll.c: New file.
35977
35978         New module 'unicase/u32-casecoll'.
35979         * lib/unicase/u32-casecoll.c: New file.
35980         * modules/unicase/u32-casecoll: New file.
35981
35982         New module 'unicase/u16-casecoll'.
35983         * lib/unicase/u16-casecoll.c: New file.
35984         * modules/unicase/u16-casecoll: New file.
35985
35986         New module 'unicase/u8-casecoll'.
35987         * lib/unicase/u8-casecoll.c: New file.
35988         * lib/unicase/u-casecoll.h: New file.
35989         * modules/unicase/u8-casecoll: New file.
35990
35991         New module 'unicase/u32-casexfrm'.
35992         * lib/unicase/u32-casexfrm.c: New file.
35993         * modules/unicase/u32-casexfrm: New file.
35994
35995         New module 'unicase/u16-casexfrm'.
35996         * lib/unicase/u16-casexfrm.c: New file.
35997         * modules/unicase/u16-casexfrm: New file.
35998
35999         New module 'unicase/u8-casexfrm'.
36000         * lib/unicase/u8-casexfrm.c: New file.
36001         * lib/unicase/u-casexfrm.h: New file.
36002         * modules/unicase/u8-casexfrm: New file.
36003
36004         Tests for module 'unicase/u32-casecmp'.
36005         * modules/unicase/u32-casecmp-tests: New file.
36006         * tests/unicase/test-u32-casecmp.c: New file.
36007
36008         Tests for module 'unicase/u16-casecmp'.
36009         * modules/unicase/u16-casecmp-tests: New file.
36010         * tests/unicase/test-u16-casecmp.c: New file.
36011
36012         Tests for module 'unicase/u8-casecmp'.
36013         * modules/unicase/u8-casecmp-tests: New file.
36014         * tests/unicase/test-u8-casecmp.c: New file.
36015         * tests/unicase/test-casecmp.h: New file.
36016
36017         New module 'unicase/u32-casecmp'.
36018         * lib/unicase/u32-casecmp.c: New file.
36019         * modules/unicase/u32-casecmp: New file.
36020
36021         New module 'unicase/u16-casecmp'.
36022         * lib/unicase/u16-casecmp.c: New file.
36023         * modules/unicase/u16-casecmp: New file.
36024
36025         New module 'unicase/u8-casecmp'.
36026         * lib/unicase/u8-casecmp.c: New file.
36027         * lib/unicase/u-casecmp.h: New file.
36028         * modules/unicase/u8-casecmp: New file.
36029
36030         Tests for module 'unicase/u32-casefold'.
36031         * modules/unicase/u32-casefold-tests: New file.
36032         * tests/unicase/test-u32-casefold.c: New file.
36033
36034         Tests for module 'unicase/u16-casefold'.
36035         * modules/unicase/u16-casefold-tests: New file.
36036         * tests/unicase/test-u16-casefold.c: New file.
36037
36038         Tests for module 'unicase/u8-casefold'.
36039         * modules/unicase/u8-casefold-tests: New file.
36040         * tests/unicase/test-u8-casefold.c: New file.
36041
36042         New module 'unicase/u32-casefold'.
36043         * lib/unicase/u32-casefold.c: New file.
36044         * modules/unicase/u32-casefold: New file.
36045
36046         New module 'unicase/u16-casefold'.
36047         * lib/unicase/u16-casefold.c: New file.
36048         * modules/unicase/u16-casefold: New file.
36049
36050         New module 'unicase/u8-casefold'.
36051         * lib/unicase/u8-casefold.c: New file.
36052         * lib/unicase/u-casefold.h: New file.
36053         * modules/unicase/u8-casefold: New file.
36054
36055         New module 'unicase/tocasefold'.
36056         * lib/unicase/casefold.h: New file.
36057         * lib/unicase/tocasefold.c: New file.
36058         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
36059         * modules/unicase/tocasefold: New file.
36060
36061         Tests for module 'unicase/u32-totitle'.
36062         * modules/unicase/u32-totitle-tests: New file.
36063         * tests/unicase/test-u32-totitle.c: New file.
36064
36065         Tests for module 'unicase/u16-totitle'.
36066         * modules/unicase/u16-totitle-tests: New file.
36067         * tests/unicase/test-u16-totitle.c: New file.
36068
36069         Tests for module 'unicase/u8-totitle'.
36070         * modules/unicase/u8-totitle-tests: New file.
36071         * tests/unicase/test-u8-totitle.c: New file.
36072
36073         New module 'unicase/u32-totitle'.
36074         * lib/unicase/u32-totitle.c: New file.
36075         * modules/unicase/u32-totitle: New file.
36076
36077         New module 'unicase/u16-totitle'.
36078         * lib/unicase/u16-totitle.c: New file.
36079         * modules/unicase/u16-totitle: New file.
36080
36081         New module 'unicase/u8-totitle'.
36082         * lib/unicase/u8-totitle.c: New file.
36083         * lib/unicase/u-totitle.h: New file.
36084         * modules/unicase/u8-totitle: New file.
36085
36086         Tests for module 'unicase/u32-tolower'.
36087         * modules/unicase/u32-tolower-tests: New file.
36088         * tests/unicase/test-u32-tolower.c: New file.
36089
36090         Tests for module 'unicase/u16-tolower'.
36091         * modules/unicase/u16-tolower-tests: New file.
36092         * tests/unicase/test-u16-tolower.c: New file.
36093
36094         Tests for module 'unicase/u8-tolower'.
36095         * modules/unicase/u8-tolower-tests: New file.
36096         * tests/unicase/test-u8-tolower.c: New file.
36097
36098         New module 'unicase/u32-tolower'.
36099         * lib/unicase/u32-tolower.c: New file.
36100         * modules/unicase/u32-tolower: New file.
36101
36102         New module 'unicase/u16-tolower'.
36103         * lib/unicase/u16-tolower.c: New file.
36104         * modules/unicase/u16-tolower: New file.
36105
36106         New module 'unicase/u8-tolower'.
36107         * lib/unicase/u8-tolower.c: New file.
36108         * modules/unicase/u8-tolower: New file.
36109
36110         Tests for module 'unicase/u32-toupper'.
36111         * modules/unicase/u32-toupper-tests: New file.
36112         * tests/unicase/test-u32-toupper.c: New file.
36113
36114         Tests for module 'unicase/u16-toupper'.
36115         * modules/unicase/u16-toupper-tests: New file.
36116         * tests/unicase/test-u16-toupper.c: New file.
36117
36118         Tests for module 'unicase/u8-toupper'.
36119         * modules/unicase/u8-toupper-tests: New file.
36120         * tests/unicase/test-u8-toupper.c: New file.
36121
36122         New module 'unicase/u32-toupper'.
36123         * lib/unicase/u32-toupper.c: New file.
36124         * modules/unicase/u32-toupper: New file.
36125
36126         New module 'unicase/u16-toupper'.
36127         * lib/unicase/u16-toupper.c: New file.
36128         * modules/unicase/u16-toupper: New file.
36129
36130         New module 'unicase/u8-toupper'.
36131         * lib/unicase/u8-toupper.c: New file.
36132         * modules/unicase/u8-toupper: New file.
36133
36134         New module 'unicase/u32-casemap'.
36135         * lib/unicase/u32-casemap.c: New file.
36136         * modules/unicase/u32-casemap: New file.
36137
36138         New module 'unicase/u16-casemap'.
36139         * lib/unicase/u16-casemap.c: New file.
36140         * modules/unicase/u16-casemap: New file.
36141
36142         New module 'unicase/u8-casemap'.
36143         * lib/unicase/unicasemap.h: New file.
36144         * lib/unicase/u8-casemap.c: New file.
36145         * lib/unicase/u-casemap.h: New file.
36146         * modules/unicase/u8-casemap: New file.
36147
36148         New module 'unicase/special-casing'.
36149         * lib/unicase/special-casing.h: New file.
36150         * lib/unicase/special-casing.c: New file.
36151         * lib/unicase/special-casing-table.gperf: New file, generated by
36152         gen-uni-tables.c.
36153         * modules/unicase/special-casing: New file.
36154
36155         Tests for module 'unicase/locale-language'.
36156         * modules/unicase/locale-language-tests: New file.
36157         * tests/unicase/test-locale-language.sh: New file.
36158         * tests/unicase/test-locale-language.c: New file.
36159
36160         New module 'unicase/locale-language'.
36161         * lib/unicase/locale-language.c: New file.
36162         * lib/unicase/locale-languages.gperf: New file.
36163         * modules/unicase/locale-language: New file.
36164
36165         Generate more tables for case conversion and case folding.
36166         * lib/gen-uni-tables.c (SCC_*): New enum items.
36167         (struct special_casing_rule): New type.
36168         (casing_rules, num_casing_rules, allocated_casing_rules): New
36169         variables.
36170         (add_casing_rule, fill_casing_rules): New functions.
36171         (struct casefold_rule): New type.
36172         (casefolding_rules, num_casefolding_rules,
36173         allocated_casefolding_rules): New variables.
36174         (fill_casefolding_rules): New function.
36175         (unicode_casefold): New variable.
36176         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
36177         sort_casing_rules, output_casing_rules): New functions.
36178         (main): Accept to more arguments: SpecialCasing.txt and
36179         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
36180         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
36181         Output mapping for casefolding.
36182
36183         * lib/unicase.h: Include stdbool.h, uninorm.h.
36184         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
36185         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
36186         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
36187         arguments.
36188         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
36189         resultp arguments.
36190         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
36191         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
36192         resultp arguments.
36193         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
36194         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
36195         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
36196         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
36197         declarations.
36198         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
36199
36200 2009-03-08  Bruno Haible  <bruno@clisp.org>
36201
36202         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36203         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
36204         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
36205         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36206
36207 2009-03-07  Bruno Haible  <bruno@clisp.org>
36208
36209         Adjust u*_normcmp, u*_normcoll API.
36210         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36211         u16_normcoll, u32_normcoll): Change failure conventions.
36212         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
36213         errno and return -1.
36214         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36215
36216 2009-03-07  Bruno Haible  <bruno@clisp.org>
36217
36218         Tests for module 'uninorm/u32-normcoll'.
36219         * modules/uninorm/u32-normcoll-tests: New file.
36220         * tests/uninorm/test-u32-normcoll.c: New file.
36221
36222         Tests for module 'uninorm/u16-normcoll'.
36223         * modules/uninorm/u16-normcoll-tests: New file.
36224         * tests/uninorm/test-u16-normcoll.c: New file.
36225
36226         Tests for module 'uninorm/u8-normcoll'.
36227         * modules/uninorm/u8-normcoll-tests: New file.
36228         * tests/uninorm/test-u8-normcoll.c: New file.
36229
36230 2009-03-07  Bruno Haible  <bruno@clisp.org>
36231
36232         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
36233         tests/uninorm/test-u32-normcmp.c.
36234         * tests/uninorm/test-u32-normcmp.c: Include it.
36235         (test_nonascii): New function, extracted from main. Add some more
36236         tests.
36237         (main): Invoke test_ascii and test_nonascii.
36238         * modules/uninorm/u32-normcmp-tests (Files): Add
36239         tests/uninorm/test-u32-normcmp.h.
36240         (Depends-on): Remove uninorm/u32-normcmp.
36241
36242         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
36243         tests/uninorm/test-u16-normcmp.c.
36244         * tests/uninorm/test-u16-normcmp.c: Include it.
36245         (test_nonascii): New function, extracted from main. Add some more
36246         tests.
36247         (main): Invoke test_ascii and test_nonascii.
36248         * modules/uninorm/u16-normcmp-tests (Files): Add
36249         tests/uninorm/test-u16-normcmp.h.
36250         (Depends-on): Remove uninorm/u16-normcmp.
36251
36252         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
36253         tests/uninorm/test-u8-normcmp.c.
36254         * tests/uninorm/test-u8-normcmp.c: Include it.
36255         (test_nonascii): New function, extracted from main. Add some more
36256         tests.
36257         (main): Invoke test_ascii and test_nonascii.
36258         * modules/uninorm/u8-normcmp-tests (Files): Add
36259         tests/uninorm/test-u8-normcmp.h.
36260         (Depends-on): Remove uninorm/u8-normcmp.
36261
36262 2009-03-07  Bruno Haible  <bruno@clisp.org>
36263
36264         New module 'uninorm/u32-normcoll'.
36265         * lib/uninorm/u32-normcoll.c: New file.
36266         * modules/uninorm/u32-normcoll: New file.
36267
36268         New module 'uninorm/u16-normcoll'.
36269         * lib/uninorm/u16-normcoll.c: New file.
36270         * modules/uninorm/u16-normcoll: New file.
36271
36272         New module 'uninorm/u8-normcoll'.
36273         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
36274         declarations.
36275         * lib/uninorm/u8-normcoll.c: New file.
36276         * lib/uninorm/u-normcoll.h: New file.
36277         * modules/uninorm/u8-normcoll: New file.
36278
36279         New module 'uninorm/u32-normxfrm'.
36280         * lib/uninorm/u32-normxfrm.c: New file.
36281         * modules/uninorm/u32-normxfrm: New file.
36282
36283         New module 'uninorm/u16-normxfrm'.
36284         * lib/uninorm/u16-normxfrm.c: New file.
36285         * modules/uninorm/u16-normxfrm: New file.
36286
36287         New module 'uninorm/u8-normxfrm'.
36288         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
36289         declarations.
36290         * lib/uninorm/u8-normxfrm.c: New file.
36291         * lib/uninorm/u-normxfrm.h: New file.
36292         * modules/uninorm/u8-normxfrm: New file.
36293
36294 2009-03-07  Bruno Haible  <bruno@clisp.org>
36295
36296         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
36297         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
36298         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
36299
36300 2009-03-07  Bruno Haible  <bruno@clisp.org>
36301
36302         New module 'memxfrm'.
36303         * lib/memxfrm.h: New file.
36304         * lib/memxfrm.c: New file.
36305         * modules/memxfrm: New file.
36306
36307 2009-03-07  Bruno Haible  <bruno@clisp.org>
36308
36309         New module 'memcmp2'.
36310         * lib/memcmp2.h: New file.
36311         * lib/memcmp2.c: New file.
36312         * modules/memcmp2: New file.
36313
36314 2009-03-07  Bruno Haible  <bruno@clisp.org>
36315
36316         Tests for module 'uninorm/decomposing-form'.
36317         * modules/uninorm/decomposing-form-tests: New file.
36318         * tests/uninorm/test-decomposing-form.c: New file.
36319
36320         New module 'uninorm/decomposing-form'.
36321         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
36322         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
36323         Add 'decomposing_variant' field.
36324         * lib/uninorm/decomposing-form.c: New file.
36325         * lib/uninorm/nfc.c (uninorm_nfc): Update.
36326         * lib/uninorm/nfd.c (uninorm_nfd): Update.
36327         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
36328         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
36329         * modules/uninorm/decomposing-form: New file.
36330         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
36331         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
36332
36333 2009-03-07  Bruno Haible  <bruno@clisp.org>
36334
36335         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
36336         strings.
36337
36338 2009-03-06  Bruno Haible  <bruno@clisp.org>
36339
36340         Tests for module 'uninorm/u32-normcmp'.
36341         * tests/uninorm/test-u32-normcmp.c: New file.
36342         * modules/uninorm/u32-normcmp-tests: New file.
36343
36344         Tests for module 'uninorm/u16-normcmp'.
36345         * tests/uninorm/test-u16-normcmp.c: New file.
36346         * modules/uninorm/u16-normcmp-tests: New file.
36347
36348         Tests for module 'uninorm/u8-normcmp'.
36349         * tests/uninorm/test-u8-normcmp.c: New file.
36350         * modules/uninorm/u8-normcmp-tests: New file.
36351
36352         New module 'uninorm/u32-normcmp'.
36353         * lib/uninorm/u32-normcmp.c: New file.
36354         * modules/uninorm/u32-normcmp: New file.
36355
36356         New module 'uninorm/u16-normcmp'.
36357         * lib/uninorm/u16-normcmp.c: New file.
36358         * modules/uninorm/u16-normcmp: New file.
36359
36360         New module 'uninorm/u8-normcmp'.
36361         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
36362         declarations.
36363         * lib/uninorm/u8-normcmp.c: New file.
36364         * lib/uninorm/u-normcmp.h: New file.
36365         * modules/uninorm/u8-normcmp: New file.
36366
36367 2009-03-06  Bruno Haible  <bruno@clisp.org>
36368
36369         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
36370         Reported by Eric Blake.
36371
36372 2009-03-06  Eric Blake  <ebb9@byu.net>
36373             Bruno Haible  <bruno@clisp.org>
36374
36375         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
36376         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
36377         condition.
36378         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36379         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
36380         condition.
36381         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36382
36383 2009-03-06  Eric Blake  <ebb9@byu.net>
36384
36385         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
36386         to avoid compiler warnings.
36387         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
36388
36389 2009-03-05  Bruno Haible  <bruno@clisp.org>
36390
36391         * tests/test-ftell.c (main): Disable test beyond end of file on
36392         FreeMiNT.
36393         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36394
36395 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
36396
36397         * lib/filevercmp.c: Move hidden files up in ordering.
36398         * tests/test-filevercmp.c: Add tests for hidden files.
36399
36400 2009-03-04  Bruno Haible  <bruno@clisp.org>
36401
36402         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
36403         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
36404         AM_CFLAGS.
36405         Reported by Simon Josefsson.
36406
36407 2009-03-03  Bruno Haible  <bruno@clisp.org>
36408
36409         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
36410         Reported by Simon Josefsson.
36411
36412         * doc/ld-version-script.texi: Update node reference.
36413
36414 2009-03-03  Bruno Haible  <bruno@clisp.org>
36415
36416         * modules/visibility (License): Change to 'unlimited'.
36417         Suggested by Simon Josefsson.
36418
36419 2009-03-03  Jim Meyering  <meyering@redhat.com>
36420
36421         unlinkdir: cannot_unlink_dir may modify process state
36422         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
36423         it's neither thread-safe nor appropriate for use in a library.
36424
36425 2009-03-03  Eric Blake  <ebb9@byu.net>
36426
36427         test-closein: silence test under Darwin
36428         * tests/test-closein.sh: Ignore stderr from cat, since we don't
36429         care if it dies from EPIPE or EBADF.
36430
36431 2009-03-03  Bruno Haible  <bruno@clisp.org>
36432
36433         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
36434         earlier.
36435         * doc/visibility.texi: Fix @node and @section.
36436
36437 2009-03-03  Simon Josefsson  <simon@josefsson.org>
36438
36439         * doc/gnulib.texi: Link to sections for ld version script and
36440         visibility.
36441         * doc/visibility.texi: Add @node and @section.
36442         * modules/ld-version-script: New module.
36443         * m4/ld-version-script.m4: New file.
36444         * doc/ld-version-script.texi: New file.
36445
36446 2009-03-02  David Lutterkort  <lutter@redhat.com>
36447
36448         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
36449         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36450
36451 2009-03-02  Bruno Haible  <bruno@clisp.org>
36452
36453         * doc/visibility.texi: Mention libtool's -export-symbols option.
36454
36455 2009-03-02  Jim Meyering  <meyering@redhat.com>
36456
36457         announce-gen: new option: --no-print-checksums
36458         * build-aux/announce-gen (usage): Describe it.
36459         (print_checksums): Print a newline here, not in the [*] footnote.
36460         (main): Honor it.
36461
36462 2009-03-01  Bruno Haible  <bruno@clisp.org>
36463
36464         Use socklen_t in the native Windows replacements prototypes.
36465         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
36466         instead of 'int'.
36467         * lib/getsockopt.c (rpl_getsockopt): Likewise.
36468         * lib/setsockopt.c (rpl_setsockopt): Likewise.
36469         * modules/getsockopt (Depends-on): Add socklen.
36470         * modules/setsockopt (Depends-on): Add socklen.
36471
36472 2009-03-01  Bruno Haible  <bruno@clisp.org>
36473
36474         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
36475         least 4.2.
36476
36477 2009-03-01  Eric Blake  <ebb9@byu.net>
36478             Bruno Haible  <bruno@clisp.org>
36479
36480         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
36481         error messages.
36482         * lib/wait-process.c (wait_subprocess): Omit error message about
36483         deadly signal sent to the child of termsigp != NULL.
36484
36485 2009-03-01  Eric Blake  <ebb9@byu.net>
36486
36487         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
36488
36489 2009-03-01  Bruno Haible  <bruno@clisp.org>
36490
36491         Avoid a gcc warning.
36492         * tests/test-sched.c (b): Make global.
36493         Reported by Eric Blake.
36494
36495 2009-01-19  Martin Lambers  <marlam@marlam.de>
36496
36497         Provide POSIX semantics for socket timeout options on W32.
36498         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
36499         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
36500         * modules/setsockopt: Depend on sys_time module for struct timeval.
36501         * modules/getsockopt: Depend on sys_time module for struct timeval.
36502
36503 2009-03-01  Simon Josefsson  <simon@josefsson.org>
36504
36505         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
36506         __USE_GNU, for consistency with netdb.in.h.
36507         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36508
36509 2009-03-01  Bruno Haible  <bruno@clisp.org>
36510
36511         More support for FreeMiNT.
36512         * lib/fseeko.c (rpl_fseeko): Complete last commit.
36513         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36514
36515 2009-03-01  Bruno Haible  <bruno@clisp.org>
36516
36517         More support for FreeMiNT.
36518         * lib/fpurge.c (fpurge): Correct last commit.
36519         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36520
36521 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36522
36523         Fix unportable awk script in vc-list-files.
36524         * build-aux/vc-list-files: In the replacement awk script, use
36525         substr with a second argument of 1, not zero.
36526         Report by Simon Josefsson.
36527
36528 2009-02-28  Bruno Haible  <bruno@clisp.org>
36529
36530         More support for FreeMiNT.
36531         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
36532         to FreeMiNT today.
36533         * lib/fwriting.c (fwriting): Likewise.
36534         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
36535
36536 2009-02-28  Bruno Haible  <bruno@clisp.org>
36537
36538         * tests/test-freadseek.c (main): Disable test beyond end of file on
36539         FreeMiNT.
36540         * tests/test-ftello.c (main): Likewise.
36541         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36542
36543 2009-02-28  Bruno Haible  <bruno@clisp.org>
36544
36545         Add tentative support for FreeMiNT.
36546         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
36547         * lib/fpurge.c (fpurge): Likewise.
36548         * lib/freadable.c (freadable): Likewise.
36549         * lib/freading.c (freading): Likewise.
36550         * lib/freadptr.c (freadptr): Likewise.
36551         * lib/freadseek.c (freadptrinc): Likewise.
36552         * lib/fseeko.c (rpl_fseeko): Likewise.
36553         * lib/fseterr.c (fseterr): Likewise.
36554         * lib/fwritable.c (fwritable): Likewise.
36555         * lib/fwriting.c (fwriting): Likewise.
36556         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
36557         Hourihane.
36558         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36559
36560 2009-02-28  Bruno Haible  <bruno@clisp.org>
36561
36562         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
36563         SIGCHLD.
36564         Reported by Jim Meyering.
36565
36566 2009-02-28  Bruno Haible  <bruno@clisp.org>
36567
36568         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
36569         Mention the results of these tests on various platforms.
36570         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
36571         order.
36572         * doc/posix-functions/printf.texi: Likewise.
36573         * doc/posix-functions/snprintf.texi: Likewise.
36574         * doc/posix-functions/sprintf.texi: Likewise.
36575         * doc/posix-functions/vfprintf.texi: Likewise.
36576         * doc/posix-functions/vprintf.texi: Likewise.
36577         * doc/posix-functions/vsnprintf.texi: Likewise.
36578         * doc/posix-functions/vsprintf.texi: Likewise.
36579         * doc/glibc-functions/obstack_printf.texi: Likewise.
36580         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
36581
36582 2009-02-28  Bruno Haible  <bruno@clisp.org>
36583
36584         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
36585         Reported by Loïc Minier <lool@dooz.org>.
36586
36587 2009-02-27  Bruno Haible  <bruno@clisp.org>
36588
36589         * gnulib-tool (func_import): Make the sed expression used to create the
36590         sed script for updating the .gitignore file POSIX compliant.
36591         Reported by Eric Blake.
36592
36593 2009-02-27  Bruno Haible  <bruno@clisp.org>
36594
36595         * gnulib-tool (sed): Don't alias as "sed --posix".
36596         Reported by Eric Blake.
36597
36598 2009-02-27  Bruno Haible  <bruno@clisp.org>
36599
36600         Avoid test link errors.
36601         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
36602         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
36603         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
36604         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
36605         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36606
36607 2009-02-27  Bruno Haible  <bruno@clisp.org>
36608
36609         Avoid spurious "(cached)" in configure output.
36610         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
36611         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
36612         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36613         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36614         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36615         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
36616         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36617         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
36618         Reported by Eric Blake.
36619
36620 2009-02-27  Eric Blake  <ebb9@byu.net>
36621
36622         printf: fix regression in previous patch
36623         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
36624
36625 2009-02-27  Bruno Haible  <bruno@clisp.org>
36626
36627         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
36628         value.
36629         * lib/stdint.in.h: Likewise.
36630         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
36631
36632 2009-02-27  Eric Blake  <ebb9@byu.net>
36633
36634         doc: mention more functions added in cygwin 1.7.0
36635         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
36636         addition.
36637         * doc/posix-functions/open_wmemstream.texi: Likewise.
36638         * doc/posix-functions/wcsnlen.texi: Likewise.
36639         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36640         * doc/posix-functions/wcstod.texi: Likewise.
36641         * doc/posix-functions/wcstof.texi: Likewise.
36642         * doc/posix-functions/wcstoimax.texi: Likewise.
36643         * doc/posix-functions/wcstok.texi: Likewise.
36644         * doc/posix-functions/wcstoumax.texi: Likewise.
36645
36646         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
36647         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
36648         * doc/posix-functions/fprintf.texi: Update.
36649         * doc/posix-functions/printf.texi: Update.
36650         * doc/posix-functions/snprintf.texi: Update.
36651         * doc/posix-functions/sprintf.texi: Update.
36652         * doc/posix-functions/vfprintf.texi: Update.
36653         * doc/posix-functions/vprintf.texi: Update.
36654         * doc/posix-functions/vsnprintf.texi: Update.
36655         * doc/posix-functions/vsprintf.texi: Update.
36656         * doc/glibc-functions/obstack_printf.texi: Update.
36657         * doc/glibc-functions/obstack_vprintf.texi: Update.
36658
36659 2009-02-26  Eric Blake  <ebb9@byu.net>
36660
36661         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
36662         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
36663         compilation bug by using runtime conversion.
36664         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
36665         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
36666         * modules/ceill-tests (Files): Use nan.h.
36667         * modules/floorl-tests (Files): Likewise.
36668         * modules/frexpl-tests (Files): Likewise.
36669         * modules/isnanl-tests (Files): Likewise.
36670         * modules/ldexpl-tests (Files): Likewise.
36671         * modules/roundl-tests (Files): Likewise.
36672         * modules/truncl-tests (Files): Likewise.
36673         * tests/test-ceill.c (main): Use a working NaN.
36674         * tests/test-floorl.c (main): Likewise.
36675         * tests/test-frexpl.c (main): Likewise.
36676         * tests/test-isnan.c (test_long_double): Likewise.
36677         * tests/test-isnanl.h (main): Likewise.
36678         * tests/test-ldexpl.h (main): Likewise.
36679         * tests/test-roundl.h (main): Likewise.
36680         * tests/test-truncl.h (main): Likewise.
36681         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
36682
36683 2009-02-26  Eric Blake  <ebb9@byu.net>
36684             Bruno Haible  <bruno@clisp.org>
36685
36686         Work around a *printf bug with %ls on Solaris.
36687         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
36688         precision is specified, sprintf stops converting the wide string
36689         argument when the number of bytes that have been produced by this
36690         conversion equals or exceeds the precision.
36691         * doc/posix-functions/fprintf.texi: Update.
36692         * doc/posix-functions/printf.texi: Update.
36693         * doc/posix-functions/snprintf.texi: Update.
36694         * doc/posix-functions/sprintf.texi: Update.
36695         * doc/posix-functions/vfprintf.texi: Update.
36696         * doc/posix-functions/vprintf.texi: Update.
36697         * doc/posix-functions/vsnprintf.texi: Update.
36698         * doc/posix-functions/vsprintf.texi: Update.
36699         * doc/glibc-functions/obstack_printf.texi: Update.
36700         * doc/glibc-functions/obstack_vprintf.texi: Update.
36701
36702 2009-02-26  Eric Blake  <ebb9@byu.net>
36703
36704         stdlib: favor compiler check of random.h
36705         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
36706         to avoid an ObjC random.h installed by Swarm.
36707
36708 2009-02-26  Bruno Haible  <bruno@clisp.org>
36709
36710         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
36711         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
36712         Reported by Gary V. Vaughan <gary@gnu.org>.
36713
36714 2009-02-26  Bruno Haible  <bruno@clisp.org>
36715
36716         Fix *printf behaviour regarding the %ls directive.
36717         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
36718         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
36719         NEED_PRINTF_DIRECTIVE_LS.
36720         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
36721         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36722         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36723         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
36724         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
36725         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
36726         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36727         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36728         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36729         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36730         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36731         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
36732         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36733         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36734         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36735         * doc/posix-functions/fprintf.texi: Update.
36736         * doc/posix-functions/printf.texi: Update.
36737         * doc/posix-functions/snprintf.texi: Update.
36738         * doc/posix-functions/sprintf.texi: Update.
36739         * doc/posix-functions/vfprintf.texi: Update.
36740         * doc/posix-functions/vprintf.texi: Update.
36741         * doc/posix-functions/vsnprintf.texi: Update.
36742         * doc/posix-functions/vsprintf.texi: Update.
36743         * doc/glibc-functions/obstack_printf.texi: Update.
36744         * doc/glibc-functions/obstack_vprintf.texi: Update.
36745         Reported by Eric Blake.
36746
36747 2009-02-25  Bruno Haible  <bruno@clisp.org>
36748
36749         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
36750         with known value.
36751         Reported by Gary V. Vaughan <gary@gnu.org>.
36752
36753 2009-02-25  Bruno Haible  <bruno@clisp.org>
36754
36755         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
36756         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
36757         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
36758         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
36759         Reported by Gary V. Vaughan <gary@gnu.org>.
36760
36761 2009-02-25  Bruno Haible  <bruno@clisp.org>
36762
36763         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
36764         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
36765         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
36766         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
36767         Reported by Gary V. Vaughan <gary@gnu.org>.
36768
36769 2009-02-25  Eric Blake  <ebb9@byu.net>
36770
36771         tests: skip fseek/ftell tests if ungetc is broken
36772         * m4/ungetc.m4: New file.
36773         * modules/fseek-tests: Split test, so ungetc dependency is
36774         separate from rest of test.
36775         * modules/fseeko-tests: Likewise.
36776         * modules/ftell-tests: Likewise.
36777         * modules/ftello-tests: Likewise.
36778         * tests/test-fseek.c (main): Isolate ungetc dependency.
36779         * tests/test-fseeko.c (main): Likewise.
36780         * tests/test-ftell.c (main): Likewise.
36781         * tests/test-ftello.c (main): Likewise.
36782         * tests/test-fseek2.sh: New file.
36783         * tests/test-fseeko2.sh: Likewise.
36784         * tests/test-ftell2.sh: Likewise.
36785         * tests/test-ftello2.sh: Likewise.
36786
36787 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
36788
36789         test-getaddrinfo: fix usage of skip return code 77
36790         * tests/test-gettaddrinfo.c: Return skip code 77 only
36791         for first occurance of skip (4x77 is not 77)
36792
36793 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
36794
36795         strtod: avoid C99 decl-after-statement
36796         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
36797
36798 2009-02-24  Eric Blake  <ebb9@byu.net>
36799
36800         strtod: detect HP-UX 11.31 bug
36801         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
36802         Reported by Gary V. Vaughan.
36803
36804 2009-02-23  Bruno Haible  <bruno@clisp.org>
36805
36806         Fix invalid read past end of memory block.
36807         * lib/vasnprintf.c (DCHAR_SET): Define.
36808         (local_wcslen): Define only when needed.
36809         (local_strnlen, local_wcsnlen): New functions.
36810         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
36811         directives that involve a conversion ourselves.
36812         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
36813         wcsnlen, mbrtowc, wcrtomb.
36814         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
36815         * tests/test-vasprintf-posix.c (test_function): Likewise.
36816         * tests/test-snprintf-posix.h (test_function): Likewise.
36817         * tests/test-sprintf-posix.h (test_function): Likewise.
36818         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36819
36820 2009-02-22  Bruno Haible  <bruno@clisp.org>
36821
36822         Implement new clarified decomposition of Hangul syllables.
36823         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
36824         of type LTV, return only a pairwise decomposition.
36825         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
36826         Likewise.
36827         * tests/uninorm/test-decomposition.c (main): Updated expected result.
36828         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
36829         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
36830
36831 2009-02-22  Bruno Haible  <bruno@clisp.org>
36832
36833         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
36834         zero-length results and shrink excess allocated memory.
36835         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
36836         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
36837         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
36838         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
36839         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
36840         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
36841         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
36842         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
36843         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
36844         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
36845         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
36846         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
36847
36848 2009-02-21  Bruno Haible  <bruno@clisp.org>
36849
36850         * doc/gnulib.texi: Include safe-alloc.texi earlier.
36851         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
36852         spaces after a period. Put a space between a macro name and its
36853         argument list. Trivial rewordings.
36854         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
36855         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
36856         (main): Return 0 explicitly.
36857
36858 2009-02-21  Bruno Haible  <bruno@clisp.org>
36859
36860         Tests for module 'uninorm/filter'.
36861         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
36862         * modules/uninorm/filter-tests: New file.
36863
36864         New module 'uninorm/filter'.
36865         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
36866         uninorm_filter_flush, uninorm_filter_free): New declarations.
36867         * lib/uninorm/uninorm-filter.c: New file.
36868         * modules/uninorm/filter: New file.
36869
36870 2009-02-21  Bruno Haible  <bruno@clisp.org>
36871
36872         Tests for module 'uninorm/nfkc'.
36873         * tests/uninorm/test-nfkc.c: New file.
36874         * tests/uninorm/test-u8-nfkc.c: New file.
36875         * tests/uninorm/test-u16-nfkc.c: New file.
36876         * tests/uninorm/test-u32-nfkc.c: New file.
36877         * tests/uninorm/test-u32-nfkc-big.sh: New file.
36878         * tests/uninorm/test-u32-nfkc-big.c: New file.
36879         * modules/uninorm/nfkc-tests: New file.
36880
36881         New module 'uninorm/nfkc'.
36882         * lib/uninorm/nfkc.c: New file.
36883         * modules/uninorm/nfkc: New file.
36884
36885         Tests for module 'uninorm/nfkd'.
36886         * tests/uninorm/test-nfkd.c: New file.
36887         * tests/uninorm/test-u8-nfkd.c: New file.
36888         * tests/uninorm/test-u16-nfkd.c: New file.
36889         * tests/uninorm/test-u32-nfkd.c: New file.
36890         * tests/uninorm/test-u32-nfkd-big.sh: New file.
36891         * tests/uninorm/test-u32-nfkd-big.c: New file.
36892         * modules/uninorm/nfkd-tests: New file.
36893
36894         New module 'uninorm/nfkd'.
36895         * lib/uninorm/nfkd.c: New file.
36896         * modules/uninorm/nfkd: New file.
36897
36898         Tests for module 'uninorm/nfc'.
36899         * tests/uninorm/test-nfc.c: New file.
36900         * tests/uninorm/test-u8-nfc.c: New file.
36901         * tests/uninorm/test-u16-nfc.c: New file.
36902         * tests/uninorm/test-u32-nfc.c: New file.
36903         * tests/uninorm/test-u32-nfc-big.sh: New file.
36904         * tests/uninorm/test-u32-nfc-big.c: New file.
36905         * modules/uninorm/nfc-tests: New file.
36906
36907         New module 'uninorm/nfc'.
36908         * lib/uninorm/nfc.c: New file.
36909         * modules/uninorm/nfc: New file.
36910
36911         Tests for module 'uninorm/nfd'.
36912         * tests/uninorm/test-nfd.c: New file.
36913         * tests/uninorm/test-u8-nfd.c: New file.
36914         * tests/uninorm/test-u16-nfd.c: New file.
36915         * tests/uninorm/test-u32-nfd.c: New file.
36916         * tests/uninorm/test-u32-nfd-big.sh: New file.
36917         * tests/uninorm/test-u32-nfd-big.c: New file.
36918         * tests/uninorm/test-u32-normalize-big.h: New file.
36919         * tests/uninorm/test-u32-normalize-big.c: New file.
36920         * tests/uninorm/NormalizationTest.txt: New file, created from
36921         Unicode 5.1.0 NormalizationTest.txt.
36922         * modules/uninorm/nfd-tests: New file.
36923
36924         New module 'uninorm/nfd'.
36925         * lib/uninorm/nfd.c: New file.
36926         * modules/uninorm/nfd: New file.
36927
36928         New module 'uninorm/u32-normalize'.
36929         * lib/uninorm/u32-normalize.c: New file.
36930         * modules/uninorm/u32-normalize: New file.
36931
36932         New module 'uninorm/u16-normalize'.
36933         * lib/uninorm/u16-normalize.c: New file.
36934         * modules/uninorm/u16-normalize: New file.
36935
36936         New module 'uninorm/u8-normalize'.
36937         * lib/uninorm/u8-normalize.c: New file.
36938         * lib/uninorm/normalize-internal.h: New file.
36939         * lib/uninorm/u-normalize-internal.h: New file.
36940         * modules/uninorm/u8-normalize: New file.
36941
36942         New module 'uninorm/decompose-internal'.
36943         * lib/uninorm/decompose-internal.c: New file.
36944         * modules/uninorm/decompose-internal: New file.
36945
36946         Tests for module 'uninorm/composition'.
36947         * tests/uninorm/test-composition.c: New file.
36948         * modules/uninorm/composition-tests: New file.
36949
36950         New module 'uninorm/composition'.
36951         * lib/uninorm/composition.c: New file.
36952         * lib/uninorm/composition-table.gperf: New file, generated by
36953         gen-uni-tables.
36954         * modules/uninorm/composition: New file.
36955
36956         Tests for module 'uninorm/compat-decomposition'.
36957         * tests/uninorm/test-compat-decomposition.c: New file.
36958         * modules/uninorm/compat-decomposition-tests: New file.
36959
36960         New module 'uninorm/compat-decomposition'.
36961         * lib/uninorm/decompose-internal.h: New file.
36962         * lib/uninorm/compat-decomposition.c: New file.
36963         * modules/uninorm/compat-decomposition: New file.
36964
36965         Tests for module 'uninorm/canonical-decomposition'.
36966         * tests/uninorm/test-canonical-decomposition.c: New file.
36967         * modules/uninorm/canonical-decomposition-tests: New file.
36968
36969         New module 'uninorm/canonical-decomposition'.
36970         * lib/uninorm/canonical-decomposition.c: New file.
36971         * modules/uninorm/canonical-decomposition: New file.
36972
36973         Tests for module 'uninorm/decomposition'.
36974         * tests/uninorm/test-decomposition.c: New file.
36975         * modules/uninorm/decomposition-tests: New file.
36976
36977         New module 'uninorm/decomposition'.
36978         * lib/uninorm/decomposition.c: New file.
36979         * modules/uninorm/decomposition: New file.
36980
36981         New module 'uninorm/decomposition-table'.
36982         * lib/uninorm/decomposition-table.h: New file.
36983         * lib/uninorm/decomposition-table.c: New file.
36984         * lib/uninorm/decomposition-table1.h: New file, generated by
36985         gen-uni-tables.
36986         * lib/uninorm/decomposition-table2.h: New file, generated by
36987         gen-uni-tables.
36988         * modules/uninorm/decomposition-table: New file.
36989
36990         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
36991         (UC_DECOMP_*): New enumeration items.
36992         (get_decomposition): New function.
36993         (struct decomp_table): New type.
36994         (output_decomposition, output_decomposition_tables): New functions.
36995         (unicode_composition_exclusions): New variable.
36996         (fill_composition_exclusions, debug_output_composition_tables): New
36997         functions.
36998         (main): Accept one more argument. Invoke fill_composition_exclusions.
36999         Output decomposition and composition tables.
37000
37001         New module 'uninorm/base'.
37002         * lib/uninorm.h: New file.
37003         * lib/unictype.h: Update comment.
37004         * modules/uninorm/base: New file.
37005
37006 2009-02-21  David Lutterkort  <lutter@redhat.com>
37007
37008         Tests for module 'safe-alloc'.
37009         * tests/test-safe-alloc.c: New file.
37010         * modules/safe-alloc-tests: New file.
37011
37012         New module 'safe-alloc'.
37013         * lib/safe-alloc.h: New file.
37014         * lib/safe-alloc.c: New file.
37015         * m4/safe-alloc.m4: New file.
37016         * modules/safe-alloc: New file.
37017         * doc/safe-alloc.texi: New file.
37018         * doc/gnulib.texi: Include it.
37019         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
37020         safe-alloc.
37021
37022 2009-02-18  Bruno Haible  <bruno@clisp.org>
37023
37024         Fix link error on non-glibc systems.
37025         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
37026         variable.
37027         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37028
37029 2009-02-18  Jim Meyering  <meyering@redhat.com>
37030
37031         fts: avoid used-uninitialized error due to recent change
37032         * lib/fts.c (fts_read): Guard uses of the new member,
37033         parent->fts_n_dirs_remaining, since it's not relevant for
37034         the parent of a directory specified on the command-line.
37035
37036 2009-02-17  James Youngman  <jay@gnu.org>
37037             Bruno Haible  <bruno@clisp.org>
37038
37039         * m4/include_next.m4: Reformulate comment.
37040
37041 2009-02-16  Jim Meyering  <meyering@redhat.com>
37042
37043         fts: add #if guards so that the fts_lgpl module still builds
37044         * lib/fts.c: Guard just-added hash-table-using parts with
37045         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
37046         Reported by Simon Josefsson.
37047
37048 2009-02-15  Bruno Haible  <bruno@clisp.org>
37049
37050         * modules/array-mergesort-tests: New file.
37051         * tests/test-array-mergesort.c: New file.
37052
37053         New module 'array-mergesort'.
37054         * modules/array-mergesort: New file.
37055         * lib/array-mergesort.h: New file.
37056
37057 2009-02-15  Bruno Haible  <bruno@clisp.org>
37058
37059         Fix 2009-02-07 commit.
37060         * lib/gen-uni-tables.c (output_predicate, output_category,
37061         output_combclass, output_bidi_category, output_decimal_digit,
37062         output_digit, output_numeric, output_mirror, output_scripts,
37063         output_ident_category, output_simple_mapping): Fix format directives.
37064         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
37065
37066 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
37067
37068         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
37069         fixes are available from IBM.
37070
37071 2009-02-13  Jim Meyering  <meyering@redhat.com>
37072
37073         fts: arrange not to stat non-directories in more cases
37074         This makes GNU find (when it doesn't need to stat each file)
37075         *much* more efficient at traversing reiserfs file systems.
37076         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
37077         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
37078         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
37079         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
37080         (leaf_optimization_applies): New function.
37081         (LCO_hash, LCO_compare): New helper functions.
37082         (link_count_optimize_ok): New function.
37083         (fts_stat): Initialize new member (if dir).
37084         (fts_read): Decrement parent's fts_n_dirs_remaining count if
37085         we've just stat'ed a directory.  Skip the stat call when possible.
37086         ---
37087         Note this AFS-related exchange:
37088         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
37089         and note find's pioctl call in find/fstype.c.
37090         But that is necessary only if you want to enable the
37091         optimization for AFS, and for now, I don't.
37092
37093         fts: move a function definition "up" (no semantic change)
37094         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
37095         "up" to precede upcoming use of a related function.
37096
37097 2009-02-11  Jim Meyering  <meyering@redhat.com>
37098
37099         fts: correct internal computation of nlinks (optimization-related)
37100         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
37101         whether the current entry is a directory, so don't test it.
37102
37103 2009-02-10  Bruno Haible  <bruno@clisp.org>
37104
37105         Tests for module 'uniwbrk/ulc-wordbreaks'.
37106         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
37107         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
37108         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
37109
37110         Tests for module 'uniwbrk/u32-wordbreaks'.
37111         * modules/uniwbrk/u32-wordbreaks-tests: New file.
37112         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
37113
37114         Tests for module 'uniwbrk/u16-wordbreaks'.
37115         * modules/uniwbrk/u16-wordbreaks-tests: New file.
37116         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
37117
37118         Tests for module 'uniwbrk/u8-wordbreaks'.
37119         * modules/uniwbrk/u8-wordbreaks-tests: New file.
37120         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
37121
37122 2009-02-10  Bruno Haible  <bruno@clisp.org>
37123
37124         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
37125         property.
37126         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
37127         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
37128         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
37129
37130 2009-02-10  Simon Josefsson  <simon@josefsson.org>
37131
37132         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
37133         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
37134
37135 2009-02-10  Bruno Haible  <bruno@clisp.org>
37136
37137         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
37138         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
37139         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
37140         * lib/unilbrk/u8-possible-linebreaks.c: Update.
37141         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
37142         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
37143
37144 2009-02-09  Simon Josefsson  <simon@josefsson.org>
37145
37146         * lib/sockets.h (gl_fd_to_handle): New function.
37147
37148         * tests/test-sockets.c: Call gl_fd_to_handle.
37149
37150 2009-02-09  Bruno Haible  <bruno@clisp.org>
37151
37152         * doc/havelib.texi: Document the conventions on bi-arch systems.
37153
37154 2009-02-08  Bruno Haible  <bruno@clisp.org>
37155
37156         Document the AC_LIB_LINKFLAGS macro.
37157         * doc/havelib.texi: New file, mostly written on 2005-05-24.
37158         * doc/gnulib.texi: Include it.
37159
37160 2009-02-08  Bruno Haible  <bruno@clisp.org>
37161
37162         Fix wrong order of sections, compared to TOC.
37163         * doc/gnulib.texi: Include relocatable-maint.texi after the
37164         "Regular expressions" node, not before.
37165
37166 2009-02-08  Bruno Haible  <bruno@clisp.org>
37167
37168         Tests for module 'unicase/totitle'.
37169         * modules/unicase/totitle-tests: New file.
37170
37171         Tests for module 'unicase/tolower'.
37172         * modules/unicase/tolower-tests: New file.
37173
37174         Tests for module 'unicase/toupper'.
37175         * modules/unicase/toupper-tests: New file.
37176         * tests/unicase/test-mapping-part1.h: New file.
37177         * tests/unicase/test-mapping-part2.h: New file.
37178
37179         New module 'unicase/totitle'.
37180         * modules/unicase/totitle: New file.
37181         * lib/unicase/totitle.c: New file.
37182
37183         New module 'unicase/tolower'.
37184         * modules/unicase/tolower: New file.
37185         * lib/unicase/tolower.c: New file.
37186
37187         New module 'unicase/toupper'.
37188         * modules/unicase/toupper: New file.
37189         * lib/unicase/toupper.c: New file.
37190         * lib/unicase/simple-mapping.h: New file.
37191
37192         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
37193         (mapping_table): New structure.
37194         (output_simple_mapping): New function.
37195         (main): Invoke output_simple_mapping_test and output_simple_mapping.
37196         * modules/gen-uni-tables (Description): Update.
37197         * lib/unicase/toupper.h: New file, automatically generated by
37198         gen-uni-tables.
37199         * lib/unicase/tolower.h: New file, automatically generated by
37200         gen-uni-tables.
37201         * lib/unicase/totitle.h: New file, automatically generated by
37202         gen-uni-tables.
37203         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
37204         gen-uni-tables.
37205         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
37206         gen-uni-tables.
37207         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
37208         gen-uni-tables.
37209
37210         New module 'unicase/base'.
37211         * modules/unicase/base: New file.
37212         * lib/unicase.h: New file.
37213
37214 2009-02-08  Bruno Haible  <bruno@clisp.org>
37215
37216         New module 'uniwbrk/ulc-wordbreaks'.
37217         * modules/uniwbrk/ulc-wordbreaks: New file.
37218         * lib/uniwbrk/ulc-wordbreaks.c: New file.
37219
37220         New module 'uniwbrk/u32-wordbreaks'.
37221         * modules/uniwbrk/u32-wordbreaks: New file.
37222         * lib/uniwbrk/u32-wordbreaks.c: New file.
37223
37224         New module 'uniwbrk/u16-wordbreaks'.
37225         * modules/uniwbrk/u16-wordbreaks: New file.
37226         * lib/uniwbrk/u16-wordbreaks.c: New file.
37227
37228         New module 'uniwbrk/u8-wordbreaks'.
37229         * modules/uniwbrk/u8-wordbreaks: New file.
37230         * lib/uniwbrk/u8-wordbreaks.c: New file.
37231         * lib/uniwbrk/u-wordbreaks.h: New file.
37232
37233         New module 'uniwbrk/table'.
37234         * modules/uniwbrk/table: New file.
37235         * lib/uniwbrk/wbrktable.h: New file.
37236         * lib/uniwbrk/wbrktable.c: New file.
37237
37238         New module 'uniwbrk/wordbreak-property'.
37239         * modules/uniwbrk/wordbreak-property: New file.
37240         * lib/uniwbrk/wordbreak-property.c: New file.
37241
37242         * lib/gen-uni-tables.c (WBP_*): New enum items.
37243         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
37244         (unicode_org_wbp): New variable.
37245         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
37246         New functions.
37247         (wbp_table): New structure.
37248         (output_wbp, output_wbrk_tables): New functions.
37249         (main): Accept additional argument. Invoke fill_org_wbp,
37250         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
37251         output_wbrk_tables.
37252         * modules/gen-uni-tables (Description): Update.
37253         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
37254         gen-uni-tables.
37255
37256         New module 'uniwbrk/base'.
37257         * modules/uniwbrk/base: New file.
37258         * lib/uniwbrk.h: New file.
37259
37260 2009-02-08  Bruno Haible  <bruno@clisp.org>
37261
37262         Update to Unicode 5.1.0.
37263         * lib/gen-uni-tables.c (is_property_alphabetic): Include
37264         U+2185..U+2188.
37265         (is_property_default_ignorable_code_point): Don't include characters
37266         of category Cc or Cs and not-a-characters.
37267         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
37268         U+0D79, U+109E, U+109F, U+A60C.
37269         * lib/unictype/bidi_of.h: Regenerated.
37270         * lib/unictype/blocks.h: Regenerated.
37271         * lib/unictype/categ_C.h: Regenerated.
37272         * lib/unictype/categ_Cf.h: Regenerated.
37273         * lib/unictype/categ_Cn.h: Regenerated.
37274         * lib/unictype/categ_L.h: Regenerated.
37275         * lib/unictype/categ_Ll.h: Regenerated.
37276         * lib/unictype/categ_Lm.h: Regenerated.
37277         * lib/unictype/categ_Lo.h: Regenerated.
37278         * lib/unictype/categ_Lu.h: Regenerated.
37279         * lib/unictype/categ_M.h: Regenerated.
37280         * lib/unictype/categ_Mc.h: Regenerated.
37281         * lib/unictype/categ_Me.h: Regenerated.
37282         * lib/unictype/categ_Mn.h: Regenerated.
37283         * lib/unictype/categ_N.h: Regenerated.
37284         * lib/unictype/categ_Nd.h: Regenerated.
37285         * lib/unictype/categ_Nl.h: Regenerated.
37286         * lib/unictype/categ_No.h: Regenerated.
37287         * lib/unictype/categ_P.h: Regenerated.
37288         * lib/unictype/categ_Pd.h: Regenerated.
37289         * lib/unictype/categ_Pe.h: Regenerated.
37290         * lib/unictype/categ_Pf.h: Regenerated.
37291         * lib/unictype/categ_Pi.h: Regenerated.
37292         * lib/unictype/categ_Po.h: Regenerated.
37293         * lib/unictype/categ_Ps.h: Regenerated.
37294         * lib/unictype/categ_S.h: Regenerated.
37295         * lib/unictype/categ_Sk.h: Regenerated.
37296         * lib/unictype/categ_Sm.h: Regenerated.
37297         * lib/unictype/categ_So.h: Regenerated.
37298         * lib/unictype/categ_of.h: Regenerated.
37299         * lib/unictype/combining.h: Regenerated.
37300         * lib/unictype/ctype_alnum.h: Regenerated.
37301         * lib/unictype/ctype_alpha.h: Regenerated.
37302         * lib/unictype/ctype_graph.h: Regenerated.
37303         * lib/unictype/ctype_lower.h: Regenerated.
37304         * lib/unictype/ctype_print.h: Regenerated.
37305         * lib/unictype/ctype_punct.h: Regenerated.
37306         * lib/unictype/ctype_upper.h: Regenerated.
37307         * lib/unictype/decdigit.h: Regenerated.
37308         * lib/unictype/digit.h: Regenerated.
37309         * lib/unictype/mirror.h: Regenerated.
37310         * lib/unictype/numeric.h: Regenerated.
37311         * lib/unictype/pr_alphabetic.h: Regenerated.
37312         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
37313         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
37314         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
37315         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
37316         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
37317         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
37318         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
37319         * lib/unictype/pr_combining.h: Regenerated.
37320         * lib/unictype/pr_dash.h: Regenerated.
37321         * lib/unictype/pr_decimal_digit.h: Regenerated.
37322         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
37323         * lib/unictype/pr_deprecated.h: Regenerated.
37324         * lib/unictype/pr_diacritic.h: Regenerated.
37325         * lib/unictype/pr_extender.h: Regenerated.
37326         * lib/unictype/pr_format_control.h: Regenerated.
37327         * lib/unictype/pr_grapheme_base.h: Regenerated.
37328         * lib/unictype/pr_grapheme_extend.h: Regenerated.
37329         * lib/unictype/pr_grapheme_link.h: Regenerated.
37330         * lib/unictype/pr_id_continue.h: Regenerated.
37331         * lib/unictype/pr_id_start.h: Regenerated.
37332         * lib/unictype/pr_ideographic.h: Regenerated.
37333         * lib/unictype/pr_ignorable_control.h: Regenerated.
37334         * lib/unictype/pr_lowercase.h: Regenerated.
37335         * lib/unictype/pr_math.h: Regenerated.
37336         * lib/unictype/pr_numeric.h: Regenerated.
37337         * lib/unictype/pr_other_alphabetic.h: Regenerated.
37338         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
37339         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
37340         * lib/unictype/pr_other_id_continue.h: Regenerated.
37341         * lib/unictype/pr_other_lowercase.h: Regenerated.
37342         * lib/unictype/pr_other_math.h: Regenerated.
37343         * lib/unictype/pr_punctuation.h: Regenerated.
37344         * lib/unictype/pr_sentence_terminal.h: Regenerated.
37345         * lib/unictype/pr_soft_dotted.h: Regenerated.
37346         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
37347         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
37348         * lib/unictype/pr_unified_ideograph.h: Regenerated.
37349         * lib/unictype/pr_uppercase.h: Regenerated.
37350         * lib/unictype/pr_xid_continue.h: Regenerated.
37351         * lib/unictype/pr_xid_start.h: Regenerated.
37352         * lib/unictype/pr_zero_width.h: Regenerated.
37353         * lib/unictype/scripts.h: Regenerated.
37354         * lib/unictype/scripts_byname.gperf: Regenerated.
37355         * lib/unictype/sy_java_ident.h: Regenerated.
37356         * lib/unilbrk/lbrkprop1.h: Regenerated.
37357         * lib/unilbrk/lbrkprop2.h: Regenerated.
37358         * tests/unictype/test-categ_C.c: Regenerated.
37359         * tests/unictype/test-categ_Cf.c: Regenerated.
37360         * tests/unictype/test-categ_Cn.c: Regenerated.
37361         * tests/unictype/test-categ_L.c: Regenerated.
37362         * tests/unictype/test-categ_Ll.c: Regenerated.
37363         * tests/unictype/test-categ_Lm.c: Regenerated.
37364         * tests/unictype/test-categ_Lo.c: Regenerated.
37365         * tests/unictype/test-categ_Lu.c: Regenerated.
37366         * tests/unictype/test-categ_M.c: Regenerated.
37367         * tests/unictype/test-categ_Mc.c: Regenerated.
37368         * tests/unictype/test-categ_Me.c: Regenerated.
37369         * tests/unictype/test-categ_Mn.c: Regenerated.
37370         * tests/unictype/test-categ_N.c: Regenerated.
37371         * tests/unictype/test-categ_Nd.c: Regenerated.
37372         * tests/unictype/test-categ_Nl.c: Regenerated.
37373         * tests/unictype/test-categ_No.c: Regenerated.
37374         * tests/unictype/test-categ_P.c: Regenerated.
37375         * tests/unictype/test-categ_Pd.c: Regenerated.
37376         * tests/unictype/test-categ_Pe.c: Regenerated.
37377         * tests/unictype/test-categ_Pf.c: Regenerated.
37378         * tests/unictype/test-categ_Pi.c: Regenerated.
37379         * tests/unictype/test-categ_Po.c: Regenerated.
37380         * tests/unictype/test-categ_Ps.c: Regenerated.
37381         * tests/unictype/test-categ_S.c: Regenerated.
37382         * tests/unictype/test-categ_Sk.c: Regenerated.
37383         * tests/unictype/test-categ_Sm.c: Regenerated.
37384         * tests/unictype/test-categ_So.c: Regenerated.
37385         * tests/unictype/test-ctype_alnum.c: Regenerated.
37386         * tests/unictype/test-ctype_alpha.c: Regenerated.
37387         * tests/unictype/test-ctype_graph.c: Regenerated.
37388         * tests/unictype/test-ctype_lower.c: Regenerated.
37389         * tests/unictype/test-ctype_print.c: Regenerated.
37390         * tests/unictype/test-ctype_punct.c: Regenerated.
37391         * tests/unictype/test-ctype_upper.c: Regenerated.
37392         * tests/unictype/test-decdigit.h: Regenerated.
37393         * tests/unictype/test-digit.h: Regenerated.
37394         * tests/unictype/test-numeric.h: Regenerated.
37395         * tests/unictype/test-pr_alphabetic.c: Regenerated.
37396         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
37397         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
37398         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
37399         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
37400         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
37401         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
37402         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
37403         * tests/unictype/test-pr_combining.c: Regenerated.
37404         * tests/unictype/test-pr_dash.c: Regenerated.
37405         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
37406         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
37407         * tests/unictype/test-pr_deprecated.c: Regenerated.
37408         * tests/unictype/test-pr_diacritic.c: Regenerated.
37409         * tests/unictype/test-pr_extender.c: Regenerated.
37410         * tests/unictype/test-pr_format_control.c: Regenerated.
37411         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
37412         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
37413         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
37414         * tests/unictype/test-pr_id_continue.c: Regenerated.
37415         * tests/unictype/test-pr_id_start.c: Regenerated.
37416         * tests/unictype/test-pr_ideographic.c: Regenerated.
37417         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
37418         * tests/unictype/test-pr_lowercase.c: Regenerated.
37419         * tests/unictype/test-pr_math.c: Regenerated.
37420         * tests/unictype/test-pr_numeric.c: Regenerated.
37421         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
37422         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
37423         Regenerated.
37424         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
37425         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
37426         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
37427         * tests/unictype/test-pr_other_math.c: Regenerated.
37428         * tests/unictype/test-pr_punctuation.c: Regenerated.
37429         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
37430         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
37431         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
37432         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
37433         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
37434         * tests/unictype/test-pr_uppercase.c: Regenerated.
37435         * tests/unictype/test-pr_xid_continue.c: Regenerated.
37436         * tests/unictype/test-pr_xid_start.c: Regenerated.
37437         * tests/unictype/test-pr_zero_width.c: Regenerated.
37438
37439         Update to Unicode 5.1.0.
37440         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
37441         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
37442         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
37443         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
37444         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
37445         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
37446         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
37447         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
37448         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
37449         (nonspacing_table_ind): Update.
37450         * tests/uniwidth/test-uc_width2.sh: Update expected result.
37451
37452         Update to Unicode 5.1.0.
37453         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
37454         code transform.
37455         * lib/uniname/uniname.c (unicode_character_name,
37456         unicode_name_character): Add the range 0x1Fxxx to the code transform.
37457         * lib/uniname/uninames.h: Regenerated.
37458         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
37459
37460 2009-02-07  Bruno Haible  <bruno@clisp.org>
37461
37462         Merge gen-ctype and gen-lbrk into a single program.
37463         * lib/gen-uni-tables.c: New file, incorporating
37464         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
37465         Add directory prefixes to the names of the generated files.
37466         * lib/unictype/gen-ctype.c: Remove file.
37467         * lib/unilbrk/gen-lbrk.c: Remove file.
37468         * modules/gen-uni-tables: New file.
37469         * modules/unictype/gen-ctype: Remove file.
37470         * modules/unilbrk/gen-lbrk: Remove file.
37471
37472 2009-02-07  Bruno Haible  <bruno@clisp.org>
37473
37474         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
37475
37476         New module 'unistr/u32-strcoll'.
37477         * modules/unistr/u32-strcoll: New file.
37478         * lib/unistr/u32-strcoll.c: New file.
37479
37480         New module 'unistr/u16-strcoll'.
37481         * modules/unistr/u16-strcoll: New file.
37482         * lib/unistr/u16-strcoll.c: New file.
37483
37484         New module 'unistr/u8-strcoll'.
37485         * modules/unistr/u8-strcoll: New file.
37486         * lib/unistr/u8-strcoll.c: New file.
37487         * lib/unistr/u-strcoll.h: New file.
37488
37489 2009-02-07  Bruno Haible  <bruno@clisp.org>
37490
37491         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
37492         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37493         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37494         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
37495         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
37496         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
37497
37498 2009-02-07  Bruno Haible  <bruno@clisp.org>
37499
37500         Make 64-bit clean.
37501         * lib/unictype/gen-ctype.c (output_predicate, output_category,
37502         output_combclass, output_bidi_category, output_decimal_digit,
37503         output_digit, output_numeric, output_mirror, output_scripts,
37504         output_ident_category): Use proper width specifier in format strings.
37505
37506 2009-02-07  Bruno Haible  <bruno@clisp.org>
37507
37508         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
37509         failure behaviour.
37510
37511 2009-02-07  Jim Meyering  <meyering@redhat.com>
37512
37513         regex: avoid compilation failure with upcoming gcc-4.4
37514         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
37515         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
37516         "... error: integer overflow in preprocessor expression".
37517
37518 2009-02-05  Ben Pfaff  <blp@gnu.org>
37519
37520         Fix link errors on Windows when close module is used.
37521         * modules/close: Add $(LIB_CLOSE) to Link section.
37522         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
37523         $(LIB_CLOSE) on Windows.
37524
37525 2009-02-05  Jim Meyering  <meyering@redhat.com>
37526
37527         still avoid unused-parameter warnings, but do it cleanly
37528         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
37529         (get_fs_usage): Cast to void instead.
37530         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
37531         (dev_from_mount_options, read_file_system_list): Cast to void.
37532         Prompted by Bruno Haible.
37533
37534 2009-02-04  Jim Meyering  <meyering@redhat.com>
37535
37536         fsusage.c: correct copyright year
37537         * lib/fsusage.c: Reflect year in which the change is pushed into
37538
37539         avoid misc. warnings
37540         * lib/fsusage.c (UNUSED_PARAM): Define.
37541         (get_fs_usage): Mark parameter "disk" as unused.
37542         * lib/getugroups.c (getgrent): Use "void" in prototype.
37543         * lib/mountlist.c: Mark unused parameters.
37544         (read_file_system_list): Declare a local with "const".
37545         * lib/nanosleep.c (getnow): Declare static.
37546         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
37547
37548         dirfd: set errno upon failure
37549         * lib/dirfd.c: Include <errno.h>.
37550         Set errno to ENOTSUP when returning -1.
37551         * modules/dirfd (Depends-on): Add errno.
37552         Suggested by John Kodis <kodis@comcast.net>.
37553
37554 2009-02-01  Bruno Haible  <bruno@clisp.org>
37555
37556         Don't assume sizeof (long) >= sizeof (void *).
37557         * lib/memcmp.c: Include stdint.h.
37558         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
37559         srcp2 to 'const byte *'.
37560         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
37561         types to uintptr_t.
37562         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
37563         * modules/memcmp (Depends-on): Add stdint.
37564         Reported by Ozkan Sezer <sezeroz@gmail.com>.
37565
37566 2009-01-30  Eric Blake  <ebb9@byu.net>
37567
37568         fix more require-before-expand issues
37569         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
37570         expand, AC_PROG_AWK.
37571         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
37572
37573 2009-01-28  Eric Blake  <ebb9@byu.net>
37574
37575         version-etc: use consistent URL formatting
37576         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
37577         Improve formatting.  Use fputs for string without %.
37578
37579 2009-01-28  Jim Meyering  <meyering@redhat.com>
37580
37581         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
37582         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
37583         "underquoted definition of NAME" from autoconf-2.59.
37584
37585 2009-01-28  Bruno Haible  <bruno@clisp.org>
37586
37587         * doc/gnulib.texi: Add "Obsolete modules" to index.
37588
37589 2009-01-28  Jim Meyering  <meyering@redhat.com>
37590
37591         useless-if-before-free: recognize more variants
37592         * build-aux/useless-if-before-free: Also recognize e.g.,
37593         if (NULL != p) free (p);
37594
37595 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
37596
37597         test-getaddrinfo: skip (don't fail) this test when there's no network
37598         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
37599         on the presumption that it means you lack network access.
37600
37601 2009-01-26  Jim Meyering  <meyering@redhat.com>
37602
37603         fflush: avoid warnings on modern systems
37604         * lib/fflush.c (rpl_fflush): Move declarations of locals,
37605         pos and result, into scopes where they're used.
37606
37607 2009-01-26  Eric Blake  <ebb9@byu.net>
37608
37609         Silence warning reintroduced by recent extensions patch.
37610         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
37611         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
37612         autoconf.
37613
37614         Backport improved autoconf semantics of AC_DEFUN_ONCE.
37615         * m4/00gnulib.m4: New file.
37616         * gnulib-tool (func_get_filelist): Always use it.
37617         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
37618         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
37619
37620 2009-01-25  Bruno Haible  <bruno@clisp.org>
37621
37622         Make test-quotearg work on MacOS X and AIX.
37623         * tests/test-quotearg.sh: New file.
37624         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
37625         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
37626         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
37627         include <libintl.h>.
37628         (fake_locale): Remove variable.
37629         (gettext, dgettext, dcgettext): Remove functions.
37630         (main): Instead of setting a fake locale, set a real locale. Call
37631         textdomain and bindtextdomain.
37632         * modules/quotearg-tests (Files): Add the new files.
37633         (Depends-on): Add gettext, setenv, unsetenv.
37634         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37635         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
37636         Augment TESTS_ENVIRONMENT.
37637
37638 2009-01-25  Bruno Haible  <bruno@clisp.org>
37639
37640         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
37641         fr_FR.ISO8859-1 locale on MacOS X.
37642         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
37643         ja_JP.eucJP locale on MacOS X.
37644         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
37645         zh_CN.GB18030 locale on MacOS X.
37646
37647 2009-01-25  Bruno Haible  <bruno@clisp.org>
37648
37649         Avoid link errors on MacOS X 10.3.
37650         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
37651         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37652
37653 2009-01-25  Bruno Haible  <bruno@clisp.org>
37654
37655         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37656         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
37657         * modules/pipe (Files): Remove m4/posix_spawn.m4.
37658         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37659         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
37660         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37661         posix_spawnattr_init, posix_spawnattr_setsigmask,
37662         posix_spawnattr_setflags, posix_spawnattr_destroy.
37663
37664         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37665         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
37666         * modules/execute (Files): Remove m4/posix_spawn.m4.
37667         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37668         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37669         posix_spawnattr_init, posix_spawnattr_setsigmask,
37670         posix_spawnattr_setflags, posix_spawnattr_destroy.
37671
37672 2009-01-25  Bruno Haible  <bruno@clisp.org>
37673
37674         * lib/glthread/threadlib.c: Include <stdlib.h>.
37675
37676 2009-01-25  Bruno Haible  <bruno@clisp.org>
37677
37678         * lib/glthread/threadlib.c (dummy): New declaration.
37679
37680 2009-01-25  Bruno Haible  <bruno@clisp.org>
37681
37682         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
37683         multibyte characters also for the GB18030 encoding. Don't crash when
37684         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
37685
37686 2009-01-25  Bruno Haible  <bruno@clisp.org>
37687
37688         Avoid redefining 'struct random_data' on OSF/1 5.1.
37689         * lib/stdlib.in.h: Include <random.h> if it exists.
37690         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
37691         HAVE_RANDOM_H. Include <random.h> when testing whether
37692         'struct random_data' exists.
37693         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
37694
37695 2009-01-25  Bruno Haible  <bruno@clisp.org>
37696
37697         Don't install charset.alias on MacOS X >= 10.3.
37698         * lib/localcharset.c (DARWIN7): New macro.
37699         (get_charset_aliases): Hardcode the result for Darwin7.
37700         * modules/localcharset (install-exec-local): Don't install
37701         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
37702
37703 2009-01-25  Bruno Haible  <bruno@clisp.org>
37704
37705         Don't install charset.alias on mingw and Cygwin.
37706         * modules/localcharset (install-exec-local): Don't install
37707         charset.alias on mingw and Cygwin, if the file does not yet exist.
37708         The result for these platforms is hardcoded in localcharset.c.
37709
37710 2009-01-25  Bruno Haible  <bruno@clisp.org>
37711
37712         Make it possible again to use AC_GNU_SOURCE together with gnulib.
37713         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
37714         before requiring AC_USE_SYSTEM_EXTENSIONS.
37715
37716 2009-01-25  Jim Meyering  <meyering@redhat.com>
37717
37718         c-strtod: avoid warnings
37719         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
37720         "assignment discards qualifiers from pointer target type" warnings.
37721
37722 2009-01-24  Bruno Haible  <bruno@clisp.org>
37723
37724         Add support for non-UTF-8 locales on MacOS X.
37725         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
37726         canonical encodings. For Darwin 7 and newer, don't map traditional
37727         encodings to UTF-8.
37728         Reported by Vincent Lefevre <vincent@vinc17.org>
37729         at <http://savannah.gnu.org/bugs/?25235>.
37730
37731 2009-01-24  Bruno Haible  <bruno@clisp.org>
37732
37733         * doc/gnulib.texi (Obsolete modules): New section.
37734         Reported by Mike Frysinger <vapier@gentoo.org>.
37735
37736 2009-01-24  Bruno Haible  <bruno@clisp.org>
37737
37738         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
37739         (%.dvi): New rule.
37740
37741 2009-01-24  Bruno Haible  <bruno@clisp.org>
37742
37743         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
37744         Reported by Eric Blake.
37745
37746 2009-01-24  Bruno Haible  <bruno@clisp.org>
37747
37748         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
37749         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
37750         Reported by Gary V. Vaughan <gary@gnu.org>.
37751
37752 2009-01-24  Bruno Haible  <bruno@clisp.org>
37753
37754         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
37755
37756 2009-01-23  Bruno Haible  <bruno@clisp.org>
37757
37758         Make c-strtod, c-strtold usable in libraries.
37759         * lib/c-strtod.c: Include string.h instead of xalloc.h.
37760         (C_STRTOD): Call strdup instead of xstrdup.
37761         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
37762         * modules/c-strtold (Depends-on): Likewise.
37763         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
37764         * NEWS: Mention the change.
37765         Reported by Michael Gold <mgold@ncf.ca>.
37766
37767 2009-01-23  Jim Meyering  <meyering@redhat.com>
37768
37769         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
37770         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
37771         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
37772
37773 2009-01-23  Simon Josefsson  <simon@josefsson.org>
37774
37775         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
37776         GNU CoreUtils.
37777         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
37778         * modules/version-etc (Description): Update.
37779
37780 2009-01-22  Bruno Haible  <bruno@clisp.org>
37781
37782         Cache the C locale object.
37783         * lib/c-strtod.c (c_locale_cache): New variable.
37784         (c_locale): New function.
37785         (C_STRTOD): Use it, and don't call freelocale.
37786         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
37787         Suggested by Paolo Bonzini.
37788
37789 2009-01-21  Bruno Haible  <bruno@clisp.org>
37790
37791         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
37792         conditions other than overflow.
37793
37794 2009-01-21  Bruno Haible  <bruno@clisp.org>
37795
37796         * lib/c-strtod.c: Include errno.h.
37797         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
37798         value from STRTOD_L and STRTOD.
37799
37800 2009-01-21  Bruno Haible  <bruno@clisp.org>
37801         and Jim Meyering  <meyering@redhat.com>
37802
37803         nanosleep: skip configure test (fail it) for apple universal builds
37804         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
37805         universal builds, assume that nanosleep does not work.
37806         * modules/nanosleep (Depends-on): Add multiarch.
37807
37808         mktime: skip configure test (fail it) for apple universal builds
37809         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
37810         universal builds, assume that mktime does not work.
37811         * modules/mktime (Depends-on): Add multiarch.
37812
37813 2009-01-21  Eric Blake  <ebb9@byu.net>
37814
37815         multiarch: avoid expand-before-require warning
37816         * modules/multiarch (configure.ac): Require, rather than expand,
37817         gl_MULTIARCH.
37818         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
37819         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
37820         enforce that all clients require it.  Partial reversion of
37821         2008-12-29 patch.
37822
37823         error: avoid expand-before-require warning
37824         * modules/errno (configure.ac): Require, rather than expand,
37825         gl_HEADER_ERRNO_H.
37826         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
37827         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
37828         enforce that all clients require it.
37829
37830         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
37831         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
37832         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
37833         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
37834
37835 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
37836
37837         Revert:
37838         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
37839
37840         regex: do not depend on obsolete modules.
37841         * modules/regex: Remove memcmp and memmove.
37842
37843 2009-01-20  Bruno Haible  <bruno@clisp.org>
37844
37845         Make the 'link' module link on Windows NT 4.
37846         * lib/link.c (_WIN32_WINNT): Don't define.
37847         (CreateHardLinkFuncType): New type.
37848         (CreateHardLinkFunc, initialized): New variables.
37849         (initialize): New function.
37850         (link): Invoke CreateHardLink indirectly through the function pointer.
37851
37852 2009-01-20  Bruno Haible  <bruno@clisp.org>
37853
37854         Fix compilation failure on mingw.
37855         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
37856
37857 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
37858
37859         * doc/c-strtod.texi: Mention a couple of restrictions.
37860
37861 2009-01-20  Jim Meyering  <meyering@redhat.com>
37862
37863         gettimeofday: move more declarations out of functions
37864         * lib/gettimeofday.c: Move extern declarations of tzset and
37865         gmtime out of containing functions.  Prompted by Bruno Haible.
37866
37867 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
37868
37869         regex: do not depend on obsolete modules.
37870         * modules/regex: Remove memcmp and memmove.
37871
37872 2009-01-19  Bruno Haible  <bruno@clisp.org>
37873
37874         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
37875         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
37876         gl_BIGENDIAN, not AC_C_BIGENDIAN.
37877         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
37878         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
37879
37880 2009-01-19  Bruno Haible  <bruno@clisp.org>
37881
37882         * tests/test-link.c: Include <errno.h>.
37883         (main): Exit with code 77 when a hard link cannot be created due to
37884         the file system.
37885         * tests/test-link.sh: Skip test when a hard link cannot be created due
37886         to the file system.
37887         Suggested by Eric Blake.
37888
37889 2009-01-19  Martin Lambers  <marlam@marlam.de>
37890
37891         * modules/link-tests: New file.
37892         * tests/test-link.sh: New file.
37893         * tests/test-link.c: New file.
37894
37895 2009-01-19  Eric Blake  <ebb9@byu.net>
37896
37897         doc: mention another function added in cygwin 1.7.0
37898         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
37899         Another new function in cygwin 1.7.
37900
37901 2009-01-19  Bruno Haible  <bruno@clisp.org>
37902
37903         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
37904         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
37905         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
37906         gl_BIGENDIAN, not AC_C_BIGENDIAN.
37907         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
37908         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
37909         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
37910         * m4/md4.m4 (gl_MD4): Likewise.
37911         * m4/md5.m4 (gl_MD5): Likewise.
37912         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
37913         * m4/sha1.m4 (gl_SHA1): Likewise.
37914         * m4/sha256.m4 (gl_SHA256): Likewise.
37915         * m4/sha512.m4 (gl_SHA512): Likewise.
37916
37917 2009-01-19  Bruno Haible  <bruno@clisp.org>
37918
37919         * modules/uniname/uniname-tests (Depends-on): Add progname.
37920         * tests/uniname/test-uninames.c: Include progname.h.
37921         (main): Call set_program_name.
37922
37923         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
37924         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
37925         (main): Call set_program_name.
37926
37927         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
37928         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
37929         (main): Call set_program_name.
37930
37931         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
37932         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
37933         (main): Call set_program_name.
37934
37935         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
37936         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
37937         (main): Call set_program_name.
37938
37939         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
37940         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
37941         (main): Call set_program_name.
37942
37943         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
37944         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
37945         (main): Call set_program_name.
37946
37947         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
37948         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
37949         (main): Call set_program_name.
37950
37951         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
37952         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
37953         (main): Call set_program_name.
37954
37955 2009-01-19  Eric Blake  <ebb9@byu.net>
37956
37957         test-unistd: test previous patch
37958         * tests/test-unistd.c: Test *_FILENO macros.
37959
37960         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
37961         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37962         Guarantee a definition.
37963         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
37964         * modules/unistd-safer (Depends-on): Add dependency on unistd.
37965         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
37966         * lib/dup-safer.c (STDERR_FILENO): Likewise.
37967         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37968         Likewise.
37969         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
37970         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
37971         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37972         Likewise.
37973         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
37974         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
37975         (STDERR_FILENO): Likewise.
37976         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
37977         (STDERR_FILENO): Likewise.
37978         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
37979         (STDERR_FILENO): Likewise.
37980         Reported by Elbert Pol.
37981
37982 2009-01-19  Eric Blake  <ebb9@byu.net>
37983
37984         doc: mention more functions added in cygwin 1.7.0
37985         * doc/posix-functions/abort.texi (abort): Update wording related
37986         to cygwin.
37987         * doc/posix-functions/daylight.texi (daylight): Likewise.
37988         * doc/posix-functions/optarg.texi (optarg): Likewise.
37989         * doc/posix-functions/optarg.texi (opterr): Likewise.
37990         * doc/posix-functions/optarg.texi (optind): Likewise.
37991         * doc/posix-functions/optarg.texi (optopt): Likewise.
37992         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
37993         worked in 1.5.x, and was withdrawn in 1.7.
37994         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
37995         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
37996         cygwin versions.
37997         * doc/posix-functions/perror.texi (perror): Likewise.
37998         * doc/posix-functions/printf.texi (printf): Likewise.
37999         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
38000         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
38001         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38002         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38003         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
38004         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
38005         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38006         Likewise.
38007         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38008         Likewise.
38009         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
38010         this function.
38011         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
38012         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
38013         Likewise.
38014         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
38015         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
38016         * doc/posix-functions/confstr.texi (confstr): Likewise.
38017         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
38018         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
38019         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
38020         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
38021         * doc/posix-functions/fputws.texi (fputws): Likewise.
38022         * doc/posix-functions/fwide.texi (fwide): Likewise.
38023         * doc/posix-functions/getwc.texi (getwc): Likewise.
38024         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
38025         * doc/posix-functions/putwc.texi (putwc): Likewise.
38026         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38027         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
38028         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
38029         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38030         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
38031         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
38032         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
38033         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
38034         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
38035         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
38036         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
38037
38038 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38039
38040         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
38041         * lib/ioctl.c: Include <sys/ioctl.h>.
38042
38043 2009-01-19  Simon Josefsson  <simon@josefsson.org>
38044
38045         * modules/getdate-tests (Depends-on): Add progname.
38046         * tests/test-getdate.c: Use progname module, to avoid link errors
38047         on non-glibc systems.
38048
38049 2009-01-18  Simon Josefsson  <simon@josefsson.org>
38050
38051         * modules/filenamecat-tests (Depends-on): Add progname.
38052         * modules/fstrcmp-tests (Depends-on): Likewise.
38053
38054         * tests/test-filenamecat.c: Use progname module, to avoid link
38055         errors on non-glibc systems.
38056         * tests/test-fstrcmp.c: Likewise.
38057
38058 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38059
38060         gettimeofday: avoid warning: nested extern declaration of 'localtime'
38061         * lib/gettimeofday.c: Move extern declaration out of function.
38062
38063 2009-01-18  Bruno Haible  <bruno@clisp.org>
38064
38065         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
38066         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
38067         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
38068
38069 2009-01-18  Bruno Haible  <bruno@clisp.org>
38070
38071         * lib/strftime.c (MEMPCPY): Remove unused macro.
38072         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
38073
38074 2009-01-18  Martin Lambers  <marlam@marlam.de>
38075
38076         New module 'link'.
38077         * lib/unistd.in.h (link): New declaration.
38078         * lib/link.c: New file.
38079         * m4/link.m4: New file.
38080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
38081         HAVE_LINK.
38082         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
38083         * modules/link: New file.
38084         * doc/posix-functions/link.texi: Mention the new module.
38085
38086 2009-01-18  Bruno Haible  <bruno@clisp.org>
38087
38088         * tests/test-avltree_list.c (main): Call set_program_name.
38089         * tests/test-avltree_oset.c (main): Likewise.
38090         * tests/test-obstack-printf.c: Include progname.h.
38091         (main): Call set_program_name.
38092         * tests/test-quotearg.c: Include progname.h.
38093         (main): Call set_program_name.
38094         * tests/test-xmemdup0.c: Include progname.h.
38095         (main): Call set_program_name.
38096
38097 2009-01-18  Bruno Haible  <bruno@clisp.org>
38098
38099         New module 'alphasort'.
38100         * lib/dirent.in.h (alphasort): New declaration.
38101         * lib/alphasort.c: New file, from glibc with modifications.
38102         * m4/alphasort.m4: New file.
38103         * modules/alphasort: New file.
38104         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
38105         HAVE_ALPHASORT.
38106         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
38107         HAVE_ALPHASORT.
38108         * doc/posix-functions/alphasort.texi: Mention the new module and the
38109         portability problems.
38110
38111 2009-01-18  Bruno Haible  <bruno@clisp.org>
38112
38113         New module 'scandir'.
38114         * lib/dirent.in.h (scandir): New declaration.
38115         * lib/scandir.c: New file, from glibc with modifications.
38116         * m4/scandir.m4: New file.
38117         * modules/scandir: New file.
38118         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
38119         HAVE_SCANDIR.
38120         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
38121         HAVE_SCANDIR.
38122         * doc/posix-functions/scandir.texi: Mention the new module and the
38123         portability problems.
38124
38125 2009-01-17  Bruno Haible  <bruno@clisp.org>
38126
38127         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
38128         Update documentation.
38129         (func_remove_suffix): Escape all dots in the suffix. Update
38130         documentation.
38131         (func_filter_filelist): Update documentation.
38132         Reported by Ralf Wildenhues.
38133
38134 2009-01-17  Bruno Haible  <bruno@clisp.org>
38135
38136         * modules/dprintf-posix-tests: New file.
38137         * tests/test-dprintf-posix.sh: New file.
38138         * tests/test-dprintf-posix.c: New file.
38139
38140         New modules 'dprintf', 'dprintf-posix'.
38141         * lib/stdio.in.h (dprintf): New declaration.
38142         * lib/dprintf.c: New file.
38143         * m4/dprintf.m4: New file.
38144         * m4/dprintf-posix.m4: New file.
38145         * modules/dprintf: New file.
38146         * modules/dprintf-posix: New file.
38147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
38148         HAVE_DPRINTF, REPLACE_DPRINTF.
38149         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
38150         HAVE_DPRINTF, REPLACE_DPRINTF.
38151         * doc/posix-functions/dprintf.texi: Mention the new modules.
38152
38153 2009-01-17  Bruno Haible  <bruno@clisp.org>
38154
38155         * modules/vdprintf-posix-tests: New file.
38156         * tests/test-vdprintf-posix.sh: New file.
38157         * tests/test-vdprintf-posix.c: New file.
38158
38159         New modules 'vdprintf', 'vdprintf-posix'.
38160         * lib/stdio.in.h (vdprintf): New declaration.
38161         * lib/vdprintf.c: New file.
38162         * m4/vdprintf.m4: New file.
38163         * m4/vdprintf-posix.m4: New file.
38164         * modules/vdprintf: New file.
38165         * modules/vdprintf-posix: New file.
38166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
38167         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38168         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
38169         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38170         * doc/posix-functions/vdprintf.texi: Mention the new modules.
38171
38172 2009-01-17  Bruno Haible  <bruno@clisp.org>
38173
38174         Fix replacement of fopen on mingw.
38175         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
38176         mingw.
38177
38178 2009-01-17  Bruno Haible  <bruno@clisp.org>
38179
38180         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
38181         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
38182
38183 2009-01-17  Bruno Haible  <bruno@clisp.org>
38184
38185         Avoid test-fflush2.sh failure on mingw.
38186         * tests/test-fflush2.c: Include binary-io.h.
38187         (main): Put standard input into binary mode.
38188         * modules/fflush-tests (Depends-on): Add binary-io.
38189
38190 2009-01-17  Bruno Haible  <bruno@clisp.org>
38191
38192         * lib/wchar.in.h: In another particular situation, include only the
38193         system's <wchar.h> file.
38194         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
38195         Reported by Albert Chin-A-Young <china@thewrittenword.com>
38196         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
38197
38198 2009-01-17  Bruno Haible  <bruno@clisp.org>
38199
38200         Support for stripping executables in --enable-relocatable.
38201         * build-aux/install-reloc: Expect one more argument, or an environment
38202         variable RELOC_STRIP_PROG. If set, strip the destination program and
38203         its wrapper.
38204         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
38205         RELOC_STRIP_PROG.
38206         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
38207         to set RELOCATABLE_STRIP.
38208         * NEWS: Mention the new Makefile requirement.
38209
38210 2009-01-17  Bruno Haible  <bruno@clisp.org>
38211
38212         * build-aux/install-reloc: Remove debugging information left over by
38213         C compiler on MacOS X.
38214
38215 2009-01-17  Bruno Haible  <bruno@clisp.org>
38216
38217         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
38218         * lib/progreloc.c (find_executable): Fix type of pointer passed to
38219         _NSGetExecutablePath.
38220
38221 2009-01-16  Jim Meyering  <meyering@redhat.com>
38222
38223         strerror: avoid warnings about discarding "const"
38224         * lib/strerror.c (rpl_strerror): Instead of returning a const
38225         string from each and every "case", use a variable, and add a single
38226         cast after the switch.
38227
38228 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
38229
38230         * lib/arpa_inet.in.h: Add extern "C" block for C++.
38231
38232 2009-01-16  Bruno Haible  <bruno@clisp.org>
38233
38234         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
38235         array initializer syntax that also works in C++ mode.
38236         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38237
38238 2009-01-16  Jim Meyering  <meyering@redhat.com>
38239
38240         poll: suppress a warning
38241         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
38242         to ignore "...unsigned expression < 0 is always false" warnings.
38243
38244 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
38245
38246         poll: remove declarations of unused variables
38247         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
38248         sockbuf and optlen.
38249
38250 2009-01-15  Bruno Haible  <bruno@clisp.org>
38251
38252         Make fflush-after-ungetc POSIX compliant on BSD systems.
38253         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
38254         (clear_ungetc_buffer): Implement also for other systems.
38255         (rpl_fflush): On glibc systems, invoke
38256         clear_ungetc_buffer_preserving_position. Otherwise, invoke
38257         clear_ungetc_buffer after fetching the stream's position, not before.
38258
38259 2009-01-15  Bruno Haible  <bruno@clisp.org>
38260
38261         Make fflush-after-ungetc POSIX compliant on glibc systems.
38262         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
38263         after ungetc.
38264         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
38265         (rpl_fflush): On glibc systems, simply call the system's fflush
38266         function after clearing the ungetc buffer.
38267         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
38268         Instead, lseek only to the end of file, then use the system's fseeko
38269         for the rest. On glibc systems, reset the EOF indicator bit.
38270
38271 2009-01-15  Jim Meyering  <meyering@redhat.com>
38272
38273         openmp.m4: revert quote-adding change, for portability to older autoconf
38274         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
38275         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
38276         Simon Josefsson noticed the problem when using autoconf-2.61.
38277
38278 2009-01-15  Bruno Haible  <bruno@clisp.org>
38279
38280         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
38281         * tests/test-fflush2.c (ASSERT): Always fail.
38282         (main): Add two tests for fflush() after ungetc(), taking into account
38283         the Austin Group's clarification.
38284         Suggested by Eric Blake.
38285
38286 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
38287
38288         mktime.m4: remove K&R-style function prototypes
38289         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
38290         for the Sun C++ compiler.
38291
38292 2009-01-14  Bruno Haible  <bruno@clisp.org>
38293
38294         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
38295         while including <wchar.h>.
38296         * lib/wchar.in.h: In two particular situations on HP-UX, include only
38297         the system's <wchar.h> file.
38298         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38299
38300 2009-01-14  Bruno Haible  <bruno@clisp.org>
38301
38302         * m4/csharp.m4: Don't mention gettext on the serial number line.
38303         * m4/csharpexec.m4: Likewise.
38304         * m4/eaccess.m4: Likewise.
38305         * m4/javaexec.m4: Likewise.
38306         * m4/sig_atomic_t.m4: Likewise.
38307         * m4/tmpdir.m4: Likewise.
38308         * m4/intldir.m4: Bump gettext version.
38309         * m4/lib-ld.m4: Likewise.
38310
38311 2009-01-14  Bruno Haible  <bruno@clisp.org>
38312
38313         * lib/progname.c (set_program_name): Add more comments.
38314         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38315
38316 2009-01-14  Simon Josefsson  <simon@josefsson.org>
38317
38318         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
38319         were sys/stat.h does not define it.
38320
38321 2009-01-14  Jim Meyering  <meyering@redhat.com>
38322
38323         many *.m4 files: improve m4 quoting
38324         99% of this change was performed by running the following commands:
38325         git ls-files | grep '\.m4$' | xargs perl -pi \
38326           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
38327           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38328           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38329           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
38330         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
38331         The remainder were to add Copyright dates, increment serial numbers,
38332         undo some changes in comments, exclude m4/intl.m4, and add quotes
38333         around the "1" in ",1" where the unusual spacing prohibited the
38334         above regexps from doing the job.  For more details, see
38335         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
38336         * m4/acl.m4: Modified.
38337         * m4/afs.m4: Likewise.
38338         * m4/alloca.m4: Likewise.
38339         * m4/argp.m4: Likewise.
38340         * m4/argz.m4: Likewise.
38341         * m4/atexit.m4: Likewise.
38342         * m4/bison-i18n.m4: Likewise.
38343         * m4/bison.m4: Likewise.
38344         * m4/byteswap.m4: Likewise.
38345         * m4/c-stack.m4: Likewise.
38346         * m4/c-strtod.m4: Likewise.
38347         * m4/calloc.m4: Likewise.
38348         * m4/canonicalize-lgpl.m4: Likewise.
38349         * m4/chown.m4: Likewise.
38350         * m4/clock_time.m4: Likewise.
38351         * m4/codeset.m4: Likewise.
38352         * m4/copy-file.m4: Likewise.
38353         * m4/csharp.m4: Likewise.
38354         * m4/csharpcomp.m4: Likewise.
38355         * m4/csharpexec.m4: Likewise.
38356         * m4/d-ino.m4: Likewise.
38357         * m4/d-type.m4: Likewise.
38358         * m4/dirfd.m4: Likewise.
38359         * m4/double-slash-root.m4: Likewise.
38360         * m4/eaccess.m4: Likewise.
38361         * m4/eealloc.m4: Likewise.
38362         * m4/environ.m4: Likewise.
38363         * m4/errno_h.m4: Likewise.
38364         * m4/euidaccess.m4: Likewise.
38365         * m4/execute.m4: Likewise.
38366         * m4/fatal-signal.m4: Likewise.
38367         * m4/fchdir.m4: Likewise.
38368         * m4/fcntl_h.m4: Likewise.
38369         * m4/fileblocks.m4: Likewise.
38370         * m4/filenamecat.m4: Likewise.
38371         * m4/findprog.m4: Likewise.
38372         * m4/flexmember.m4: Likewise.
38373         * m4/fnmatch.m4: Likewise.
38374         * m4/fopen.m4: Likewise.
38375         * m4/fpending.m4: Likewise.
38376         * m4/fprintf-posix.m4: Likewise.
38377         * m4/free.m4: Likewise.
38378         * m4/frexp.m4: Likewise.
38379         * m4/frexpl.m4: Likewise.
38380         * m4/fsusage.m4: Likewise.
38381         * m4/ftruncate.m4: Likewise.
38382         * m4/gc-camellia.m4: Likewise.
38383         * m4/gc-random.m4: Likewise.
38384         * m4/gc.m4: Likewise.
38385         * m4/getaddrinfo.m4: Likewise.
38386         * m4/getcwd-abort-bug.m4: Likewise.
38387         * m4/getcwd-path-max.m4: Likewise.
38388         * m4/getdate.m4: Likewise.
38389         * m4/getdomainname.m4: Likewise.
38390         * m4/getgroups.m4: Likewise.
38391         * m4/gethostname.m4: Likewise.
38392         * m4/gethrxtime.m4: Likewise.
38393         * m4/getline.m4: Likewise.
38394         * m4/getloadavg.m4: Likewise.
38395         * m4/getndelim2.m4: Likewise.
38396         * m4/getpass.m4: Likewise.
38397         * m4/gettext.m4: Likewise.
38398         * m4/gettime.m4: Likewise.
38399         * m4/gettimeofday.m4: Likewise.
38400         * m4/gnulib-common.m4: Likewise.
38401         * m4/group-member.m4: Likewise.
38402         * m4/host-os.m4: Likewise.
38403         * m4/iconv.m4: Likewise.
38404         * m4/iconv_open.m4: Likewise.
38405         * m4/inet_ntop.m4: Likewise.
38406         * m4/inet_pton.m4: Likewise.
38407         * m4/inline.m4: Likewise.
38408         * m4/intldir.m4: Likewise.
38409         * m4/intlmacosx.m4: Likewise.
38410         * m4/intmax.m4: Likewise.
38411         * m4/intmax_t.m4: Likewise.
38412         * m4/inttypes.m4: Likewise.
38413         * m4/inttypes_h.m4: Likewise.
38414         * m4/inttypes-pri.m4: Likewise.
38415         * m4/isapipe.m4: Likewise.
38416         * m4/isnand.m4: Likewise.
38417         * m4/isnanf.m4: Likewise.
38418         * m4/isnanl.m4: Likewise.
38419         * m4/javacomp.m4: Likewise.
38420         * m4/javaexec.m4: Likewise.
38421         * m4/jm-winsz1.m4: Likewise.
38422         * m4/jm-winsz2.m4: Likewise.
38423         * m4/lchown.m4: Likewise.
38424         * m4/lcmessage.m4: Likewise.
38425         * m4/ldexpl.m4: Likewise.
38426         * m4/lib-ld.m4: Likewise.
38427         * m4/lib-link.m4: Likewise.
38428         * m4/libsigsegv.m4: Likewise.
38429         * m4/link-follow.m4: Likewise.
38430         * m4/localcharset.m4: Likewise.
38431         * m4/locale-fr.m4: Likewise.
38432         * m4/locale-ja.m4: Likewise.
38433         * m4/locale-tr.m4: Likewise.
38434         * m4/locale-zh.m4: Likewise.
38435         * m4/lock.m4: Likewise.
38436         * m4/longlong.m4: Likewise.
38437         * m4/ls-mntd-fs.m4: Likewise.
38438         * m4/lstat.m4: Likewise.
38439         * m4/malloc.m4: Likewise.
38440         * m4/mathl.m4: Likewise.
38441         * m4/mbrtowc.m4: Likewise.
38442         * m4/mbstate_t.m4: Likewise.
38443         * m4/mbswidth.m4: Likewise.
38444         * m4/memchr.m4: Likewise.
38445         * m4/memcmp.m4: Likewise.
38446         * m4/memcpy.m4: Likewise.
38447         * m4/memmem.m4: Likewise.
38448         * m4/memmove.m4: Likewise.
38449         * m4/mempcpy.m4: Likewise.
38450         * m4/memrchr.m4: Likewise.
38451         * m4/memset.m4: Likewise.
38452         * m4/minmax.m4: Likewise.
38453         * m4/mkdir-slash.m4: Likewise.
38454         * m4/mkdtemp.m4: Likewise.
38455         * m4/mktime.m4: Likewise.
38456         * m4/mmap-anon.m4: Likewise.
38457         * m4/mountlist.m4: Likewise.
38458         * m4/nanosleep.m4: Likewise.
38459         * m4/nls.m4: Likewise.
38460         * m4/nocrash.m4: Likewise.
38461         * m4/open.m4: Likewise.
38462         * m4/openat.m4: Likewise.
38463         * m4/openmp.m4: Likewise.
38464         * m4/pathmax.m4: Likewise.
38465         * m4/perl.m4: Likewise.
38466         * m4/physmem.m4: Likewise.
38467         * m4/pipe.m4: Likewise.
38468         * m4/po.m4: Likewise.
38469         * m4/poll.m4: Likewise.
38470         * m4/posixtm.m4: Likewise.
38471         * m4/posixver.m4: Likewise.
38472         * m4/printf-frexp.m4: Likewise.
38473         * m4/printf-frexpl.m4: Likewise.
38474         * m4/printf-posix.m4: Likewise.
38475         * m4/printf-posix-rpl.m4: Likewise.
38476         * m4/printf.m4: Likewise.
38477         * m4/progtest.m4: Likewise.
38478         * m4/putenv.m4: Likewise.
38479         * m4/readline.m4: Likewise.
38480         * m4/readlink.m4: Likewise.
38481         * m4/readutmp.m4: Likewise.
38482         * m4/realloc.m4: Likewise.
38483         * m4/regex.m4: Likewise.
38484         * m4/relocatable.m4: Likewise.
38485         * m4/relocatable-lib.m4: Likewise.
38486         * m4/rename-dest-slash.m4: Likewise.
38487         * m4/rename.m4: Likewise.
38488         * m4/rmdir-errno.m4: Likewise.
38489         * m4/rmdir.m4: Likewise.
38490         * m4/roundf.m4: Likewise.
38491         * m4/roundl.m4: Likewise.
38492         * m4/rpmatch.m4: Likewise.
38493         * m4/save-cwd.m4: Likewise.
38494         * m4/selinux-selinux-h.m4: Likewise.
38495         * m4/setenv.m4: Likewise.
38496         * m4/settime.m4: Likewise.
38497         * m4/sig2str.m4: Likewise.
38498         * m4/sig_atomic_t.m4: Likewise.
38499         * m4/signalblocking.m4: Likewise.
38500         * m4/signbit.m4: Likewise.
38501         * m4/sigpipe.m4: Likewise.
38502         * m4/sockets.m4: Likewise.
38503         * m4/sockpfaf.m4: Likewise.
38504         * m4/st_dm_mode.m4: Likewise.
38505         * m4/stat-time.m4: Likewise.
38506         * m4/stdbool.m4: Likewise.
38507         * m4/stdint.m4: Likewise.
38508         * m4/stdint_h.m4: Likewise.
38509         * m4/stpcpy.m4: Likewise.
38510         * m4/stpncpy.m4: Likewise.
38511         * m4/strcase.m4: Likewise.
38512         * m4/strchrnul.m4: Likewise.
38513         * m4/strcspn.m4: Likewise.
38514         * m4/strdup.m4: Likewise.
38515         * m4/strftime.m4: Likewise.
38516         * m4/strndup.m4: Likewise.
38517         * m4/strnlen.m4: Likewise.
38518         * m4/strpbrk.m4: Likewise.
38519         * m4/strptime.m4: Likewise.
38520         * m4/strsep.m4: Likewise.
38521         * m4/strtod.m4: Likewise.
38522         * m4/strtoimax.m4: Likewise.
38523         * m4/strtok_r.m4: Likewise.
38524         * m4/strtol.m4: Likewise.
38525         * m4/strtoll.m4: Likewise.
38526         * m4/strtoul.m4: Likewise.
38527         * m4/strtoull.m4: Likewise.
38528         * m4/strtoumax.m4: Likewise.
38529         * m4/strverscmp.m4: Likewise.
38530         * m4/threadlib.m4: Likewise.
38531         * m4/timegm.m4: Likewise.
38532         * m4/tm_gmtoff.m4: Likewise.
38533         * m4/tmpdir.m4: Likewise.
38534         * m4/tmpfile.m4: Likewise.
38535         * m4/tzset.m4: Likewise.
38536         * m4/uintmax_t.m4: Likewise.
38537         * m4/unlinkdir.m4: Likewise.
38538         * m4/unlocked-io.m4: Likewise.
38539         * m4/uptime.m4: Likewise.
38540         * m4/userspec.m4: Likewise.
38541         * m4/utimbuf.m4: Likewise.
38542         * m4/utime.m4: Likewise.
38543         * m4/utimes-null.m4: Likewise.
38544         * m4/utimes.m4: Likewise.
38545         * m4/vararrays.m4: Likewise.
38546         * m4/vasnprintf.m4: Likewise.
38547         * m4/vfprintf-posix.m4: Likewise.
38548         * m4/vprintf-posix.m4: Likewise.
38549         * m4/wait-process.m4: Likewise.
38550         * m4/wchar_t.m4: Likewise.
38551         * m4/wint_t.m4: Likewise.
38552         * m4/write-any-file.m4: Likewise.
38553         * m4/yield.m4: Likewise.
38554
38555 2009-01-13  Bruno Haible  <bruno@clisp.org>
38556
38557         Avoid test-copy-file.sh failures when ACL support insufficient.
38558         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
38559         TESTS_ENVIRONMENT.
38560         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
38561         Reported by Jim Meyering.
38562
38563 2009-01-13  Bruno Haible  <bruno@clisp.org>
38564
38565         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
38566         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
38567         * modules/unistdio/u8-printf-parse (Files): Likewise.
38568         * modules/unistdio/u32-printf-parse (Files): Likewise.
38569         * modules/unistdio/ulc-printf-parse (Files): Likewise.
38570
38571 2009-01-13  Simon Josefsson  <simon@josefsson.org>
38572
38573         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
38574         and m4/inttypes_h.m4 too.
38575
38576 2009-01-12  Eric Blake  <ebb9@byu.net>
38577
38578         tests: IRIX 6.2 cc can't compile -0.0 into .data
38579         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
38580         rather than at compile-time.
38581         * tests/test-floorl.c (minus_zero): Likewise.
38582         * tests/test-frexpl.c (minus_zero): Likewise.
38583         * tests/test-isnan.c (minus_zerol): Likewise.
38584         * tests/test-isnanl.h (minus_zero): Likewise.
38585         * tests/test-ldexpl.c (minus_zero): Likewise.
38586         * tests/test-roundl.c (minus_zero): Likewise.
38587         * tests/test-signbit.c (minus_zerol): Likewise.
38588         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38589         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38590         * tests/test-truncl.c (minus_zero): Likewise.
38591         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38592         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38593         Reported by Tom G. Christensen and Nelson H. F. Beebe.
38594
38595 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38596
38597         regex: fix glibc bug 9697
38598         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
38599         handling.
38600
38601 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38602
38603         regex: fix glibc bug 697
38604         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
38605         being NULL also if there are no backreferences.
38606
38607 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38608
38609         regex: merge glibc changes
38610         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
38611         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
38612         re_string_skip_chars, re_string_reconstruct): Likewise.
38613         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
38614
38615 2009-01-07  Jim Meyering  <meyering@redhat.com>
38616
38617         poll: filter through cppi
38618         * lib/poll.c: Indent cpp directives to reflect nesting.
38619
38620 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
38621
38622         poll: don't return uninitialized
38623         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
38624
38625 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
38626
38627         avoid compile failure on AIX 6.1
38628         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
38629         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
38630
38631 2009-01-04  Jim Meyering  <meyering@redhat.com>
38632
38633         remove duplicate inclusion of <stdio.h>
38634         * tests/test-fprintf-posix.c: Likewise.
38635         * tests/test-printf-posix.c: Likewise.
38636         * tests/test-snprintf-posix.c: Likewise.
38637         * tests/test-sprintf-posix.c: Likewise.
38638         * tests/test-vasprintf-posix.c: Likewise.
38639         * tests/test-vfprintf-posix.c: Likewise.
38640         * tests/test-vprintf-posix.c: Likewise.
38641         * tests/test-vsnprintf-posix.c: Likewise.
38642         * tests/test-vsprintf-posix.c: Likewise.
38643
38644 2009-01-03  Jim Meyering  <meyering@redhat.com>
38645
38646         gnulib-tool: fix sed-based filtering
38647         * gnulib-tool (func_filter_filelist): Remove extra backslash
38648         in sed_fff_filter definition.
38649
38650 2009-01-02  Jim Meyering  <meyering@redhat.com>
38651
38652         strftime: avoid compilation failure on Solaris 2.6
38653         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
38654         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
38655         Don't #define mbrlen or mbsinit, since now they're guaranteed to
38656         be available.  Reported by Tom G. Christensen.  Details in
38657         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
38658
38659 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38660             Bruno Haible  <bruno@clisp.org>
38661
38662         Speed up gnulib-tool by doing more string processing through shell
38663         built-ins.
38664         * gnulib-tool (fast_func_append): New variable.
38665         (func_remove_prefix, func_remove_suffix): New functions.
38666         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
38667         (func_filter_filelist): New function.
38668         (func_get_dependencies): Use func_remove_suffix instead of sed.
38669         (func_get_automake_snippet): Use func_filter_filelist instead of a
38670         subshell and sed invocation.
38671
38672 2009-01-01  Bruno Haible  <bruno@clisp.org>
38673
38674         Fix a security bug.
38675         * gnulib-tool (func_import, import, update): Don't allow the characters
38676         '"', '$', '`', '\' in macro arguments that become part of commands that
38677         are evaluated.
38678
38679 2009-01-01  Bruno Haible  <bruno@clisp.org>
38680
38681         * gnulib-tool (func_reset_sigpipe): Add more comments.
38682
38683 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38684
38685         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
38686         func_emit_tests_Makefile_am, func_import): Abort loops early if we
38687         already know the answer.
38688
38689 2009-01-01  Jim Meyering  <meyering@redhat.com>
38690
38691         * lib/version-etc.c (version_etc_va): Update copyright year.
38692
38693 2008-12-30  Bruno Haible  <bruno@clisp.org>
38694
38695         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
38696         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
38697         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
38698
38699 2008-12-29  Eric Blake  <ebb9@byu.net>
38700
38701         multiarch: avoid autoconf AC_REQUIRE bug
38702         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
38703         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
38704         2.63 and older.
38705         Reported by Bruno Haible, and analyzed in
38706         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
38707
38708 2008-12-29  Bruno Haible  <bruno@clisp.org>
38709
38710         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
38711         files in subdirectories correctly.
38712         Reported by Ralf Wildenhues.
38713
38714 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38715
38716         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
38717         rather than 'join FILE -', for Solaris join.
38718
38719 2008-12-29  Bruno Haible  <bruno@clisp.org>
38720
38721         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
38722         quoting.
38723         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
38724         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
38725         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
38726         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
38727         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
38728         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
38729         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
38730         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
38731         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
38732         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
38733         * m4/nls.m4 (AM_NLS): Likewise.
38734         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
38735         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
38736         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
38737         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
38738         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
38739         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
38740         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
38741         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
38742         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
38743         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38744         * m4/xsize.m4 (gl_XSIZE): Likewise.
38745         Suggested by Jim Meyering.
38746
38747 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38748
38749         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
38750         * lib/parse-duration.c: use a switch instead of cascading if's.
38751
38752 2008-12-29  Eric Blake  <ebb9@byu.net>
38753
38754         wchar.h: supply WEOF on Irix 5.3
38755         * lib/wchar.in.h (wint_t): Also supply WEOF.
38756         * lib/wctype.in.h (wint_t): Likewise.
38757         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
38758         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
38759         Reported by Tom G. Christensen.
38760
38761 2008-12-26  Bruno Haible  <bruno@clisp.org>
38762
38763         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
38764         i486, i586, i686.
38765
38766 2008-12-26  Bruno Haible  <bruno@clisp.org>
38767
38768         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
38769
38770 2008-12-26  Bruno Haible  <bruno@clisp.org>
38771
38772         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
38773         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
38774         not __STDC_CONSTANT_MACROS.
38775         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38776
38777 2008-12-25  Bruno Haible  <bruno@clisp.org>
38778
38779         Add support for universal builds to vasnprintf.
38780         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
38781         universal builds, guess no.
38782         * modules/vasnprintf-posix (Depends-on): Add multiarch.
38783         * modules/vasprintf-posix (Depends-on): Likewise.
38784         * modules/fprintf-posix (Depends-on): Likewise.
38785         * modules/vfprintf-posix (Depends-on): Likewise.
38786         * modules/snprintf-posix (Depends-on): Likewise.
38787         * modules/vsnprintf-posix (Depends-on): Likewise.
38788         * modules/sprintf-posix (Depends-on): Likewise.
38789         * modules/vsprintf-posix (Depends-on): Likewise.
38790         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38791         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38792         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38793         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38794         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38795         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38796         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38797
38798         Add support for universal builds to <inttypes.h>.
38799         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
38800         _SCNu64_PREFIX): In Apple
38801         universal builds, define directly, using _LP64.
38802         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
38803         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
38804         * modules/inttypes (Depends-on): Add multiarch.
38805         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38806
38807         Add support for universal builds to <stdint.h>.
38808         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
38809         universal builds, define directly, using _LP64.
38810         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
38811         Apple universal builds, don't test for the size and suffix of ptrdiff_t
38812         and size_t.
38813         * modules/stdint (Depends-on): Add multiarch.
38814         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38815
38816         New module 'multiarch'.
38817         * modules/multiarch: New file.
38818         * m4/multiarch.m4: New file.
38819
38820 2008-12-25  Bruno Haible  <bruno@clisp.org>
38821
38822         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
38823
38824 2008-12-25  Bruno Haible  <bruno@clisp.org>
38825
38826         * modules/btowc (License): Relicense under LGPLv2+.
38827         * modules/mbsinit (License): Likewise.
38828         * modules/mbrtowc (License): Likewise.
38829         * modules/wcrtomb (License): Likewise.
38830         * modules/streq (License): Likewise.
38831         Reported by David Lutterkort <lutter@redhat.com>.
38832
38833 2008-12-23  Bruno Haible  <bruno@clisp.org>
38834
38835         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
38836
38837 2008-12-23  Bruno Haible  <bruno@clisp.org>
38838
38839         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
38840         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
38841         GETADDRINFO_LIB, not in LIBS.
38842         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
38843         * modules/canon-host (Link): Likewise.
38844         * NEWS: Mention the change.
38845         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
38846         GETADDRINFO_LIB.
38847
38848 2008-12-22  Bruno Haible  <bruno@clisp.org>
38849
38850         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
38851         * doc/posix-functions/iswalpha_l.texi: Likewise.
38852         * doc/posix-functions/iswblank_l.texi: Likewise.
38853         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38854         * doc/posix-functions/iswctype_l.texi: Likewise.
38855         * doc/posix-functions/iswdigit_l.texi: Likewise.
38856         * doc/posix-functions/iswgraph_l.texi: Likewise.
38857         * doc/posix-functions/iswlower_l.texi: Likewise.
38858         * doc/posix-functions/iswprint_l.texi: Likewise.
38859         * doc/posix-functions/iswpunct_l.texi: Likewise.
38860         * doc/posix-functions/iswspace_l.texi: Likewise.
38861         * doc/posix-functions/iswupper_l.texi: Likewise.
38862         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38863         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
38864         * doc/posix-functions/open_wmemstream.texi: Likewise.
38865         * doc/posix-functions/swscanf.texi: Likewise.
38866         * doc/posix-functions/towctrans_l.texi: Likewise.
38867         * doc/posix-functions/towlower.texi: Likewise.
38868         * doc/posix-functions/towlower_l.texi: Likewise.
38869         * doc/posix-functions/towupper.texi: Likewise.
38870         * doc/posix-functions/towupper_l.texi: Likewise.
38871         * doc/posix-functions/vfwprintf.texi: Likewise.
38872         * doc/posix-functions/vfwscanf.texi: Likewise.
38873         * doc/posix-functions/vswscanf.texi: Likewise.
38874         * doc/posix-functions/vwprintf.texi: Likewise.
38875         * doc/posix-functions/vwscanf.texi: Likewise.
38876         * doc/posix-functions/wcpcpy.texi: Likewise.
38877         * doc/posix-functions/wcpncpy.texi: Likewise.
38878         * doc/posix-functions/wcscasecmp.texi: Likewise.
38879         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
38880         * doc/posix-functions/wcscoll_l.texi: Likewise.
38881         * doc/posix-functions/wcsdup.texi: Likewise.
38882         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38883         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
38884         * doc/posix-functions/wcsnlen.texi: Likewise.
38885         * doc/posix-functions/wcsnrtombs.texi: Likewise.
38886         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38887         * doc/posix-functions/wctrans_l.texi: Likewise.
38888         * doc/posix-functions/wctype_l.texi: Likewise.
38889         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
38890         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
38891         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
38892         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
38893         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
38894         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
38895         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
38896         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
38897         * doc/glibc-functions/wcschrnul.texi: Likewise.
38898         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38899         * doc/glibc-functions/wcstod_l.texi: Likewise.
38900         * doc/glibc-functions/wcstof_l.texi: Likewise.
38901         * doc/glibc-functions/wcstol_l.texi: Likewise.
38902         * doc/glibc-functions/wcstold_l.texi: Likewise.
38903         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38904         * doc/glibc-functions/wcstoq.texi: Likewise.
38905         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38906         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38907         * doc/glibc-functions/wcstouq.texi: Likewise.
38908         * doc/glibc-functions/wmempcpy.texi: Likewise.
38909
38910 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
38911             Eric Blake  <ebb9@byu.net>
38912             Paolo Bonzini  <bonzini@gnu.org>
38913             Bruno Haible  <bruno@clisp.org>
38914
38915         Make c-stack work on Haiku.
38916         * lib/c-stack.c (SA_ONSTACK): Define fallback.
38917         (c_stack_action): Use SA_ONSTACK flag.
38918
38919 2008-12-22  Bruno Haible  <bruno@clisp.org>
38920
38921         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
38922
38923 2008-12-22  Bruno Haible  <bruno@clisp.org>
38924
38925         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
38926         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
38927         being overridden.
38928         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
38929         New macros.
38930         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
38931         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
38932         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
38933         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
38934
38935 2008-12-22  Bruno Haible  <bruno@clisp.org>
38936
38937         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
38938         from test code.
38939
38940 2008-12-22  Eric Blake  <ebb9@byu.net>
38941
38942         Avoid gcc warnings on cygwin.
38943         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
38944         Avoid unused variable.
38945         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
38946         Likewise.
38947
38948 2008-12-22  Bruno Haible  <bruno@clisp.org>
38949
38950         Remove HAVE_MBRTOWC conditionals.
38951         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
38952         (mbscasecmp): Assume mbrtowc function.
38953         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
38954         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
38955         * lib/mbschr.c: Include mbuiter.h unconditionally.
38956         (mbschr): Assume mbrtowc function.
38957         * lib/mbscspn.c: Include mbuiter.h unconditionally.
38958         (mbscspn): Assume mbrtowc function.
38959         * lib/mbslen.c: Include mbuiter.h unconditionally.
38960         (mbslen): Assume mbrtowc function.
38961         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
38962         (mbsncasecmp): Assume mbrtowc function.
38963         * lib/mbsnlen.c: Include mbiter.h unconditionally.
38964         (mbsnlen): Assume mbrtowc function.
38965         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
38966         (mbspbrk): Assume mbrtowc function.
38967         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
38968         (mbspcasecmp): Assume mbrtowc function.
38969         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
38970         (mbsrchr): Assume mbrtowc function.
38971         * lib/mbssep.c: Include mbuiter.h unconditionally.
38972         (mbssep): Assume mbrtowc function.
38973         * lib/mbsspn.c: Include mbuiter.h unconditionally.
38974         (mbsspn): Assume mbrtowc function.
38975         * lib/mbsstr.c: Include mbuiter.h unconditionally.
38976         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
38977         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
38978         (mbstok_r): Assume mbrtowc function.
38979         * lib/propername.c: Include mbuiter.h unconditionally.
38980         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
38981         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
38982         (trim2): Assume mbrtowc function.
38983         * lib/mbswidth.c (mbsinit): Remove fallback definition.
38984         (mbsnwidth): Assume mbrtowc function.
38985         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
38986         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
38987         fallback definitions.
38988         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
38989
38990 2008-12-22  Bruno Haible  <bruno@clisp.org>
38991
38992         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
38993
38994 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
38995
38996         * modules/regex: Request emulations for the mb*/wc* functions we need.
38997         * m4/regex.m4: Don't look for those functions here.
38998         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
38999
39000 2008-12-22  Bruno Haible  <bruno@clisp.org>
39001
39002         * modules/fnmatch (Depends-on): Remove duplicated dependency.
39003
39004 2008-12-21  Bruno Haible  <bruno@clisp.org>
39005
39006         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
39007         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
39008         (Include): Remove conditionalization.
39009         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
39010         (Include): Remove conditionalization.
39011         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
39012         (Include): Remove conditionalization.
39013         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
39014         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39015         * NEWS: Mention the change.
39016         Reported by Alan Hourihane <alanh@fairlite.co.uk>
39017         via Sergey Poznyakoff <gray@gnu.org.ua>.
39018
39019 2008-12-21  Bruno Haible  <bruno@clisp.org>
39020
39021         * MODULES.html.sh (Extended multibyte and wide character utilities
39022         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
39023         wcrtomb, wcsrtombs.
39024         (Support for systems lacking POSIX:2008): Add accept, bind, close,
39025         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
39026         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
39027         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
39028
39029 2008-12-21  Bruno Haible  <bruno@clisp.org>
39030
39031         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
39032
39033 2008-12-21  Bruno Haible  <bruno@clisp.org>
39034
39035         * modules/wcsnrtombs-tests: New file.
39036         * tests/test-wcsnrtombs1.sh: New file.
39037         * tests/test-wcsnrtombs2.sh: New file.
39038         * tests/test-wcsnrtombs3.sh: New file.
39039         * tests/test-wcsnrtombs4.sh: New file.
39040         * tests/test-wcsnrtombs.c: New file.
39041
39042         New module 'wcsnrtombs'.
39043         * lib/wchar.in.h (wcsnrtombs): New declaration.
39044         * lib/wcsnrtombs.c: New file.
39045         * lib/wcsrtombs-state.c: New file.
39046         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
39047         (internal_state): Remove variable.
39048         * m4/wcsnrtombs.m4: New file.
39049         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
39050         compilation units.
39051         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
39052         HAVE_WCSNRTOMBS.
39053         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
39054         HAVE_WCSNRTOMBS.
39055         * modules/wcsnrtombs: New file.
39056         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
39057         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
39058
39059 2008-12-21  Bruno Haible  <bruno@clisp.org>
39060
39061         * modules/wcsrtombs-tests: New file.
39062         * tests/test-wcsrtombs1.sh: New file.
39063         * tests/test-wcsrtombs2.sh: New file.
39064         * tests/test-wcsrtombs3.sh: New file.
39065         * tests/test-wcsrtombs4.sh: New file.
39066         * tests/test-wcsrtombs.c: New file.
39067
39068         New module 'wcsrtombs'.
39069         * lib/wchar.in.h (wcsrtombs): New declaration.
39070         * lib/wcsrtombs.c: New file.
39071         * m4/wcsrtombs.m4: New file.
39072         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
39073         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39074         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
39075         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39076         * modules/wcsrtombs: New file.
39077         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
39078         bugs.
39079
39080 2008-12-21  Bruno Haible  <bruno@clisp.org>
39081
39082         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
39083         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
39084         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
39085         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
39086         if not correct.
39087         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
39088         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
39089         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39090         m4/locale-zh.m4, m4/codeset.m4.
39091         * doc/posix-functions/wcrtomb.texi: Document the bug.
39092
39093 2008-12-21  Bruno Haible  <bruno@clisp.org>
39094
39095         Work around a btowc() bug on IRIX 6.5.
39096         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
39097         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
39098         REPLACE_WTOBC if not.
39099         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
39100         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
39101         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
39102
39103 2008-12-21  Bruno Haible  <bruno@clisp.org>
39104
39105         * modules/wcrtomb-tests: New file.
39106         * tests/test-wcrtomb.sh: New file.
39107         * tests/test-wcrtomb.c: New file.
39108
39109         New module 'wcrtomb'.
39110         * lib/wchar.in.h (wcrtomb): New declaration.
39111         * lib/wcrtomb.c: New file.
39112         * m4/wcrtomb.m4: New file.
39113         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
39114         HAVE_WCRTOMB.
39115         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
39116         HAVE_WCRTOMB.
39117         * modules/wcrtomb: New file.
39118         * doc/posix-functions/wcrtomb.texi: Mention the new module.
39119
39120 2008-12-21  Bruno Haible  <bruno@clisp.org>
39121
39122         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
39123         * modules/mbsrtowcs (Files): Likewise.
39124         * modules/wctob (Files): Likewise.
39125         * modules/c-strcase-tests (Files): Likewise.
39126         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39127         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39128         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39129         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39130         * modules/vasnprintf-posix-tests (Files): Likewise.
39131
39132 2008-12-21  William Pursell  <bill.pursell@gmail.com>
39133
39134         gitlog-to-changelog: pass all command-line arguments to git-log
39135         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
39136         it is sometimes convenient to filter the commits in various ways.
39137         gitlog-to-changelog only allows --since to specify a start date,
39138         but git-log itself supports many other filtering mechanisms.
39139         At the moment, I want to filter by branch name.  Rather than
39140         adding a --branch option to gitlog-to-changelog, it seems more
39141         flexible to simply pass all options directly to git-log and let
39142         git do the work.  Notice that this effectively makes --since a
39143         redundant option for gitlog-to-changelog, but removing it would
39144         require current usage to change since calls would then require
39145         an additional '--'.
39146
39147 2008-12-21  Bruno Haible  <bruno@clisp.org>
39148
39149         * modules/mbsnrtowcs-tests: New file.
39150         * tests/test-mbsnrtowcs1.sh: New file.
39151         * tests/test-mbsnrtowcs2.sh: New file.
39152         * tests/test-mbsnrtowcs3.sh: New file.
39153         * tests/test-mbsnrtowcs4.sh: New file.
39154         * tests/test-mbsnrtowcs.c: New file.
39155
39156         New module 'mbsnrtowcs'.
39157         * lib/wchar.in.h (mbsnrtowcs): New declaration.
39158         * lib/mbsnrtowcs.c: New file.
39159         * lib/mbsrtowcs-state.c: New file.
39160         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
39161         (internal_state): Remove variable.
39162         * m4/mbsnrtowcs.m4: New file.
39163         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
39164         compilation units.
39165         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
39166         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39167         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
39168         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39169         * modules/mbsnrtowcs: New file.
39170         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
39171         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
39172         portability problem.
39173
39174 2008-12-21  Bruno Haible  <bruno@clisp.org>
39175
39176         Work around mbsrtowcs bug.
39177         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
39178         (gl_FUNC_MBSRTOWCS): Invoke it.
39179         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39180         m4/locale-zh.m4.
39181         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
39182
39183 2008-12-21  Bruno Haible  <bruno@clisp.org>
39184
39185         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
39186
39187 2008-12-21  Bruno Haible  <bruno@clisp.org>
39188
39189         Update doc for AIX.
39190         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
39191         16-bit wchar_t type.
39192         * doc/posix-functions/btowc.texi: Likewise.
39193         * doc/posix-functions/fgetwc.texi: Likewise.
39194         * doc/posix-functions/fgetws.texi: Likewise.
39195         * doc/posix-functions/fputwc.texi: Likewise.
39196         * doc/posix-functions/fputws.texi: Likewise.
39197         * doc/posix-functions/fwide.texi: Likewise.
39198         * doc/posix-functions/fwprintf.texi: Likewise.
39199         * doc/posix-functions/fwscanf.texi: Likewise.
39200         * doc/posix-functions/getwchar.texi: Likewise.
39201         * doc/posix-functions/getwc.texi: Likewise.
39202         * doc/posix-functions/iswalnum.texi: Likewise.
39203         * doc/posix-functions/iswalpha.texi: Likewise.
39204         * doc/posix-functions/iswblank.texi: Likewise.
39205         * doc/posix-functions/iswcntrl.texi: Likewise.
39206         * doc/posix-functions/iswctype.texi: Likewise.
39207         * doc/posix-functions/iswdigit.texi: Likewise.
39208         * doc/posix-functions/iswgraph.texi: Likewise.
39209         * doc/posix-functions/iswlower.texi: Likewise.
39210         * doc/posix-functions/iswprint.texi: Likewise.
39211         * doc/posix-functions/iswpunct.texi: Likewise.
39212         * doc/posix-functions/iswspace.texi: Likewise.
39213         * doc/posix-functions/iswupper.texi: Likewise.
39214         * doc/posix-functions/iswxdigit.texi: Likewise.
39215         * doc/posix-functions/mbrtowc.texi: Likewise.
39216         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39217         * doc/posix-functions/mbstowcs.texi: Likewise.
39218         * doc/posix-functions/mbtowc.texi: Likewise.
39219         * doc/posix-functions/putwchar.texi: Likewise.
39220         * doc/posix-functions/putwc.texi: Likewise.
39221         * doc/posix-functions/swprintf.texi: Likewise.
39222         * doc/posix-functions/tolower.texi: Likewise.
39223         * doc/posix-functions/toupper.texi: Likewise.
39224         * doc/posix-functions/towctrans.texi: Likewise.
39225         * doc/posix-functions/ungetwc.texi: Likewise.
39226         * doc/posix-functions/vswprintf.texi: Likewise.
39227         * doc/posix-functions/wcrtomb.texi: Likewise.
39228         * doc/posix-functions/wcscat.texi: Likewise.
39229         * doc/posix-functions/wcschr.texi: Likewise.
39230         * doc/posix-functions/wcscmp.texi: Likewise.
39231         * doc/posix-functions/wcscoll.texi: Likewise.
39232         * doc/posix-functions/wcscpy.texi: Likewise.
39233         * doc/posix-functions/wcscspn.texi: Likewise.
39234         * doc/posix-functions/wcsftime.texi: Likewise.
39235         * doc/posix-functions/wcslen.texi: Likewise.
39236         * doc/posix-functions/wcsncat.texi: Likewise.
39237         * doc/posix-functions/wcsncmp.texi: Likewise.
39238         * doc/posix-functions/wcsncpy.texi: Likewise.
39239         * doc/posix-functions/wcspbrk.texi: Likewise.
39240         * doc/posix-functions/wcsrchr.texi: Likewise.
39241         * doc/posix-functions/wcsrtombs.texi: Likewise.
39242         * doc/posix-functions/wcsspn.texi: Likewise.
39243         * doc/posix-functions/wcsstr.texi: Likewise.
39244         * doc/posix-functions/wcstod.texi: Likewise.
39245         * doc/posix-functions/wcstof.texi: Likewise.
39246         * doc/posix-functions/wcstoimax.texi: Likewise.
39247         * doc/posix-functions/wcstok.texi: Likewise.
39248         * doc/posix-functions/wcstold.texi: Likewise.
39249         * doc/posix-functions/wcstoll.texi: Likewise.
39250         * doc/posix-functions/wcstol.texi: Likewise.
39251         * doc/posix-functions/wcstombs.texi: Likewise.
39252         * doc/posix-functions/wcstoull.texi: Likewise.
39253         * doc/posix-functions/wcstoul.texi: Likewise.
39254         * doc/posix-functions/wcstoumax.texi: Likewise.
39255         * doc/posix-functions/wcswidth.texi: Likewise.
39256         * doc/posix-functions/wcsxfrm.texi: Likewise.
39257         * doc/posix-functions/wctob.texi: Likewise.
39258         * doc/posix-functions/wctomb.texi: Likewise.
39259         * doc/posix-functions/wctrans.texi: Likewise.
39260         * doc/posix-functions/wctype.texi: Likewise.
39261         * doc/posix-functions/wcwidth.texi: Likewise.
39262         * doc/posix-functions/wmemchr.texi: Likewise.
39263         * doc/posix-functions/wmemcmp.texi: Likewise.
39264         * doc/posix-functions/wmemcpy.texi: Likewise.
39265         * doc/posix-functions/wmemmove.texi: Likewise.
39266         * doc/posix-functions/wmemset.texi: Likewise.
39267         * doc/posix-functions/wprintf.texi: Likewise.
39268         * doc/posix-functions/wscanf.texi: Likewise.
39269
39270 2008-12-21  Bruno Haible  <bruno@clisp.org>
39271
39272         Update doc for HP-UX 11.11.
39273         * doc/posix-functions/btowc.texi: Clarify that the function is missing
39274         in HP-UX version 11.00, not in all versions of HP-UX 11.
39275         * doc/posix-functions/fwide.texi: Likewise.
39276         * doc/posix-functions/fwprintf.texi: Likewise.
39277         * doc/posix-functions/fwscanf.texi: Likewise.
39278         * doc/posix-functions/inet_ntop.texi: Likewise.
39279         * doc/posix-functions/inet_pton.texi: Likewise.
39280         * doc/posix-functions/mbrlen.texi: Likewise.
39281         * doc/posix-functions/mbrtowc.texi: Likewise.
39282         * doc/posix-functions/mbsinit.texi: Likewise.
39283         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39284         * doc/posix-functions/swprintf.texi: Likewise.
39285         * doc/posix-functions/swscanf.texi: Likewise.
39286         * doc/posix-functions/towctrans.texi: Likewise.
39287         * doc/posix-functions/vfwprintf.texi: Likewise.
39288         * doc/posix-functions/vswprintf.texi: Likewise.
39289         * doc/posix-functions/vwprintf.texi: Likewise.
39290         * doc/posix-functions/wcrtomb.texi: Likewise.
39291         * doc/posix-functions/wcsrtombs.texi: Likewise.
39292         * doc/posix-functions/wcsstr.texi: Likewise.
39293         * doc/posix-functions/wctob.texi: Likewise.
39294         * doc/posix-functions/wctrans.texi: Likewise.
39295         * doc/posix-functions/wmemchr.texi: Likewise.
39296         * doc/posix-functions/wmemcmp.texi: Likewise.
39297         * doc/posix-functions/wmemcpy.texi: Likewise.
39298         * doc/posix-functions/wmemmove.texi: Likewise.
39299         * doc/posix-functions/wmemset.texi: Likewise.
39300         * doc/posix-functions/wprintf.texi: Likewise.
39301         * doc/posix-functions/wscanf.texi: Likewise.
39302
39303 2008-12-21  Bruno Haible  <bruno@clisp.org>
39304
39305         Work around a portability problem.
39306         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
39307         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
39308
39309 2008-12-20  Bruno Haible  <bruno@clisp.org>
39310
39311         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
39312         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
39313         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
39314         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
39315         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
39316
39317         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
39318         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
39319         set.
39320         (GNULIB_defined_mbstate_t): New macro.
39321         (mbsinit): Redefine if REPLACE_MBSINIT is set.
39322         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
39323         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
39324         reuses the system's mbrtowc function but works around the bugs.
39325         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
39326         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
39327         macros.
39328         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
39329         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
39330         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
39331         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
39332         REPLACE_MBSINIT if mbsinit needs to be overridden.
39333         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
39334         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39335         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
39336         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39337         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39338         m4/locale-zh.m4.
39339         (Depends): Add mbsinit.
39340         * modules/mbsinit (Depends): Add mbrtowc.
39341         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
39342
39343 2008-12-20  Bruno Haible  <bruno@clisp.org>
39344
39345         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
39346         so that there are no conversion errors on AIX.
39347         * tests/test-mbsrtowcs.c (main): LIkewise.
39348
39349 2008-12-20  Bruno Haible  <bruno@clisp.org>
39350
39351         Work around wctob bug on Solaris <= 9.
39352         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
39353         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
39354         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
39355         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
39356         * modules/wctob (Files): Add m4/locale-fr.m4.
39357         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
39358
39359 2008-12-20  Bruno Haible  <bruno@clisp.org>
39360
39361         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
39362         /dev/null.
39363         * tests/test-select-in.sh: Likewise.
39364         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39365
39366 2008-12-20  Bruno Haible  <bruno@clisp.org>
39367
39368         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
39369         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
39370         Cygwin 1.5.x.
39371
39372 2008-12-20  Bruno Haible  <bruno@clisp.org>
39373
39374         Ensure mbstate_t is defined on HP-UX 11.11.
39375         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
39376         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
39377         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
39378         AC_USE_SYSTEM_EXTENSIONS.
39379         * modules/fnmatch (Depends-on): Add extensions.
39380         * modules/mbrlen (Depends-on): Likewise.
39381         * modules/mbrtowc (Depends-on): Likewise.
39382         * modules/mbsinit (Depends-on): Likewise.
39383         * modules/mbsrtowcs (Depends-on): Likewise.
39384         * modules/mbswidth (Depends-on): Likewise.
39385         * modules/quotearg (Depends-on): Likewise.
39386         * modules/strftime (Depends-on): Likewise.
39387
39388 2008-12-20  Bruno Haible  <bruno@clisp.org>
39389
39390         Ensure wctob is declared on IRIX 6.5.
39391         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
39392         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
39393         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
39394         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
39395         of HAVE_WCTOB.
39396         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
39397         HAVE_WCTOB.
39398         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
39399
39400 2008-12-19  Bruno Haible  <bruno@clisp.org>
39401
39402         * modules/mbsrtowcs-tests: New file.
39403         * tests/test-mbsrtowcs1.sh: New file.
39404         * tests/test-mbsrtowcs2.sh: New file.
39405         * tests/test-mbsrtowcs3.sh: New file.
39406         * tests/test-mbsrtowcs4.sh: New file.
39407         * tests/test-mbsrtowcs.c: New file.
39408
39409         New module 'mbsrtowcs'.
39410         * lib/wchar.in.h (mbsrtowcs): New declaration.
39411         * lib/mbsrtowcs.c: New file.
39412         * m4/mbsrtowcs.m4: New file.
39413         * modules/mbsrtowcs: New file.
39414         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
39415         HAVE_MBSRTOWCS.
39416         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
39417         HAVE_MBSRTOWCS.
39418         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
39419
39420 2008-12-19  Bruno Haible  <bruno@clisp.org>
39421
39422         New module 'mbrlen'.
39423         * lib/wchar.in.h (mbrlen): New declaration.
39424         * lib/mbrlen.c: New file.
39425         * m4/mbrlen.m4: New file.
39426         * modules/mbrlen: New file.
39427         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
39428         HAVE_MBRLEN.
39429         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
39430         HAVE_MBRLEN.
39431         * doc/posix-functions/mbrlen.texi: Document the new module.
39432
39433 2008-12-19  Bruno Haible  <bruno@clisp.org>
39434
39435         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
39436         * modules/mbrtowc (Depends-on): Add verify.
39437         Suggested by Paul Eggert.
39438
39439 2008-12-18  Bruno Haible  <bruno@clisp.org>
39440
39441         * modules/mbsinit-tests: New file.
39442         * tests/test-mbsinit.sh: New file.
39443         * tests/test-mbsinit.c: New file.
39444
39445 2008-12-18  Bruno Haible  <bruno@clisp.org>
39446
39447         * modules/mbrtowc-tests: New file.
39448         * tests/test-mbrtowc1.sh: New file.
39449         * tests/test-mbrtowc2.sh: New file.
39450         * tests/test-mbrtowc3.sh: New file.
39451         * tests/test-mbrtowc4.sh: New file.
39452         * tests/test-mbrtowc.c: New file.
39453
39454         New module 'mbrtowc'.
39455         * lib/wchar.in.h (mbstate_t): Override when the system does not have
39456         mbsinit and mbrtowc.
39457         (mbrtowc): New declaration.
39458         * lib/mbrtowc.c: New file.
39459         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
39460         * modules/mbrtowc: New file.
39461         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
39462         HAVE_MBRTOWC.
39463         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
39464         HAVE_MBRTOWC.
39465         * doc/posix-functions/mbrtowc.texi: Document the new module.
39466
39467 2008-12-18  Bruno Haible  <bruno@clisp.org>
39468
39469         New module 'wctob'.
39470         * lib/wchar.in.h (wctob): New declaration.
39471         * lib/wctob.c: New file.
39472         * m4/wctob.m4: New file.
39473         * modules/wctob: New file.
39474         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
39475         HAVE_WCTOB.
39476         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
39477         * doc/posix-functions/wctob.texi: Document the new module.
39478
39479 2008-12-18  Bruno Haible  <bruno@clisp.org>
39480
39481         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
39482         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
39483
39484 2008-12-18  Simon Josefsson  <simon@josefsson.org>
39485
39486         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
39487         G. Christensen" <tgc@jupiterrise.com>.
39488
39489         * lib/flock.c: Need to include errno.h.  Reported by "Tom
39490         G. Christensen" <tgc@jupiterrise.com>.
39491
39492         * lib/flock.c: Need to include string.h.  Reported by "Tom
39493         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
39494         <ebb9@byu.net>.
39495
39496 2008-12-18  Bruno Haible  <bruno@clisp.org>
39497
39498         * m4/locale-ja.m4: New file, from GNU gettext.
39499
39500 2008-12-17  Bruno Haible  <bruno@clisp.org>
39501
39502         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
39503         Suggested by Eric Blake.
39504
39505 2008-12-17  Bruno Haible  <bruno@clisp.org>
39506
39507         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
39508
39509 2008-12-17  Bruno Haible  <bruno@clisp.org>
39510
39511         * lib/mbsinit.c: Include verify.h. Verify an assumption.
39512         * modules/mbsinit (Depends-on): Add verify.
39513         Suggested by Paul Eggert.
39514
39515 2008-12-17  Bruno Haible  <bruno@clisp.org>
39516
39517         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
39518         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
39519         gl_FUNC_MBRTOWC.
39520         * m4/mbiter.m4 (gl_MBITER): LIkewise.
39521         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
39522         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
39523         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
39524         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
39525         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
39526         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
39527         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
39528         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
39529         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
39530         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
39531         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
39532         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
39533         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
39534         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
39535         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39536         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
39537         * modules/trim (configure.ac): Likewise.
39538
39539 2008-12-17  Bruno Haible  <bruno@clisp.org>
39540
39541         * modules/btowc-tests: New file.
39542         * tests/test-btowc1.sh: New file.
39543         * tests/test-btowc2.sh: New file.
39544         * tests/test-btowc.c: New file.
39545
39546         New module 'btowc'.
39547         * lib/wchar.in.h (btowc): New declaration.
39548         * lib/btowc.c: New file.
39549         * m4/btowc.m4: New file.
39550         * modules/btowc: New file.
39551         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
39552         HAVE_BTOWC.
39553         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
39554         * doc/posix-functions/btowc.texi: Document the new module.
39555
39556 2008-12-17  Bruno Haible  <bruno@clisp.org>
39557
39558         New module 'mbsinit'.
39559         * lib/wchar.in.h (mbsinit): New declaration.
39560         * lib/mbsinit.c: New file.
39561         * m4/mbsinit.m4: New file.
39562         * modules/mbsinit: New file.
39563         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
39564         HAVE_MBSINIT.
39565         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
39566         HAVE_MBSINIT.
39567         * doc/posix-functions/mbsinit.texi: Document the new module.
39568
39569 2008-12-16  Bruno Haible  <bruno@clisp.org>
39570
39571         * lib/unistd.in.h: Add comment.
39572         * tests/test-environ.c: Don't include <stdlib.h>.
39573
39574 2008-12-16  Bruno Haible  <bruno@clisp.org>
39575
39576         * lib/parse-duration.h (parse_duration): Document return value
39577         convention.
39578         * lib/parse-duration.c: Include specification header first. Add
39579         comments.
39580         (_): Remove macro.
39581         (parse_year_month_day, parse_hour_minute_second): Move side effects
39582         outside of strchr call.
39583         (parse_non_iso8601): Move side effects outside of isspace call.
39584         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
39585         call.
39586
39587 2008-12-16  Bruno Haible  <bruno@clisp.org>
39588
39589         * tests/test-parse-duration.sh: Produce no output when the test
39590         succeeds.
39591
39592 2008-12-16  Bruno Haible  <bruno@clisp.org>
39593
39594         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
39595         expressions.
39596
39597 2008-12-15  Bruno Haible  <bruno@clisp.org>
39598
39599         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
39600         * doc/glibc-functions/flistxattr.texi: Likewise.
39601         * doc/glibc-functions/fopencookie.texi: Likewise.
39602         * doc/glibc-functions/fremovexattr.texi: Likewise.
39603         * doc/glibc-functions/fsetxattr.texi: Likewise.
39604         * doc/glibc-functions/getxattr.texi: Likewise.
39605         * doc/glibc-functions/lgetxattr.texi: Likewise.
39606         * doc/glibc-functions/listxattr.texi: Likewise.
39607         * doc/glibc-functions/llistxattr.texi: Likewise.
39608         * doc/glibc-functions/lremovexattr.texi: Likewise.
39609         * doc/glibc-functions/lsetxattr.texi: Likewise.
39610         * doc/glibc-functions/removexattr.texi: Likewise.
39611         * doc/glibc-functions/setxattr.texi: Likewise.
39612         * doc/posix-functions/open_memstream.texi: Likewise.
39613
39614 2008-12-15  Eric Blake  <ebb9@byu.net>
39615
39616         Update doc for cygwin 1.7.
39617         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
39618         functions.
39619         * doc/posix-functions/fchmodat.texi: Likewise.
39620         * doc/posix-functions/fchownat.texi: Likewise.
39621         * doc/posix-functions/fdopendir.texi: Likewise.
39622         * doc/posix-functions/fmemopen.texi: Likewise.
39623         * doc/posix-functions/freeaddrinfo.texi: Likewise.
39624         * doc/posix-functions/fstatat.texi: Likewise.
39625         * doc/posix-functions/futimens.texi: Likewise.
39626         * doc/posix-functions/gai_strerror.texi: Likewise.
39627         * doc/posix-functions/getaddrinfo.texi: Likewise.
39628         * doc/posix-functions/getnameinfo.texi: Likewise.
39629         * doc/posix-functions/if_freenameindex.texi: Likewise.
39630         * doc/posix-functions/if_indextoname.texi: Likewise.
39631         * doc/posix-functions/if_nameindex.texi: Likewise.
39632         * doc/posix-functions/if_nametoindex.texi: Likewise.
39633         * doc/posix-functions/insque.texi: Likewise.
39634         * doc/posix-functions/linkat.texi: Likewise.
39635         * doc/posix-functions/llrint.texi: Likewise.
39636         * doc/posix-functions/llrintf.texi: Likewise.
39637         * doc/posix-functions/llrintl.texi: Likewise.
39638         * doc/posix-functions/lockf.texi: Likewise.
39639         * doc/posix-functions/lrintl.texi: Likewise.
39640         * doc/posix-functions/mkdirat.texi: Likewise.
39641         * doc/posix-functions/mkfifoat.texi: Likewise.
39642         * doc/posix-functions/mknodat.texi: Likewise.
39643         * doc/posix-functions/mq_close.texi: Likewise.
39644         * doc/posix-functions/mq_getattr.texi: Likewise.
39645         * doc/posix-functions/mq_notify.texi: Likewise.
39646         * doc/posix-functions/mq_open.texi: Likewise.
39647         * doc/posix-functions/mq_receive.texi: Likewise.
39648         * doc/posix-functions/mq_send.texi: Likewise.
39649         * doc/posix-functions/mq_setattr.texi: Likewise.
39650         * doc/posix-functions/mq_timedreceive.texi: Likewise.
39651         * doc/posix-functions/mq_timedsend.texi: Likewise.
39652         * doc/posix-functions/mq_unlink.texi: Likewise.
39653         * doc/posix-functions/open_memstream.texi: Likewise.
39654         * doc/posix-functions/openat.texi: Likewise.
39655         * doc/posix-functions/posix_fadvise.texi: Likewise.
39656         * doc/posix-functions/posix_fallocate.texi: Likewise.
39657         * doc/posix-functions/posix_madvise.texi: Likewise.
39658         * doc/posix-functions/posix_memalign.texi: Likewise.
39659         * doc/posix-functions/posix_openpt.texi: Likewise.
39660         * doc/posix-functions/readlinkat.texi: Likewise.
39661         * doc/posix-functions/remque.texi: Likewise.
39662         * doc/posix-functions/renameat.texi: Likewise.
39663         * doc/posix-functions/rintl.texi: Likewise.
39664         * doc/posix-functions/sem_unlink.texi: Likewise.
39665         * doc/posix-functions/shm_open.texi: Likewise.
39666         * doc/posix-functions/shm_unlink.texi: Likewise.
39667         * doc/posix-functions/signgam.texi: Likewise.
39668         * doc/posix-functions/sigset.texi: Likewise.
39669         * doc/posix-functions/stpcpy.texi: Likewise.
39670         * doc/posix-functions/stpncpy.texi: Likewise.
39671         * doc/posix-functions/strerror.texi: Likewise.
39672         * doc/posix-functions/strtod.texi: Likewise.
39673         * doc/posix-functions/symlinkat.texi: Likewise.
39674         * doc/posix-functions/unlinkat.texi: Likewise.
39675         * doc/posix-functions/utimensat.texi: Likewise.
39676         * doc/glibc-functions/bindresvport.texi: Likewise.
39677         * doc/glibc-functions/dn_expand.texi: Likewise.
39678         * doc/glibc-functions/exp10.texi: Likewise.
39679         * doc/glibc-functions/exp10f.texi: Likewise.
39680         * doc/glibc-functions/fgetxattr.texi: Likewise.
39681         * doc/glibc-functions/flistxattr.texi: Likewise.
39682         * doc/glibc-functions/fopencookie.texi: Likewise.
39683         * doc/glibc-functions/freeifaddrs.texi: Likewise.
39684         * doc/glibc-functions/fremovexattr.texi: Likewise.
39685         * doc/glibc-functions/fsetxattr.texi: Likewise.
39686         * doc/glibc-functions/getifaddrs.texi: Likewise.
39687         * doc/glibc-functions/getxattr.texi: Likewise.
39688         * doc/glibc-functions/lgetxattr.texi: Likewise.
39689         * doc/glibc-functions/listxattr.texi: Likewise.
39690         * doc/glibc-functions/llistxattr.texi: Likewise.
39691         * doc/glibc-functions/lremovexattr.texi: Likewise.
39692         * doc/glibc-functions/lsetxattr.texi: Likewise.
39693         * doc/glibc-functions/pow10.texi: Likewise.
39694         * doc/glibc-functions/pow10f.texi: Likewise.
39695         * doc/glibc-functions/rcmd_af.texi: Likewise.
39696         * doc/glibc-functions/removexattr.texi: Likewise.
39697         * doc/glibc-functions/res_init.texi: Likewise.
39698         * doc/glibc-functions/res_mkquery.texi: Likewise.
39699         * doc/glibc-functions/res_query.texi: Likewise.
39700         * doc/glibc-functions/res_querydomain.texi: Likewise.
39701         * doc/glibc-functions/res_send.texi: Likewise.
39702         * doc/glibc-functions/rresvport_af.texi: Likewise.
39703         * doc/glibc-functions/setxattr.texi: Likewise.
39704         * doc/glibc-functions/strcasestr.texi: Likewise.
39705
39706 2008-12-15  Bruno Haible  <bruno@clisp.org>
39707
39708         Fix compilation error on OSF/1 4.0.
39709         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
39710         <sys/time.h>, simply delegate to the system header.
39711         Reported by Daniel Richard G. <oss@teragram.com>.
39712
39713 2008-12-15  Bruno Haible  <bruno@clisp.org>
39714
39715         * doc/posix-functions/openat.texi: Mention the 'openat' module.
39716         * doc/posix-functions/fchmodat.texi: Likewise.
39717         * doc/posix-functions/fchownat.texi: Likewise.
39718         * doc/posix-functions/fdopendir.texi: Likewise.
39719         * doc/posix-functions/fstatat.texi: Likewise.
39720         * doc/posix-functions/mkdirat.texi: Likewise.
39721         * doc/posix-functions/unlinkat.texi: Likewise.
39722
39723 2008-12-14  Bruno Haible  <bruno@clisp.org>
39724
39725         Update doc for POSIX:2008.
39726         * doc/posix-functions/faccessat.texi: New file.
39727         * doc/posix-functions/fchmodat.texi: New file.
39728         * doc/posix-functions/fchownat.texi: New file.
39729         * doc/posix-functions/fdopendir.texi: New file.
39730         * doc/posix-functions/fstatat.texi: New file.
39731         * doc/posix-functions/futimens.texi: New file.
39732         * doc/posix-functions/linkat.texi: New file.
39733         * doc/posix-functions/mkdirat.texi: New file.
39734         * doc/posix-functions/mkfifoat.texi: New file.
39735         * doc/posix-functions/mknodat.texi: New file.
39736         * doc/posix-functions/open_wmemstream.texi: New file.
39737         * doc/posix-functions/openat.texi: New file.
39738         * doc/posix-functions/psiginfo.texi: New file.
39739         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
39740         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
39741         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
39742         * doc/posix-functions/readlinkat.texi: New file.
39743         * doc/posix-functions/renameat.texi: New file.
39744         * doc/posix-functions/strerror_l.texi: New file.
39745         * doc/posix-functions/symlinkat.texi: New file.
39746         * doc/posix-functions/unlinkat.texi: New file.
39747         * doc/posix-functions/utimensat.texi: New file.
39748         * doc/gnulib.texi (Function Substitutes): Add these subsections.
39749
39750 2008-12-14  Bruno Haible  <bruno@clisp.org>
39751
39752         Update doc for POSIX:2008.
39753         * doc/posix-functions/alphasort.texi: Renamed from
39754         doc/glibc-functions/alphasort.texi.
39755         * doc/posix-functions/dirfd.texi: Renamed from
39756         doc/glibc-functions/dirfd.texi.
39757         * doc/posix-functions/dprintf.texi: Renamed from
39758         doc/glibc-functions/dprintf.texi.
39759         * doc/posix-functions/duplocale.texi: Renamed from
39760         doc/glibc-functions/duplocale.texi.
39761         * doc/posix-functions/fexecve.texi: Renamed from
39762         doc/glibc-functions/fexecve.texi.
39763         * doc/posix-functions/fmemopen.texi: Renamed from
39764         doc/glibc-functions/fmemopen.texi.
39765         * doc/posix-functions/freelocale.texi: Renamed from
39766         doc/glibc-functions/freelocale.texi.
39767         * doc/posix-functions/getdate_err.texi: Renamed from
39768         doc/glibc-functions/getdate_err.texi.
39769         * doc/posix-functions/isalnum_l.texi: Renamed from
39770         doc/glibc-functions/isalnum_l.texi.
39771         * doc/posix-functions/isalpha_l.texi: Renamed from
39772         doc/glibc-functions/isalpha_l.texi.
39773         * doc/posix-functions/isblank_l.texi: Renamed from
39774         doc/glibc-functions/isblank_l.texi.
39775         * doc/posix-functions/iscntrl_l.texi: Renamed from
39776         doc/glibc-functions/iscntrl_l.texi.
39777         * doc/posix-functions/isdigit_l.texi: Renamed from
39778         doc/glibc-functions/isdigit_l.texi.
39779         * doc/posix-functions/isgraph_l.texi: Renamed from
39780         doc/glibc-functions/isgraph_l.texi.
39781         * doc/posix-functions/islower_l.texi: Renamed from
39782         doc/glibc-functions/islower_l.texi.
39783         * doc/posix-functions/isprint_l.texi: Renamed from
39784         doc/glibc-functions/isprint_l.texi.
39785         * doc/posix-functions/ispunct_l.texi: Renamed from
39786         doc/glibc-functions/ispunct_l.texi.
39787         * doc/posix-functions/isspace_l.texi: Renamed from
39788         doc/glibc-functions/isspace_l.texi.
39789         * doc/posix-functions/isupper_l.texi: Renamed from
39790         doc/glibc-functions/isupper_l.texi.
39791         * doc/posix-functions/iswalnum_l.texi: Renamed from
39792         doc/glibc-functions/iswalnum_l.texi.
39793         * doc/posix-functions/iswalpha_l.texi: Renamed from
39794         doc/glibc-functions/iswalpha_l.texi.
39795         * doc/posix-functions/iswblank_l.texi: Renamed from
39796         doc/glibc-functions/iswblank_l.texi.
39797         * doc/posix-functions/iswcntrl_l.texi: Renamed from
39798         doc/glibc-functions/iswcntrl_l.texi.
39799         * doc/posix-functions/iswctype_l.texi: Renamed from
39800         doc/glibc-functions/iswctype_l.texi.
39801         * doc/posix-functions/iswdigit_l.texi: Renamed from
39802         doc/glibc-functions/iswdigit_l.texi.
39803         * doc/posix-functions/iswgraph_l.texi: Renamed from
39804         doc/glibc-functions/iswgraph_l.texi.
39805         * doc/posix-functions/iswlower_l.texi: Renamed from
39806         doc/glibc-functions/iswlower_l.texi.
39807         * doc/posix-functions/iswprint_l.texi: Renamed from
39808         doc/glibc-functions/iswprint_l.texi.
39809         * doc/posix-functions/iswpunct_l.texi: Renamed from
39810         doc/glibc-functions/iswpunct_l.texi.
39811         * doc/posix-functions/iswspace_l.texi: Renamed from
39812         doc/glibc-functions/iswspace_l.texi.
39813         * doc/posix-functions/iswupper_l.texi: Renamed from
39814         doc/glibc-functions/iswupper_l.texi.
39815         * doc/posix-functions/iswxdigit_l.texi: Renamed from
39816         doc/glibc-functions/iswxdigit_l.texi.
39817         * doc/posix-functions/isxdigit_l.texi: Renamed from
39818         doc/glibc-functions/isxdigit_l.texi.
39819         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
39820         doc/glibc-functions/mbsnrtowcs.texi.
39821         * doc/posix-functions/mkdtemp.texi: Renamed from
39822         doc/glibc-functions/mkdtemp.texi.
39823         * doc/posix-functions/newlocale.texi: Renamed from
39824         doc/glibc-functions/newlocale.texi.
39825         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
39826         doc/glibc-functions/nl_langinfo_l.texi.
39827         * doc/posix-functions/open_memstream.texi: Renamed from
39828         doc/glibc-functions/open_memstream.texi.
39829         * doc/posix-functions/opterr.texi: Renamed from
39830         doc/glibc-functions/opterr.texi.
39831         * doc/posix-functions/optind.texi: Renamed from
39832         doc/glibc-functions/optind.texi.
39833         * doc/posix-functions/optopt.texi: Renamed from
39834         doc/glibc-functions/optopt.texi.
39835         * doc/posix-functions/psignal.texi: Renamed from
39836         doc/glibc-functions/psignal.texi.
39837         * doc/posix-functions/scandir.texi: Renamed from
39838         doc/glibc-functions/scandir.texi.
39839         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
39840         doc/glibc-functions/sched_get_priority_min.texi.
39841         * doc/posix-functions/signgam.texi: Renamed from
39842         doc/glibc-functions/signgam.texi.
39843         * doc/posix-functions/stpcpy.texi: Renamed from
39844         doc/glibc-functions/stpcpy.texi.
39845         * doc/posix-functions/stpncpy.texi: Renamed from
39846         doc/glibc-functions/stpncpy.texi.
39847         * doc/posix-functions/strcasecmp_l.texi: Renamed from
39848         doc/glibc-functions/strcasecmp_l.texi.
39849         * doc/posix-functions/strcoll_l.texi: Renamed from
39850         doc/glibc-functions/strcoll_l.texi.
39851         * doc/posix-functions/strfmon_l.texi: Renamed from
39852         doc/glibc-functions/strfmon_l.texi.
39853         * doc/posix-functions/strftime_l.texi: Renamed from
39854         doc/glibc-functions/strftime_l.texi.
39855         * doc/posix-functions/strncasecmp_l.texi: Renamed from
39856         doc/glibc-functions/strncasecmp_l.texi.
39857         * doc/posix-functions/strndup.texi: Renamed from
39858         doc/glibc-functions/strndup.texi.
39859         * doc/posix-functions/strnlen.texi: Renamed from
39860         doc/glibc-functions/strnlen.texi.
39861         * doc/posix-functions/strsignal.texi: Renamed from
39862         doc/glibc-functions/strsignal.texi.
39863         * doc/posix-functions/strxfrm_l.texi: Renamed from
39864         doc/glibc-functions/strxfrm_l.texi.
39865         * doc/posix-functions/timer_gettime.texi: Renamed from
39866         doc/glibc-functions/timer_gettime.texi.
39867         * doc/posix-functions/tolower_l.texi: Renamed from
39868         doc/glibc-functions/tolower_l.texi.
39869         * doc/posix-functions/toupper_l.texi: Renamed from
39870         doc/glibc-functions/toupper_l.texi.
39871         * doc/posix-functions/towctrans_l.texi: Renamed from
39872         doc/glibc-functions/towctrans_l.texi.
39873         * doc/posix-functions/towlower_l.texi: Renamed from
39874         doc/glibc-functions/towlower_l.texi.
39875         * doc/posix-functions/towupper_l.texi: Renamed from
39876         doc/glibc-functions/towupper_l.texi.
39877         * doc/posix-functions/uselocale.texi: Renamed from
39878         doc/glibc-functions/uselocale.texi.
39879         * doc/posix-functions/vdprintf.texi: Renamed from
39880         doc/glibc-functions/vdprintf.texi.
39881         * doc/posix-functions/wcpcpy.texi:
39882         Renamed from doc/glibc-functions/wcpcpy.texi.
39883         * doc/posix-functions/wcpncpy.texi: Renamed from
39884         doc/glibc-functions/wcpncpy.texi.
39885         * doc/posix-functions/wcscasecmp.texi: Renamed from
39886         doc/glibc-functions/wcscasecmp.texi.
39887         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
39888         doc/glibc-functions/wcscasecmp_l.texi.
39889         * doc/posix-functions/wcscoll_l.texi: Renamed from
39890         doc/glibc-functions/wcscoll_l.texi.
39891         * doc/posix-functions/wcsdup.texi: Renamed from
39892         doc/glibc-functions/wcsdup.texi.
39893         * doc/posix-functions/wcsncasecmp.texi: Renamed from
39894         doc/glibc-functions/wcsncasecmp.texi.
39895         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
39896         doc/glibc-functions/wcsncasecmp_l.texi.
39897         * doc/posix-functions/wcsnlen.texi: Renamed from
39898         doc/glibc-functions/wcsnlen.texi.
39899         * doc/posix-functions/wcsnrtombs.texi: Renamed from
39900         doc/glibc-functions/wcsnrtombs.texi.
39901         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
39902         doc/glibc-functions/wcsxfrm_l.texi.
39903         * doc/posix-functions/wctrans_l.texi: Renamed from
39904         doc/glibc-functions/wctrans_l.texi.
39905         * doc/posix-functions/wctype_l.texi: Renamed from
39906         doc/glibc-functions/wctype_l.texi.
39907         * doc/gnulib.texi (Function Substitutes): Add these subsections.
39908         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
39909         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
39910         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
39911         these subsections.
39912         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
39913         Remove sections.
39914
39915 2008-12-14  Bruno Haible  <bruno@clisp.org>
39916
39917         Update doc for POSIX:2008.
39918         * doc/posix-functions/*.texi: Update URL of POSIX specification.
39919
39920 2008-12-14  Bruno Haible  <bruno@clisp.org>
39921
39922         Update doc for POSIX:2008.
39923         * doc/pastposix-functions/bcmp.texi: Renamed from
39924         doc/posix-functions/bcmp.texi.
39925         * doc/pastposix-functions/bcopy.texi: Renamed from
39926         doc/posix-functions/bcopy.texi.
39927         * doc/pastposix-functions/bsd_signal.texi: Renamed from
39928         doc/posix-functions/bsd_signal.texi.
39929         * doc/pastposix-functions/bzero.texi: Renamed from
39930         doc/posix-functions/bzero.texi.
39931         * doc/pastposix-functions/ecvt.texi: Renamed from
39932         doc/posix-functions/ecvt.texi.
39933         * doc/pastposix-functions/fcvt.texi: Renamed from
39934         doc/posix-functions/fcvt.texi.
39935         * doc/pastposix-functions/ftime.texi: Renamed from
39936         doc/posix-functions/ftime.texi.
39937         * doc/pastposix-functions/gcvt.texi: Renamed from
39938         doc/posix-functions/gcvt.texi.
39939         * doc/pastposix-functions/getcontext.texi: Renamed from
39940         doc/posix-functions/getcontext.texi.
39941         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
39942         doc/posix-functions/gethostbyaddr.texi.
39943         * doc/pastposix-functions/gethostbyname.texi: Renamed from
39944         doc/posix-functions/gethostbyname.texi.
39945         * doc/pastposix-functions/getwd.texi: Renamed from
39946         doc/posix-functions/getwd.texi.
39947         * doc/pastposix-functions/h_errno.texi: Renamed from
39948         doc/posix-functions/h_errno.texi.
39949         * doc/pastposix-functions/index.texi: Renamed from
39950         doc/posix-functions/index.texi.
39951         * doc/pastposix-functions/makecontext.texi: Renamed from
39952         doc/posix-functions/makecontext.texi.
39953         * doc/pastposix-functions/mktemp.texi: Renamed from
39954         doc/posix-functions/mktemp.texi.
39955         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
39956         doc/posix-functions/pthread_attr_getstackaddr.texi.
39957         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
39958         doc/posix-functions/pthread_attr_setstackaddr.texi.
39959         * doc/pastposix-functions/rindex.texi: Renamed from
39960         doc/posix-functions/rindex.texi.
39961         * doc/pastposix-functions/scalb.texi: Renamed from
39962         doc/posix-functions/scalb.texi.
39963         * doc/pastposix-functions/setcontext.texi: Renamed from
39964         doc/posix-functions/setcontext.texi.
39965         * doc/pastposix-functions/swapcontext.texi: Renamed from
39966         doc/posix-functions/swapcontext.texi.
39967         * doc/pastposix-functions/ualarm.texi: Renamed from
39968         doc/posix-functions/ualarm.texi.
39969         * doc/pastposix-functions/usleep.texi: Renamed from
39970         doc/posix-functions/usleep.texi.
39971         * doc/pastposix-functions/vfork.texi: Renamed from
39972         doc/posix-functions/vfork.texi.
39973         * doc/pastposix-functions/wcswcs.texi: Renamed from
39974         doc/posix-functions/wcswcs.texi.
39975         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
39976         (Function Substitutes): Update.
39977
39978 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39979
39980         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
39981         m4/strerror.m4.
39982
39983 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39984             Bruno Haible  <bruno@clisp.org>
39985
39986         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
39987
39988 2008-12-13  Bruno Haible  <bruno@clisp.org>
39989
39990         * modules/strtoull (Depends-on): Remove unistd.
39991
39992 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39993
39994         * modules/strtoull (Depends-on): Add stdlib.
39995
39996 2008-12-11  Simon Josefsson  <simon@josefsson.org>
39997
39998         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
39999
40000 2008-12-10  Jim Meyering  <meyering@redhat.com>
40001
40002         gl_ASSERT: don't say assertions are disabled when they're not
40003         * m4/assert.m4 (gl_ASSERT): Do not make configure report
40004         "checking whether to enable assertions... no", when they are in
40005         fact enabled.  This is solely a bug in the output of configure.
40006         In spite of saying "no", NDEBUG was not defined in that case.
40007         Also, as noted by Eric Blake, leave assertions enabled upon
40008         --enable-assert=INVALID.
40009
40010 2008-12-10  Bruno Haible  <bruno@clisp.org>
40011
40012         Change MODULES.html to refer to POSIX:2008 where possible.
40013         * MODULES.html.sh (POSIX2008_URL): New variable.
40014         (posix_headers): Remove sys/timeb, ucontext.
40015         (posix2001_headers): New variable.
40016         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
40017         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
40018         index, makecontext, mktemp, pthread_attr_getstackaddr,
40019         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
40020         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
40021         (posix2001_functions): New variable.
40022         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
40023         otherwise.
40024
40025 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40026
40027         add missing include to parse-duration.c
40028         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
40029         * modules/parse-duration (Depends-on): Add xalloc.
40030
40031         fix sed script reading maint.mk
40032         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
40033         (syntax-check-rules): Use it.
40034
40035 2008-12-09  Bruno Haible  <bruno@clisp.org>
40036
40037         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
40038         MacOS X 10.4/PowerPC.
40039         Reported by Simon Josefsson.
40040
40041 2008-12-08  Jim Meyering  <meyering@redhat.com>
40042
40043         work around mingw's lack of some S_IF definitions
40044         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
40045         Reported by Simon Josefsson.
40046
40047 2008-12-08  Bruno Haible  <bruno@clisp.org>
40048
40049         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
40050         applied to variables. Needed on MacOS X 10.4/PowerPC.
40051         Reported by Simon Josefsson.
40052
40053 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
40054         and Eric Blake  <ebb9@byu.net>
40055
40056         assert: honor --enable-assert
40057         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
40058         order to honor --enable-assert, rather than treating it as a
40059         synonym for --disable-assert.
40060
40061 2008-12-08  Jim Meyering  <meyering@redhat.com>
40062
40063         * lib/posixtm.c: Remove now-useless declaration of mktime.
40064
40065         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
40066
40067 2008-12-07  Bruno Haible  <bruno@clisp.org>
40068
40069         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
40070         test_once): Mark functions as static.
40071         * tests/test-tls.c (test_tls): Likewise.
40072
40073 2008-12-07  Bruno Haible  <bruno@clisp.org>
40074
40075         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
40076         iconv_register_autodetect.
40077
40078 2008-12-07  Jim Meyering  <meyering@redhat.com>
40079
40080         posixtm.c: avoid a warning
40081         * lib/posixtm.c (posixtime): Don't initialize tm0.
40082         It's no longer needed to placate gcc4's -Wuninitialized,
40083         and the attempt to placate would elicit a new warning.
40084
40085         unicodeio.c: mark unused parameters
40086         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40087         (fallback_failure_callback): Likewise.
40088
40089 2008-12-07  Bruno Haible  <bruno@clisp.org>
40090
40091         * gnulib-tool (func_create_testdir): When building the tests
40092         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
40093         Reported by Simon Josefsson.
40094
40095 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40096
40097         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
40098
40099 2008-12-06  Bruno Haible  <bruno@clisp.org>
40100
40101         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
40102         Suggested by Eric Blake.
40103
40104 2008-12-06  Bruno Haible  <bruno@clisp.org>
40105
40106         Fix a c-stack test failure on MacOS X.
40107         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
40108         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
40109         handler for SIGBUS as well.
40110         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
40111         install a signal handler for SIGBUS as well.
40112         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
40113
40114 2008-12-06  Bruno Haible  <bruno@clisp.org>
40115
40116         Advocacy documentation.
40117         * doc/gnulib-intro.texi (Benefits): New section.
40118         * doc/gnulib.texi: Update.
40119
40120 2008-12-06  Bruno Haible  <bruno@clisp.org>
40121
40122         Document the 'manywarnings' module.
40123         * doc/manywarnings.texi: New file.
40124         * doc/gnulib.texi: Include it.
40125
40126 2008-12-05  Eric Blake  <ebb9@byu.net>
40127
40128         tests: silence some gcc warnings
40129         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
40130         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
40131         type mismatches.
40132
40133 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40134             Bruno Haible  <bruno@clisp.org>
40135
40136         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
40137
40138 2008-11-29  Jim Meyering  <meyering@redhat.com>
40139
40140         unicodeio.c: mark unused parameters
40141         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40142         (fallback_failure_callback): Likewise.
40143
40144         fts: fix a thinko
40145         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
40146         (set_stat_type): Return S_IF*-valued "type" directly.
40147         Prompted by James Youngman's spotting a related bug.
40148         Confirmed by further testing through find.
40149
40150         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
40151         * lib/fts.c (D_TYPE): Define.
40152         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
40153         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
40154         (s_ifmt_shift_bits): New function.
40155         (set_stat_type): New function.
40156         (fts_build): When not calling fts_stat, call set_stat_type
40157         to propagate dirent.d_type info to fts_read caller.
40158         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
40159         fts_statp->st_mode type information may be valid.
40160
40161 2008-11-28  Simon Josefsson  <simon@josefsson.org>
40162
40163         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
40164         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
40165         <sds@gnu.org>.
40166
40167 2008-11-20  Bruno Haible  <bruno@clisp.org>
40168
40169         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
40170         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
40171         INCLUDE_NEXT.
40172         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
40173         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
40174         * modules/math (Makefile.am): Substitute
40175         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
40176         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40177
40178 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
40179             Bruno Haible  <bruno@clisp.org>
40180
40181         * lib/stdint.in.h: Define all type macros so that their expansion is
40182         a single typedef'ed token. Fixes a compilation failure in Boost which
40183         does "using ::int8_t;".
40184
40185 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40186
40187         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
40188         gl_MANYWARN_ALL_GCC.
40189         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
40190         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
40191         * modules/manywarnings: New file.
40192         * MODULES.html.sh: Mention manywarnings module.
40193
40194 2008-11-18  Bruno Haible  <bruno@clisp.org>
40195
40196         * doc/gnulib-tool.texi (Unit tests): New section.
40197
40198 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40199
40200         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
40201         paths like 'lib/po/foo.po'.
40202
40203 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40204
40205         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
40206         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
40207
40208 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40209
40210         * m4/warnings.m4: Use CPPFLAGS to really check whether the
40211         parameter works.
40212
40213 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40214
40215         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
40216
40217 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40218
40219         * modules/parse-duration-tests: New file.
40220         * tests/test-parse-duration.sh: New file.
40221         * tests/test-parse-duration.c: New file.
40222
40223         New module 'parse-duration'.
40224         * lib/parse-duration.h: New file.
40225         * lib/parse-duration.c: New file.
40226         * modules/parse-duration: New file.
40227
40228 2008-11-17  Bruno Haible  <bruno@clisp.org>
40229
40230         * tests/test-select-out.sh: Comment out the first pipe test.
40231         Reported by Simon Josefsson.
40232
40233 2008-11-17  Bruno Haible  <bruno@clisp.org>
40234
40235         * modules/getaddrinfo (Depends-on): Add servent, hostent.
40236         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
40237         gl_HOSTENT.
40238
40239 2008-11-17  Bruno Haible  <bruno@clisp.org>
40240
40241         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
40242         -lnetwork and -lnet. Needed for Haiku and BeOS.
40243
40244 2008-11-16  Bruno Haible  <bruno@clisp.org>
40245
40246         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
40247
40248 2008-11-16  Bruno Haible  <bruno@clisp.org>
40249
40250         Avoid test failure on Haiku.
40251         * tests/test-fsync.c: Include <errno.h>.
40252         (main): Don't require that fsync (0) fails.
40253
40254 2008-11-15  Bruno Haible  <bruno@clisp.org>
40255
40256         New module 'hostent'.
40257         * modules/hostent: New file.
40258         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
40259
40260 2008-11-15  Bruno Haible  <bruno@clisp.org>
40261
40262         New module 'servent'.
40263         * modules/servent: New file.
40264         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
40265
40266 2008-11-15  Bruno Haible  <bruno@clisp.org>
40267
40268         Avoid generating same test program with two different rules.
40269         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
40270         test-frexp to test-frexp-nolibm.
40271         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
40272         test-frexpl to test-frexpl-nolibm.
40273
40274 2008-11-15  Bruno Haible  <bruno@clisp.org>
40275
40276         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
40277         $(FREXPL_LIBM).
40278
40279 2008-11-15  Bruno Haible  <bruno@clisp.org>
40280
40281         * lib/netdb.in.h: Activate the definitions also when the system's
40282         <netdb.h> has 'struct addrinfo'.
40283         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
40284         EAI_OVERFLOW or AI_NUMERICSERV.
40285         * doc/posix-headers/netdb.texi: Document the problem.
40286
40287 2008-11-15  Bruno Haible  <bruno@clisp.org>
40288
40289         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
40290
40291         Make the 'sched' module work on platforms where <sched.h> exists but
40292         is incomplete (such as Haiku).
40293         * lib/sched.in.h; Include the system's <sched.h> if it exists.
40294         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
40295         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
40296         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
40297         HAVE_STRUCT_SCHED_PARAM.
40298         * modules/sched (Depends-on): Add include_next.
40299         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
40300         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
40301         * doc/posix-headers/sched.texi: Document the issue.
40302
40303 2008-11-13  Jim Meyering  <meyering@redhat.com>
40304
40305         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
40306         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
40307         test would fail due to the difference in the Report bugs to ...
40308         line.  The expected address is empty, "<>", while the actual
40309         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
40310
40311 2008-11-12  Bruno Haible  <bruno@clisp.org>
40312
40313         lstat: don't compile lstat.c on systems lacking lstat
40314         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
40315         which don't have lstat; this is handled by lib/sys_stat.in.h already.
40316         Reported by Daniel P. Berrange via Jim Meyering.
40317
40318 2008-11-12  Jim Meyering  <meyering@redhat.com>
40319
40320         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
40321
40322 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40323
40324         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
40325         instead.
40326
40327 2008-11-12  Bruno Haible  <bruno@clisp.org>
40328
40329         * lib/unicodeio.c: Include unistr.h.
40330         (utf8_wctomb): Remove function.
40331         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
40332
40333 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40334
40335         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
40336         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
40337         <bruno@clisp.org>.
40338         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
40339
40340 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40341
40342         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
40343         * doc/gnulib.texi: Add section for warnings.
40344
40345 2008-11-11  Bruno Haible  <bruno@clisp.org>
40346
40347         * lib/sockets.h: Add a comment.
40348
40349 2008-11-11  Karl Berry  <karl@gnu.org>
40350
40351         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
40352
40353 2008-11-11  Eric Blake  <ebb9@byu.net>
40354
40355         fdl.texi: avoid git symlinks
40356         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
40357
40358 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40359
40360         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
40361
40362 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40363
40364         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
40365         (gl_WARN_ADD): Substitute $2 if literal.
40366
40367 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40368
40369         * m4/warning.m4: Remove.
40370
40371 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40372
40373         * m4/warnings.m4: Almost complete rewrite. :-)
40374
40375 2008-11-10  Simon Josefsson  <simon@josefsson.org>
40376
40377         * modules/warnings: New module.
40378         * m4/warnings.m4: New file.
40379         * MODULES.html.sh: Mention warnings module.
40380         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
40381         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40382
40383 2008-11-10  Eric Blake  <ebb9@byu.net>
40384
40385         fdl.texi: make a symlink to the latest version
40386         * doc/standards.texi: Revert today's earlier change.
40387         * doc/fdl-1.2.texi: Rename from old fdl.texi...
40388         * doc/fdl.texi: ...and replace this with a symlink to the newer
40389         fdl-1.3.texi.
40390
40391 2008-11-10  Bruno Haible  <bruno@clisp.org>
40392
40393         * tests/test-select-fd.c (main): Accept the result file name as fourth
40394         argument.
40395         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
40396         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
40397
40398 2008-11-10  Bruno Haible  <bruno@clisp.org>
40399
40400         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
40401         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
40402         as autoconf-substituted macros.
40403         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
40404         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
40405         gl_NETDB_H_DEFAULTS. Set these variables.
40406         * modules/netdb (Makefile.am): Substitute these variables.
40407
40408 2008-11-10  Eric Blake  <ebb9@byu.net>
40409
40410         standards.texi: include correct file for FDL 1.3
40411         * doc/standards.texi (GNU Free Documentation License): Change
40412         include file to pull in FDL 1.3, not 1.2.
40413
40414         fdl.texi: revert accidental change to license
40415         * doc/fdl.texi: This is FDL 1.2, not 1.3.
40416
40417 2008-11-10  Bruno Haible  <bruno@clisp.org>
40418
40419         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
40420         cross-compiling guesses also when the native compile gives no result.
40421
40422 2008-11-10  Bruno Haible  <bruno@clisp.org>
40423
40424         * lib/spawni.c (__spawni): Force variable into the stack.
40425
40426 2008-11-10  Bruno Haible  <bruno@clisp.org>
40427
40428         Add support for Haiku.
40429         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
40430         glibc and BeOS, but also on Haiku.
40431         * lib/fpurge.c (fpurge): Likewise.
40432         * lib/freadable.c (freadable): Likewise.
40433         * lib/freadahead.c (freadahead): Likewise.
40434         * lib/freading.c (freading): Likewise.
40435         * lib/freadptr.c (freadptr): Likewise.
40436         * lib/freadseek.c (freadptrinc): Likewise.
40437         * lib/fseeko.c (rpl_fseeko): Likewise.
40438         * lib/fseterr.c (fseterr): Likewise.
40439         * lib/fwritable.c (fwritable): Likewise.
40440         * lib/fwriting.c (fwriting): Likewise.
40441         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
40442
40443 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40444
40445         * lib/config.charset: Treat Haiku like BeOS.
40446
40447 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40448
40449         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
40450         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
40451
40452 2008-11-08  Bruno Haible  <bruno@clisp.org>
40453
40454         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
40455         AC_CACHE_CHECK.
40456
40457 2008-11-08  Bruno Haible  <bruno@clisp.org>
40458
40459         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
40460
40461 2008-11-08  Bruno Haible  <bruno@clisp.org>
40462
40463         * tests/test-select-fd.c: New file.
40464         * tests/test-select-in.sh: New file.
40465         * tests/test-select-out.sh: New file.
40466         * tests/test-select-stdin.c: New file.
40467         * modules/select-tests (Files): Add the new files.
40468         (Depends-on): Add gettimeofday.
40469         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
40470         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
40471         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
40472
40473 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
40474             Bruno Haible  <bruno@clisp.org>
40475
40476         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
40477
40478 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
40479
40480         * build-aux/pmccabe2html: Added support for C++ source files.
40481
40482 2008-11-05  Ben Pfaff  <blp@gnu.org>
40483
40484         Fix lib/close.c build on Windows.
40485         * modules/close (Files): Add lib/w32sock.h.
40486
40487 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
40488
40489         Accept Bison's NEWS format.
40490         * build-aux/announce-gen (print_news_deltas): Tweak
40491         $re_prefix.
40492
40493 2008-11-04  Bruno Haible  <bruno@clisp.org>
40494
40495         * modules/random_r (Maintainer): Add glibc.
40496
40497 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40498
40499         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
40500         by karl@freefriends.org (Karl Berry).
40501         * doc/alloca.texi: Likewise.
40502         * doc/c-ctype.texi: Likewise.
40503         * doc/c-strcase.texi: Likewise.
40504         * doc/c-strcaseeq.texi: Likewise.
40505         * doc/c-strcasestr.texi: Likewise.
40506         * doc/c-strstr.texi: Likewise.
40507         * doc/c-strtod.texi: Likewise.
40508         * doc/c-strtold.texi: Likewise.
40509         * doc/ctime.texi: Likewise.
40510         * doc/error.texi: Likewise.
40511         * doc/fdl.texi: Likewise.
40512         * doc/gcd.texi: Likewise.
40513         * doc/getdate.texi: Likewise.
40514         * doc/gnulib-intro.texi: Likewise.
40515         * doc/gnulib-tool.texi: Likewise.
40516         * doc/gnulib.texi: Likewise.
40517         * doc/inet_ntoa.texi: Likewise.
40518         * doc/maintain.texi: Likewise.
40519         * doc/make-stds.texi: Likewise.
40520         * doc/quote.texi: Likewise.
40521         * doc/regexprops-generic.texi: Likewise.
40522         * doc/standards.texi: Likewise.
40523         * doc/verify.texi: Likewise.
40524         * doc/visibility.texi: Likewise.
40525         * doc/gnulib.texi (GNU Free Documentation License): Include
40526         fdl-1.3.texi instead of fdl.texi.
40527
40528 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40529
40530         * doc/fdl-1.3.texi: New file, from
40531         <http://www.gnu.org/licenses/fdl-1.3.texi>.
40532         * modules/fdl-1.3: Add.
40533         * MODULES.html.sh: Add fdl-1.3.
40534
40535 2008-11-03  Bruno Haible  <bruno@clisp.org>
40536
40537         Make determination of absolute name of header file work with AIX xlc.
40538         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
40539         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
40540         preprocessing.
40541         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40542         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
40543
40544 2008-11-03  Simon Josefsson  <simon@josefsson.org>
40545
40546         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
40547         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
40548         <ludo@gnu.org>.
40549
40550 2008-11-02  Bruno Haible  <bruno@clisp.org>
40551
40552         Mark 'strpbrk' obsolete.
40553         * modules/strpbrk (Status, Notice): New sections.
40554         * modules/strtok_r (Depends-on): Add strpbrk.
40555
40556 2008-11-02  Bruno Haible  <bruno@clisp.org>
40557
40558         Mark 'strdup' obsolete.
40559         * modules/strdup (Status, Notice): New sections.
40560         * modules/findprog (Depends-on): Add strdup.
40561         * modules/getaddrinfo (Depends-on): Likewise.
40562         * modules/localename (Depends-on): Likewise.
40563         * modules/relocatable-lib (Depends-on): Likewise.
40564         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
40565         * modules/relocatable-prog (Depends-on): Likewise.
40566         * modules/trim (Depends-on): Likewise.
40567         * modules/unictype/gen-ctype (Depends-on): Likewise.
40568         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40569
40570 2008-11-02  Bruno Haible  <bruno@clisp.org>
40571
40572         Mark 'strcspn' obsolete.
40573         * modules/strcspn (Status, Notice): New sections.
40574
40575 2008-11-02  Bruno Haible  <bruno@clisp.org>
40576
40577         Mark 'rmdir' obsolete.
40578         * modules/rmdir (Status, Notice): New sections.
40579         * modules/clean-temp (Depends-on): Add rmdir.
40580         * modules/openat (Depends-on): Likewise.
40581
40582 2008-11-02  Bruno Haible  <bruno@clisp.org>
40583
40584         Mark 'raise' obsolete.
40585         * modules/raise (Status, Notice): New sections.
40586         (Include): Specify <signal.h>.
40587         * modules/stdio (Depends-on): Add raise.
40588         * modules/write (Depends-on): Likewise.
40589
40590 2008-11-02  Bruno Haible  <bruno@clisp.org>
40591
40592         Mark 'memset' obsolete.
40593         * modules/memset (Status, Notice): New sections.
40594
40595 2008-11-02  Bruno Haible  <bruno@clisp.org>
40596
40597         Mark 'memmove' obsolete.
40598         * modules/memmove (Status, Notice): New sections.
40599         * modules/argp (Depends-on): Add memmove.
40600         * modules/argz (Depends-on): Likewise.
40601         * modules/canonicalize (Depends-on): Likewise.
40602         * modules/canonicalize-lgpl (Depends-on): Likewise.
40603         * modules/fts (Depends-on): Likewise.
40604         * modules/getcwd (Depends-on): Likewise.
40605         * modules/human (Depends-on): Likewise.
40606         * modules/regex (Depends-on): Likewise.
40607         * modules/striconveh (Depends-on): Likewise.
40608         * modules/trim (Depends-on): Likewise.
40609         * modules/unistr/u8-move (Depends-on): Likewise.
40610         * modules/unistr/u16-move (Depends-on): Likewise.
40611         * modules/unistr/u32-move (Depends-on): Likewise.
40612
40613 2008-11-02  Bruno Haible  <bruno@clisp.org>
40614
40615         Mark 'memcpy' obsolete.
40616         * modules/memcpy (Status, Notice): New sections.
40617
40618 2008-11-02  Bruno Haible  <bruno@clisp.org>
40619
40620         Mark 'memcmp' obsolete.
40621         * modules/memcmp (Status, Notice): New sections.
40622         * modules/argmatch (Depends-on): Add memchr.
40623         * modules/backupfile (Depends-on): Likewise.
40624         * modules/c-strcasestr (Depends-on): Likewise.
40625         * modules/crypto/des (Depends-on): Likewise.
40626         * modules/csharpcomp (Depends-on): Likewise.
40627         * modules/fnmatch (Depends-on): Likewise.
40628         * modules/git-merge-changelog (Depends-on): Likewise.
40629         * modules/isnand (Depends-on): Likewise.
40630         * modules/isnand-nolibm (Depends-on): Likewise.
40631         * modules/isnanf (Depends-on): Likewise.
40632         * modules/isnanf-nolibm (Depends-on): Likewise.
40633         * modules/isnanl (Depends-on): Likewise.
40634         * modules/isnanl-nolibm (Depends-on): Likewise.
40635         * modules/mbchar (Depends-on): Likewise.
40636         * modules/memcoll (Depends-on): Likewise.
40637         * modules/quotearg (Depends-on): Likewise.
40638         * modules/regex (Depends-on): Likewise.
40639         * modules/relocatable-prog (Depends-on): Likewise.
40640         * modules/same (Depends-on): Likewise.
40641         * modules/signbit (Depends-on): Likewise.
40642         * modules/strcasestr-simple (Depends-on): Likewise.
40643         * modules/unictype/gen-ctype (Depends-on): Likewise.
40644         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40645         * modules/uniname/uniname (Depends-on): Likewise.
40646         * modules/unistr/u8-cmp (Depends-on): Likewise.
40647
40648 2008-11-02  Bruno Haible  <bruno@clisp.org>
40649
40650         Mark 'memchr' obsolete.
40651         * modules/memchr (Status, Notice): New sections.
40652         * modules/argp (Depends-on): Add memchr.
40653         * modules/base64 (Depends-on): Likewise.
40654         * modules/c-strcasestr (Depends-on): Likewise.
40655         * modules/chdir-long (Depends-on): Likewise.
40656         * modules/fnmatch (Depends-on): Likewise.
40657         * modules/getsubopt (Depends-on): Likewise.
40658         * modules/git-merge-changelog (Depends-on): Likewise.
40659         * modules/glob (Depends-on): Likewise.
40660         * modules/strcasestr-simple (Depends-on): Likewise.
40661         * modules/strnlen (Depends-on): Likewise.
40662
40663 2008-11-02  Bruno Haible  <bruno@clisp.org>
40664
40665         Mark 'atexit' obsolete.
40666         * modules/atexit (Status, Notice): New sections.
40667         * modules/chdir-long (Depends-on): Add atexit.
40668         * modules/wait-process (Depends-on): Likewise.
40669
40670 2008-11-02  Bruno Haible  <bruno@clisp.org>
40671
40672         * gnulib-tool: New option --with-obsolete.
40673         (func_usage): Document it.
40674         (func_modules_transitive_closure): Drop obsolete dependencies if
40675         incobsolete is not true.
40676         (func_import): Read and save the incobsolete variable to the cache.
40677
40678 2008-11-02  Bruno Haible  <bruno@clisp.org>
40679
40680         * modules/TEMPLATE-EXTENDED: New field 'Status'.
40681         * gnulib-tool: New option --extract-status.
40682         (func_usage): Document it.
40683         (sed_extract_prog): Recognize it.
40684         (func_get_status): New function.
40685
40686 2008-10-30  Simon Josefsson  <simon@josefsson.org>
40687
40688         * modules/sockets (License): Change from LGPL to LGPLv2+.
40689
40690 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40691
40692         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
40693
40694 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40695
40696         * MODULES.html.sh (Support for systems lacking POSIX:2001):
40697         Mention times and sys_times.
40698         * modules/sys_times, modules/sys_times-tests: New modules.
40699         * modules/times, modules/times-tests: Likewise
40700         * m4/sys_times_h.m4: New file.
40701         * lib/sys_times.in.h: Likewise
40702         * lib/times.c: Likewise.
40703         * tests/test-sys_times.c: Likewise.
40704         * tests/test-times.c: Likewise.
40705         * doc/posix-headers/sys_times.texi: Update.
40706         * doc/posix-functions/times.texi: Update.
40707
40708 2008-10-28  Jim Meyering  <meyering@redhat.com>
40709
40710         * modules/tempname (Depends-on): Add lstat.
40711
40712         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
40713
40714 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40715
40716         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
40717         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
40718         using idiom used elsewhere in gnulib.
40719
40720 2008-10-27  Jim Meyering  <meyering@redhat.com>
40721
40722         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
40723
40724 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40725
40726         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
40727         TESTS_ENVIRONMENT, for shell scripts that needs to call built
40728         programs.
40729         * tests/test-argp-2.sh: Use $EXEEXT when needed.
40730
40731 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40732
40733         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
40734
40735 2008-10-27  Bruno Haible  <bruno@clisp.org>
40736
40737         * tests/test-lstat.c: Include <stdio.h>.
40738
40739 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40740
40741         * modules/lstat-tests: New module.
40742         * tests/test-lstat.c: New file.
40743
40744 2008-10-26  Jim Meyering  <meyering@redhat.com>
40745
40746         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
40747
40748 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40749             Bruno Haible  <bruno@clisp.org>
40750
40751         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
40752         * modules/configmake (Include): Add a note that the include must come
40753         after all system headers.
40754         * lib/javaversion.c: Include configmake.h after all other includes.
40755
40756 2008-10-26  Bruno Haible  <bruno@clisp.org>
40757
40758         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
40759         HAVE_STRUCT_RANDOM_DATA to 1.
40760         (gl_STDLIB_H): Simplify.
40761
40762 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40763
40764         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
40765         substitute HAVE_STRUCT_RANDOM_DATA.
40766         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
40767         random_data.
40768         * modules/stdlib (Makefile.am): Substitute
40769         HAVE_STRUCT_RANDOM_DATA.
40770
40771 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40772
40773         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
40774         * doc/gnulib-intro.texi (Copyright): Likewise.
40775
40776 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40777
40778         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
40779         findings.
40780
40781 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
40782             Bruno Haible  <bruno@clisp.org>
40783
40784         * lib/unistd.in.h: Include <winsock2.h>.
40785         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
40786         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
40787         Provide dummy declarations.
40788         (gethostname): Override.
40789         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
40790         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
40791         gl_PREREQ_SYS_H_WINSOCK2.
40792         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
40793         * doc/posix-functions/gethostname.texi: More details.
40794
40795 2008-10-25  Bruno Haible  <bruno@clisp.org>
40796
40797         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40798         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
40799         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
40800
40801         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
40802         here ...
40803         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
40804         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
40805         gl_UNISTD_H_DEFAULTS.
40806
40807 2008-10-25  Eric Blake  <ebb9@byu.net>
40808
40809         signbit: avoid spurious compiler failure
40810         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
40811         declarations inside function.
40812
40813 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40814             Bruno Haible  <bruno@clisp.org>
40815
40816         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
40817         * modules/random_r (Depends-on): Add stdint.
40818
40819 2008-10-24  Bruno Haible  <bruno@clisp.org>
40820
40821         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
40822         Eggert.
40823         * modules/strerror (License): Likewise.
40824
40825 2008-10-24  Jim Meyering  <meyering@redhat.com>
40826
40827         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
40828         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
40829
40830 2008-10-24  Eric Blake  <ebb9@byu.net>
40831
40832         getgroups: fix compilation when getgroups is available
40833         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
40834         but with <config.h> override of getgroups disabled.
40835
40836 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40837
40838         * doc/gnulib.texi (Header files): Add note about C++ problems.
40839         Explained by Bruno Haible <bruno@clisp.org>.
40840
40841 2008-10-23  Bruno Haible  <bruno@clisp.org>
40842
40843         Define a dummy SA_NODEFER macro on Interix.
40844         * lib/signal.in.h (SA_NODEFER): Define fallback.
40845         Reported by Aleksey Cheusov <cheusov@tut.by> via
40846         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
40847
40848 2008-10-23  Bruno Haible  <bruno@clisp.org>
40849
40850         * modules/freadahead (License): Change to LGPLv2+.
40851         Suggested by Simon Josefsson.
40852
40853 2008-10-23  Jim Meyering  <meyering@redhat.com>
40854
40855         random_r: new module
40856         * modules/random_r: New file.
40857         * m4/random_r.m4: New file.
40858         * lib/random_r.c: New file, from glibc.
40859         * modules/random_r-tests: New file.
40860         * tests/test-random_r.c: New file.
40861         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
40862          Declare.
40863         (RAND_MAX): Define.
40864         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
40865         * modules/stdlib: Substitute them, too.
40866         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
40867         * doc/glibc-functions/initstate_r.texi: Mention the new module.
40868         * doc/glibc-functions/random_r.texi: Likewise.
40869         * doc/glibc-functions/setstate_r.texi: Likewise.
40870         * doc/glibc-functions/srandom_r.texi: Likewise.
40871         * config/srclist.txt: Mention it.
40872
40873 2008-10-23  David Lutterkort  <lutter@redhat.com>
40874
40875         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
40876         link requirement
40877
40878 2008-10-23  Jim Meyering  <meyering@redhat.com>
40879
40880         selinux-h: mark parameters of stub functions as intentionally unused
40881         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
40882         * lib/se-context.in.h: Likewise.
40883
40884 2008-10-22  Simon Josefsson  <simon@josefsson.org>
40885
40886         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
40887
40888 2008-10-22  Simon Josefsson  <simon@josefsson.org>
40889
40890         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
40891
40892 2008-10-22  Eric Blake  <ebb9@byu.net>
40893
40894         glthread/thread: avoid compiler warning
40895         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
40896         Add unreachable abort to silence compiler.
40897
40898 2008-10-22  Eric Blake  <ebb9@byu.net>
40899
40900         netdb: also supply struct addrinfo for cygwin 1.5.x
40901         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
40902         older cygwin.
40903         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
40904         cygwin.
40905         * doc/posix-headers/netdb.texi (netdb.h): Document this.
40906
40907 2008-10-22  Bruno Haible  <bruno@clisp.org>
40908
40909         * users.txt: Update entry about pspp.
40910
40911 2008-10-21  Bruno Haible  <bruno@clisp.org>
40912
40913         Simplification.
40914         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
40915         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
40916
40917         Simplification.
40918         * lib/ioctl.c (ioctl): Don't undefine.
40919         * lib/socket.c (socket): Don't undefine.
40920
40921         Remove unused module indicator macros.
40922         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
40923         GNULIB_$1 as a C macro.
40924
40925         * doc/posix-functions/close.texi: Undo last change.
40926         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
40927         Windows platforms.
40928
40929 2008-10-21  Bruno Haible  <bruno@clisp.org>
40930
40931         Add gethostname() declaration to <unistd.h>.
40932         * lib/unistd.in.h (gethostname): New declaration.
40933         * lib/gethostname.c: Include <unistd.h>.
40934         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
40935         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
40936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
40937         and HAVE_GETHOSTNAME.
40938         * modules/gethostname (Depends-on): Add unistd.
40939         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40940         (Include): Specify <unistd.h>.
40941         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
40942         HAVE_GETHOSTNAME.
40943         * tests/test-gethostname.c: Include <unistd.h> first.
40944
40945 2008-10-21  Bruno Haible  <bruno@clisp.org>
40946
40947         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
40948         * modules/select-tests (Depends-on): Likewise.
40949         Reported by Simon Josefsson.
40950
40951 2008-10-21  Simon Josefsson  <simon@josefsson.org>
40952
40953         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
40954         * lib/accept.c: New file, based on winsock.c.
40955         * lib/bind.c: New file, based on winsock.c.
40956         * lib/connect.c: New file, based on winsock.c.
40957         * lib/getpeername.c: New file, based on winsock.c.
40958         * lib/getsockname.c: New file, based on winsock.c.
40959         * lib/getsockopt.c: New file, based on winsock.c.
40960         * lib/ioctl.c: New file, based on winsock.c.
40961         * lib/listen.c: New file, based on winsock.c.
40962         * lib/recv.c: New file, based on winsock.c.
40963         * lib/recvfrom.c: New file, based on winsock.c.
40964         * lib/send.c: New file, based on winsock.c.
40965         * lib/sendto.c: New file, based on winsock.c.
40966         * lib/setsockopt.c: New file, based on winsock.c.
40967         * lib/shutdown.c: New file, based on winsock.c.
40968         * lib/socket.c: New file, based on winsock.c.
40969         * lib/w32sock.h: New file, based on winsock.c.
40970         * lib/winsock.c: Remove file.
40971         * modules/accept: Likewise.
40972         * modules/bind: Likewise.
40973         * modules/connect: Likewise.
40974         * modules/getpeername: Likewise.
40975         * modules/getsockname: Likewise.
40976         * modules/getsockopt: Likewise.
40977         * modules/ioctl: Likewise.
40978         * modules/listen: Likewise.
40979         * modules/recv: Likewise.
40980         * modules/recvfrom: Likewise.
40981         * modules/send: Likewise.
40982         * modules/sendto: Likewise.
40983         * modules/setsockopt: Likewise.
40984         * modules/shutdown: Likewise.
40985         * modules/socket: Use socket.c instead of winsock.c.
40986         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
40987         * doc/posix-functions/accept.texi: Doc fix.
40988         * doc/posix-functions/bind.texi: Doc fix.
40989         * doc/posix-functions/close.texi: Doc fix.
40990         * doc/posix-functions/connect.texi: Doc fix.
40991         * doc/posix-functions/getpeername.texi: Doc fix.
40992         * doc/posix-functions/getsockname.texi: Doc fix.
40993         * doc/posix-functions/getsockopt.texi: Doc fix.
40994         * doc/posix-functions/ioctl.texi: Doc fix.
40995         * doc/posix-functions/listen.texi: Doc fix.
40996         * doc/posix-functions/recv.texi: Doc fix.
40997         * doc/posix-functions/recvfrom.texi: Doc fix.
40998         * doc/posix-functions/send.texi: Doc fix.
40999         * doc/posix-functions/sendto.texi: Doc fix.
41000         * doc/posix-functions/setsockopt.texi: Doc fix.
41001         * doc/posix-functions/shutdown.texi: Doc fix.
41002         * doc/posix-functions/socket.texi: Doc fix.
41003
41004 2008-10-20  Bruno Haible  <bruno@clisp.org>
41005
41006         Take into account the role of SIGABRT_COMPAT on Windows 2008.
41007         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
41008         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
41009         as an alias for SIGABRT.
41010         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
41011         (sigaction): Map it to SIGABRT.
41012         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
41013
41014 2008-10-20  Bruno Haible  <bruno@clisp.org>
41015
41016         * lib/fts.c: Don't include lstat.h.
41017         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
41018
41019         Move the lstat() declaration to <sys/stat.h>.
41020         * lib/lstat.h: Remove file.
41021         * lib/sys_stat.in.h: Add special invocation convention.
41022         (lstat): New declaration.
41023         * lib/lstat.c (orig_lstat): New function.
41024         (rpl_lstat): Use orig_lstat instead of lstat.
41025         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
41026         AC_C_INLINE. Set REPLACE_LSTAT.
41027         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
41028         and REPLACE_LSTAT.
41029         * modules/lstat (Files): Remove lib/lstat.h.
41030         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41031         (Include): Specify <sys/stat.h> instead of lstat.h.
41032         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
41033         REPLACE_LSTAT.
41034         * NEWS: Mention the change.
41035
41036 2008-10-20  Bruno Haible  <bruno@clisp.org>
41037
41038         * modules/posix_spawn-tests: New file.
41039         * tests/test-posix_spawn3.c: New file.
41040
41041 2008-10-20  Bruno Haible  <bruno@clisp.org>
41042
41043         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
41044         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41045         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
41046         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41047         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
41048
41049 2008-10-20  Bruno Haible  <bruno@clisp.org>
41050
41051         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
41052         of posix_spawn on AIX 5.3.
41053
41054 2008-10-20  Bruno Haible  <bruno@clisp.org>
41055
41056         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
41057
41058 2008-10-20  Bruno Haible  <bruno@clisp.org>
41059
41060         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
41061         of AC_LANG_PROGRAM.
41062
41063 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41064
41065         * lib/netdb.in.h: Don't define GNU specific constants until they
41066         are supported or needed.  Reported by Bruno Haible
41067         <bruno@clisp.org>.
41068
41069 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41070
41071         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
41072
41073 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41074
41075         * lib/getaddrinfo.h: Remove file.
41076         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
41077         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
41078         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
41079         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
41080         * modules/netdb: Substitute GNULIB_GETADDRINFO.
41081         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
41082         * tests/test-getaddrinfo.c: Likewise.
41083         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
41084         * NEWS: Mention change.
41085
41086 2008-10-19  Bruno Haible  <bruno@clisp.org>
41087
41088         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
41089
41090 2008-10-19  Bruno Haible  <bruno@clisp.org>
41091
41092         * lib/wait-process.c: Include simply <sys/wait.h>.
41093         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
41094         WIFSTOPPED): Remove fallback definitions.
41095         * modules/wait-process (Depends-on): Add sys_wait.
41096
41097         New module 'sys_wait'.
41098         * modules/sys_wait: New file.
41099         * lib/sys_wait.in.h: New file, partially copied from
41100         lib/wait-process.c.
41101         * m4/sys_wait_h.m4: New file.
41102         * doc/posix-headers/sys_wait.texi: Mention the new module.
41103
41104 2008-10-19  Bruno Haible  <bruno@clisp.org>
41105
41106         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
41107
41108 2008-10-19  Bruno Haible  <bruno@clisp.org>
41109
41110         Assume that waitpid() fills an 'int' status, not a 'union wait'.
41111         * lib/wait-process.c (WAIT_T): Remove type.
41112         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
41113         (wait_subprocess): Update.
41114
41115 2008-10-19  Bruno Haible  <bruno@clisp.org>
41116
41117         New module 'atoll'.
41118         * modules/atoll: New file.
41119         * lib/stdlib.in.h (atoll): New declaration.
41120         * lib/atoll.c: New file, from glibc with modifications.
41121         * m4/atoll.m4: New file.
41122         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
41123         HAVE_ATOLL.
41124         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
41125         * doc/posix-functions/atoll.texi: Mention the new module.
41126
41127 2008-10-19  Bruno Haible  <bruno@clisp.org>
41128
41129         Add strtoull() declaration to <stdlib.h>.
41130         * lib/stdlib.in.h (strtoull): New declaration.
41131         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41132         Set HAVE_STRTOULL.
41133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
41134         HAVE_STRTOULL.
41135         * modules/strtoull (Depends-on): Add stdlib.
41136         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41137         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
41138         HAVE_STRTOULL.
41139
41140 2008-10-19  Bruno Haible  <bruno@clisp.org>
41141
41142         Add strtoll() declaration to <stdlib.h>.
41143         * lib/stdlib.in.h (strtoll): New declaration.
41144         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41145         Set HAVE_STRTOLL.
41146         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
41147         HAVE_STRTOLL.
41148         * modules/strtoll (Depends-on): Add stdlib.
41149         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41150         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
41151
41152 2008-10-19  Bruno Haible  <bruno@clisp.org>
41153
41154         * modules/bcopy (Depends-on): Add strings.
41155         (Include): Specify <strings.h>.
41156
41157 2008-10-19  Bruno Haible  <bruno@clisp.org>
41158
41159         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
41160
41161 2008-10-19  Bruno Haible  <bruno@clisp.org>
41162
41163         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
41164         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
41165         mingw.
41166
41167 2008-10-19  Bruno Haible  <bruno@clisp.org>
41168
41169         * lib/atanl.c: Don't include isnanl.h.
41170         * lib/cosl.c: Likewise.
41171         * lib/ldexpl.c: Likewise.
41172         * lib/logl.c: Likewise.
41173         * lib/sinl.c: Likewise.
41174         * lib/sqrtl.c: Likewise.
41175         * lib/tanl.c: Likewise.
41176
41177         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
41178         * lib/isnanf.h: Remove file.
41179         * lib/isnand.h: Remove file.
41180         * lib/isnanl.h: Remove file.
41181         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
41182         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
41183         macros.
41184         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
41185         HAVE_ISNANF, don't define it as a C macro.
41186         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
41187         HAVE_ISNAND, don't define it as a C macro.
41188         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
41189         HAVE_ISNANL, don't define it as a C macro.
41190         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
41191         HAVE_ISNAN[FDL].
41192         * modules/isnanf (Files): Remove lib/isnanf.h.
41193         (Depends-on): Add math.
41194         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41195         (Include): Specify <math.h> instead of isnanf.h.
41196         * modules/isnand (Files): Remove lib/isnand.h.
41197         (Depends-on): Add math.
41198         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41199         (Include): Specify <math.h> instead of isnand.h.
41200         * modules/isnanl (Files): Remove lib/isnanl.h.
41201         (Depends-on): Add math.
41202         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41203         (Include): Specify <math.h> instead of isnanl.h.
41204         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
41205         HAVE_ISNAN[FDL].
41206         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
41207         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
41208         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
41209         * NEWS: Mention the change.
41210
41211 2008-10-18  Bruno Haible  <bruno@clisp.org>
41212
41213         Add getusershell(), setusershell(), endusershell() declarations to
41214         <unistd.h>.
41215         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
41216         declarations.
41217         * lib/getusershell.c: Include unistd.h.
41218         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
41219         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41220         HAVE_GETUSERSHELL.
41221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
41222         and HAVE_GETUSERSHELL.
41223         * modules/getusershell (Depends-on): Add unistd, extensions.
41224         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41225         (Include): Specify <unistd.h>.
41226         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
41227         HAVE_GETUSERSHELL.
41228
41229 2008-10-18  Bruno Haible  <bruno@clisp.org>
41230
41231         Add a getloadavg() declaration to <stdlib.h>.
41232         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
41233         getloadavg declaration.
41234         (getloadavg): New declaration.
41235         * lib/getloadavg.c: Include <stdlib.h> first.
41236         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
41237         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
41238         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
41239         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
41240         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41241         * modules/getloadavg (Depends-on): Add stdlib, extensions.
41242         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41243         (Include): Specify <stdlib.h>.
41244         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
41245         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41246
41247 2008-10-18  Bruno Haible  <bruno@clisp.org>
41248
41249         * lib/dirchownmod.c: Don't include lchmod.h.
41250
41251         Move the lchmod() declaration to <sys/stat.h>.
41252         * lib/lchmod.h: Remove file.
41253         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
41254         (lchmod): New declaration, moved here from lib/lchown.h.
41255         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
41256         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
41257         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
41258         and HAVE_LCHMOD.
41259         * modules/lchmod (Files): Remove lib/lchmod.h.
41260         (Depends-on): Add sys_stat, extensions.
41261         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41262         (Include): Specify <sys/stat.h> instead of lchmod.h.
41263         * modules/sys_stat (Depends-on): Add link-warning.
41264         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
41265         definition of GL_LINK_WARNING.
41266         * NEWS: Mention the change.
41267
41268 2008-10-18  Bruno Haible  <bruno@clisp.org>
41269
41270         * lib/fchdir.c: Don't include dirfd.h.
41271         * lib/fts.c: Likewise.
41272         * lib/getcwd.c: Likewise.
41273         * lib/glob.c: Likewise.
41274
41275         Move the dirfd() declaration to <dirent.h>.
41276         * lib/dirfd.h: Remove file.
41277         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
41278         (dirfd): New declaration.
41279         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
41280         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
41281         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
41282         HAVE_DECL_DIRFD.
41283         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
41284         HAVE_DECL_DIRFD.
41285         * modules/dirfd (Files): Remove lib/dirfd.h.
41286         (Depends-on): Add dirent, extensions.
41287         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
41288         (Include): Specify <dirent.h> instead of dirfd.h.
41289         * modules/dirent (Depends-on): Add link-warning.
41290         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
41291         definition of GL_LINK_WARNING.
41292         * NEWS: Mention the change.
41293
41294 2008-10-18  Bruno Haible  <bruno@clisp.org>
41295
41296         Move the euidaccess() declaration to <unistd.h>.
41297         * lib/euidaccess.h: Remove file.
41298         * lib/unistd.in.h (euidaccess): New declaration.
41299         * lib/euidaccess.c: Don't include euidaccess.h.
41300         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
41301         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
41302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
41303         and HAVE_EUIDACCESS.
41304         * modules/euidaccess (Files): Remove lib/euidaccess.h.
41305         (Depends-on): Add unistd.
41306         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41307         (Include): Specify <unistd.h> instead of euidaccess.h.
41308         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
41309         HAVE_EUIDACCESS.
41310         * NEWS: Mention the change.
41311
41312 2008-10-18  Bruno Haible  <bruno@clisp.org>
41313
41314         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
41315
41316         Move the getdomainname() declaration to <unistd.h>.
41317         * lib/getdomainname.h: Remove file.
41318         * lib/unistd.in.h (getdomainname): New declaration.
41319         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
41320         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
41321         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41322         HAVE_GETDOMAINNAME.
41323         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41324         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
41325         * modules/getdomainname (Files): Remove lib/getdomainname.h.
41326         (Depends-on): Add unistd, extensions.
41327         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41328         (Includes): Specify <unistd.h> instead of getdomainname.h.
41329         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
41330         HAVE_GETDOMAINNAME.
41331         * NEWS: Mention the change.
41332
41333 2008-10-18  Bruno Haible  <bruno@clisp.org>
41334
41335         * modules/dirent: New file.
41336         * m4/dirent_h.m4: New file.
41337         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
41338         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
41339         * modules/fchdir (Files): Remove lib/dirent.in.h.
41340         (Depends-on): Add dirent.
41341         (Makefile.am): Move rules to modules/dirent.
41342         * doc/posix-headers/dirent.texi: Mention the new module.
41343
41344 2008-10-18  Bruno Haible  <bruno@clisp.org>
41345
41346         Avoid -Wunused-parameter warnings in public gnulib header files.
41347         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
41348         macro.
41349         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
41350
41351 2008-10-18  Bruno Haible  <bruno@clisp.org>
41352
41353         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
41354         * doc/glibc-functions/error.texi: Mention the module 'error'.
41355         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
41356         * doc/glibc-functions/getdomainname.texi: Mention the module
41357         'getdomainname'.
41358         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
41359         * doc/glibc-functions/getpagesize.texi: Mention the module
41360         'getpagesize'.
41361         * doc/glibc-functions/getusershell.texi: Mention the module
41362         'getusershell'.
41363         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
41364         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
41365         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
41366         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
41367         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
41368         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
41369         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
41370         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
41371         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
41372         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
41373         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
41374         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
41375         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
41376         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
41377
41378 2008-10-17  Bruno Haible  <bruno@clisp.org>
41379
41380         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
41381         HP-UX and IRIX, use -0.0L.
41382         * tests/test-ceill.c (minus_zero): Likewise.
41383         * tests/test-floorl.c (minus_zero): Likewise.
41384         * tests/test-frexpl.c (minus_zero): Likewise.
41385         * tests/test-isnan.c (minus_zerol): Likewise.
41386         * tests/test-isnanl.h (minus_zero): Likewise.
41387         * tests/test-ldexpl.c (minus_zero): Likewise.
41388         * tests/test-roundl.c (minus_zero): Likewise.
41389         * tests/test-signbit.c (minus_zerol): Likewise.
41390         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41391         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41392         * tests/test-truncl.c (minus_zero): Likewise.
41393         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41394         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41395         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
41396         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41397
41398 2008-10-17  Bruno Haible  <bruno@clisp.org>
41399
41400         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
41401         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
41402         that it gets activated only for gcc >= 3.0.
41403         * lib/dirent.in.h: Likewise.
41404         * lib/errno.in.h: Likewise.
41405         * lib/fcntl.in.h: Likewise.
41406         * lib/float.in.h: Likewise.
41407         * lib/iconv.in.h: Likewise.
41408         * lib/inttypes.in.h: Likewise.
41409         * lib/locale.in.h: Likewise.
41410         * lib/math.in.h: Likewise.
41411         * lib/netdb.in.h: Likewise.
41412         * lib/netinet_in.in.h: Likewise.
41413         * lib/search.in.h: Likewise.
41414         * lib/signal.in.h: Likewise.
41415         * lib/spawn.in.h: Likewise.
41416         * lib/stdarg.in.h: Likewise.
41417         * lib/stdint.in.h: Likewise.
41418         * lib/stdio.in.h: Likewise.
41419         * lib/stdlib.in.h: Likewise.
41420         * lib/string.in.h: Likewise.
41421         * lib/strings.in.h: Likewise.
41422         * lib/sys_file.in.h: Likewise.
41423         * lib/sys_ioctl.in.h: Likewise.
41424         * lib/sys_select.in.h: Likewise.
41425         * lib/sys_socket.in.h: Likewise.
41426         * lib/sys_stat.in.h: Likewise.
41427         * lib/sys_time.in.h: Likewise.
41428         * lib/sysexits.in.h: Likewise.
41429         * lib/time.in.h: Likewise.
41430         * lib/unistd.in.h: Likewise.
41431         * lib/wchar.in.h: Likewise.
41432         * lib/wctype.in.h: Likewise.
41433         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41434
41435 2008-10-17  Jim Meyering  <meyering@redhat.com>
41436
41437         ignore-value: don't depend on inline module
41438         * modules/ignore-value (Depends-on): Remove 'inline'.
41439         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
41440         Suggestion from Bruno Haible.
41441
41442 2008-10-17  Bruno Haible  <bruno@clisp.org>
41443
41444         New implementation of condition variables for Win32.
41445         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
41446         (gl_linked_waitqueue_t): New type.
41447         (gl_cond_t): Use it.
41448         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
41449         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
41450         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
41451         (glthread_cond_init_func, glthread_cond_wait_func,
41452         glthread_cond_timedwait_func, glthread_cond_signal_func,
41453         glthread_cond_broadcast_func, glthread_cond_destroy_func):
41454         Reimplemented on the basis of gl_linked_waitqueue_t.
41455         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
41456         gl_waitqueue_t.
41457         (gl_rwlock_t): Update.
41458         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
41459
41460 2008-10-17  Simon Josefsson  <simon@josefsson.org>
41461
41462         * modules/recvfrom (Depends-on): Add dependency on getpeername.
41463         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41464
41465 2008-10-17  Jim Meyering  <meyering@redhat.com>
41466
41467         ignore-value: new module
41468         * modules/ignore-value: New file.
41469         * lib/ignore-value.h: New file.
41470         * MODULES.html.sh (Compiler warning management): New section,
41471         just for this module.  More to come.
41472
41473 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41474
41475         open-safer.c: avoid 'signed and unsigned in conditional...' warning
41476         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
41477         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
41478
41479 2008-10-16  Jim Meyering  <meyering@redhat.com>
41480
41481         openat-die.c: avoid 'no previous prototype' warning
41482         * lib/openat-die.c: Include "openat.h".
41483         Reported by Reuben Thomas <rrt@sc3d.org>.
41484
41485 2008-10-16  Simon Josefsson  <simon@josefsson.org>
41486
41487         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
41488         * lib/netdb.in.h: Fix typo.
41489         Reported by Bruno Haible  <bruno@clisp.org>
41490
41491         * lib/netdb.in.h: Include sys/socket.h for platforms without
41492         netdb.h, to get structures like hostent on MinGW.
41493         * modules/netdb (Depends-on): Add sys_socket.
41494
41495 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41496
41497         * modules/netdb, modules/netdb-tests: New file.
41498         * m4/netdb_h.m4: New file.
41499         * lib/netdb.in.h: Add, currently just an empty file pending
41500         definitions.
41501         * tests/test-netdb.c: New file.
41502         * doc/posix-headers/netdb.texi: Mention that we replace it if
41503         needed.
41504         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41505         netdb.
41506
41507 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41508
41509         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
41510         with code.
41511
41512 2008-10-13  Bruno Haible  <bruno@clisp.org>
41513
41514         * lib/glthread/cond.c (glthread_cond_wait_func,
41515         glthread_cond_timedwait_func): Add a comment.
41516
41517 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41518
41519         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
41520         * tests/test-select.c: Likewise,
41521
41522 2008-10-13  Bruno Haible  <bruno@clisp.org>
41523
41524         * lib/glthread/cond.c (glthread_cond_wait_func,
41525         glthread_cond_timedwait_func): Fix variable name.
41526         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41527
41528 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
41529
41530         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
41531         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
41532         struct sockaddr.sa_len.
41533         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
41534
41535 2008-10-13  Simon Josefsson  <simon@josefsson.org>
41536
41537         * build-aux/pmccabe2html: Add css and css_url parameters.
41538
41539 2008-10-12  Bruno Haible  <bruno@clisp.org>
41540
41541         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
41542         calling aclx_get.
41543         Reported by Rainer Tammer <tammer@tammer.net>.
41544
41545 2008-10-12  Bruno Haible  <bruno@clisp.org>
41546
41547         Use msvcrt aware primitives for creation/termination of Win32 threads.
41548         * lib/glthread/thread.c: Include <process.h>.
41549         (glthread_create_func): Use _beginthreadex instead of CreateThread.
41550         (wrapper_func): Update signature.
41551         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
41552
41553 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41554             Bruno Haible  <bruno@clisp.org>
41555
41556         Provide a Win32 implementation of the 'cond' module.
41557         * lib/glthread/cond.h [USE_WIN32]: New implementation.
41558         * lib/glthread/cond.c (glthread_cond_init_func,
41559         glthread_cond_wait_func, glthread_cond_timedwait_func,
41560         glthread_cond_signal_func, glthread_cond_broadcast_func,
41561         glthread_cond_destroy_func) [USE_WIN32]: New functions.
41562         * modules/cond (Dependencies): Add gettimeofday.
41563
41564 2008-10-11  Bruno Haible  <bruno@clisp.org>
41565
41566         Make sleep work on older versions of mingw.
41567         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
41568         only whether it exists.
41569         * doc/posix-functions/sleep.texi: Mention the problem with older
41570         versions of mingw.
41571
41572 2008-10-11  Bruno Haible  <bruno@clisp.org>
41573
41574         New module 'shutdown'.
41575         * modules/shutdown: New file.
41576         * lib/sys_socket.in.h (shutdown): New declaration.
41577         * lib/winsock.c (shutdown): New function.
41578         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41579         GNULIB_SHUTDOWN.
41580         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
41581         * doc/posix-functions/shutdown.texi: Document the new module.
41582
41583 2008-10-11  Jim Meyering  <meyering@redhat.com>
41584
41585         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
41586
41587 2008-10-11  Bruno Haible  <bruno@clisp.org>
41588
41589         New module 'fclose'.
41590         * modules/fclose: New file.
41591         * lib/stdio.in.h (fclose): New declaration.
41592         * lib/fclose.c: New file.
41593         * m4/fclose.m4: New file.
41594         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
41595         REPLACE_FCLOSE.
41596         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
41597         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
41598         REPLACE_FCLOSE.
41599         * modules/close (Depends-on): fclose.
41600         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
41601
41602 2008-10-11  Bruno Haible  <bruno@clisp.org>
41603
41604         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
41605         set errno and don't call _close.
41606
41607 2008-10-10  Bruno Haible  <bruno@clisp.org>
41608
41609         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
41610         ACL, not afterwards. Fixes test failure on Cygwin.
41611
41612 2008-10-09  Ben Pfaff  <blp@gnu.org>
41613
41614         * build-aux/announce-gen: Fix gnulib version related part of usage
41615         message.  Die with a useful error message if no tarballs are
41616         found.
41617
41618 2008-10-10  Jim Meyering  <meyering@redhat.com>
41619
41620         bootstrap: use git's --depth=N option only if it's supported
41621         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
41622         recognize the --depth option.  Reported by Pádraig Brady.
41623
41624 2008-10-09  Bruno Haible  <bruno@clisp.org>
41625
41626         New module 'ioctl'.
41627         * modules/ioctl: New file.
41628         * lib/sys_socket.in.h (ioctl): Remove declaration.
41629         * lib/winsock.c: Include <sys/ioctl.h>.
41630         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
41631         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41632         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
41633         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
41634         * doc/posix-functions/ioctl.texi: Mention the new module.
41635
41636 2008-10-09  Bruno Haible  <bruno@clisp.org>
41637
41638         New module 'sys_ioctl'.
41639         * lib/sys_ioctl.in.h: New file.
41640         * m4/sys_ioctl_h.m4: New file.
41641         * modules/sys_ioctl: New file.
41642         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
41643
41644 2008-10-09  Bruno Haible  <bruno@clisp.org>
41645
41646         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
41647         * lib/winsock.c: Include <stdarg.h>.
41648         (rpl_ioctl): Change to second argument 'int' and then varargs.
41649
41650 2008-10-09  Bruno Haible  <bruno@clisp.org>
41651
41652         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
41653         when the sys_socket module is present and the system has <winsock2.h>.
41654
41655 2008-10-09  Bruno Haible  <bruno@clisp.org>
41656
41657         * doc/posix-functions/close.texi: Mention module 'close' instead of
41658         module 'sys_socket'.
41659
41660 2008-10-09  Bruno Haible  <bruno@clisp.org>
41661
41662         * doc/glibc-headers/sys_ioctl.texi: New file.
41663         * doc/gnulib.texi: Include it.
41664
41665 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41666             Bruno Haible  <bruno@clisp.org>
41667
41668         Combine the two replacements of 'close'.
41669         * lib/sys_socket.in.h (close): Define to a reminder to include
41670         <unistd.h>.
41671         (_gl_close_fd_maybe_socket): New declaration.
41672         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
41673         * lib/winsock.c (close): Remove undefinition.
41674         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
41675         needed for the gnulib module 'close'.
41676         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
41677         define to an error symbol or to a warning, if suitable.
41678         * lib/close.c: Include <sys/socket.h>.
41679         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
41680         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
41681         UNISTD_H_HAVE_WINSOCK2_H.
41682         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
41683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41684         UNISTD_H_HAVE_WINSOCK2_H.
41685         * modules/sys_socket (Files): Add m4/unistd_h.m4.
41686         (configure.ac): Set a module indicator.
41687         (Makefile.am): Substitute GNULIB_CLOSE.
41688         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
41689         * modules/poll-tests (Depends-on): Add close.
41690         * modules/select-tests (Depends-on): Likewise.
41691
41692 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41693             Bruno Haible  <bruno@clisp.org>
41694
41695         New module 'close'.
41696         * modules/close: New file.
41697         * lib/unistd.in.h (close): Move declaration out of the
41698         FCHDIR_REPLACEMENT scope.
41699         (_gl_unregister_fd): New declaration.
41700         * lib/close.c: New file.
41701         * lib/fchdir.c (rpl_close): Remove function.
41702         * m4/close.m4: New file.
41703         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41704         close.
41705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
41706         REPLACE_CLOSE.
41707         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
41708         REPLACE_CLOSE.
41709         * modules/fchdir (Depends-on): Add close.
41710
41711 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41712             Bruno Haible  <bruno@clisp.org>
41713
41714         * lib/fcntl.in.h (open): Simplify conditionals.
41715         (_gl_register_fd): New declaration.
41716         * lib/fchdir.c (rpl_open): Remove function.
41717         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
41718         also.
41719         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
41720         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41721         open.
41722
41723 2008-10-09  Jim Meyering  <meyering@redhat.com>
41724
41725         GNUmakefile: use the more name-space-friendly "_version"
41726         * top/GNUmakefile (_dummy): Update.
41727         (_version): Rename from "version".
41728
41729 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41730             Bruno Haible  <bruno@clisp.org>
41731
41732         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
41733         rpl_close.
41734         (_gl_register_fd): New function, extracted from rpl_open.
41735         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
41736         (rpl_open, rpl_opendir): Use _gl_register_fd.
41737
41738 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41739
41740         Fix organization of 'open' replacement.
41741         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
41742         (gl_FUNC_OPEN): Use it.
41743         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
41744
41745 2008-10-08  Bruno Haible  <bruno@clisp.org>
41746
41747         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
41748
41749 2008-10-08  Simon Josefsson  <simon@josefsson.org>
41750
41751         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
41752         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
41753         listen).
41754
41755 2008-10-08  Eric Blake  <ebb9@byu.net>
41756
41757         GNUmakefile: add 'make version' target
41758         * top/GNUmakefile (_curr-ver): Split version update rules...
41759         (version): ...into a target.
41760
41761 2008-10-07  Bruno Haible  <bruno@clisp.org>
41762
41763         Use a more portable replacement expression for -0.0L.
41764         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
41765         instead of -0.0L. Fix m4 quotation.
41766
41767         * tests/test-signbit.c: Include <float.h>.
41768         (minus_zero): New variable.
41769         (test_signbitl): Use minus_zero instead of -zero.
41770         * modules/signbit-tests (Depends-on): Add float.
41771
41772         * tests/test-ceill.c: Include <float.h>.
41773         (zero): Remove variable.
41774         (minus_zero): New variable.
41775         (main): Use minus_zero instead of -zero.
41776         * modules/ceill-tests (Depends-on): Add float.
41777
41778         * tests/test-floorl.c: Include <float.h>.
41779         (zero): Remove variable.
41780         (minus_zero): New variable.
41781         (main): Use minus_zero instead of -zero.
41782         * modules/floorl-tests (Depends-on): Add float.
41783
41784         * tests/test-roundl.c: Include <float.h>.
41785         (zero): Remove variable.
41786         (minus_zero): New variable.
41787         (main): Use minus_zero instead of -zero.
41788         * modules/roundl-tests (Depends-on): Add float.
41789
41790         * tests/test-truncl.c: Include <float.h>.
41791         (zero): Remove variable.
41792         (minus_zero): New variable.
41793         (main): Use minus_zero instead of -zero.
41794         * modules/truncl-tests (Depends-on): Add float.
41795
41796         * tests/test-frexpl.c (zero): Remove variable.
41797         (minus_zero): New variable.
41798         (main): Use minus_zero instead of -zero.
41799         * modules/frexpl-tests (Depends-on): Add float.
41800
41801         * tests/test-isnan.c (zerol): Remove variable.
41802         (minus_zerol): New variable.
41803         (test_long_double): Use minus_zerol instead of -zerol.
41804         * modules/isnan-tests (Depends-on): Add float.
41805
41806         * tests/test-isnanl.h (zero): Remove variable.
41807         (minus_zero): New variable.
41808         (main): Use minus_zero instead of -zero.
41809         * modules/isnanl-nolibm-tests (Depends-on): Add float.
41810         * modules/isnanl-tests (Depends-on): Add float.
41811
41812         * tests/test-ldexpl.c (zero): Remove variable.
41813         (minus_zero): New variable.
41814         (main): Use minus_zero instead of -zero.
41815         * modules/ldexpl-tests (Depends-on): Add float.
41816
41817         * tests/test-snprintf-posix.h (zerol): Remove variable.
41818         (minus_zerol): New variable.
41819         (test_function): Use minus_zerol instead of -zerol.
41820         * modules/snprintf-posix-tests (Depends-on): Add float.
41821         * modules/vsnprintf-posix-tests (Depends-on): Add float.
41822
41823         * tests/test-sprintf-posix.h (zerol): Remove variable.
41824         (minus_zerol): New variable.
41825         (test_function): Use minus_zerol instead of -zerol.
41826         * modules/sprintf-posix-tests (Depends-on): Add float.
41827         * modules/vsprintf-posix-tests (Depends-on): Add float.
41828
41829         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
41830         (minus_zerol): New variable.
41831         (test_function): Use minus_zerol instead of -zerol.
41832         * modules/vasnprintf-posix-tests (Depends-on): Add float.
41833
41834         * tests/test-vasprintf-posix.c (zerol): Remove variable.
41835         (minus_zerol): New variable.
41836         (test_function): Use minus_zerol instead of -zerol.
41837         * modules/vasprintf-posix-tests (Depends-on): Add float.
41838
41839 2008-10-07  Simon Josefsson  <simon@josefsson.org>
41840
41841         * MODULES.html.sh (Support for building documentation): Mention
41842         pmccabe2html.  Sort entries.
41843
41844         Add pmccabe2html module, from gnupdf.
41845         * build-aux/pmccabe.css: New file.
41846         * build-aux/pmccabe2html: New file.
41847         * m4/pmccabe2html.m4: New file.
41848         * modules/pmccabe2html: New file.
41849
41850 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
41851
41852         flock: new module
41853         * MODULES.html.sh: Add to list of modules.
41854         * lib/flock.c: flock implementation for Windows and Unix systems
41855         which have fcntl.
41856         * doc/glibc-functions/flock.texi: Update documentation.
41857         * lib/sys_file.in.h: <sys/file.h> header file.
41858         * m4/flock.m4: M4 macros.
41859         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
41860         * modules/flock: flock module.
41861         * modules/flock-tests: flock tests module.
41862         * modules/sys_file: sys/file.h module.
41863         * tests/test-flock.c: test suite for flock.
41864
41865 2008-10-06  Jim Meyering  <meyering@redhat.com>
41866
41867         bootstrap: check for LT_INIT more portably still ;-)
41868         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
41869         Spotted by Bruno Haible.
41870
41871 2008-10-06  Eric Blake  <ebb9@byu.net>
41872
41873         test-signbit: avoid tripping Irix cc bug on -0.0L
41874         * tests/test-signbit.c (minus_zerol): Delete, and replace with
41875         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
41876         entire testsuite consistent and avoids an Irix 6.2 bug.
41877
41878 2008-10-05  Bruno Haible  <bruno@clisp.org>
41879             Jim Meyering  <jim@meyering.net>
41880
41881         Add an option for ignoring EPIPE during close_stdout.
41882         * lib/closeout.h: Include <stdbool.h>.
41883         (close_stdout_set_ignore_EPIPE): New declaration.
41884         * lib/closeout.c: Include <stdbool.h>.
41885         (ignore_EPIPE): New variable.
41886         (close_stdout_set_ignore_EPIPE): New function.
41887         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
41888         * lib/close-stream.c (close_stream): Mention the possible EPIPE
41889         failure.
41890         * modules/closeout (Depends-on): Add stdbool.
41891
41892 2008-10-05  Bruno Haible  <bruno@clisp.org>
41893
41894         * modules/accept: New file.
41895         * modules/bind: New file.
41896         * modules/connect: New file.
41897         * modules/getpeername: New file.
41898         * modules/getsockname: New file.
41899         * modules/getsockopt: New file.
41900         * modules/listen: New file.
41901         * modules/recv: New file.
41902         * modules/recvfrom: New file.
41903         * modules/send: New file.
41904         * modules/sendto: New file.
41905         * modules/setsockopt: New file.
41906         * modules/socket: New file.
41907         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
41908         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
41909         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
41910         the particular module is requested. Add a link warning when the
41911         particular module is not requested.
41912         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
41913         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
41914         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
41915         the particular module is requested.
41916         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
41917         gl_SYS_SOCKET_H_DEFAULTS): New macros.
41918         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
41919         * modules/sys_socket (Depends-on): Add link-warning.
41920         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
41921         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
41922         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
41923         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
41924         GL_LINK_WARNING.
41925         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
41926         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
41927         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
41928         * doc/posix-functions/getpeername.texi: Mention the new module
41929         'getpeername'.
41930         * doc/posix-functions/getsockname.texi: Mention the new module
41931         'getsockname'.
41932         * doc/posix-functions/getsockopt.texi: Mention the new module
41933         'getsockopt'.
41934         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
41935         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
41936         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
41937         * doc/posix-functions/send.texi: Mention the new module 'send'.
41938         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
41939         * doc/posix-functions/setsockopt.texi: Mention the new module
41940         'setsockopt'.
41941         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
41942         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
41943         listen, connect, accept.
41944         * modules/select-tests (Depends-on): Likewise.
41945
41946 2008-10-05  Bruno Haible  <bruno@clisp.org>
41947
41948         * lib/winsock.c (strerror): Remove unused #undef.
41949         (rpl_close): Remove unused local variable.
41950
41951         * modules/sys_socket (Depends-on); Add errno.
41952
41953 2008-10-05  Bruno Haible  <bruno@clisp.org>
41954
41955         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
41956         (select): Add a link warning when the 'select' module is not used.
41957         * modules/sys_select (Depends-on): Add link-warning.
41958         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
41959         Suggested by Paolo Bonzini.
41960
41961 2008-10-05  Jim Meyering  <meyering@redhat.com>
41962
41963         bootstrap: check for LT_INIT more portably
41964         * build-aux/bootstrap: Avoid using grep -E, since it's not
41965         portable enough.  Suggestion from Bruno Haible.
41966
41967 2008-10-05  Bruno Haible  <bruno@clisp.org>
41968
41969         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
41970         as being fixed by gnulib.
41971
41972 2008-10-05  Bruno Haible  <bruno@clisp.org>
41973
41974         * modules/select-tests: New file, mostly copied from
41975         modules/sys_select-tests.
41976         * tests/test-select.c: New file, mostly copied from
41977         tests/test-sys_select.c.
41978         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
41979         * modules/sys_select-tests (Depends-on): Remove all dependencies.
41980         (Makefile.am): Remove test_sys_select_LDADD.
41981
41982         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
41983         to an undefined symbol, for an error message.
41984         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
41985         (gl_SYS_SELECT_H_DEFAULTS): New macro.
41986         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
41987         winsock-select.c here.
41988         * modules/sys_select (Files): Remove lib/winsock-select.c.
41989         (Depends-on): Remove alloca.
41990         (Makefile.am): Substitute GNULIB_SELECT.
41991         * modules/select: New file.
41992         * doc/posix-functions/select.texi: Update.
41993
41994 2008-10-05  Bruno Haible  <bruno@clisp.org>
41995
41996         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
41997         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
41998         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
41999         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
42000         getdtablesize.
42001         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
42002         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
42003
42004 2008-10-05  Bruno Haible  <bruno@clisp.org>
42005
42006         * modules/getdtablesize-tests: New file.
42007         * tests/test-getdtablesize.c: New file.
42008
42009         New module 'getdtablesize'.
42010         * lib/unistd.in.h (getdtablesize): New declaration.
42011         * lib/getdtablesize.c: New file.
42012         * m4/getdtablesize.m4: New file.
42013         * modules/getdtablesize: New file.
42014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42015         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
42016         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
42017         HAVE_GETDTABLESIZE.
42018         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
42019
42020 2008-10-05  Bruno Haible  <bruno@clisp.org>
42021
42022         * modules/sched (Makefile.am): Fix typo.
42023         Reported by Simon Josefsson.
42024
42025 2008-10-05  Jim Meyering  <meyering@redhat.com>
42026
42027         bootstrap: check for LT_INIT, too
42028         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
42029         are deprecated.  Suggestion from Ralf Wildenhues.
42030
42031 2008-10-05  Bruno Haible  <bruno@clisp.org>
42032
42033         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
42034         overriding them by ours.
42035         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
42036
42037 2008-10-05  Jim Meyering  <meyering@redhat.com>
42038
42039         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
42040         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
42041         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
42042
42043 2008-10-04  Bruno Haible  <bruno@clisp.org>
42044
42045         * modules/dup2 (License): Change to LGPLv2+.
42046         * modules/sleep (License): Likewise.
42047         * modules/perror (License): Likewise.
42048         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
42049         Blake.
42050         * modules/signal (License): Likewise.
42051         * modules/sigprocmask (License): Likewise.
42052         * modules/raise (License): Change to LGPLv2+, with approval by Jim
42053         Meyering.
42054
42055 2008-10-04  Bruno Haible  <bruno@clisp.org>
42056
42057         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
42058         Reported by Rainer Tammer <tammer@tammer.net>.
42059
42060 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
42061             Bruno Haible  <bruno@clisp.org>
42062
42063         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
42064         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
42065         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
42066
42067 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
42068
42069         filevercmp: new module
42070         * lib/filevercmp.h: New function filevercmp comparing version strings.
42071         * lib/filevercmp.c: Implementation of filevercmp function.
42072         * modules/filevercmp: Module metadata.
42073         * tests/test-filevercmp.c: Unit test for new module.
42074         * modules/filevercmp-tests: Unit test metadata.
42075         * MODULES.html.sh: Add filevercmp module.
42076
42077 2008-10-03  Bruno Haible  <bruno@clisp.org>
42078
42079         * lib/c-ctype.h: Add comment.
42080         Reported by Jim Meyering.
42081
42082 2008-10-02  Bruno Haible  <bruno@clisp.org>
42083
42084         * modules/posix_spawn-internal (Depends-on): Add 'open'.
42085
42086 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42087
42088         * build-aux/bootstrap: Allow renaming bootstrap, and change the
42089         name of bootstrap.conf accordingly.
42090
42091 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42092
42093         * build-aux/bootstrap: Install git-merge-changelog configuration
42094         items into .gitconfig if needed.
42095
42096 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42097
42098         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
42099         git repository, and initialize/update it accordingly.
42100
42101 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
42102
42103         * modules/fsync-tests: New file.
42104         * tests/test-fsync.c: New file.
42105
42106         New module 'fsync'.
42107         * lib/fsync.c: New file.
42108         * m4/fsync.m4: New file.
42109         * modules/fsync: New file.
42110         * lib/unistd.in.h (fsync): New declaration.
42111         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
42112         GNULIB_FSYNC and HAVE_FSYNC.
42113         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
42114         * MODULES.html.sh (posix_functions): Add fsync.
42115         * doc/posix-functions/fsync.texi: Mention the new module.
42116
42117 2008-10-02  Jim Meyering  <meyering@redhat.com>
42118
42119         fts.c: sync with similar code from coreutils' remove.c
42120         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
42121         Guard also with "#if defined __linux__", since for now at least,
42122         this code is Linux-kernel-specific.
42123
42124 2008-10-02  Jim Meyering  <meyering@redhat.com>
42125
42126         fts: bug fixes
42127         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
42128         Include <sys/vfs.h>, not <sys/statfs.h>.
42129
42130         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
42131         Include <sys/vfs.h>, not <sys/statfs.h>.
42132
42133 2008-10-01  Bruno Haible  <bruno@clisp.org>
42134
42135         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
42136         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
42137         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
42138         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
42139         * doc/posix-functions/posix_spawnp.texi: Likewise.
42140         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
42141         whether posix_spawn actually works.
42142         * m4/pipe.m4 (gl_PIPE): Likewise.
42143         * modules/execute (Files): Add m4/posix_spawn.m4.
42144         * modules/pipe (Files): Add m4/posix_spawn.m4.
42145         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
42146
42147 2008-10-01  Jim Meyering  <meyering@redhat.com>
42148
42149         remove trailing spaces
42150         * NEWS: Likewise.
42151         * lib/poll.c (poll): Likewise.
42152         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
42153         * lib/winsock.c (rpl_close): Likewise.
42154         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
42155         * modules/yield: Likewise.
42156         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
42157         * tests/test-sys_select.c (connect_to_socket): Likewise.
42158
42159         fts.c: adjust a new interface to be more generally useful
42160         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
42161         (fts_build): Adjust caller.
42162
42163 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42164
42165         * modules/cond-tests: New file.
42166         * tests/test-cond.c: New file.
42167
42168 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42169             Bruno Haible  <bruno@clisp.org>
42170
42171         * modules/cond (Dependencies): Add errno, time.
42172         * lib/glthread/cond.h: Include <time.h>.
42173         (gl_cond_define, gl_cond_define_initialized): Use the same definition
42174         across platforms.
42175
42176 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42177             Bruno Haible  <bruno@clisp.org>
42178
42179         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
42180
42181 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42182             Bruno Haible  <bruno@clisp.org>
42183
42184         * modules/tls-tests (Depends-on): Add thread, yield.
42185         (configure.ac): Remove all checks.
42186         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
42187         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42188         gl_thread_self): Remove definitions. Include glthread/thread.h and
42189         glthread/yield.h instead.
42190         (test_tls): Pass an additional NULL argument to gl_thread_join.
42191
42192 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42193             Bruno Haible  <bruno@clisp.org>
42194
42195         * modules/lock-tests (Depends-on): Add thread, yield.
42196         (configure.ac): Remove all checks.
42197         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
42198         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42199         gl_thread_self): Remove definitions. Include glthread/thread.h and
42200         glthread/yield.h instead.
42201         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
42202         additional NULL argument to gl_thread_join.
42203
42204 2008-09-30  Bruno Haible  <bruno@clisp.org>
42205
42206         Fix the Win32 implementation of the 'thread' module.
42207         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
42208         pointer type.
42209         (gl_thread_self): Invoke gl_thread_self_func.
42210         (gl_thread_self_func): New declaration.
42211         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
42212         (do_init_self_key, init_self_key): New functions.
42213         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
42214         Remove some fields.
42215         (running_threads, running_lock): Remove variables.
42216         (get_current_thread_handle): New function.
42217         (gl_thread_self_func, wrapper_func, glthread_create_func,
42218         glthread_join_func, gl_thread_exit_func): Largely rewritten and
42219         simplified.
42220
42221 2008-09-30  Bruno Haible  <bruno@clisp.org>
42222
42223         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
42224         files.
42225
42226 2008-09-30  Jim Meyering  <meyering@redhat.com>
42227
42228         fts.m4: correct the test for statfs.f_type
42229         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
42230         when checking for statfs.f_type.
42231
42232 2008-09-15  Simon Josefsson  <simon@josefsson.org>
42233
42234         tests: avoid some compiler warnings
42235         * tests/test-memchr.c (main): Pass NULL indirectly.
42236         * tests/test-getdate.c (main): Remove unused variable 'ret'.
42237
42238 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
42239
42240         getdate.y: disallow countable dayshifts like "4 yesterday ago"
42241         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
42242         exactly specified dayshifts.
42243         (dayshift): New rule.
42244         (rel): Add dayshift.
42245         (relative_time_table) [tomorrow, yesterday, today, now]:
42246         Use tDAY_SHIFT in place of tDAY_UNIT.
42247         * tests/test-getdate.c: Add tests for now-disallowed countable
42248         dayshifts, e.g., "4 yesterday ago".
42249
42250 2008-09-29  Bruno Haible  <bruno@clisp.org>
42251
42252         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
42253         * tests/test-posix_spawn1.in.sh: Renamed from
42254         tests/test-posix_spawn.in.sh.
42255         * tests/test-posix_spawn2.c: New file.
42256         * tests/test-posix_spawn2.in.sh: New file.
42257         * modules/posix_spawnp-tests (Files): Update.
42258         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
42259
42260 2008-09-29  Bruno Haible  <bruno@clisp.org>
42261
42262         Propagate effects of putenv/setenv/unsetenv to child processes.
42263         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
42264         * lib/pipe.c (create_pipe): Likewise.
42265
42266 2008-09-29  Bruno Haible  <bruno@clisp.org>
42267
42268         Enable use of shell scripts as executables in mingw.
42269         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
42270         run the program as a shell script.
42271         * lib/pipe.c (create_pipe): Likewise.
42272         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
42273         resulting array.
42274
42275 2008-09-29  Eric Blake  <ebb9@byu.net>
42276
42277         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
42278
42279 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
42280
42281         * doc/posix-functions/accept.texi: Update mingw problems.
42282         * doc/posix-functions/bind.texi: Update mingw problems.
42283         * doc/posix-functions/close.texi: Update mingw problems.
42284         * doc/posix-functions/connect.texi: Update mingw problems.
42285         * doc/posix-functions/getpeername.texi: Update mingw problems.
42286         * doc/posix-functions/getsockname.texi: Update mingw problems.
42287         * doc/posix-functions/getsockopt.texi: Update mingw problems.
42288         * doc/posix-functions/ioctl.texi: Update mingw problems.
42289         * doc/posix-functions/listen.texi: Update mingw problems.
42290         * doc/posix-functions/recv.texi: Update mingw problems.
42291         * doc/posix-functions/recvfrom.texi: Update mingw problems.
42292         * doc/posix-functions/select.texi: Update mingw problems.
42293         * doc/posix-functions/send.texi: Update mingw problems.
42294         * doc/posix-functions/sendto.texi: Update mingw problems.
42295         * doc/posix-functions/setsockopt.texi: Update mingw problems.
42296         * doc/posix-functions/socket.texi: Update mingw problems.
42297
42298 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
42299             Bruno Haible  <bruno@clisp.org>
42300
42301         * lib/sys_select.in.h: Include sys/time.h.
42302         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
42303         * modules/sys_select: Depend on sys_time.
42304         * tests/test-sys_select.c: Test that sys/select.h defines struct
42305         timeval fully.
42306
42307 2008-09-29  Bruno Haible  <bruno@clisp.org>
42308
42309         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
42310         * lib/sys_select.in.h: Likewise.
42311
42312 2008-09-29  Bruno Haible  <bruno@clisp.org>
42313
42314         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
42315
42316 2008-09-29  Bruno Haible  <bruno@clisp.org>
42317
42318         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
42319         Set LIBSOCKET instead of augmenting LIBS.
42320         * modules/sockets (Link): New section.
42321         * modules/sockets-tests (test_sockets_LDADD): New variable.
42322         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
42323         * modules/poll-tests (test_poll_LDADD): New variable.
42324         * NEWS: Document the change.
42325
42326 2008-09-29  Bruno Haible  <bruno@clisp.org>
42327
42328         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
42329         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
42330         ARPA_INET_H directly.
42331         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42332
42333 2008-09-28  Bruno Haible  <bruno@clisp.org>
42334
42335         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
42336         from gl_HEADER_SYS_SOCKET.
42337         (gl_HEADER_SYS_SOCKET): Invoke it.
42338         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42339
42340 2008-09-28  Bruno Haible  <bruno@clisp.org>
42341
42342         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
42343         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
42344         Needed on OSF/1 4.0.
42345
42346 2008-09-28  Bruno Haible  <bruno@clisp.org>
42347
42348         Override open more carefully.
42349         * lib/open.c (orig_open): New function.
42350         (rpl_open): Use orig_open instead of open.
42351         * lib/fcntl.in.h: Add special invocation convention.
42352         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
42353         (gl_FUNC_OPEN): Invoke it.
42354
42355         Override freopen more carefully.
42356         * lib/freopen.c (orig_freopen): New function.
42357         (rpl_freopen): Use orig_freopen instead of freopen.
42358         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
42359         (gl_FUNC_FREOPEN): Invoke it.
42360
42361         Override fopen more carefully.
42362         * lib/fopen.c (orig_fopen): New function.
42363         (rpl_fopen): Use orig_fopen instead of fopen.
42364         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
42365         (gl_FUNC_FOPEN): Invoke it.
42366         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
42367
42368 2008-09-28  Bruno Haible  <bruno@clisp.org>
42369
42370         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
42371         SIGPIPE.
42372
42373 2008-09-28  Bruno Haible  <bruno@clisp.org>
42374
42375         * tests/test-sigaction.c (handler, main): Disable the check whether
42376         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
42377         glibc systems with LinuxThreads.
42378
42379 2008-09-28  Bruno Haible  <bruno@clisp.org>
42380
42381         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
42382
42383         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
42384         with AIX xlc.
42385         * lib/fcntl.in.h (open): Likewise.
42386         Reported by Rainer Tammer <tammer@tammer.net>.
42387
42388 2008-09-28  Bruno Haible  <bruno@clisp.org>
42389
42390         * modules/posix_spawnp-tests: New file.
42391         * tests/test-posix_spawn.c: New file.
42392         * tests/test-posix_spawn.in.sh: New file.
42393
42394         New module 'posix_spawnp'.
42395         * modules/posix_spawnp: New file.
42396         * lib/spawnp.c: New file, from GNU libc with modifications.
42397         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
42398
42399         New module 'posix_spawn'.
42400         * modules/posix_spawn: New file.
42401         * lib/spawn.c: New file, from GNU libc with modifications.
42402         * doc/posix-functions/posix_spawn.texi: Mention the new module.
42403
42404         New module 'posix_spawnattr_destroy'.
42405         * modules/posix_spawnattr_destroy: New file.
42406         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
42407         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
42408         module.
42409
42410         New module 'posix_spawnattr_setsigmask'.
42411         * modules/posix_spawnattr_setsigmask: New file.
42412         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
42413         modifications.
42414         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
42415         new module.
42416
42417         New module 'posix_spawnattr_getsigmask'.
42418         * modules/posix_spawnattr_getsigmask: New file.
42419         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
42420         modifications.
42421         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
42422         new module.
42423
42424         New module 'posix_spawnattr_setsigdefault'.
42425         * modules/posix_spawnattr_setsigdefault: New file.
42426         * lib/spawnattr_setdefault.c: New file, from GNU libc with
42427         modifications.
42428         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
42429         new module.
42430
42431         New module 'posix_spawnattr_getsigdefault'.
42432         * modules/posix_spawnattr_getsigdefault: New file.
42433         * lib/spawnattr_getdefault.c: New file, from GNU libc with
42434         modifications.
42435         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
42436         new module.
42437
42438         New module 'posix_spawnattr_setschedpolicy'.
42439         * modules/posix_spawnattr_setschedpolicy: New file.
42440         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
42441         modifications.
42442         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
42443         new module.
42444
42445         New module 'posix_spawnattr_getschedpolicy'.
42446         * modules/posix_spawnattr_getschedpolicy: New file.
42447         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
42448         modifications.
42449         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
42450         new module.
42451
42452         New module 'posix_spawnattr_setschedparam'.
42453         * modules/posix_spawnattr_setschedparam: New file.
42454         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
42455         modifications.
42456         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
42457         new module.
42458
42459         New module 'posix_spawnattr_getschedparam'.
42460         * modules/posix_spawnattr_getschedparam: New file.
42461         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
42462         modifications.
42463         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
42464         new module.
42465
42466         New module 'posix_spawnattr_setpgroup'.
42467         * modules/posix_spawnattr_setpgroup: New file.
42468         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
42469         modifications.
42470         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
42471         module.
42472
42473         New module 'posix_spawnattr_getpgroup'.
42474         * modules/posix_spawnattr_getpgroup: New file.
42475         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
42476         modifications.
42477         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
42478         module.
42479
42480         New module 'posix_spawnattr_setflags'.
42481         * modules/posix_spawnattr_setflags: New file.
42482         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
42483         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
42484         module.
42485
42486         New module 'posix_spawnattr_getflags'.
42487         * modules/posix_spawnattr_getflags: New file.
42488         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
42489         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
42490         module.
42491
42492         New module 'posix_spawnattr_init'.
42493         * modules/posix_spawnattr_init: New file.
42494         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
42495         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
42496         module.
42497
42498         New module 'posix_spawn_file_actions_destroy'.
42499         * modules/posix_spawn_file_actions_destroy: New file.
42500         * lib/spawn_faction_destroy.c: New file, from GNU libc with
42501         modifications.
42502         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
42503         the new module.
42504
42505         New module 'posix_spawn_file_actions_addopen'.
42506         * modules/posix_spawn_file_actions_addopen: New file.
42507         * lib/spawn_faction_addopen.c: New file, from GNU libc with
42508         modifications.
42509         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
42510         the new module.
42511
42512         New module 'posix_spawn_file_actions_adddup2'.
42513         * modules/posix_spawn_file_actions_adddup2: New file.
42514         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
42515         modifications.
42516         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
42517         the new module.
42518
42519         New module 'posix_spawn_file_actions_addclose'.
42520         * modules/posix_spawn_file_actions_addclose: New file.
42521         * lib/spawn_faction_addclose.c: New file, from GNU libc with
42522         modifications.
42523         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
42524         the new module.
42525
42526         New module 'posix_spawn_file_actions_init'.
42527         * modules/posix_spawn_file_actions_init: New file.
42528         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
42529         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
42530         new module.
42531
42532         New module 'posix_spawn-internal'.
42533         * modules/posix_spawn-internal: New file.
42534         * lib/spawn_int.h: New file, from GNU libc with modifications.
42535         * lib/spawni.c: New file, from GNU libc with modifications.
42536         * m4/posix_spawn.m4: New file.
42537
42538         New module 'spawn'.
42539         * modules/spawn: New file.
42540         * lib/spawn.in.h: New file, from GNU libc with modifications.
42541         * m4/spawn_h.m4: New file.
42542         * doc/posix-headers/spawn.texi: Mention the new module.
42543
42544 2008-09-28  Bruno Haible  <bruno@clisp.org>
42545
42546         * modules/sched-tests: New file.
42547         * tests/test-sched.c: New file.
42548
42549         New module 'sched'.
42550         * modules/sched: New file.
42551         * lib/sched.in.h: New file.
42552         * m4/sched_h.m4: New file.
42553         * doc/posix-headers/sched.texi: Mention the new module.
42554
42555 2008-09-27  Eric Blake  <ebb9@byu.net>
42556
42557         Fix previous patch, and tweak references to $0.
42558         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
42559         (func_version, func_gnulib_dir): Don't call this program
42560         gnulib-tool.
42561         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
42562         with using $0 in function.
42563         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
42564         (func_fatal_error): Reuse the name the user invoked us with.
42565
42566 2008-09-27  Bruno Haible  <bruno@clisp.org>
42567
42568         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
42569         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
42570         (gl_ICONV_H): Not here.
42571         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
42572         instead of assigning ICONV_H directly.
42573
42574         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
42575         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
42576         WCHAR_H directly.
42577
42578 2008-09-27  Bruno Haible  <bruno@clisp.org>
42579
42580         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
42581         * modules/arpa_inet (Depends-on): Add link-warning.
42582         (Makefile.am): Insert the definition of GL_LINK-WARNING.
42583         * modules/unistd (Makefile.am): Likewise.
42584
42585 2008-09-26  Bruno Haible  <bruno@clisp.org>
42586
42587         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
42588         variables.
42589         (func_version): Essentially copied from gnulib-tool.
42590         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
42591         func_readlink): Copied from gnulib-tool.
42592
42593 2008-09-26  Bruno Haible  <bruno@clisp.org>
42594
42595         * gnulib-tool (func_version): Change directory to $gnulib_dir before
42596         invoking git-version-gen.
42597
42598 2008-09-26  Bruno Haible  <bruno@clisp.org>
42599
42600         * posix-modules: Update to directory names changed on 2008-01-19.
42601         Remove commas in output before splitting into words. No more need to
42602         avoid 'ftruncate' since 2007-02-19.
42603
42604 2008-09-26  Bruno Haible  <bruno@clisp.org>
42605
42606         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
42607
42608 2008-09-26  Bruno Haible  <bruno@clisp.org>
42609
42610         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
42611         * modules/fwriteerror (Depends-on): Add errno.
42612
42613 2008-09-26  Bruno Haible  <bruno@clisp.org>
42614
42615         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
42616         * tests/test-vc-list-files-cvs.sh: Likewise.
42617
42618 2008-09-26  Bruno Haible  <bruno@clisp.org>
42619
42620         * doc/posix-headers/sys_resource.texi: Reorder items.
42621
42622 2008-09-26  Jim Meyering  <meyering@redhat.com>
42623
42624         fts: tweak inode comparison function
42625         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
42626         inode numbers, as documented.
42627
42628         fts: sort dirent entries on inode number before traversing
42629         This avoids a quadratic, seek-related performance penalty when
42630         operating on a directory containing many entries (measurable at 10k;
42631         3.5 hours at 2 million entries with a cold cache) on certain types
42632         of file systems, including ext3 and ext4, but not tmpfs.
42633         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
42634         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
42635         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
42636         (fs_handles_readdir_ordered_dirents_efficiently): New function.
42637         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
42638         (fts_build): Set the stat.st_ino member from D_INO.
42639         If it is likely to be useful, sort dirent entries on inode number.
42640
42641         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
42642         and the struct statfs.f_type member.
42643         * modules/fts (Depends-on): Add d-ino.
42644
42645 2008-09-26  Bruno Haible  <bruno@clisp.org>
42646
42647         * modules/sigpipe-die (Depends-on): Add sigpipe.
42648
42649         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
42650         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
42651         and GNULIB_STDIO_H_SIGPIPE are set.
42652         * lib/stdio-write.c: New file.
42653         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
42654         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42655         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42656         REPLACE_STDIO_WRITE_FUNCS.
42657         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
42658         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42659         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42660         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42661         * modules/stdio (Files): Add lib/stdio-write.c.
42662         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
42663         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42664         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42665         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42666         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
42667         REPLACE_FPRINTF_POSIX.
42668         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
42669         REPLACE_PRINTF_POSIX.
42670         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
42671         REPLACE_VFPRINTF_POSIX.
42672         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
42673         REPLACE_VPRINTF_POSIX.
42674         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
42675         SIGPIPE issue.
42676         * doc/posix-functions/fputc.texi: Likewise.
42677         * doc/posix-functions/fputs.texi: Likewise.
42678         * doc/posix-functions/fwrite.texi: Likewise.
42679         * doc/posix-functions/printf.texi: Likewise.
42680         * doc/posix-functions/putc.texi: Likewise.
42681         * doc/posix-functions/putchar.texi: Likewise.
42682         * doc/posix-functions/puts.texi: Likewise.
42683         * doc/posix-functions/vfprintf.texi: Likewise.
42684         * doc/posix-functions/vprintf.texi: Likewise.
42685
42686         * modules/safe-write (Depends-on): Add write.
42687
42688         * modules/sigpipe-tests: New file.
42689         * tests/test-sigpipe.c: New file.
42690         * tests/test-sigpipe.sh: New file.
42691
42692         * modules/write: New file.
42693         * lib/unistd.in.h: Include <sys/types.h>.
42694         (write): New declaration.
42695         * lib/write.c: New file.
42696         * m4/write.m4: New file.
42697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42698         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
42699         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
42700         GNULIB_WRITE, REPLACE_WRITE.
42701         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
42702         and the SIGPIPE issue.
42703
42704         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
42705         (raise): New declaration.
42706         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
42707         (ext_signal): New function.
42708         (rpl_raise): New function.
42709         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
42710         GNULIB_SIGNAL_H_SIGPIPE.
42711         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
42712         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
42713
42714         * modules/sigpipe: New file.
42715         * m4/sigpipe.m4: New file.
42716
42717 2008-09-25  Derek Price  <derek@ximbiot.com>
42718             Bruno Haible  <bruno@clisp.org>
42719
42720         * gnulib-tool (func_import): Report all license incompatibilities, not
42721         just the first one.
42722
42723 2008-09-25  Bruno Haible  <bruno@clisp.org>
42724
42725         * gnulib-tool (func_import): When computing the edits, consider not
42726         only the Makefile.ams that exist but also those that will be generated.
42727
42728 2008-09-25  Simon Josefsson  <simon@josefsson.org>
42729
42730         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
42731         fixes gnulib-tool --test warning about duplicate dependency.
42732
42733 2008-09-25  Bruno Haible  <bruno@clisp.org>
42734
42735         * gnulib-tool: Don't ask the user to perform edits in the generated
42736         Makefile.ams.
42737         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
42738         apply to the Makefile.am being generated.
42739         (func_emit_tests_Makefile_am): Execute edits that apply to the
42740         Makefile.am being generated.
42741         (func_import): Setup list of Makefile.am edits before emitting the
42742         Makefile.ams, not at the end.
42743         (func_create_testdir): Update.
42744         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42745
42746 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42747
42748         * gnulib-tool (func_import): Store the --tests-base option in the
42749         comment in gnulib-cache.m4.
42750
42751 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
42752
42753         * NEWS: Document increased portability that sys_select now provides.
42754
42755         * lib/sys_select.in.h: Install select wrapper.
42756         * lib/sys_socket.in.h: Use more descriptive name when there is no
42757         select wrapper.
42758         * lib/winsock-select.c: New.
42759         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
42760         Require gl_HEADER_SYS_SOCKET.
42761         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
42762         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
42763         * tests/test-sys_select.c: Add functional tests.
42764
42765 2008-09-24  Eric Blake  <ebb9@byu.net>
42766
42767         open, fopen: close fd leak in last patch
42768         * lib/open.c (rpl_open): Close fd before returning error.
42769         * lib/fopen.c (rpl_fopen): Close fd before returning error.
42770         * doc/posix-functions/open.texi (open): Document that Irix also
42771         has the bug.
42772         * doc/posix-functions/fopen.texi (fopen): Likewise.
42773         Reported by Paolo Bonzini.
42774
42775 2008-09-24  Bruno Haible  <bruno@clisp.org>
42776
42777         Ensure that a filename ending in a slash cannot be used to access a
42778         non-directory.
42779         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
42780         to check whether it's really a directory.
42781         * lib/fopen.c: Include fcntl.h, unistd.h.
42782         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
42783         and fdopen().
42784         * modules/fopen (Depends-on): Add unistd.
42785         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
42786         * tests/test-fopen.c (main): Likewise.
42787         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
42788         * doc/posix-functions/fopen.texi: Likewise.
42789         Reported by Eric Blake.
42790
42791 2008-09-23  Eric Blake  <ebb9@byu.net>
42792
42793         c-stack: avoid compiler optimizations when provoking overflow
42794         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
42795         recursion harder to optimize, to ensure a stack overflow occurs.
42796         * tests/test-c-stack.c (recurse): Likewise.
42797         Borrowed from libsigsegv.
42798
42799         c-stack: work around Irix sigaltstack bug
42800         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
42801         whether sigaltstack uses wrong end of stack_t (copied in part from
42802         libsigsegv).
42803         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
42804         Irix bug, without requiring an over-allocation.
42805         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
42806         bug.
42807
42808         fopen: document mingw bug on directories
42809         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
42810         not allowing a stream visiting a directory, even though reading
42811         from such a stream is not portable.
42812
42813 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42814
42815         * lib/poll.c: Rewrite.
42816         * modules/poll: Depend on alloca.
42817
42818 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42819
42820         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
42821         instead define prototypes for a full set of wrappers.  Ensure
42822         that Cygwin does not use the compatibility code, which is only
42823         for MinGW.
42824         * lib/winsock.c: New.
42825         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
42826         * modules/sys_socket: Add lib/winsock.c.
42827
42828         * modules/poll-tests: Add errno and perror.
42829         * tests/test-poll.c: Use ioctl, not ioctlsocket.
42830
42831 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42832
42833         * tests/test-poll.c: Downgrade minimum needed Winsock version.
42834
42835 2008-09-23  Bruno Haible  <bruno@clisp.org>
42836
42837         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
42838         * doc/glibc-functions/*: Likewise.
42839
42840 2008-09-23  Simon Josefsson  <simon@josefsson.org>
42841
42842         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
42843         success.
42844
42845 2008-09-22  Eric Blake  <ebb9@byu.net>
42846             Bruno Haible  <bruno@clisp.org>
42847
42848         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
42849         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
42850         supply %A but mishandle pseudo-NaN.
42851         Reported by Simon Josefsson.
42852
42853 2008-09-21  Bruno Haible  <bruno@clisp.org>
42854
42855         * tests/test-lock.c (main): Tweak skip message.
42856         * tests/test-tls.c (main): Likewise.
42857
42858 2008-09-21  Bruno Haible  <bruno@clisp.org>
42859
42860         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
42861         whether 'struct sigaction' has sa_sigaction here...
42862         (gl_PREREQ_SIG_HANDLER_H): ... not here.
42863         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
42864
42865 2008-09-21  Bruno Haible  <bruno@clisp.org>
42866
42867         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
42868         section.
42869         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
42870         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
42871         the new section.
42872         (Support for obsolete systems lacking POSIX:2001): New section.
42873         (String handling <string.h>): Move strdup to the new section.
42874         Suggested by Simon Josefsson and Paolo Bonzini.
42875
42876 2008-09-21  Bruno Haible  <bruno@clisp.org>
42877
42878         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
42879         exponents in %e and %g results on 'long double'. Needed for mingw's
42880         improved *printf functions.
42881         * tests/test-vasprintf-posix.c (test_function): Likewise.
42882         * tests/test-snprintf-posix.h (test_function): Likewise.
42883         * tests/test-sprintf-posix.h (test_function): Likewise.
42884         Reported by Eric Blake.
42885
42886 2008-09-21  Bruno Haible  <bruno@clisp.org>
42887
42888         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
42889         * tests/test-sprintf-posix.h (test_function): Likewise.
42890
42891 2008-09-21  Bruno Haible  <bruno@clisp.org>
42892
42893         * modules/getpass (Depends-on): Add strdup-posix.
42894
42895         New module 'strdup-posix'.
42896         * modules/strdup-posix: New file.
42897         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
42898         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
42899         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42900         REPLACE_STRDUP.
42901         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
42902         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
42903         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42904         strdup-posix.
42905
42906         * modules/strdup (Depends-on): Remove malloc-posix.
42907
42908 2008-09-20  Bruno Haible  <bruno@clisp.org>
42909
42910         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
42911         Wildenhues.
42912
42913 2008-09-20  Bruno Haible  <bruno@clisp.org>
42914
42915         Ensure that wint_t gets defined on IRIX 5.3.
42916         * lib/wchar.in.h (wint_t): Define if not defined by the system.
42917         * lib/wctype.in.h (wint_t): Likewise.
42918         (__wctype_wint_t): Remove type.
42919         (isw*): Use wint_t instead of __wctype_wint_t.
42920         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
42921         * modules/wchar (Files): Add m4/wint_t.m4.
42922         (Makefile.am): Substitute HAVE_WINT_T.
42923         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
42924         * tests/test-wctype.c: Check that wint_t is defined.
42925         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
42926         * doc/posix-headers/wctype.texi: Likewise.
42927         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42928
42929 2008-09-18  Bruno Haible  <bruno@clisp.org>
42930
42931         * gnulib-tool (func_exit): Update comment.
42932
42933 2008-09-18  Simon Josefsson  <simon@josefsson.org>
42934
42935         * modules/getaddrinfo (Depends-on): Remove strdup, this module
42936         assumes strdup exists and does not depend on strdup to return
42937         ENOMEM on out of memory conditions.
42938
42939 2008-09-18  Bruno Haible  <bruno@clisp.org>
42940
42941         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
42942         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
42943         digits for the exponent.
42944
42945 2008-09-18  Jim Meyering  <meyering@redhat.com>
42946             Bruno Haible  <bruno@clisp.org>
42947
42948         * lib/vasnprintf.c (decimal_point_char): Define also if
42949         NEED_PRINTF_INFINITE_LONG_DOUBLE.
42950
42951 2008-09-16  Bruno Haible  <bruno@clisp.org>
42952         and Eric Blake  <ebb9@byu.net>
42953
42954         vasnprintf: support Irix 5.3
42955         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
42956         that mishandle long double infinity.
42957         Reported by Tom G. Christensen.
42958
42959 2008-09-16  Bruno Haible  <bruno@clisp.org>
42960
42961         * doc/glibc-functions/scandir.texi: Mention the function is missing on
42962         Solaris 9.
42963         * doc/glibc-functions/alphasort.texi: Likewise.
42964         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
42965
42966 2008-09-16  Jim Meyering  <meyering@redhat.com>
42967
42968         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
42969         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
42970         a umask modification leak out of a subshell.  Otherwise, the
42971         opensolaris /bin/sh would be accepted and thus cause unwarranted
42972         failures in the coreutils test suite.
42973
42974 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
42975
42976         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
42977         to succeed.
42978
42979 2008-09-16  Jim Meyering  <meyering@redhat.com>
42980
42981         avoid spurious test failure when library is built without ACL support
42982         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
42983         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
42984         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
42985         * tests/test-copy-acl.sh: Likewise.
42986
42987 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42988
42989         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
42990         based on character occurrence counts.
42991
42992 2008-09-15  Eric Blake  <ebb9@byu.net>
42993
42994         tests: avoid some compiler warnings
42995         * tests/test-memchr.c (main): Pass NULL indirectly.
42996         * tests/test-closein.c (main): Avoid unused variable.
42997
42998 2008-09-15  Bruno Haible  <bruno@clisp.org>
42999
43000         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
43001         are missing on OpenBSD 4.0 individually.
43002         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43003
43004 2008-09-15  Bruno Haible  <bruno@clisp.org>
43005
43006         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
43007         * doc/posix-functions/strerror.texi: Mention also Cygwin.
43008         * doc/posix-functions/perror.texi: Likewise.
43009         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
43010         is missing.
43011         Reported by Eric Blake.
43012
43013         * lib/errno.in.h: Use replacement values >= 2000.
43014         Reported by Eric Blake.
43015
43016 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43017
43018         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
43019         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
43020         limit.
43021         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
43022         compareseq was aborted.
43023
43024 2008-09-14  Bruno Haible  <bruno@clisp.org>
43025
43026         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
43027         yvec_edit_count.
43028         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
43029         (fstrcmp_bounded): Simplify result computation accordingly.
43030
43031 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43032
43033         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
43034         (fstrcmp): Define in terms of fstrcmp_bounded.
43035         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
43036         lower_bound argument.
43037         Return quickly if the result is certainly < lower_bound.
43038         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
43039
43040 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43041
43042         * lib/diffseq.h (EARLY_ABORT): New macro.
43043         (compareseq): Change return type to bool. Return true when EARLY_ABORT
43044         evaluates to true.
43045
43046 2008-09-14  Bruno Haible  <bruno@clisp.org>
43047
43048         * modules/perror-tests: New file.
43049         * tests/test-perror.sh: New file.
43050         * tests/test-perror.c: New file.
43051
43052         New module 'perror'.
43053         * lib/stdio.in.h (perror): New declaration.
43054         * lib/perror.c: New file.
43055         * m4/perror.m4: New file.
43056         * modules/perror: New file.
43057         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
43058         * doc/posix-functions/perror.texi: Mention the perror module.
43059         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
43060         REPLACE_PERROR.
43061         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
43062         REPLACE_PERROR.
43063
43064 2008-09-14  Bruno Haible  <bruno@clisp.org>
43065
43066         * modules/stdio (Makefile.am): Reorder to match the order in
43067         lib/stdio.in.h.
43068         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43069
43070 2008-09-13  Bruno Haible  <bruno@clisp.org>
43071
43072         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
43073
43074 2008-09-13  Bruno Haible  <bruno@clisp.org>
43075
43076         Extend strerror to cover the added errno values.
43077         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
43078         (rpl_strerror): Provide error messages for the added errno values and
43079         for the WSA* values.
43080         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
43081         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
43082         strerror.
43083         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
43084         * modules/strerror (Depends-on): Add errno.
43085         * doc/posix-functions/strerror.texi: Document the change.
43086         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
43087         and EOVERFLOW.
43088
43089 2008-09-13  Bruno Haible  <bruno@clisp.org>
43090
43091         * modules/EOVERFLOW: Remove file.
43092         * m4/eoverflow.m4: Remove file.
43093         * modules/EOVERFLOW-tests: Remove file.
43094         * tests/test-EOVERFLOW.c: Remove file.
43095         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
43096         * modules/ftell (Depends-on): Likewise.
43097         * modules/getdelim (Depends-on): Likewise.
43098         * modules/getugroups (Depends-on): Likewise.
43099         * modules/poll (Depends-on): Likewise.
43100         * modules/snprintf (Depends-on): Likewise.
43101         * modules/sprintf-posix (Depends-on): Likewise.
43102         * modules/vasnprintf (Depends-on): Likewise.
43103         * modules/vasprintf (Depends-on): Likewise.
43104         * modules/vfprintf-posix (Depends-on): Likewise.
43105         * modules/vsnprintf (Depends-on): Likewise.
43106         * modules/vsprintf-posix (Depends-on): Likewise.
43107         * modules/xvasprintf (Depends-on): Likewise.
43108         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43109         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
43110         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
43111         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
43112         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43113         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
43114         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
43115         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
43116         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43117         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
43118         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
43119         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
43120         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43121         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
43122         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
43123         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
43124         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43125         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
43126         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
43127         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
43128         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43129         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
43130         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
43131         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
43132         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
43133         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43134         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
43135         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
43136         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
43137         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
43138         * MODULES.html.sh: Remove EOVERFLOW.
43139         * NEWS: Mention the change.
43140
43141 2008-09-13  Bruno Haible  <bruno@clisp.org>
43142
43143         * modules/errno-tests: New file.
43144         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
43145
43146         * lib/errno.in.h: New file.
43147         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
43148         * modules/errno: New file.
43149         * doc/posix-headers/errno.texi: Update documentation.
43150         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
43151
43152 2008-09-13  Bruno Haible  <bruno@clisp.org>
43153
43154         * tests/test-poll.c: Use #if for native Windows, rather than testing
43155         __MSVCRT__.
43156
43157 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43158             Bruno Haible  <bruno@clisp.org>
43159
43160         * lib/glob.c: Don't include <pwd.h> on native Windows.
43161         (WINDOWS32): New macro.
43162         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
43163
43164 2008-09-13  Bruno Haible  <bruno@clisp.org>
43165
43166         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
43167         (ETIMEDOUT): Remove macro.
43168         (glthread_cond_timedwait_multithreaded): New declaration.
43169         (glthread_cond_timedwait): Use it.
43170         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
43171         (glthread_cond_timedwait_multithreaded): New function.
43172
43173 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43174
43175         * modules/poll-tests: Do not check for io.h.
43176         * tests/test-poll.c: Check for __MSVCRT__ instead.
43177
43178 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43179
43180         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
43181         * modules/poll-tests: Add inet_pton, stdbool, sockets.
43182         * tests/test-poll.c: Use them.  Use _pipe on Windows.
43183
43184 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43185
43186         * modules/poll-tests: New.
43187         * tests/test-poll.c: New.
43188
43189 2008-09-12  Eric Blake  <ebb9@byu.net>
43190
43191         frexp: test for NetBSD failure on -0.0
43192         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
43193         not all, bugs from NetBSD 3.0 have been fixed.
43194         * doc/posix-functions/frexp.texi (frexp): Document bug.
43195         Reported by Thomas Klausner.
43196
43197         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
43198         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
43199         literal -0.0.
43200         Reported by Jonathan C. Patschke <jp@centtech.com>.
43201
43202 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43203
43204         * lib/glthread/cond.h: Use dummy implementation also if
43205         USE_WIN32_THREADS.
43206
43207 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43208
43209         * modules/fnmatch-posix (License): Change to LGPLv2+.
43210         * modules/fnmatch-gnu (License): Likewise.
43211
43212 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43213
43214         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
43215
43216 2008-09-11  Jim Meyering  <meyering@redhat.com>
43217
43218         * users.txt: Add gtk-vnc.
43219
43220 2008-09-08  Simon Josefsson  <simon@josefsson.org>
43221
43222         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
43223         rotate amounts.
43224
43225         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
43226         required for 16-bit and 8-bit rotates.
43227         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
43228         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
43229         UINT8_MAX instead of hard-coded constants.
43230         Suggested by Paul Eggert.
43231
43232 2008-09-07  Bruno Haible  <bruno@clisp.org>
43233
43234         * tests/test-striconveh.c (main): Check behaviour when converting from
43235         UTF-7.
43236
43237         Make striconveh work better with stateful encodings.
43238         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
43239         that iconv does not increment the inptr when returning -1/EINVAL.
43240
43241 2008-09-07  Bruno Haible  <bruno@clisp.org>
43242
43243         * build-aux/config.rpath: Update according to libtool-2.2.6.
43244         * build-aux/config.libpath: Likewise.
43245
43246 2008-09-06  Bruno Haible  <bruno@clisp.org>
43247
43248         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
43249         * lib/freadptr.c (freadptr): Likewise.
43250         * lib/freadseek.c (freadptrinc): Likewise.
43251         Reported by Simon Josefsson.
43252
43253 2008-09-06  Bruno Haible  <bruno@clisp.org>
43254
43255         * modules/freadptr (License): Change to LGPLv2+.
43256         * modules/freadseek (License): Likewise.
43257         Suggested by Eric Blake.
43258
43259         * modules/memchr2 (License): Change to LGPLv2+.
43260         Approved by Eric Blake.
43261
43262 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43263             Bruno Haible  <bruno@clisp.org>
43264
43265         Make gnulib-tool work with native 'sed' on AIX.
43266         * gnulib-tool (sed_noop): New variable.
43267         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
43268         func_add_or_update, func_create_testdir): Use it to initialize sed
43269         script variables.
43270         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43271
43272 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
43273             Bruno Haible  <bruno@clisp.org>
43274
43275         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
43276         also works after #include directives.
43277
43278 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
43279
43280         getdate.y: reject an out-of-range timezone value
43281         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
43282         the range [-24...+24].  When specified with only one or two digits,
43283         * tests/test-getdate.c: Tests for the fix.
43284         * doc/getdate.texi: Document this change.
43285
43286 2008-09-03  Bruno Haible  <bruno@clisp.org>
43287
43288         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
43289
43290 2008-09-02  Simon Josefsson  <simon@josefsson.org>
43291
43292         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
43293         <bruce.korb@gmail.com> with ideas from Ben Pfaff
43294         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
43295         Blake <ebb9@byu.net>.
43296
43297         * tests/test-bitrotate.c: Add more test vectors.
43298
43299 2008-09-02  Eric Blake  <ebb9@byu.net>
43300
43301         vasnprintf-posix: handle large precision via %.*d
43302         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
43303         when handling it ourselves.
43304         * tests/test-vasnprintf-posix.c (test_function): Add test.
43305         * tests/test-snprintf-posix.h (test_function): Likewise.
43306         * tests/test-sprintf-posix.h (test_function): Likewise.
43307         * tests/test-vasprintf-posix.c (test_function): Likewise.
43308         Reported by Alain Guibert.
43309
43310 2008-09-01  Eric Blake  <ebb9@byu.net>
43311
43312         c-stack: make configure-time check more robust
43313         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
43314         successful sigaction call.
43315         Reported by Tom G. Christensen.
43316
43317 2008-09-01  Bruno Haible  <bruno@clisp.org>
43318
43319         New module 'findprog-lgpl'.
43320         * modules/findprog-lgpl: New file.
43321         * lib/findprog-lgpl.c: New file.
43322         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
43323         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
43324         to decide whether to use strdup or xstrdup, concatenated_filename or
43325         xconcatenated_filename.
43326
43327 2008-09-01  Bruno Haible  <bruno@clisp.org>
43328
43329         Split module 'concat-filename' into 'concat-filename' (LGPL) and
43330         'xconcat-filename' (GPL).
43331         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
43332         (License): Change to LGPLv2+.
43333         * modules/xconcat-filename: New file.
43334         * lib/concat-filename.h (concatenated_filename): Change specification.
43335         (xconcatenated_filename): New declaration.
43336         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
43337         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
43338         memory situations.
43339         * lib/xconcat-filename.c: New file.
43340         * NEWS: Mention the change.
43341         * lib/findprog.c: Include concat-filename.h, not filename.h.
43342         (find_in_path): Use xconcatenated_filename instead of
43343         concatenated_filename.
43344         * lib/javacomp.c: Include concat-filename.h, not filename.h.
43345         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
43346         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
43347         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
43348         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
43349         instead of concatenated_filename.
43350         * lib/javaexec.c: Include concat-filename.h, not filename.h.
43351         (execute_java_class): Use xconcatenated_filename instead of
43352         concatenated_filename.
43353         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
43354         * modules/javacomp (Depends-on): Likewise.
43355         * modules/javaexec (Depends-on): Likewise.
43356
43357 2008-09-01  Bruno Haible  <bruno@clisp.org>
43358
43359         Split module 'filename' into 'filename' and 'concat-filename'.
43360         * modules/filename: Keep only lib/filename.h.
43361         (License): Change to LGPLv2+.
43362         * modules/concat-filename: New file, extracted from modules/filename.
43363         * lib/filename.h (concatenated_filename): Remove declaration.
43364         * lib/concat-filename.h: New file, extracted from lib/filename.h.
43365         * lib/concat-filename.c: Include concat-filename.h.
43366         * NEWS: Mention the change.
43367
43368 2008-09-01  Simon Josefsson  <simon@josefsson.org>
43369
43370         * lib/bitrotate.h (rotl8, rotr8): Add.
43371
43372         * modules/bitrotate (configure.ac): Need
43373         AC_REQUIRE([AC_C_INLINE]).
43374         (Description): Mention stdint.h.  Reported by Bruno Haible
43375         <bruno@clisp.org>.
43376
43377         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
43378         Paolo Bonzini <bonzini@gnu.org>.
43379
43380 2008-08-31  Bruno Haible  <bruno@clisp.org>
43381
43382         Assume Solaris specific bi-arch conventions on Solaris systems.
43383         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
43384         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
43385         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
43386         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
43387         like acl_libdirstem.
43388         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
43389         acl_libdirstem.
43390         * NEWS: Mention the change.
43391         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
43392
43393 2008-08-31  Jim Meyering  <meyering@redhat.com>
43394
43395         * lib/strftime.h: Add comments describing the two added arguments.
43396
43397         remove duplicate #include directives
43398         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
43399         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
43400
43401 2008-08-31  Bruno Haible  <bruno@clisp.org>
43402
43403         New module 'sigpipe-die'.
43404         * modules/sigpipe-die: New file.
43405         * lib/sigpipe-die.h: New file.
43406         * lib/sigpipe-die.c: New file.
43407         * MODULES.html.sh (Signal handling): Add sigpipe-die.
43408
43409 2008-08-31  Bruno Haible  <bruno@clisp.org>
43410
43411         Don't override previously installed signal handlers.
43412         * lib/fatal-signal.c (saved_sigactions): New variable.
43413         (uninstall_handlers): Reset the signal to the saved handler, not
43414         to SIG_DFL (except when ignored).
43415         (install_handlers): Save the previous handlers.
43416
43417 2008-08-30  Bruno Haible  <bruno@clisp.org>
43418
43419         * gnulib-tool (func_reset_sigpipe): New function.
43420         (func_get_automake_snippet, func_modules_transitive_closure,
43421         func_import): Invoke it before a join command that reads from stdin,
43422         to avoid "echo: write error: Broken pipe" error messages on stderr.
43423         Reported by Sam Steingold <sds@gnu.org>.
43424
43425 2008-08-30  Bruno Haible  <bruno@clisp.org>
43426
43427         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
43428         Code copied from m4/open.m4.
43429         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
43430         access and the filename ends in a slash. Code copied from lib/open.c.
43431         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
43432         * tests/test-fopen.c (main): Check against bug with trailing slash.
43433
43434 2008-08-29  Bruno Haible  <bruno@clisp.org>
43435
43436         Avoid some "gcc -pedantic" warnings.
43437         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
43438         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
43439         * lib/dirent.in.h: Likewise.
43440         * lib/fcntl.in.h: Likewise.
43441         * lib/float.in.h: Likewise.
43442         * lib/iconv.in.h: Likewise.
43443         * lib/inttypes.in.h: Likewise.
43444         * lib/locale.in.h: Likewise.
43445         * lib/math.in.h: Likewise.
43446         * lib/netinet_in.in.h: Likewise.
43447         * lib/search.in.h: Likewise.
43448         * lib/signal.in.h: Likewise.
43449         * lib/stdarg.in.h: Likewise.
43450         * lib/stdint.in.h: Likewise.
43451         * lib/stdio.in.h: Likewise.
43452         * lib/stdlib.in.h: Likewise.
43453         * lib/string.in.h: Likewise.
43454         * lib/strings.in.h: Likewise.
43455         * lib/sys_select.in.h: Likewise.
43456         * lib/sys_socket.in.h: Likewise.
43457         * lib/sys_stat.in.h: Likewise.
43458         * lib/sys_time.in.h: Likewise.
43459         * lib/sysexits.in.h: Likewise.
43460         * lib/time.in.h: Likewise.
43461         * lib/unistd.in.h: Likewise.
43462         * lib/wchar.in.h: Likewise.
43463         * lib/wctype.in.h: Likewise.
43464         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
43465         * modules/fchdir (Makefile.am): Likewise.
43466         * modules/fcntl (Makefile.am): Likewise.
43467         * modules/float (Makefile.am): Likewise.
43468         * modules/iconv_open (Makefile.am): Likewise.
43469         * modules/inttypes (Makefile.am): Likewise.
43470         * modules/locale (Makefile.am): Likewise.
43471         * modules/math (Makefile.am): Likewise.
43472         * modules/netinet_in (Makefile.am): Likewise.
43473         * modules/search (Makefile.am): Likewise.
43474         * modules/signal (Makefile.am): Likewise.
43475         * modules/stdarg (Makefile.am): Likewise.
43476         * modules/stdint (Makefile.am): Likewise.
43477         * modules/stdio (Makefile.am): Likewise.
43478         * modules/stdlib (Makefile.am): Likewise.
43479         * modules/string (Makefile.am): Likewise.
43480         * modules/strings (Makefile.am): Likewise.
43481         * modules/sys_select (Makefile.am): Likewise.
43482         * modules/sys_socket (Makefile.am): Likewise.
43483         * modules/sys_stat (Makefile.am): Likewise.
43484         * modules/sys_time (Makefile.am): Likewise.
43485         * modules/sysexits (Makefile.am): Likewise.
43486         * modules/time (Makefile.am): Likewise.
43487         * modules/unistd (Makefile.am): Likewise.
43488         * modules/wchar (Makefile.am): Likewise.
43489         * modules/wctype (Makefile.am): Likewise.
43490         Reported by Reuben Thomas <rrt@sc3d.org>.
43491
43492 2008-08-29  Bruno Haible  <bruno@clisp.org>
43493
43494         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
43495         any more.
43496
43497 2008-08-29  Simon Josefsson  <simon@josefsson.org>
43498
43499         * MODULES.html.sh (Misc): Add bitrotate.
43500
43501         * modules/bitrotate: New file.
43502
43503         * lib/bitrotate.h: New file.
43504
43505         * modules/bitrotate-tests: New file.
43506
43507         * tests/test-bitrotate.c: New file.
43508
43509         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
43510         on the bitrotate module.
43511
43512         * lib/arctwo.c: Use new bitrotate module.
43513
43514 2008-08-29  Jim Meyering  <meyering@redhat.com>
43515
43516         bootstrap: merge changes from coreutils
43517         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
43518         of copied files.  Remove a kludge, now that this is fixed.
43519         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
43520         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
43521         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
43522
43523 2008-08-29  Bruno Haible  <bruno@clisp.org>
43524
43525         * MODULES.html.sh: Remove --cvs-urls option.
43526
43527 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
43528
43529         maint.mk: adjust to file name change
43530         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
43531
43532 2008-08-28  Jim Meyering  <meyering@redhat.com>
43533
43534         * modules/getndelim2 (License): Relicense to LGPLv2+.
43535         Approved by Richard Stallman for the version of 1995, and by
43536         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
43537
43538 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
43539
43540         * lib/getdelim.c (flockfile, funlockfile): Make all of them
43541         dummy if one is not available.  Do not touch them if
43542         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
43543         (getc_maybe_unlocked): New.
43544         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
43545
43546 2008-08-26  Eric Blake  <ebb9@byu.net>
43547
43548         doc/INSTALL: resync from autoconf
43549         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
43550         (INSTALL_PRELUDE): Delete; this is done more efficiently by
43551         moving...
43552         * install.texi [!autoconf]: ...here.  Resync from autoconf.
43553         * INSTALL: Regenerate.
43554         * INSTALL.ISO: New file.
43555         * INSTALL.UTF-8: Likewise.
43556
43557 2008-08-26  Jim Meyering  <meyering@redhat.com>
43558
43559         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
43560         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
43561         these definitions conditional, so that they may be overridden, too.
43562
43563 2008-08-26  Bruno Haible  <bruno@clisp.org>
43564
43565         Generate INSTALL file variants with prettier quotes.
43566         * doc/Makefile (INSTALL_PRELUDE): New macro.
43567         (INSTALL): Use it.
43568         (INSTALL.ISO, INSTALL.UTF-8): New rules.
43569
43570 2008-08-26  Bruno Haible  <bruno@clisp.org>
43571
43572         Run makeinfo in an English locale.
43573         * doc/Makefile (MAKEINFO): New variable.
43574
43575 2008-08-26  Bruno Haible  <bruno@clisp.org>
43576
43577         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
43578         Suggested by Eric Blake.
43579
43580 2008-08-25  Bruno Haible  <bruno@clisp.org>
43581
43582         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
43583
43584 2008-08-25  Eric Blake  <ebb9@byu.net>
43585
43586         c-stack: test that stack overflow can be caught
43587         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
43588         that platform allows handling stack overflow; at least OS/2 EMX
43589         has sigaltstack, but crashes before transferring control to
43590         handler on stack overflow.
43591         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
43592         check for HAVE_STACK_OVERFLOW_HANDLING.
43593         Reported by Elbert Pol.
43594
43595 2008-08-25  Bruno Haible  <bruno@clisp.org>
43596
43597         * doc/posix-functions/strftime.texi: Fix description of strftime
43598         module.
43599
43600 2008-08-24  Bruno Haible  <bruno@clisp.org>
43601
43602         * tests/uniwidth/test-uc_width2.c: New file.
43603         * tests/uniwidth/test-uc_width2.sh: New file.
43604         * modules/uniwidth/width-tests (Files): Add the new files.
43605         (TESTS): Add uniwidth/test-uc_width2.sh.
43606         (TESTS_ENVIRONMENT): New variable.
43607         (check_PROGRAMS): Add test-uc_width2.
43608         (test_uc_width2_SOURCES): New variable.
43609
43610         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
43611         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
43612         not 0x00AB.
43613         Reported by Alexander V. Lukyanov <lav@netis.ru>.
43614
43615 2008-08-22  Eric Blake  <ebb9@byu.net>
43616
43617         test-lock, test-tls: mention why a test is skipped
43618         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
43619         skipped.
43620         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
43621
43622         count-one-bits: relax license
43623         * modules/count-one-bits (License): Relicense to LGPLv2+.
43624         Suggested by Ludovic Courtès, approved by Ben Pfaff.
43625
43626 2008-08-22  Andreas Schwab  <schwab@suse.de>
43627
43628         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
43629         Remove spurious space in assignment.
43630
43631 2008-08-21  Simon Josefsson  <simon@josefsson.org>
43632
43633         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
43634         Paul Eggert <eggert@CS.UCLA.EDU>.
43635
43636 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
43637
43638         * modules/gettext: Add m4/threadlib.m4.
43639
43640 2008-08-19  Eric Blake  <ebb9@byu.net>
43641
43642         test-c-stack: fix compilation failure on FreeBSD 5.0
43643         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
43644         headers before <sys/resource.h>.
43645         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
43646         the bug.
43647         Reported by Nelson H. F. Beebe.
43648
43649         strverscmp: migrate from "strverscmp.h" to <string.h>
43650         * modules/string (Makefile.am): Add new hooks.
43651         * modules/strverscmp (Files): Remove strverscmp.h.
43652         (Depends-on): Add string.
43653         (configure.ac): Add indicator.
43654         (Include): Mention new header.
43655         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
43656         defaults.
43657         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
43658         results.
43659         * lib/strverscmp.h: Delete.
43660         * lib/string.in.h (strverscmp): Provide declaration, when needed.
43661         * tests/test-strverscmp.c (includes): Adjust client.
43662         * lib/check-version.c (includes): Likewise.
43663         * NEWS: Document the change.
43664
43665         strverscmp: add unit test
43666         * modules/strverscmp-tests: New file.
43667         * tests/test-strverscmp.c: Likewise.
43668
43669 2008-08-19  Simon Josefsson  <simon@josefsson.org>
43670
43671         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
43672         regarding Windows crypto stuff, from Mono.
43673
43674 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
43675
43676         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
43677         if present, for intel RND.  Return error on failures.
43678
43679 2008-08-18  Ben Pfaff  <blp@gnu.org>
43680
43681         gitlog-to-changelog: give better diagnostic for failed pipe-open
43682         * build-aux/gitlog-to-changelog: Improve error message: suggest
43683         that the version of Git may be too old.
43684
43685 2008-08-18  Simon Josefsson  <simon@josefsson.org>
43686
43687         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
43688         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
43689
43690 2008-08-18  Bruno Haible  <bruno@clisp.org>
43691
43692         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
43693         pthread_in_use().
43694
43695 2008-08-18  Bruno Haible  <bruno@clisp.org>
43696
43697         * lib/glthread/threadlib.c: Include <pthread.h>.
43698
43699 2008-08-18  Bruno Haible  <bruno@clisp.org>
43700
43701         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
43702         glthread_recursive_lock_* macros.
43703         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
43704         Fix syntax error.
43705
43706 2008-08-18  Bruno Haible  <bruno@clisp.org>
43707
43708         * lib/glthread/thread.c: Avoid forcing a context switch right after
43709         thread creation.
43710
43711 2008-08-17  Bruno Haible  <bruno@clisp.org>
43712
43713         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
43714         * lib/glthread/thread.h: Provide Win32 specific implementation.
43715         * modules/thread (Files): Add lib/glthread/thread.c.
43716         (Depends-on): Add lock.
43717         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
43718
43719 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43720
43721         New module 'yield'.
43722         * modules/yield: New file.
43723         * lib/glthread/yield.h: New file.
43724         * m4/yield.m4: New file.
43725         * MODULES.html.sh (Multithreading): Add yield.
43726
43727 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43728
43729         New module 'thread'.
43730         * modules/thread: New file.
43731         * lib/glthread/thread.h: New file.
43732         * m4/thread.m4: New file.
43733         * MODULES.html.sh (Multithreading): Add thread.
43734
43735 2008-08-17  Bruno Haible  <bruno@clisp.org>
43736
43737         * lib/glthread/lock.h: Include <stdlib.h> always.
43738         * lib/glthread/tls.h: Likewise.
43739         * lib/glthread/cond.h: Likewise.
43740
43741 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43742
43743         New module 'cond'.
43744         * modules/cond: New file.
43745         * lib/glthread/cond.h: New file.
43746         * lib/glthread/cond.c: New file.
43747         * m4/cond.m4: New file.
43748         * MODULES.html.sh (Multithreading): Add cond.
43749
43750 2008-08-16  Eric Blake  <ebb9@byu.net>
43751
43752         c-stack: fix regression on Irix 5.3 from 2008-06-21
43753         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
43754         sa_sigaction...
43755         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
43756         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
43757         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
43758         * modules/signal (Makefile.am): Use the value.
43759         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
43760         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
43761         * doc/posix-headers/signal.texi (signal.h): Document this
43762         portability issue.
43763         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
43764         Reported by Tom G. Christensen.
43765
43766 2008-08-17  Bruno Haible  <bruno@clisp.org>
43767
43768         New module 'threadlib'.
43769         * modules/threadlib: New file.
43770         * lib/glthread/threadlib.c: New file, extracted from
43771         lib/glthread/lock.c.
43772         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
43773         functions.
43774         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
43775         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
43776         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
43777         macros.
43778         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
43779         (gl_DISABLE_THREADS): Remove macro.
43780         * modules/lock (Files): Remove build-aux/config.rpath.
43781         (Depends-on): Remove havelib. Add threadlib.
43782         (configure.ac-early): Remove section.
43783         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
43784         * modules/tls (Depends-on): Remove lock. Add threadlib.
43785         (Link): New section, copied from threadlib.
43786         * MODULES.html.sh (Multithreading): Add threadlib.
43787
43788 2008-08-14  Bruno Haible  <bruno@clisp.org>
43789
43790         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
43791         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
43792         glthread_rwlock_unlock, glthread_rwlock_destroy,
43793         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
43794         glthread_recursive_lock_destroy): Define as macros always.
43795         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
43796         glthread_lock_lock.
43797         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
43798         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
43799         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
43800         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
43801         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
43802         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
43803         (glthread_recursive_lock_lock_func): Renamed from
43804         glthread_recursive_lock_lock.
43805         (glthread_recursive_lock_unlock_func): Renamed from
43806         glthread_recursive_lock_unlock.
43807         (glthread_recursive_lock_destroy_func): Renamed from
43808         glthread_recursive_lock_destroy.
43809
43810 2008-08-14  Bruno Haible  <bruno@clisp.org>
43811
43812         * lib/glthread/lock.h: Renamed from lib/lock.h.
43813         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
43814         * lib/glthread/tls.h: Renamed from lib/tls.h.
43815         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
43816         * lib/fstrcmp.c: Update includes.
43817         * lib/strsignal.c: Update includes.
43818         * modules/lock (Files, Makefile.am): Update.
43819         (Include): Change to "glthread/lock.h".
43820         * modules/tls (Files, Makefile.am): Update.
43821         (Include): Change to "glthread/tls.h".
43822         * tests/test-lock.c: Update includes.
43823         * tests/test-tls.c: Update includes.
43824         * NEWS: Mention the renamed header files.
43825
43826 2008-08-11  Jim Meyering  <meyering@redhat.com>
43827
43828         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
43829
43830 2008-08-11  Eric Blake  <ebb9@byu.net>
43831
43832         test-c-stack: avoid C99-ism
43833         * tests/test-c-stack.c (main): Fix whitespace, move declaration
43834         before statement.
43835         Reported by Alain Guibert.
43836
43837 2008-08-10  Jim Meyering  <meyering@redhat.com>
43838
43839         ensure that return value of uinttostr et al are not ignored
43840         * lib/inttostr.h (__GNUC_PREREQ): Define.
43841         (__attribute_warn_unused_result__): Define.
43842         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
43843
43844 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
43845
43846         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
43847         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
43848
43849 2008-08-07  Jim Meyering  <meyering@redhat.com>
43850
43851         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
43852
43853         * modules/mkstemp (License): Relicense under LGPLv2+.
43854         * modules/tempname (License): Likewise.
43855
43856 2008-08-06  Bruno Haible  <bruno@clisp.org>
43857
43858         * lib/poll.c (poll): Further micro-optimization.
43859
43860 2008-08-06  Jim Meyering  <meyering@redhat.com>
43861
43862         inet_pton.c: use locale-independent tolower
43863         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
43864         (inet_pton6): Use c_tolower rather than tolower.
43865         * modules/inet_pton (Depends-on): Add c-ctype.
43866
43867 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
43868
43869         * lib/poll.c (poll): Avoid division when timeout is 0, cache
43870         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
43871
43872 2008-08-06  Jim Meyering  <meyering@redhat.com>
43873
43874         * modules/inet_pton (License): Relicense under LGPLv2+.
43875
43876 2008-08-03  Bruno Haible  <bruno@clisp.org>
43877
43878         Additional non-aborting API for lock and tls.
43879         * lib/lock.h: Include <errno.h>.
43880         (glthread_lock_init): New macro/function.
43881         (gl_lock_init): Define as wrapper around glthread_lock_init.
43882         (glthread_lock_lock): New macro/function.
43883         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
43884         (glthread_lock_unlock): New macro/function.
43885         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
43886         (glthread_lock_destroy): New macro/function.
43887         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
43888         (glthread_rwlock_init): New macro/function.
43889         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
43890         (glthread_rwlock_rdlock): New macro/function.
43891         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
43892         (glthread_rwlock_wrlock): New macro/function.
43893         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
43894         (glthread_rwlock_unlock): New macro/function.
43895         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
43896         (glthread_rwlock_destroy): New macro/function.
43897         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
43898         (glthread_recursive_lock_init): New macro/function.
43899         (gl_recursive_lock_init): Define as wrapper around
43900         glthread_recursive_lock_init.
43901         (glthread_recursive_lock_lock): New macro/function.
43902         (gl_recursive_lock_lock): Define as wrapper around
43903         glthread_recursive_lock_lock.
43904         (glthread_recursive_lock_unlock): New macro/function.
43905         (gl_recursive_lock_unlock): Define as wrapper around
43906         glthread_recursive_lock_unlock.
43907         (glthread_recursive_lock_destroy): New macro/function.
43908         (gl_recursive_lock_destroy): Define as wrapper around
43909         glthread_recursive_lock_destroy.
43910         (glthread_once): New macro/function.
43911         (gl_once): Define as wrapper around glthread_once.
43912         Update function declarations.
43913         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
43914         glthread_rwlock_init. Return error code.
43915         (glthread_rwlock_rdlock_multithreaded): Renamed from
43916         glthread_rwlock_rdlock. Return error code.
43917         (glthread_rwlock_wrlock_multithreaded): Renamed from
43918         glthread_rwlock_wrlock. Return error code.
43919         (glthread_rwlock_unlock_multithreaded): Renamed from
43920         glthread_rwlock_unlock. Return error code.
43921         (glthread_rwlock_destroy_multithreaded): Renamed from
43922         glthread_rwlock_destroy. Return error code.
43923         (glthread_recursive_lock_init_multithreaded): Renamed from
43924         glthread_recursive_lock_init. Return error code.
43925         (glthread_recursive_lock_lock_multithreaded): Renamed from
43926         glthread_recursive_lock_lock. Return error code.
43927         (glthread_recursive_lock_unlock_multithreaded): Renamed from
43928         glthread_recursive_lock_unlock. Return error code.
43929         (glthread_recursive_lock_destroy_multithreaded): Renamed from
43930         glthread_recursive_lock_destroy. Return error code.
43931         (glthread_once_call): Make static.
43932         (glthread_once_multithreaded): Renamed from glthread_once.
43933         * lib/tls.h: Include <errno.h>.
43934         (glthread_tls_key_init): New macro/function.
43935         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
43936         (glthread_tls_set): New macro/function.
43937         (gl_tls_set): Define as wrapper around glthread_tls_set.
43938         (glthread_tls_key_destroy): New macro/function.
43939         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
43940         Update function declarations.
43941         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
43942         glthread_tls_get.
43943         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43944
43945 2008-08-04  Eric Blake  <ebb9@byu.net>
43946
43947         gnumakefile: use space, not TAB, outside of targets
43948         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
43949
43950 2008-08-02  Jim Meyering  <meyering@redhat.com>
43951
43952         getdate.y: avoid locale-dependent date parsing failure
43953         In Turkish locales, getdate would fail to recognize keywords
43954         containing a lowercase "i".  The solution is not to rely on
43955         locale-sensitive case-conversion.
43956         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
43957         (lookup_word): Use c_toupper in place of toupper.
43958         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
43959         Reported by Vefa Bicakci <bicave@superonline.com> in
43960         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
43961         * modules/getdate (Depends-on): Add c-ctype.
43962
43963 2008-08-02  Bruno Haible  <bruno@clisp.org>
43964
43965         * gnulib-tool (func_import): When updating or creating a .gitignore
43966         file, prepend each added line with a slash, and ignore leading slashes
43967         from the existing lines.
43968         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43969
43970 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43971
43972         Portability fix for GNU make 3.79.1.
43973         * top/GNUmakefile: Avoid 'else COND', which older GNU make
43974         versions do not understand.
43975
43976 2008-08-01  Bruno Haible  <bruno@clisp.org>
43977
43978         Work around bug of HP-UX 10.20 cc with -0.0 literal.
43979         * tests/test-isnanf.h (zero): New variable.
43980         (main): Avoid literal -0.0f.
43981         * tests/test-isnand.h (zero): New variable.
43982         (main): Avoid literal -0.0.
43983         * tests/test-isnanl.h (zero): New variable.
43984         (main): Avoid literal -0.0L.
43985         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
43986         (test_float, test_double, test_long_double): Avoid literals -0.0f,
43987         -0.0, -0.0L.
43988         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
43989         (test_signbitd): Avoid literal -0.0.
43990         (test_signbitl): Avoid literal -0.0L.
43991         * tests/test-ceilf1.c (zero): New variable.
43992         (main): Avoid literal -0.0f.
43993         * tests/test-ceill.c (zero): New variable.
43994         (main): Avoid literal -0.0L.
43995         * tests/test-floorf1.c (zero): New variable.
43996         (main): Avoid literal -0.0f.
43997         * tests/test-floorl.c (zero): New variable.
43998         (main): Avoid literal -0.0L.
43999         * tests/test-roundf1.c (zero): New variable.
44000         (main): Avoid literal -0.0f.
44001         * tests/test-round1.c (zero): New variable.
44002         (main): Avoid literal -0.0.
44003         * tests/test-roundl.c (zero): New variable.
44004         (main): Avoid literal -0.0L.
44005         * tests/test-truncf1.c (zero): New variable.
44006         (main): Avoid literal -0.0f.
44007         * tests/test-trunc1.c (zero): New variable.
44008         (main): Avoid literal -0.0.
44009         * tests/test-truncl.c (zero): New variable.
44010         (main): Avoid literal -0.0L.
44011         * tests/test-frexp.c (zero): New variable.
44012         (main): Avoid literal -0.0.
44013         * tests/test-frexpl.c (zero): New variable.
44014         (main): Avoid literal -0.0L.
44015         * tests/test-ldexpl.c (zero): New variable.
44016         (main): Avoid literal -0.0L.
44017         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44018         (zerod, zerol): New variables.
44019         (test_function): Avoid literals -0.0, -0.0L.
44020         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44021         (zerod, zerol): New variables.
44022         (test_function): Avoid literals -0.0, -0.0L.
44023         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44024         (zerod, zerol): New variables.
44025         (test_function): Avoid literals -0.0, -0.0L.
44026         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44027         (zerod, zerol): New variables.
44028         (test_function): Avoid literals -0.0, -0.0L.
44029         * tests/test-strtod.c (zero): New variable.
44030         (main): Avoid literal -0.0.
44031         Reported by Jonathan C. Patschke <jp@centtech.com>.
44032
44033 2008-07-31  Jim Meyering  <meyering@redhat.com>
44034
44035         sha256.h: correct definition of SHA224_DIGEST_SIZE
44036         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
44037         Reported by Paulie Pena IV <paulie4@gmail.com>.
44038         Define as 224 / 8, rather than as a literal.
44039         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
44040         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
44041         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
44042
44043 2008-07-31  Bruno Haible  <bruno@clisp.org>
44044
44045         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
44046         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
44047         Reported by Jonathan Patschke <jp@centtech.com>.
44048
44049 2008-07-31  Bruno Haible  <bruno@clisp.org>
44050
44051         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
44052         Reported by Paolo Bonzini <bonzini@gnu.org>.
44053
44054 2008-07-30  Eric Blake  <ebb9@byu.net>
44055
44056         test-strtod: allow compilation without -lm
44057         * tests/test-strtod.c (main): Avoid link dependence on fabs.
44058         Reported by Dennis Clarke <blastwave@gmail.com>.
44059
44060 2008-07-28  Jim Meyering  <meyering@redhat.com>
44061
44062         bootstrap: work also when there are no .po files in po/
44063         * build-aux/bootstrap (update_po_files): Complete the change
44064         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
44065
44066 2008-07-27  Jim Meyering  <meyering@redhat.com>
44067
44068         * users.txt: Add zile.
44069
44070 2008-07-26  Ben Pfaff  <blp@gnu.org>
44071
44072         Add missing dependencies on new m4/exponent[fdl].m4 files.
44073         * modules/isnanf-nolibm: Add m4/exponentf.m4.
44074         * modules/isnand-nolibm: Add m4/exponentd.m4.
44075         * modules/isnanl-nolibm: Add m4/exponentl.m4.
44076         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
44077         m4/isnan[fdl].m4, because the macros actually used moved.
44078         Reported by Jim Meyering.
44079
44080 2008-07-14  Ben Pfaff  <blp@gnu.org>
44081
44082         Add isinf module.
44083         * lib/isinf.c: New file.
44084         * lib/math.in.h: Define isinf macro if we have decided to replace
44085         it.
44086         * m4/isinf.m4: New file.
44087         * m4/math_h.m4: Initialize and substitute variables for isinf
44088         module.
44089         * modules/isinf: New file.
44090         * modules/isinf-tests: New file.
44091         * modules/math: Add substitutions for new module.
44092         * tests/test-isinf.c: New file.
44093         * doc/posix-functions/isinf.texi: Mention new module.
44094         * MODULES.html.sh: Mention new module.
44095
44096 2008-07-14  Ben Pfaff  <blp@gnu.org>
44097
44098         Factor out some macros for use by additional modules.
44099         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
44100         exponentf.m4.
44101         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
44102         exponentd.m4.
44103         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
44104         file exponentl.m4.
44105         * m4/exponentf.m4: New file.
44106         * m4/exponentd.m4: New file.
44107         * m4/exponentl.m4: New file.
44108         * modules/isnanf: Use new file m4/exponentf.m4.
44109         * modules/isnand: Use new file m4/exponentd.m4.
44110         * modules/isnanl: Use new file m4/exponentl.m4.
44111
44112 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
44113
44114         mktime.c: normalize tp->tm_isdst value to -1/0/1.
44115         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
44116         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
44117         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
44118
44119         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
44120         readlink on platforms without PATH_MAX.
44121
44122 2008-07-21  Eric Blake  <ebb9@byu.net>
44123
44124         Warn, not fail, on stale version.
44125         * top/GNUmakefile (_curr-ver): Tone down previous patch.
44126
44127         Don't allow installation with stale devel version number.
44128         * top/GNUmakefile (_is-install-target): New macro.
44129         (_curr-ver): Forbid installation with stale version number.
44130
44131 2008-07-20  Bruno Haible  <bruno@clisp.org>
44132
44133         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
44134         TESTS_ENVIRONMENT.
44135         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
44136
44137 2008-07-20  Bruno Haible  <bruno@clisp.org>
44138
44139         * lib/c-stack.h (c_stack_action): Add documentation.
44140         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
44141
44142 2008-07-20  Bruno Haible  <bruno@clisp.org>
44143
44144         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
44145         * modules/readlink (License): Likewise.
44146
44147 2008-07-17  Eric Blake  <ebb9@byu.net>
44148
44149         * modules/c-stack (Link): Fix typo.
44150
44151         Make c-stack use libsigsegv, when available.
44152         * modules/c-stack (Depends-on): Add libsigsegv.
44153         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
44154         needed.
44155         * lib/c-stack.c (SIGSTKSZ): Define fallback.
44156         (segv_handler, overflow_handler, c_stack_action)
44157         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
44158         implementation when libsigsegv is available, but only when using
44159         the library is necessary.
44160         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
44161         comment, explaining why XSI check fails on Linux.
44162         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
44163         * tests/test-c-stack2.sh: Tweak skip message.
44164         * NEWS: Document new link-time requirements.
44165
44166 2008-07-16  Eric Blake  <ebb9@byu.net>
44167
44168         c-stack: Expose false positives when not using libsigsegv.
44169         * modules/c-stack-tests (Files): Expand test.
44170         * tests/test-c-stack.c (main): Add means to conditionally trigger
44171         non-overflow SIGSEGV.
44172         * tests/test-c-stack2.sh: New file.
44173
44174 2008-07-14  Bruno Haible  <bruno@clisp.org>
44175
44176         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
44177         Reported by Eric Blake.
44178
44179 2008-07-14  Sam Steingold  <sds@gnu.org>
44180             Bruno Haible  <bruno@clisp.org>
44181
44182         New module libsigsegv.
44183         * modules/libsigsegv: New file.
44184         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
44185         modifications.
44186         * MODULES.html.sh (Signal handling): New section.
44187
44188 2008-07-14  Bruno Haible  <bruno@clisp.org>
44189
44190         * modules/unictype/ctype-* (Description): Add the word "function".
44191         Improves the resulting doc in MODULES.html.
44192
44193 2008-07-12  Ben Pfaff  <blp@gnu.org>
44194
44195         Add longlong module.
44196         * modules/longlong: New file.
44197
44198 2008-07-12  Bruno Haible  <bruno@clisp.org>
44199
44200         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
44201         to empty.
44202
44203 2008-07-10  Ben Pfaff  <blp@gnu.org>
44204
44205         Add isnan module.
44206         * doc/posix-functions/isnan.texi: Mention new module.
44207         * lib/math.in.h: Define isnan macro if we have decided to replace
44208         it.
44209         * m4/isnan.m4: New file.
44210         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
44211         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
44212         also.
44213         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
44214         redundancy.
44215         * m4/math_h.m4: Initialize and substitute variables for isnan
44216         module.
44217         * modules/isnan: New file.
44218         * modules/isnan-tests: New file.
44219         * modules/math: Add substitutions for new module.
44220         * tests/test-isnan.c: New file.
44221         * MODULES.html.sh: Mention new module.
44222
44223 2008-07-10  Ben Pfaff  <blp@gnu.org>
44224
44225         Add isnanf module.
44226         * lib/isnanf.m4: New file.
44227         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
44228         (gl_HAVE_ISNANF_IN_LIBM): New macro.
44229         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
44230         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
44231         * modules/isnanf: New file.
44232         * modules/isnanf-tests: New file.
44233         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
44234         files.
44235         * tests/test-isnanf-nolibm.c: factored most of its contents into
44236         new file tests/test-isnanf.h.
44237         * tests/test-isnanf.h: New file.
44238         * tests/test-isnanf.c: New file.
44239         * MODULES.html.sh: Mention new module.
44240         * doc/glibc-functions/isnanf.texi: Mention new module.
44241
44242 2008-07-10  Ben Pfaff  <blp@gnu.org>
44243
44244         Add isnand module.
44245         * lib/isnand.h: New file.
44246         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
44247         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
44248         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
44249         functionality also.
44250         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
44251         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
44252         (gl_HAVE_ISNAND_IN_LIBM): New macro.
44253         * modules/isnand: New file.
44254         * modules/isnand-tests: New file.
44255         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
44256         files.
44257         * tests/test-isnand-nolibm.c: factored most of its contents into
44258         new file tests/test-isnand.h.
44259         * tests/test-isnand.h: New file.
44260         * tests/test-isnand.c: New file.
44261         * MODULES.html.sh: Mention new module.
44262
44263 2008-07-10  Ben Pfaff  <blp@gnu.org>
44264
44265         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
44266         * lib/isnand.h: Rename lib/isnand-nolibm.h.
44267         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
44268         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
44269         * modules/isnanf-nolibm: Update references to renamed files.
44270         * modules/isnand-nolibm: Likewise.
44271         * modules/isnanf-nolibm-tests: Likewise.
44272         * modules/isnand-nolibm-tests: Likewise.
44273         * lib/frexp.c: Likewise.
44274         * lib/isfinite.c: Likewise.
44275         * lib/signbitd.c: Likewise.
44276         * lib/signbitf.c: Likewise.
44277         * lib/vasnprintf.c: Likewise.
44278         * tests/test-ceilf1.c: Likewise.
44279         * tests/test-ceilf2.c: Likewise.
44280         * tests/test-floorf1.c: Likewise.
44281         * tests/test-floorf2.c: Likewise.
44282         * tests/test-frexp.c: Likewise.
44283         * tests/test-round1.c: Likewise.
44284         * tests/test-round2.c: Likewise.
44285         * tests/test-roundf1.c: Likewise.
44286         * tests/test-strtod.c: Likewise.
44287         * tests/test-trunc1.c: Likewise.
44288         * tests/test-trunc2.c: Likewise.
44289         * tests/test-truncf1.c: Likewise.
44290         * tests/test-truncf2.c: Likewise.
44291         * NEWS: Mention the renamed header files.
44292
44293 2008-07-11  Jim Meyering  <meyering@redhat.com>
44294
44295         vc-list-files: make the last-resort awk code more portable
44296         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
44297         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
44298         does not support it.
44299
44300 2008-07-10  Eric Blake  <ebb9@byu.net>
44301
44302         Work with tar's bootstrap.
44303         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
44304         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
44305         an m4 comment.
44306
44307 2008-07-09  Jim Meyering  <meyering@redhat.com>
44308
44309         posix-shell.m4: fix typo that made this test malfunction
44310         * m4/posix-shell.m4: Remove capitalization in variable name.
44311
44312 2008-07-08  Bruno Haible  <bruno@clisp.org>
44313
44314         * m4/onceonly.m4: Update comments.
44315         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44316
44317 2008-07-04  Jim Meyering  <meyering@redhat.com>
44318
44319         * users.txt: Add vc-dwim.
44320         (bison, coreutils): Use the gitweb URL.
44321
44322 2008-07-03  Jim Meyering  <meyering@redhat.com>
44323
44324         * users.txt: Add libffcall.  From Sam Steingold.
44325
44326 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
44327
44328         getdate.y: do not ignore TZ with relative day, month or year offset
44329         * lib/getdate.y (get_date): Move the tz-handling block to follow the
44330         relative-date-handling, since otherwise, the latter would clobber the
44331         sole output (an updated Start value) of the tz-handling block.
44332         * tests/test-getdate.c: Tests for the fix
44333
44334 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44335
44336         Recognize 'foo_LIBRARIES += libgnu.a'.
44337         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
44338         makefile snippet has already specified an installation location,
44339         also using '+='.
44340
44341 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
44342
44343         getdate.y: factor out common actions
44344         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
44345         Use them in place of open-coded actions.
44346
44347 2008-07-01  Simon Josefsson  <simon@josefsson.org>
44348
44349         Add self-test for getdate module.
44350         * modules/getdate-tests: New file.
44351         * tests/test-getdate.c: New file.
44352
44353 2008-06-29  Bruno Haible  <bruno@clisp.org>
44354
44355         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
44356         .gitignore.
44357         Reported by Sylvain Beucler <beuc@beuc.net>.
44358
44359 2008-06-29  Bruno Haible  <bruno@clisp.org>
44360
44361         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
44362         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
44363
44364 2008-06-29  Bruno Haible  <bruno@clisp.org>
44365
44366         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
44367         EXTRA_DIST.
44368         Reported by Sylvain Beucler <beuc@beuc.net>.
44369
44370 2008-06-26  Jim Meyering  <meyering@redhat.com>
44371
44372         make several modules depend on the "open" module
44373         This provides slightly increased consistency when opening-for-write
44374         the name of a non-directory spelled with a trailing slash.
44375         * modules/chdir-safer: Likewise.
44376         * modules/chown: Likewise.
44377         * modules/clean-temp: Likewise.
44378         * modules/copy-file: Likewise.
44379         * modules/fchdir: Likewise.
44380         * modules/fcntl-safer: Likewise.
44381         * modules/pipe: Likewise.
44382         * modules/utime: Likewise.
44383         Prompted by Eric Blake and Bruno Haible.
44384
44385 2008-06-24  Andreas Schwab  <schwab@suse.de>
44386
44387         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
44388         literals can be used as initializers for global variables.
44389
44390 2008-06-23  Eric Blake  <ebb9@byu.net>
44391
44392         Make gnulib-cache.m4 easier to diff.
44393         * gnulib-tool (func_import): Allow newlines when reading cached
44394         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
44395
44396 2008-06-23  Bruno Haible  <bruno@clisp.org>
44397
44398         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
44399         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
44400         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
44401         m4/signalblocking.m4.
44402         (gl_PREREQ_SIGACTION): Don't invoke it.
44403         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
44404         gl_PREREQ_SIG_HANDLER_H.
44405         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44406         Don't check for sigaction here.
44407
44408 2008-06-23  Bruno Haible  <bruno@clisp.org>
44409
44410         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
44411         (install_handlers): Don't set the SA_RESETHAND flag.
44412
44413 2008-06-23  Bruno Haible  <bruno@clisp.org>
44414
44415         * m4/sigaction.m4: Comment fixes.
44416         * lib/signal.in.h: Likewise.
44417
44418 2008-06-23  Eric Blake  <ebb9@byu.net>
44419
44420         Fix typo.
44421         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
44422
44423         Avoid SA_ namespace.
44424         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
44425         Reported by Ralf Wildenhues.
44426
44427         Avoid test failure due to SA_RESTORER.
44428         * tests/test-sigaction.c (SA_MASK): New macro.
44429         (main): Avoid failing due to extension flags being set.
44430         Reported by Jim Meyering.
44431
44432         Revert use of sig-handler.h in sigprocmask.c.
44433         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
44434         it requires the existence of struct sigaction.
44435         * lib/sigprocmask.c (handler_t): Restore typedef.
44436         (rpl_signal, old_handlers): Use local type.
44437
44438 2008-06-22  Bruno Haible  <bruno@clisp.org>
44439
44440         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
44441         conditionally.
44442         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44443
44444 2008-06-22  Bruno Haible  <bruno@clisp.org>
44445
44446         * doc/posix-functions/siginterrupt.texi: Move note.
44447
44448         * lib/signal.in.h (SA_RESTART): New macro.
44449         * lib/sigaction.c: Update comment.
44450
44451         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
44452
44453         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
44454         (gl_PREREQ_SIGPROCMASK): Invoke it.
44455         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
44456
44457         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
44458
44459         * lib/sigprocmask.c: Update a comment.
44460
44461 2008-06-21  Eric Blake  <ebb9@byu.net>
44462
44463         Use sigaction module rather than signal().
44464         * modules/c-stack (Depends-on): Add sigaction.
44465         * modules/fatal-signal (Depends-on): Likewise.
44466         * modules/nanosleep (Depends-on): Likewise.
44467         * modules/sigprocmask (Files): Add sig-handler.h.
44468         * modules/sigaction (Files): Likewise.
44469         * lib/sig-handler.h (get_handler): New file, suggested by Paul
44470         Eggert.
44471         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
44472         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
44473         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
44474         (init_fatal_signals): Likewise.
44475         * lib/nanosleep.c (rpl_nanosleep): Likewise.
44476         (siginterrupt): Delete fallback.
44477         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
44478         instead.
44479         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
44480         siginterrupt.
44481
44482         New module sigaction, for mingw.
44483         * modules/sigaction: New module...
44484         * modules/sigaction-tests: ...and its test.
44485         * m4/sigaction.m4: New file.
44486         * lib/sigaction.c: Likewise.
44487         * tests/test-sigaction.c: Likewise.
44488         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
44489         * modules/signal (Makefile.am): Likewise.
44490         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
44491         needed.
44492         * doc/posix-headers/signal.texi (signal.h): Mention provided
44493         types.
44494         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
44495         that sigaction is preferable.
44496         * doc/posix-functions/sigaction.texi (sigaction): Mention new
44497         module.
44498         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44499         sigaction.
44500
44501         Improve robustness of sigprocmask by overriding signal.
44502         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
44503         is in use.
44504         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
44505         (SIGKILL, SIGSTOP): Provide fallbacks.
44506         (rpl_signal): Implement.
44507         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
44508         signal can be called inside handlers.
44509
44510         Fix nanosleep module on mingw.
44511         * modules/nanosleep (Depends-on): Add sys_select.
44512         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
44513
44514         Fix licensing of sigprocmask.
44515         * modules/raise (License): Relicense as LGPL.
44516
44517 2008-06-21  Bruno Haible  <bruno@clisp.org>
44518
44519         * lib/propername.c (proper_name_utf8): Don't use the transliterated
44520         result if it contains question marks.
44521         Reported by Michael Geng <linux@michaelgeng.de>.
44522
44523 2008-06-19  Bruno Haible  <bruno@clisp.org>
44524
44525         Fix CVS-ism.
44526         * doc/gnulib.texi: Include updated-stamp.texi.
44527         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
44528         (updated-stamp.texi): New rule.
44529         (gnulib.info): Depend on it.
44530         * doc/.gitignore: Add updated-stamp.texi.
44531         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
44532
44533 2008-06-19  Bruno Haible  <bruno@clisp.org>
44534
44535         * doc/Makefile (gnulib.info): Update and simplify dependencies.
44536         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44537
44538 2008-06-19  Eric Blake  <ebb9@byu.net>
44539
44540         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
44541         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
44542         Reported by Stepan Kasal.
44543
44544 2008-06-18  Bruno Haible  <bruno@clisp.org>
44545
44546         * lib/fatal-signal.c (init_fatal_signals): Add comment.
44547         Reported by Eric Blake.
44548
44549 2008-06-18  Eric Blake  <ebb9@byu.net>
44550
44551         Work around cygwin 1.5.25 strsignal bug.
44552         * tests/test-strsignal.c: Allow for const char *.
44553         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
44554
44555 2008-06-18  Simon Josefsson  <simon@josefsson.org>
44556
44557         * users.txt: Update URL to article and add author/date
44558         information.
44559
44560 2008-06-17  Bruno Haible  <bruno@clisp.org>
44561
44562         New macro gl_DISABLE_THREADS.
44563         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
44564         if the user did not pass --enable-threads or --disable-threads option.
44565         (gl_DISABLE_THREADS): New macro.
44566         Reported by Eric Blake <ebb9@byu.net>.
44567
44568 2008-06-17  Bruno Haible  <bruno@clisp.org>
44569
44570         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
44571         when the macro ignores it.
44572         Based on a patch by Eric Blake <ebb9@byu.net>.
44573
44574 2008-06-17  Bruno Haible  <bruno@clisp.org>
44575
44576         * modules/tls (License): Change to LGPLv2+.
44577         Reported by Eric Blake.
44578
44579 2008-06-17  Eric Blake  <ebb9@byu.net>
44580
44581         Simplify c-stack prerequisites.
44582         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
44583         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
44584         no longer requires <ucontext.h> to exist.  Optimize setrlimit
44585         check.
44586         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
44587         <sys/resource.h>.
44588
44589         Move c-stack test into testsuite.
44590         * modules/c-stack-tests: New file.
44591         * lib/c-stack.c [DEBUG]: Move test program...
44592         * tests/test-c-stack.c: ...into this new file.  Skip rather than
44593         fail test if sigaltstack is lacking.
44594         * tests/test-c-stack.sh: New driver file.
44595
44596 2008-06-16  Eric Blake  <ebb9@byu.net>
44597
44598         Use raise module consistently.
44599         * modules/fatal-signal (Depends-on): Add raise.
44600         * modules/sigprocmask (Depends-on): Likewise.
44601         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
44602         * lib/sigprocmask.c (sigprocmask): Likewise.
44603         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44604         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
44605
44606         Fix compliance bug in sigpending.
44607         * lib/sigprocmask.c (sigpending): Return pending array via
44608         parameter, not return value.
44609
44610 2008-06-14  Eric Blake  <ebb9@byu.net>
44611
44612         Improve obstack-printf test code.
44613         * tests/test-obstack-printf.c (test_function): Fix comment, and
44614         simplify usage of obstack_* in macros.  Add a test for coverage.
44615         Reported by Bruno Haible.
44616
44617 2008-06-14  Bruno Haible  <bruno@clisp.org>
44618
44619         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
44620         array size as a constant, not as a const variable.
44621         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
44622         AC_USE_SYSTEM_EXTENSIONS.
44623         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
44624         Test whether the obstack_printf function actually exists.
44625         * modules/obstack-printf (Depends-on): Add extensions.
44626         (Include): Remove obstack.h.
44627         * modules/obstack-printf-posix (Depends-on): Add extensions.
44628         (Include): Remove obstack.h.
44629
44630 2008-06-13  Eric Blake  <ebb9@byu.net>
44631
44632         Add obstack-printf and obstack-printf-posix modules.
44633         * modules/obstack-printf: New file.
44634         * modules/obstack-printf-posix: Likewise.
44635         * MODULES.html.sh (Misc): Mention them.
44636         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44637         Likewise.
44638         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44639         Likewise.
44640         * modules/stdio (Makefile.am): Accomodate new modules.
44641         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44642         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
44643         Declare.
44644         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
44645         functions.
44646         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
44647         (gl_REPLACE_OBSTACK_PRINTF): New macros
44648         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
44649         * tests/test-obstack-printf.c: New file.
44650         * modules/obstack-printf-tests: Likewise.
44651         * modules/obstack-printf-posix-tests: Likewise.
44652
44653 2008-06-11  Bruno Haible  <bruno@clisp.org>
44654
44655         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
44656         * lib/open.c: Include errno.h.
44657         (open): Fail when attempting to write to a file that has a trailing
44658         slash.
44659         * tests/test-open.c (main): Test against trailing slash bug.
44660         * doc/posix-functions/open.texi: Mention the trailing slash bug.
44661
44662 2008-06-10  Bruno Haible  <bruno@clisp.org>
44663
44664         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
44665         for $? to work inside the trap command, with various /bin/sh-s.
44666         * tests/test-vc-list-files-cvs.sh: Likewise.
44667
44668 2008-06-10  Bruno Haible  <bruno@clisp.org>
44669
44670         * lib/acl-internal.h: Don't include gettext.h here.
44671         * lib/set-mode-acl.c: Include gettext.h here.
44672         * lib/copy-acl.c: Likewise.
44673
44674 2008-06-10  Bruno Haible  <bruno@clisp.org>
44675
44676         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
44677         * lib/wait-process.c (wait_subprocess): Likewise.
44678         * lib/execute.h (execute): Add termsigp argument.
44679         * lib/execute.c (execute): Likewise.
44680         * lib/csharpcomp.c (compile_csharp_using_pnet,
44681         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
44682         * lib/csharpexec.c (execute_csharp_using_pnet,
44683         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
44684         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
44685         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
44686         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
44687         is_jikes_present): Update.
44688         * lib/javaexec.c (execute_java_class): Update.
44689         * lib/javaversion.c (execute_and_read_line): Update.
44690         * NEWS: Document the changes.
44691         Reported by Eric Blake.
44692
44693 2008-06-10  Eric Blake  <ebb9@byu.net>
44694
44695         Add missing include.
44696         * tests/test-strstr.c (includes): Add <signal.h>.
44697         * tests/test-strcasestr.c (includes): Likewise.
44698         * tests/test-memmem.c (includes): Likewise.
44699
44700 2008-06-10  Bruno Haible  <bruno@clisp.org>
44701
44702         * lib/wait-process.c (wait_subprocess): Add an assertion.
44703
44704 2008-06-10  Bruno Haible  <bruno@clisp.org>
44705
44706         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
44707
44708 2008-06-10  Bruno Haible  <bruno@clisp.org>
44709
44710         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
44711         using alarm().
44712         * tests/test-strcasestr.c (main): Likewise.
44713         * tests/test-strstr.c (main): Likewise.
44714
44715 2008-06-09  Bruno Haible  <bruno@clisp.org>
44716
44717         Work around the Solaris 10 ACE ACLs ABI change.
44718         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
44719         declare if ACL_NO_TRIVIAL is present.
44720         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
44721         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
44722         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
44723         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
44724         define if ACL_NO_TRIVIAL is present.
44725         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
44726         and use the current ABI.
44727         (file_has_acl): Use same #if condition as elsewhere.
44728         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
44729         in use, and use the current ABI.
44730         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
44731         Reported by Jim Meyering.
44732
44733 2008-06-09  Eric Blake  <ebb9@byu.net>
44734
44735         Work around environments that (stupidly) ignore SIGALRM.
44736         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
44737         before using alarm().
44738         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44739         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44740         Reported by Ian Beckwith <ianb@erislabs.net>.
44741
44742         Produce autobuild blurb earlier in log.
44743         * modules/autobuild (configure.ac-early): Move AB_INIT here.
44744
44745 2008-06-09  Jim Meyering  <meyering@redhat.com>
44746         and OndÅ™ej Vašík  <ovasik@redhat.com>
44747
44748         utimens.c: correct kernel bug work-around
44749         OndÅ™ej Vašík found that the invalid return value of 280 indicates
44750         failure, not success, and the kernel bug we're trying to work
44751         around affects not just the utimensat call, but also the fallback
44752         futimens call.
44753         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
44754         not success.
44755         [HAVE_FUTIMENS]: Use the same work-around, here.
44756
44757 2008-06-09  Jim Meyering  <meyering@redhat.com>
44758
44759         add more guards around definition of ACE_-related code
44760         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
44761         ALLOW and ACE_OWNER are also defined.
44762
44763 2008-06-08  Bruno Haible  <bruno@clisp.org>
44764
44765         * lib/acl-internal.h: Add me as co-author.
44766         * lib/file-has-acl.c: Likewise.
44767         * lib/set-mode-acl.c: Likewise.
44768         * lib/copy-acl.c: Likewise.
44769
44770 2008-06-08  Bruno Haible  <bruno@clisp.org>
44771
44772         Add support for AIX ACLs.
44773         * lib/acl-internal.h (acl_nontrivial): New declaration.
44774         * lib/file-has-acl.c (acl_nontrivial): New function.
44775         (file_has_acl): Add implementation using AIX 4 ACL API.
44776         * lib/set-mode-acl.c (qset_acl): Likewise.
44777         * lib/copy-acl.c (qcopy_acl): Likewise.
44778
44779 2008-06-08  Bruno Haible  <bruno@clisp.org>
44780
44781         Add support for HP-UX ACLs.
44782         * lib/acl-internal.h (acl_nontrivial): New declaration.
44783         * lib/file-has-acl.c (acl_nontrivial): New function.
44784         (file_has_acl): Add implementation using HP-UX 11 ACL API.
44785         * lib/set-mode-acl.c (qset_acl): Likewise.
44786         * lib/copy-acl.c (qcopy_acl): Likewise.
44787
44788 2008-06-08  Bruno Haible  <bruno@clisp.org>
44789
44790         Add support for Cygwin ACLs.
44791         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
44792         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
44793         the chmod_or_fchmod call.
44794         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
44795
44796 2008-06-08  Bruno Haible  <bruno@clisp.org>
44797
44798         Fix bug with setuid modes in Solaris 10+ code.
44799         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
44800         succeeded, when the mode contains some special bits.
44801
44802 2008-06-08  Bruno Haible  <bruno@clisp.org>
44803
44804         Add support for Solaris 7..10 ACLs.
44805         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
44806         declarations.
44807         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
44808         functions.
44809         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
44810         * lib/set-mode-acl.c (qset_acl): Likewise.
44811         * lib/copy-acl.c (qcopy_acl): Likewise.
44812
44813 2008-06-08  Bruno Haible  <bruno@clisp.org>
44814
44815         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
44816         declaration.
44817         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
44818         (acl_access_nontrivial): Remove MacOS X case.
44819         (file_has_acl): Use acl_extended_nontrivial.
44820         * lib/copy-acl.c (qcopy_acl): Likewise.
44821
44822 2008-06-08  Bruno Haible  <bruno@clisp.org>
44823
44824         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
44825
44826 2008-06-08  Jim Meyering  <meyering@redhat.com>
44827
44828         * modules/acl (Maintainer): Add Bruno Haible.
44829
44830 2008-06-07  Bruno Haible  <bruno@clisp.org>
44831
44832         Improve support for Tru64 ACLs.
44833         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
44834         ACL on OSF/1.
44835
44836 2008-06-07  Bruno Haible  <bruno@clisp.org>
44837
44838         Add support for MacOS X ACLs.
44839         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
44840         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
44841         * lib/set-mode-acl.c (qset_acl): Likewise.
44842         * lib/copy-acl.c (qcopy_acl): Likewise.
44843
44844 2008-06-07  Bruno Haible  <bruno@clisp.org>
44845
44846         Fix memory leak introduced on 2008-05-22.
44847         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
44848         use.
44849
44850 2008-06-07  Bruno Haible  <bruno@clisp.org>
44851
44852         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
44853         to construct an empty ACL.
44854
44855 2008-06-07  Bruno Haible  <bruno@clisp.org>
44856
44857         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
44858         precisely.
44859         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
44860
44861 2008-06-07  Bruno Haible  <bruno@clisp.org>
44862
44863         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
44864         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
44865
44866 2008-06-07  Bruno Haible  <bruno@clisp.org>
44867
44868         * doc/posix-functions/_setjmp.texi: Explain the use of this function
44869         regardless of POSIX.
44870         * doc/posix-functions/_longjmp.texi: Likewise.
44871         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
44872         SystemV platform in this case.
44873
44874 2008-06-06  Eric Blake  <ebb9@byu.net>
44875
44876         Document abort() bugs.
44877         * doc/posix-functions/abort.texi (abort): Mention anomalies.
44878
44879         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
44880         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
44881         sigsetjmp.
44882         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
44883         siglongjmp, but only as a macro.
44884         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
44885         is obsolete.
44886         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
44887
44888         Tweak documentation to cover cygwin argz bugs.
44889         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
44890         argz bug fix; no code change needed since no cygwin releases
44891         occurred between the last fix and the bug being tested.
44892         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
44893         module and recently fixed cygwin bugs.
44894         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
44895         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
44896         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
44897         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
44898         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
44899         Likewise.
44900         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
44901         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
44902         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
44903         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
44904         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
44905         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
44906         Likewise.
44907
44908         Avoid gcc warning on cygwin.
44909         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
44910         !ACL_NO_TRIVIAL]: Avoid unused variable.
44911
44912 2008-06-05  Eric Blake  <ebb9@byu.net>
44913
44914         Be tolerant of UNKNOWN version in gnulib-tool test dir.
44915         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
44916         git-version-gen fails to come up with a version.
44917         Reported by Simon Josefsson.
44918
44919 2008-06-05  Jim Meyering  <meyering@redhat.com>
44920             Paul Eggert  <eggert@cs.ucla.edu>
44921
44922         utimens.c: work around a probable Linux kernel bug
44923         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
44924         appears to be a kernel bug that causes utimensat to return 280
44925         instead of 0, indicating success.
44926
44927 2008-06-04  Bruno Haible  <bruno@clisp.org>
44928
44929         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
44930         2008-06-01 commit.
44931
44932 2008-06-04  Bruno Haible  <bruno@clisp.org>
44933
44934         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
44935         * lib/file-has-acl.c (acl_access_nontrivial): New function.
44936         (file_has_acl): Use it. Save errno afterwards.
44937         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
44938
44939 2008-06-03  Bruno Haible  <bruno@clisp.org>
44940
44941         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
44942         draft code. Simplify #ifs.
44943         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
44944         Put Solaris code after POSIX-draft code. Fix comments regarding
44945         Solaris 10, HP-UX. Mention Cygwin.
44946         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
44947
44948 2008-06-03  Eric Blake  <ebb9@byu.net>
44949
44950         Provide fallback for older kernels.
44951         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
44952         Provide runtime fallback if kernel lacks support.
44953         Reported by Mike Frysinger.
44954
44955 2008-06-02  Bruno Haible  <bruno@clisp.org>
44956
44957         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
44958         it exists.
44959
44960 2008-06-02  Bruno Haible  <bruno@clisp.org>
44961
44962         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
44963         * lib/copy-acl.c (qcopy_acl): Update comment.
44964
44965 2008-06-02  Bruno Haible  <bruno@clisp.org>
44966
44967         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
44968         like ACL APIs.
44969
44970 2008-06-02  Bruno Haible  <bruno@clisp.org>
44971
44972         * tests/test-file-has-acl.sh: Use different code for Cygwin.
44973         * tests/test-set-mode-acl.sh: Likewise.
44974         * tests/test-copy-acl.sh: Likewise.
44975         * tests/test-copy-file.sh: Likewise.
44976
44977 2008-06-02  Bruno Haible  <bruno@clisp.org>
44978
44979         * tests/test-file-has-acl.sh: Remove unused code.
44980
44981 2008-06-01  Bruno Haible  <bruno@clisp.org>
44982
44983         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
44984         (copy_acl): Just a wrapper around qcopy_acl that emits the error
44985         messages.
44986         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
44987
44988 2008-06-01  Bruno Haible  <bruno@clisp.org>
44989
44990         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
44991         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
44992         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
44993         APIs.
44994         * modules/acl-tests (configure.ac): Remove tests now contained in
44995         m4/acl.m4.
44996
44997 2008-06-02  Jim Meyering  <meyering@redhat.com>
44998
44999         announce-gen: use a better key-server host name
45000         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
45001         it may be more consistently reliable.  Suggested by Werner Koch
45002         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
45003
45004 2008-06-01  Bruno Haible  <bruno@clisp.org>
45005
45006         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
45007         Reported by Voroskoi Andras <voroskoi@gmail.com>.
45008
45009 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
45010
45011         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
45012
45013 2008-06-01  Bruno Haible  <bruno@clisp.org>
45014
45015         New ACL tests.
45016         * tests/test-file-has-acl.sh: New file.
45017         * tests/test-file-has-acl.c: New file.
45018         * tests/test-set-mode-acl.sh: New file.
45019         * tests/test-set-mode-acl.c: New file.
45020         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
45021         * tests/test-copy-acl.c: New file.
45022         * modules/acl-tests: New file, based on modules/copy-file-tests.
45023         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
45024         (Depends-on): Add acl-tests.
45025         (configure.ac): Remove checks.
45026         (Makefile.am): Don't create test-sameacls program here any more.
45027
45028 2008-06-01  Bruno Haible  <bruno@clisp.org>
45029
45030         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
45031         * tests/test-sameacls.c: Include progname.h.
45032         (main): Invoke set_program_name. Portability fixes for MacOS X,
45033         Solaris, HP-UX.
45034
45035 2008-06-01  Bruno Haible  <bruno@clisp.org>
45036
45037         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
45038         function.
45039         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
45040
45041 2008-06-01  Bruno Haible  <bruno@clisp.org>
45042
45043         * modules/rpmatch (Depends-on): Add strdup.
45044
45045 2008-06-01  Bruno Haible  <bruno@clisp.org>
45046
45047         * lib/pipe.c: Include unistd-safer.h.
45048         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
45049         * modules/pipe (Depends-on): Add unistd-safer.
45050
45051 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45052
45053         * modules/autobuild (configure.ac): Call AB_INIT.
45054
45055 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45056
45057         * tests/test-getaddrinfo.c: Don't print debug messages by default.
45058         Suggested by Bruno Haible <bruno@clisp.org>.
45059
45060 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45061
45062         * tests/test-base64.c: Cast size_t to unsigned long when invoking
45063         printf.  Use %lu instead of %d.  Reported by Bruno Haible
45064         <bruno@clisp.org>.
45065
45066 2008-05-29  Eric Blake  <ebb9@byu.net>
45067
45068         Prefer new POSIX 200x interfaces over futimesat.
45069         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
45070         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
45071         when available.
45072         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
45073
45074 2008-05-28  Bruno Haible  <bruno@clisp.org>
45075
45076         * modules/stpcpy (License): Change to LGPLv2+.
45077         Requested by David Lutterkort <dlutter@redhat.com>.
45078
45079 2008-05-27  Bruno Haible  <bruno@clisp.org>
45080
45081         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
45082         current mingw.
45083         Reported by Jose E. Marchesi <jemarch@gnu.org>.
45084
45085 2008-05-27  Bruno Haible  <bruno@clisp.org>
45086
45087         * modules/iconv_open (Link): New section, from module 'iconv'.
45088         * modules/striconv (Link): Likewise.
45089         * modules/striconveh (Link): Likewise.
45090         * modules/xstriconv (Link): Likewise.
45091         * modules/unicodeio (Link): Likewise.
45092         * modules/propername (Link): Likewise.
45093         Reported by Jim Meyering.
45094
45095 2008-05-26  Jim Meyering  <meyering@redhat.com>
45096
45097         sha256: do not artificially restrict buffer length to be < 2^32
45098         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
45099         uint32_t to size_t.
45100         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
45101         to match.
45102
45103         avoid unaligned access errors, e.g., on sparc
45104         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
45105         direct access through a possibly-unaligned uint64* pointer.
45106         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
45107         direct access through a possibly-unaligned uint32* pointer.
45108         Prompted by this patch from Tom "spot" Callaway:
45109         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
45110
45111         sha512.c: fix typo in comment
45112         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
45113
45114 2008-05-25  Bruno Haible  <bruno@clisp.org>
45115
45116         * lib/set-mode-acl.c: Renamed from lib/acl.c.
45117         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
45118         (Makefile.am): Update lib_SOURCES.
45119
45120 2008-05-25  Bruno Haible  <bruno@clisp.org>
45121
45122         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
45123
45124 2008-05-25  Jim Meyering  <meyering@redhat.com>
45125
45126         useless-if-before-free: freed expr may have white-space differences
45127         * build-aux/useless-if-before-free: Recognize cases in which the
45128         freed expression differs from the tested one in embedded white
45129         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
45130         $1 was used, so we can't make any regexp shy.  Improved tests now
45131         detect this.
45132
45133         useless-if-before-free: accept white space in the expression.
45134         * build-aux/useless-if-before-free: For now, any white space
45135         in the expression must be identical in the free argument.
45136
45137         useless-if-before-free: efficiency tweak
45138         * build-aux/useless-if-before-free: Make the expression-matching
45139         regexp "shy".
45140         Make the *outer* regexp shy, not the expr-matching one.
45141
45142         update code-in-comment to accept cast of free arg
45143         * build-aux/useless-if-before-free: Update regexp.
45144
45145 2008-05-25  Bruno Haible  <bruno@clisp.org>
45146
45147         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
45148         * modules/copy-file-tests (Files, Makefile.am): Update.
45149         * tests/test-copy-file.c (func_test_copy): Update.
45150
45151 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
45152
45153         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
45154
45155 2008-05-23  Bruno Haible  <bruno@clisp.org>
45156
45157         Improve support for ACLs on OSF/1.
45158         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
45159         Remove fallback for unknown flavors of ACLs.
45160
45161 2008-05-22  Bruno Haible  <bruno@clisp.org>
45162
45163         Add support for ACLs on OSF/1.
45164         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
45165         replacements.
45166         (acl_free_text): New macro fallback.
45167         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
45168         acl_free.
45169         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
45170         acl_free_text function. Require AC_C_INLINE.
45171
45172 2008-05-22  Bruno Haible  <bruno@clisp.org>
45173
45174         Make copy_acl work on MacOS X 10.5.
45175         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
45176         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
45177         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
45178         If MODE_INSIDE_ACL, don't assume that every system has the same text
45179         representation for ACLs as FreeBSD.
45180         * lib/copy-acl.c (copy_acl): Add support for platforms with
45181         !MODE_INSIDE_ACL.
45182         * lib/file-has-acl.c (file_has_acl): Likewise.
45183         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
45184         FreeBSD, MacOS X, or IRIX, respectively.
45185
45186 2008-05-22  Bruno Haible  <bruno@clisp.org>
45187
45188         * lib/acl.h: Don't include <sys/acl.h>.
45189         (GETACLCNT): Move fallback to lib/acl-internal.h.
45190         * lib/acl-internal.h: Include <sys/acl.h> here.
45191         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
45192
45193 2008-05-22  Bruno Haible  <bruno@clisp.org>
45194
45195         Split off copy_acl function to separate file.
45196         * lib/copy-acl.c: New file, extracted from lib/acl.c.
45197         * lib/acl.c (copy_acl): Moved function to separate file.
45198         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
45199         * modules/acl (Files): Add lib/copy-acl.c.
45200         (Makefiles.am): Augment lib_SOURCES.
45201
45202 2008-05-22  Bruno Haible  <bruno@clisp.org>
45203
45204         * modules/copy-file-tests: New file.
45205         * tests/test-copy-file.sh: New file.
45206         * tests/test-copy-file.c: New file.
45207         * tests/test-copy-file-sameacls.c: New file.
45208
45209 2008-05-22  Eric Blake  <ebb9@byu.net>
45210
45211         Avoid gcc warning.
45212         * tests/test-memcmp.c (main): Pass NULL indirectly.
45213
45214 2008-05-21  Bruno Haible  <bruno@clisp.org>
45215
45216         Add reference doc about ACLs.
45217         * doc/acl-resources.txt: New file.
45218         * doc/acl-cygwin.txt: New file.
45219
45220 2008-05-21  Bruno Haible  <bruno@clisp.org>
45221
45222         Avoid one more warning from gcc.
45223         * lib/vasnprintf.c (IF_LINT): Update comments.
45224         (VASNPRINTF): Use it also for the 'prefix' array initializer.
45225
45226 2008-05-21  Jim Meyering  <meyering@redhat.com>
45227
45228         avoid a warning from gcc
45229         * lib/vasnprintf.c (IF_LINT): Define.
45230         (scale10_round_decimal_long_double):
45231         Use it to avoid a "may be used uninitialized" warning.
45232         (scale10_round_decimal_double): Likewise.
45233
45234 2008-05-21  Simon Josefsson  <simon@josefsson.org>
45235
45236         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
45237         declared.
45238
45239 2008-05-20  Bruno Haible  <bruno@clisp.org>
45240
45241         * tests/test-memcmp.c (main): Test also the sign of the result. Test
45242         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
45243
45244 2008-05-20  Simon Josefsson  <simon@josefsson.org>
45245
45246         * modules/memcmp-tests: New file.
45247         * tests/test-memcmp.c: New file.
45248
45249 2008-05-19  Bruno Haible  <bruno@clisp.org>
45250
45251         * modules/propername (Notice, configure.ac): Put quoted "..." into
45252         --keyword option.
45253         * lib/propername.h: Update comments accordingly.
45254         Reported by Eric Blake.
45255
45256 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
45257
45258         * modules/getpass-gnu (Depends-on): Add fseeko.
45259
45260 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45261
45262         * modules/base64-tests: New file.
45263
45264 2008-05-19  Bo Borgerson <gigabo@gmail.com>
45265
45266         * lib/base64.c (base64_decode_ctx): If a decode context structure
45267         was passed in use it to ignore newlines.  If a context structure
45268         was _not_ passed in, continue to treat newlines as garbage (this
45269         is the historical behavior).  Formerly base64_decode.
45270         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45271         takes a decode context structure.
45272         * lib/base64.h (base64_decode): Macro for four-argument calls.
45273         (base64_decode_alloc): Likewise.
45274         * lib/base64.c (base64_decode_ctx): If a decode context structure
45275         was passed in use it to ignore newlines.  If a context structure
45276         was _not_ passed in, continue to treat newlines as garbage (this
45277         is the historical behavior).  Formerly base64_decode.
45278         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45279         takes a decode context structure.
45280         * lib/base64.h (base64_decode): Macro for four-argument calls.
45281         (base64_decode_alloc): Likewise.
45282
45283 2008-05-19  Jim Meyering  <meyering@redhat.com>
45284
45285         avoid a warning from gcc
45286         * lib/trim.c (IF_LINT): Define.
45287         (trim2): Use it to avoid a "may be used uninitialized" warning.
45288
45289         Fix doc typo.
45290         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
45291
45292 2008-05-19  Bruno Haible  <bruno@clisp.org>
45293
45294         * doc/glibc-functions/getpass.texi: Document limits of other
45295         implementations.
45296
45297 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45298             Bruno Haible <bruno@clisp.org>
45299
45300         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
45301
45302 2008-05-18  Bruno Haible  <bruno@clisp.org>
45303
45304         * modules/propername: New file, from GNU gettext.
45305         * lib/propername.h: New file, from GNU gettext.
45306         * lib/propername.c: New file, from GNU gettext.
45307         * MODULES.html.sh (Internationalization functions): Add propername.
45308
45309 2008-05-16  Jim Meyering  <meyering@redhat.com>
45310             Bruno Haible  <bruno@clisp.org>
45311
45312         Avoid some warnings from "gcc -Wshadow".
45313         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
45314
45315 2008-05-15  Eric Blake  <ebb9@byu.net>
45316
45317         Extend previous patch to cygwin 1.7.0.
45318         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
45319         fast implementation in cygwin >= 1.7.0.
45320         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45321         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45322
45323 2008-05-15  Bruno Haible  <bruno@clisp.org>
45324
45325         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
45326         implementation in glibc >= 2.9.
45327         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45328         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45329
45330 2008-05-15  Bruno Haible  <bruno@clisp.org>
45331
45332         * MODULES.html.sh (Internationalization functions): Remove linebreak.
45333         (Unicode string functions): Add unilbrk/*.
45334         Reported by Karl Berry.
45335
45336 2008-05-15  Eric Blake  <ebb9@byu.net>
45337
45338         Fix violation of <stdbool.h> replacement in regex.
45339         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
45340         * lib/regexec.c (re_search_internal): Likewise.
45341         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
45342
45343 2008-05-15  Jim Meyering  <meyering@redhat.com>
45344
45345         avoid distracting test output when git or cvs is not found
45346         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
45347         * tests/test-vc-list-files-git.sh: Likewise.
45348
45349 2008-05-15  Eric Blake  <ebb9@byu.net>
45350
45351         Glibc finally accepted the memmem speedup code, bugzilla #5514.
45352         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
45353         glibc version.
45354         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45355         * doc/posix-functions/strstr.texi (strstr): Likewise.
45356         * lib/str-two-way.h (MAX): Sychronize with glibc.
45357
45358 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
45359
45360         * lib/regcomp.c (optimize_utf8): Add a note on why we test
45361         opr.ctx_type.
45362         (calc_first): Initialize constraint field.
45363         (duplicate_node_closure): Use it instead of special casing ANCHORS.
45364         Fix grammar.
45365         (duplicate_node): Merge constraint field for all node types.
45366         (calc_eclosure_iter): Look at constraint field for all node types.
45367         * lib/regex_internal.c (create_cd_newstate): Don't look at
45368         opr.ctx_type.
45369
45370 2008-05-14  Bruno Haible  <bruno@clisp.org>
45371
45372         Help GCC to do better code generation.
45373         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
45374         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
45375         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
45376         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
45377         Declare with attribute 'malloc' if supported.
45378
45379 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
45380
45381         use "echo STR|wc -c" rather than unportable "expr length STR"
45382         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
45383         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
45384
45385 2008-05-14  Jim Meyering  <meyering@redhat.com>
45386
45387         use dd ibs=$n count=1 ... rather than less-portable head -c$n
45388         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
45389         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
45390         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
45391         via Collin Lasse.
45392
45393 2008-05-14  Eric Blake  <ebb9@byu.net>
45394
45395         Avoid quadratic growth in gl_LIBSOURCES.
45396         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
45397         Suggested by Bruno Haible.
45398
45399         Test xmemdup0.
45400         * modules/xmemdup0-tests: New file.
45401         * tests/test-xmemdup0.c: Likewise.
45402
45403 2008-05-13  Eric Blake  <ebb9@byu.net>
45404
45405         Split xmemdup0 into its own module.
45406         * modules/xmemdup0: New file.
45407         * lib/xmemdup0.h: Likewise.
45408         * lib/xmemdup0.c: Likewise.
45409         * MODULES.html.sh (Memory management functions): Add xmemdup0.
45410         * lib/xalloc.h (xmemdup0): Remove.
45411         * lib/xmalloc.c (xmemdup0): Likewise.
45412
45413 2008-05-13  Eric Blake  <ebb9@byu.net>
45414             Bruno Haible  <bruno@clisp.org>
45415
45416         Reduce number of forks required during autoconf.
45417         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
45418         and gl_LIBSOURCES_DIR.
45419         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
45420         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
45421         m4_syscmd per file.
45422         <m4_foreach_w>: Move...
45423         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
45424
45425 2008-05-13  Eric Blake  <ebb9@byu.net>
45426
45427         * gnulib-tool: Fix various comment typos.
45428
45429 2008-05-12  Bruno Haible  <bruno@clisp.org>
45430
45431         Tailor the linebreaking algorithm.
45432         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
45433
45434 2008-05-12  Bruno Haible  <bruno@clisp.org>
45435
45436         Update to Unicode 5.0.0.
45437         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45438         LBP_JV, LBP_JT. Redistribute values.
45439         (unilbrk_table): Change size.
45440         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
45441         Unicode TR#14 rev. 22.
45442         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45443         LBP_JV, LBP_JT. Redistribute values.
45444         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
45445         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
45446         Update.
45447         * lib/unilbrk/lbrkprop1.h: Regenerated.
45448         * lib/unilbrk/lbrkprop2.h: Regenerated.
45449         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
45450         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
45451         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
45452         Likewise.
45453         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
45454         Likewise.
45455         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
45456         result.
45457         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45458         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45459         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45460         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
45461         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
45462         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
45463
45464 2008-05-11  Bruno Haible  <bruno@clisp.org>
45465
45466         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
45467
45468 2008-05-11  Bruno Haible  <bruno@clisp.org>
45469
45470         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
45471         * modules/unilbrk/gen-lbrk: New file.
45472
45473 2008-05-11  Bruno Haible  <bruno@clisp.org>
45474
45475         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
45476         * m4/sha512.m4 (gl_SHA512): Likewise.
45477
45478 2008-05-11  Jim Meyering  <meyering@redhat.com>
45479
45480         New modules: crypto/sha256, crypto/sha512 (from coreutils)
45481         * modules/crypto/sha256: New file.
45482         * modules/crypto/sha512: Likewise.
45483         * lib/sha256.c: Likewise.
45484         * lib/sha256.h: Likewise.
45485         * lib/sha512.c: Likewise.
45486         * lib/sha512.h: Likewise.
45487         * lib/u64.h: Likewise.
45488         * m4/sha256.m4: Likewise.
45489         * m4/sha512.m4: Likewise.
45490         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
45491
45492 2008-05-10  Bruno Haible  <bruno@clisp.org>
45493
45494         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
45495         (Input/Output <stdio.h>): Add xprintf.
45496         (Signal handling <signal.h>): Add strsignal.
45497         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
45498         (Core language properties): Add func.
45499         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
45500         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
45501         strings.
45502         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
45503         (Input/output): New section.
45504         (File system functions): Add openat-die, stat-macros.
45505         (Networking functions): Add sockets.
45506         (Unicode string functions): Add unictype/*.
45507         (Support for building libraries and executables): Add gperf.
45508         (Support for building documentation): Add agpl-3.0.
45509         (Misc): Add nocrash.
45510
45511 2008-05-10  Bruno Haible  <bruno@clisp.org>
45512
45513         * modules/unictype/gen-ctype: New file.
45514
45515 2008-05-10  Jim Meyering  <meyering@redhat.com>
45516
45517         Make chdir-safer.c more efficient on a system with no symlinks.
45518         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
45519         also if ELOOP is zero.  Suggested by Bruno Haible.
45520
45521         Make chdir-safer.c slightly safer.
45522         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
45523         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
45524
45525         Avoid compile failure on systems without ELOOP (like mingw).
45526         * lib/chdir-safer.c (ELOOP): Define if not already defined.
45527         Reported by Bruno Haible.
45528
45529 2008-05-10  Bruno Haible  <bruno@clisp.org>
45530
45531         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
45532         (is_utf8_encoding): Use a case-insensitive comparison.
45533         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
45534         streq.
45535
45536 2008-05-10  Bruno Haible  <bruno@clisp.org>
45537
45538         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
45539         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
45540         * lib/unilbrk/ulc-common.h (iconv_string_length,
45541         iconv_string_keeping_offsets): Remove declarations.
45542         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
45543         Don't include <iconv.h>, streq.h, xsize.h.
45544         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
45545         conversion.
45546         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
45547         <iconv.h>, streq.h, xsize.h.
45548         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
45549         conversion.
45550         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
45551         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
45552         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
45553         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
45554
45555 2008-05-10  Bruno Haible  <bruno@clisp.org>
45556
45557         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
45558         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
45559
45560         * modules/unilbrk/u32-width-linebreaks-tests: New file.
45561         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
45562
45563         * modules/unilbrk/u16-width-linebreaks-tests: New file.
45564         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
45565
45566         * modules/unilbrk/u8-width-linebreaks-tests: New file.
45567         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
45568
45569         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
45570         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
45571
45572         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
45573         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
45574
45575         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
45576         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
45577
45578         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
45579         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
45580
45581 2008-05-10  Bruno Haible  <bruno@clisp.org>
45582
45583         Split up 'linebreak' module.
45584         * lib/unilbrk.h: New file, based on lib/linebreak.h.
45585         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
45586         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
45587         modifications.
45588         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
45589         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
45590         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
45591         lib/linebreak.c.
45592         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
45593         lib/linebreak.c.
45594         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
45595         lib/linebreak.c.
45596         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
45597         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
45598         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
45599         lib/linebreak.c.
45600         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
45601         lib/linebreak.c.
45602         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
45603         lib/linebreak.c.
45604         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
45605         lib/linebreak.c.
45606         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
45607         lib/linebreak.c.
45608         * modules/unilbrk/base: New file.
45609         * modules/unilbrk/tables: New file.
45610         * modules/unilbrk/u8-possible-linebreaks: New file.
45611         * modules/unilbrk/u16-possible-linebreaks: New file.
45612         * modules/unilbrk/u32-possible-linebreaks: New file.
45613         * modules/unilbrk/ulc-common: New file.
45614         * modules/unilbrk/ulc-possible-linebreaks: New file.
45615         * modules/unilbrk/u8-width-linebreaks: New file.
45616         * modules/unilbrk/u16-width-linebreaks: New file.
45617         * modules/unilbrk/u32-width-linebreaks: New file.
45618         * modules/unilbrk/ulc-width-linebreaks: New file.
45619         * lib/linebreak.h: Remove file.
45620         * lib/linebreak.c: Remove file.
45621         * m4/linebreak.m4: Remove file.
45622         * modules/linebreak: Remove file.
45623         * NEWS: Mention the changes.
45624
45625 2008-05-09  Eric Blake  <ebb9@byu.net>
45626
45627         Add xmemdup0.
45628         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
45629         implementation.
45630         * lib/xmalloc.c (xmemdup0): New C implementation.
45631
45632 2008-05-08  Bruno Haible  <bruno@clisp.org>
45633
45634         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
45635
45636 2008-05-07  Eric Blake  <ebb9@byu.net>
45637
45638         Support cross-compilation of <wctype.h>.
45639         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
45640         AC_CACHE_CHECK.
45641
45642 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
45643
45644         * build-aux/vc-list-files: Add support for bzr.
45645
45646 2008-05-03  Jim Meyering  <meyering@redhat.com>
45647
45648         avoid failed assertion with tight malloc
45649         * tests/test-getndelim2.c: Correct an off-by-one assertion.
45650
45651 2008-05-03  Simon Josefsson  <simon@josefsson.org>
45652
45653         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
45654         are needed from arpa/inet.h.
45655         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
45656         Reported by Bruno Haible.
45657
45658 2008-05-02  Jim Meyering  <meyering@redhat.com>
45659
45660         avoid compilation error on FreeBSD 6
45661         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
45662
45663 2008-05-01  Jim Meyering  <meyering@redhat.com>
45664
45665         useless-if-before-free: correct --help's exit status description
45666         * build-aux/useless-if-before-free (usage): Like grep, exit 0
45667         for one or more matches, etc.  Reported by Bruno Haible.
45668
45669         vc-list-files: make the stand-alone gnulib test work
45670         * modules/vc-list-files-tests (configure.ac):
45671         Define and AC_SUBST abs_aux_dir.
45672         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
45673         $(abs_top_srcdir) to each script and having each of them
45674         duplicate the work of setting PATH, set PATH here, using
45675         the new variable, abs_aux_dir instead.
45676         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
45677         * tests/test-vc-list-files-git.sh: Likewise.
45678         Reported by Bruno Haible.
45679
45680 2008-05-01  Bruno Haible  <bruno@clisp.org>
45681
45682         * lib/getndelim2.c (getndelim2): Fix newsize computation during
45683         reallocation. Rename 'done' to 'found_delimiter'.
45684
45685 2008-05-01  Jim Meyering  <meyering@redhat.com>
45686
45687         vc-list-files: accommodate /bin/sh like the one from Solaris 10
45688         * build-aux/vc-list-files: Use `...`, not $(...).
45689
45690 2008-04-30  Jim Meyering  <meyering@redhat.com>
45691
45692         add tests for vc-list-files
45693         * modules/vc-list-files-tests: New module.
45694         * tests/test-vc-list-files-cvs.sh: New file.
45695         * tests/test-vc-list-files-git.sh: New file.
45696
45697         avoid a warning from gcc
45698         * lib/getndelim2.c (IF_LINT): Define.
45699         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
45700
45701         vc-list-files: work properly with build-aux/cvsu, too
45702         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
45703         to all cvs-based clauses.
45704
45705         vc-list-files: work properly in the CVS+awk case, too
45706         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
45707
45708         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
45709         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
45710         take more than one file argument, so .  Add quotes, just in case $dir
45711         ever contains a shell meta-character.  Prompted by Soren Hansen in
45712         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
45713
45714 2008-04-29  Eric Blake  <ebb9@byu.net>
45715
45716         Optimize getndelim2 to use block operations when possible.
45717         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
45718         freadseek, and memchr2.
45719         * lib/getndelim2.c (getndelim2): Use them for block reads.
45720
45721 2008-04-29  Bruno Haible  <bruno@clisp.org>
45722
45723         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
45724         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45725         * modules/inet_ntop (Depends-on): Add extensions.
45726         * modules/inet_pton (Depends-on): Likewise.
45727         Reported by Simon Josefsson.
45728
45729 2008-04-29  Jim Meyering  <meyering@redhat.com>
45730
45731         When the is more than one match in a block, match all of them.
45732         * build-aux/useless-if-before-free: Iterate through each block
45733         until there are no more matches.
45734
45735         Fix broken useless-if-before-free script.
45736         * build-aux/useless-if-before-free: Fix typo: missing "?" after
45737         the expression to match cast of argument to free-like function.
45738
45739 2008-04-29  Eric Blake  <ebb9@byu.net>
45740
45741         Use new header.
45742         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
45743
45744 2008-04-29  Jim Meyering  <meyering@redhat.com>
45745
45746         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
45747         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
45748         by gnulib to exist and to declare e.g., inet_ntop.
45749         Don't include "inet_ntop.h", now removed.
45750
45751         * m4/arpa_inet_h.m4: Remove trailing blanks.
45752
45753 2008-04-29  Eric Blake  <ebb9@byu.net>
45754
45755         Silence valgrind on safe reads beyond potential array bounds.
45756         * lib/rawmemchr.valgrind: New file.
45757         * lib/strchrnul.valgrind: Likewise.
45758         * modules/rawmemchr (Files): Distribute new file.
45759         * modules/strchrnul (Files): Likewise.
45760         Suggested by Bruno Haible.
45761
45762 2008-04-29  Bruno Haible  <bruno@clisp.org>
45763
45764         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
45765         (inet_ntop, inet_pton): Change portability warning's wording.
45766         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
45767         Invoke gl_CHECK_NEXT_HEADERS.
45768         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
45769         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
45770         set ARPA_INET_H.
45771         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45772         * modules/arpa_inet (Description): No longer only for systems that
45773         lack it.
45774         (Depends-on): Add include_next.
45775         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
45776         HAVE_ARPA_INET_H.
45777
45778 2008-04-29  Jim Meyering  <meyering@redhat.com>
45779
45780         * modules/mkdir (License): Re-license as LGPLv2+.
45781
45782 2008-04-29  Bruno Haible  <bruno@clisp.org>
45783
45784         * modules/rawmemchr (Maintainer): Set to Eric.
45785         * modules/strchrnul (Maintainer): Likewise.
45786
45787 2008-04-29  Simon Josefsson  <simon@josefsson.org>
45788
45789         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
45790         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
45791
45792         * modules/arpa_inet (arpa/inet.h): Use them.
45793
45794 2008-04-28  Eric Blake  <ebb9@byu.net>
45795
45796         Test getndelim2.
45797         * modules/getndelim2-tests: New file.
45798         * tests/test-getndelim2.c: Likewise.
45799         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
45800         stream.
45801         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
45802
45803         * MODULES.html.sh: Document new module.
45804
45805 2008-04-20  Bruno Haible  <bruno@clisp.org>
45806
45807         * lib/c-stack.c (die): Use raise.
45808         * modules/c-stack (Depends-on): Add raise.
45809
45810 2008-04-28  Bruno Haible  <bruno@clisp.org>
45811
45812         Expect rpmatch to be declared.
45813         * lib/yesno.c (rpmatch): Remove declaration.
45814
45815         Declare rpmatch.
45816         * lib/stdlib.in.h (rpmatch): New declaration.
45817         * lib/rpmatch.c: Include <stdlib.h> first.
45818         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
45819         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
45820         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
45821         HAVE_RPMATCH.
45822         * modules/rpmatch (Depends-on): Add stdlib, extensions.
45823         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45824         (Include): Set to <stdlib.h>.
45825         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
45826         HAVE_RPMATCH.
45827         * NEWS: Document the change.
45828
45829 2008-04-28  Bruno Haible  <bruno@clisp.org>
45830
45831         Change rpmatch to use nl_langinfo when appropriate.
45832         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
45833         (N_): New macro.
45834         (localized_pattern): New function/macro.
45835         (try): Remove match, nomatch arguments. Copy the pattern into safe
45836         memory before caching it.
45837         (rpmatch): Use localized_pattern. Add translator comments.
45838         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
45839         Suggested by Eric Blake.
45840         * modules/rpmatch (Depends-on): Add stdbool.
45841
45842 2008-04-28  Eric Blake  <ebb9@byu.net>
45843
45844         Add rawmemchr module, matching glibc.
45845         * modules/string (Makefile.am): New indicator.
45846         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
45847         * lib/string.in.h (rawmemchr): Declare when appropriate.
45848         * modules/rawmemchr: New file.
45849         * m4/rawmemchr.m4: Likewise.
45850         * lib/rawmemchr.c: Likewise.
45851         * modules/rawmemchr-tests: Likewise.
45852         * tests/test-rawmemchr.c: Likewise.
45853         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
45854         module.
45855         * modules/strchrnul (Depends-on): Add rawmemchr.
45856         * lib/strchrnul.c (strchrnul): Optimize a corner case.
45857
45858         Whitespace cleanup.
45859         * tests/test-strchrnul.c: Reindent.
45860         * lib/strchrnul.c: Likewise.
45861
45862         Optimize and test strchrnul.
45863         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
45864         * modules/strchrnul-tests: New file.
45865         * tests/test-strchrnul.c: Likewise.
45866
45867         Remove intprops dependency.
45868         * modules/memchr (Depends-on): Remove intprops.
45869         * modules/memrchr (Depends-on): Likewise.
45870         * modules/memchr2 (Depends-on): Likewise.
45871         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
45872         * lib/memrchr.c (__memrchr): Likewise.
45873         * lib/memrchr2.c (memchr2): Likewise.
45874         Reported by Simon Josefsson.
45875
45876 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45877
45878         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
45879         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45880
45881 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45882
45883         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
45884
45885         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
45886
45887         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
45888
45889         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
45890         declarations.
45891         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
45892
45893         * m4/inet_pton.m4: Don't check for header files.
45894
45895         * m4/inet_ntop.m4: Don't check for header files.
45896
45897 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45898
45899         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
45900         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
45901         trigger for cygwin).
45902         Reported by Bruno Haible  <bruno@clisp.org>.
45903
45904 2008-04-28  Bruno Haible  <bruno@clisp.org>
45905
45906         * doc/posix-functions/strdup.texi: Mention mingw problem.
45907
45908 2008-04-27  Bruno Haible  <bruno@clisp.org>
45909
45910         * modules/stat-time-tests (Depends-on): Add sleep.
45911         * tests/test-stat-time.c (force_unlink): New function.
45912         (cleanup): Use it.
45913         (test_mtime): Remove the ctime related tests.
45914         (test_ctime): New function, containing the ctime related tests.
45915         (main): Call test_ctime, except on native Windows platforms.
45916
45917 2008-04-27  Bruno Haible  <bruno@clisp.org>
45918
45919         * lib/rpmatch.c (rpmatch): Add some comments.
45920         Reported by James Youngman <jay@gnu.org>.
45921
45922 2008-04-27  Bruno Haible  <bruno@clisp.org>
45923
45924         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
45925         quiet NaNs.
45926
45927 2008-04-27  Bruno Haible  <bruno@clisp.org>
45928
45929         Make test-yesno.sh work on mingw.
45930         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
45931         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
45932         (main): Set stdin to binary mode.
45933         * modules/yesno-tests (Depends-on): Add binary-io.
45934
45935 2008-04-27  Bruno Haible  <bruno@clisp.org>
45936
45937         Fix 'isfinite' on x86, x86_64, ia64 platforms.
45938         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
45939         argument that lie outside the IEEE 854 domain.
45940         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
45941         (gl_ISFINITE): Use it.
45942         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
45943
45944 2008-04-27  Bruno Haible  <bruno@clisp.org>
45945
45946         Allow local renaming in config.h.
45947         * lib/memrchr.c (memrchr): Don't undefine outside libc.
45948
45949 2008-04-27  Bruno Haible  <bruno@clisp.org>
45950
45951         * lib/memchr.c (__memchr): Change type of 'i'.
45952         * lib/memchr2.c (memchr2): Likewise.
45953
45954 2008-04-26  Eric Blake  <ebb9@byu.net>
45955         and Bruno Haible  <bruno@clisp.org>
45956
45957         Optimize and test memrchr.
45958         * modules/memrchr (Depends-on): Add intprops.
45959         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
45960         * modules/memrchr-tests: New file.
45961         * tests/test-memrchr.c: New file.
45962
45963 2008-04-26  Bruno Haible  <bruno@clisp.org>
45964
45965         Add tentative support for DragonFly BSD.
45966         * lib/stdio-impl.h: Add macros for DragonFly BSD.
45967         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
45968         fp.
45969         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
45970         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
45971         * lib/fpurge.c (fpurge): Likewise.
45972         * lib/freadable.c (freaadable): Likewise.
45973         * lib/freadahead.c (freadahead): Likewise.
45974         * lib/freading.c (freading): Likewise.
45975         * lib/freadptr.c (freadptr): Likewise.
45976         * lib/freadseek.c (freadptrinc): Likewise.
45977         * lib/fseeko.c (fseeko): Likewise.
45978         * lib/fseterr.c (fseterr): Likewise.
45979         * lib/fwritable.c (fwritable): Likewise.
45980         * lib/fwriting.c (fwriting): Likewise.
45981
45982 2008-04-26  Bruno Haible  <bruno@clisp.org>
45983
45984         * lib/stdio-impl.h: New file.
45985         * lib/fbufmode.c: Include stdio-impl.h.
45986         (fbufmode): Use fp_, remove redundant #defines.
45987         * lib/fflush.c: Include stdio-impl.h.
45988         (clear_ungetc_buffer): Remove redundant #defines.
45989         * lib/fpurge.c: Include stdio-impl.h.
45990         (fpurge): Remove redundant #defines.
45991         * lib/freadable.c: Include stdio-impl.h.
45992         (freadable): Remove redundant #defines.
45993         * lib/freadahead.c: Include stdio-impl.h.
45994         (freadahead): Remove redundant #defines.
45995         * lib/freading.c: Include stdio-impl.h.
45996         (freading): Remove redundant #defines.
45997         * lib/freadptr.c: Include stdio-impl.h.
45998         (freadptr): Remove redundant #defines.
45999         * lib/freadseek.c: Include stdio-impl.h.
46000         (freadptrinc): Remove redundant #defines.
46001         * lib/fseeko.c: Include stdio-impl.h.
46002         (rpl_fseeko): Remove redundant #defines.
46003         * lib/fseterr.c: Include stdio-impl.h.
46004         (fseterr): Remove redundant #defines.
46005         * lib/fwritable.c: Include stdio-impl.h.
46006         (fwritable: Remove redundant #defines.
46007         * lib/fwriting.c: Include stdio-impl.h.
46008         (fwriting): Remove redundant #defines.
46009         * modules/fbufmode (Files): Add lib/stdio-impl.h.
46010         * modules/fflush (Files): Likewise.
46011         * modules/fpurge (Files): Likewise.
46012         * modules/freadable (Files): Likewise.
46013         * modules/freadahead (Files): Likewise.
46014         * modules/freading (Files): Likewise.
46015         * modules/freadptr (Files): Likewise.
46016         * modules/freadseek (Files): Likewise.
46017         * modules/fseeko (Files): Likewise.
46018         * modules/fseterr (Files): Likewise.
46019         * modules/fwritable (Files): Likewise.
46020         * modules/fwriting (Files): Likewise.
46021
46022 2008-04-26  Bruno Haible  <bruno@clisp.org>
46023
46024         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46025         restore_seek_optimization, update_fpos_cache): New functions, extracted
46026         from rpl_fflush.
46027         (rpl_fflush): Use them.
46028         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
46029         (gl_REPLACE_FFLUSH): Use it.
46030
46031 2008-04-26  Bruno Haible  <bruno@clisp.org>
46032
46033         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
46034         on Solaris.
46035         * tests/test-xstrtoimax.sh: Likewise.
46036         * tests/test-xstrtoumax.sh: Likewise.
46037         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46038
46039 2008-04-26  Bruno Haible  <bruno@clisp.org>
46040
46041         * modules/memchr-tests: New file.
46042         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
46043
46044 2008-04-26  Eric Blake  <ebb9@byu.net>
46045             Bruno Haible  <bruno@clisp.org>
46046
46047         * lib/memchr.c: Include intprops.h.
46048         (__memchr): Optimize parallel detection of matching bytes. Rename local
46049         variables. Add explanatory comments.
46050
46051 2008-04-26  Bruno Haible  <bruno@clisp.org>
46052
46053         Fix module 'memchr', broken since 2000-10-28.
46054         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
46055
46056 2008-04-26  Bruno Haible  <bruno@clisp.org>
46057
46058         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
46059         comments.
46060
46061 2008-04-25  Eric Blake  <ebb9@byu.net>
46062
46063         Use native fstatat on cygwin 1.7.0.
46064         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
46065         first.
46066
46067 2008-04-23  Eric Blake  <ebb9@byu.net>
46068
46069         Improve memchr2 performance.
46070         * lib/memchr2.c (memchr2): Further optimize parallel detection of
46071         NUL bytes.
46072         * modules/memchr2 (Depends-on): Use intprops.h.
46073
46074 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46075
46076         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
46077         an inline function instead of a CPP macro.  Patch by Ben Pfaff
46078         <blp@cs.stanford.edu>.
46079
46080 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46081
46082         * lib/arpa_inet.in.h: New file.
46083
46084         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
46085         (Makefile.am): Sed in substitute header file.
46086
46087         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
46088         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
46089
46090         * modules/inet_ntop (configure.ac): Use
46091         gl_ARPA_INET_MODULE_INDICATOR.
46092
46093         * modules/inet_pton (configure.ac): Use
46094         gl_ARPA_INET_MODULE_INDICATOR.
46095
46096 2008-04-22  Jim Meyering  <meyering@redhat.com>
46097
46098         * modules/verify (License): Re-license as LGPLv2+.
46099
46100 2008-04-22  Simon Josefsson  <simon@josefsson.org>
46101
46102         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
46103         parameter to void* as per POSIX standard (MinGW uses char*).
46104
46105 2008-04-21  Bruno Haible  <bruno@clisp.org>
46106
46107         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46108         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46109         Define to replacements if REPLACE_ISWCNTRL is 1.
46110         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
46111         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
46112         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
46113         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
46114         what it fixes.
46115         * doc/posix-functions/iswalpha.texi: Likewise.
46116         * doc/posix-functions/iswblank.texi: Likewise.
46117         * doc/posix-functions/iswcntrl.texi: Likewise.
46118         * doc/posix-functions/iswdigit.texi: Likewise.
46119         * doc/posix-functions/iswgraph.texi: Likewise.
46120         * doc/posix-functions/iswlower.texi: Likewise.
46121         * doc/posix-functions/iswprint.texi: Likewise.
46122         * doc/posix-functions/iswpunct.texi: Likewise.
46123         * doc/posix-functions/iswspace.texi: Likewise.
46124         * doc/posix-functions/iswupper.texi: Likewise.
46125         * doc/posix-functions/iswxdigit.texi: Likewise.
46126         Reported by Alain Guibert.
46127
46128 2008-04-21  Bruno Haible  <bruno@clisp.org>
46129
46130         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
46131         Patch by Alain Guibert.
46132
46133 2008-04-21  Bruno Haible  <bruno@clisp.org>
46134
46135         Fix test failures on mingw.
46136         * tests/test-xstrtol.c (print_no_progname): New function.
46137         (main): Install it in error_print_progname hook.
46138         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
46139         * tests/test-xstrtoimax.sh: Likewise.
46140         * tests/test-xstrtoumax.sh: Likewise.
46141
46142 2008-04-21  Bruno Haible  <bruno@clisp.org>
46143
46144         Fix test failure on mingw.
46145         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
46146
46147 2008-04-21  Bruno Haible  <bruno@clisp.org>
46148
46149         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
46150         Actually assign a value.
46151
46152 2008-04-20  Bruno Haible  <bruno@clisp.org>
46153
46154         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
46155         take 2.
46156         * lib/canonicalize.c (canonicalize_file_name): Elide if the
46157         'canonicalize-lgpl' module is also used.
46158         * lib/canonicalize-lgpl.c: Undo last change.
46159         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
46160
46161 2008-04-20  Bruno Haible  <bruno@clisp.org>
46162
46163         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
46164         config.h. Provide _mkdir based fallback for mingw.
46165         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
46166         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
46167         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
46168         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
46169         rather than defining mkdir in config.h.
46170         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
46171         (gl_SYS_STAT_H_DEFAULTS): New macro.
46172         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
46173         HAVE_IO_H any more.
46174         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
46175         HAVE_DECL_MKDIR and HAVE_IO_H.
46176
46177 2008-04-20  Bruno Haible  <bruno@clisp.org>
46178
46179         * lib/isapipe.c: Port to native Windows platforms.
46180
46181 2008-04-20  Bruno Haible  <bruno@clisp.org>
46182
46183         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
46184
46185 2008-04-21  Eric Blake  <ebb9@byu.net>
46186
46187         Work around preprocessors that don't handle UINTMAX_MAX.
46188         * lib/memchr2.c (memchr2): Avoid embedded #if.
46189         Reported by Alain Guibert, fix suggested by Bruno Haible.
46190
46191 2008-04-21  Simon Josefsson  <simon@josefsson.org>
46192
46193         * doc/posix-functions/strftime.texi (strftime): Explain better
46194         Windows incompatibility.  Suggested by Micah Cowan
46195         <micah@cowan.name>.
46196
46197 2008-04-20  Bruno Haible  <bruno@clisp.org>
46198
46199         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
46200         unistr/u8-mblen.
46201
46202 2008-04-20  Bruno Haible  <bruno@clisp.org>
46203
46204         Fix test failure on platforms with non-GNU iconv.
46205         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
46206         (U_TO_U8): Use it, rather than u16_to_u8.
46207         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
46208         units at the end of the input string.
46209         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
46210
46211 2008-04-20  Bruno Haible  <bruno@clisp.org>
46212
46213         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
46214         when the resulting length is 0.
46215         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
46216
46217 2008-04-20  Bruno Haible  <bruno@clisp.org>
46218
46219         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
46220         works.
46221         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
46222
46223 2008-04-20  Bruno Haible  <bruno@clisp.org>
46224
46225         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
46226         * modules/tsearch-tests (configure.ac): Test for initstate function.
46227
46228 2008-04-20  Bruno Haible  <bruno@clisp.org>
46229
46230         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
46231         for nlink_t if missing.
46232         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
46233
46234 2008-04-19  Bruno Haible  <bruno@clisp.org>
46235
46236         Work around snprintf bug on Linux libc5.
46237         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
46238         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46239         gl_SNPRINTF_SIZE1.
46240         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46241         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
46242         that test failed.
46243         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
46244         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
46245         * modules/snprintf (Files): Add m4/printf.m4.
46246         * modules/vsnprintf (Files): Likewise.
46247         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
46248         * doc/posix-functions/vsnprintf.texi: Likewise.
46249
46250 2008-04-19  Bruno Haible  <bruno@clisp.org>
46251
46252         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
46253         from 0.0058 to less than 10^-7.
46254
46255 2008-04-19  Bruno Haible  <bruno@clisp.org>
46256
46257         Fix rounding when a precision is given.
46258         * lib/vasnprintf.c (is_borderline): New function.
46259         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
46260         9...9x.
46261         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
46262         %e, %g.
46263         * tests/test-vasprintf-posix.c (test_function): Likewise.
46264         * tests/test-snprintf-posix.h (test_function): Likewise.
46265         * tests/test-sprintf-posix.h (test_function): Likewise.
46266         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
46267         * tests/test-printf-posix.h (test_function): Likewise.
46268         * tests/test-printf-posix.output: Update.
46269         Reported by John Darrington <john@darrington.wattle.id.au> via
46270         Ben Pfaff <blp@cs.stanford.edu>.
46271
46272 2008-04-18  Simon Josefsson  <simon@josefsson.org>
46273
46274         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
46275         Suggested by Bruno Haible <bruno@clisp.org>.
46276
46277 2008-04-17  Bruno Haible  <bruno@clisp.org>
46278
46279         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
46280         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
46281         implementation.
46282         Patch by Bruce Merry <bmerry@gmail.com>.
46283
46284 2008-04-17  Simon Josefsson  <simon@josefsson.org>
46285
46286         * doc/posix-functions/strftime.texi (strftime): Mention that %e
46287         doesn't work under Windows.
46288
46289 2008-04-16  Bruno Haible  <bruno@clisp.org>
46290
46291         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
46292         New macros.
46293         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
46294         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
46295         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
46296         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
46297         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
46298         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
46299         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
46300         macros.
46301         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
46302         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
46303         Northern Sotho, Uighur.
46304
46305 2008-04-16  Bruno Haible  <bruno@clisp.org>
46306
46307         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
46308         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
46309         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
46310         Reported by Daniel Bergström <daniel@octocode.com>.
46311
46312 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
46313             Bruno Haible  <bruno@clisp.org>
46314
46315         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
46316         function.
46317         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
46318         New functions, mostly extracted from gl_locale_name_default.
46319         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
46320
46321 2008-04-16  Eric Blake  <ebb9@byu.net>
46322
46323         Adjust strtod detection to catch glibc 2.7 bug.
46324         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
46325         Reported by John Gatewood Ham.
46326
46327 2008-04-16  Bruno Haible  <bruno@clisp.org>
46328
46329         Add tentative support for Linux libc5.
46330         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
46331         * lib/fpurge.c (fpurge): Likewise.
46332         * lib/freadable.c (freadable): Likewise.
46333         * lib/freadahead.c (freadahead): Likewise.
46334         * lib/freading.c (freading): Likewise.
46335         * lib/freadptr.c (freadptr): Likewise.
46336         * lib/freadseek.c (freadptrinc): Likewise.
46337         * lib/fseeko.c (rpl_fseeko): Likewise.
46338         * lib/fseterr.c (fseterr): Likewise.
46339         * lib/fwritable.c (fwritable): Likewise.
46340         * lib/fwriting.c (fwriting): Likewise.
46341         Reported by Alain Guibert <alguibert+bts@free.fr>.
46342
46343 2008-04-15  Bruno Haible  <bruno@clisp.org>
46344
46345         * modules/mathl (configure.ac): Define module indicator.
46346
46347 2008-04-15  Bruno Haible  <bruno@clisp.org>
46348
46349         * lib/logl.c (logl): Remove unused variables.
46350
46351 2008-04-15  Bruno Haible  <bruno@clisp.org>
46352
46353         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
46354         fails.
46355
46356 2008-04-15  Bruno Haible  <bruno@clisp.org>
46357
46358         * lib/trim.c (trim2): Fix argument of isspace() macro.
46359
46360 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
46361
46362         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
46363         to 0.
46364         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
46365
46366 2008-04-14  Bruno Haible  <bruno@clisp.org>
46367
46368         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
46369         AC_LANG_PROGRAM argument.
46370         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
46371         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
46372         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46373         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46374         * m4/math_h.m4 (gl_MATH_H): Likewise.
46375         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46376         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46377         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46378         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
46379         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46380         * m4/regex.m4 (gl_REGEX): Likewise.
46381         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
46382         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
46383         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46384         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
46385         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46386         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46387         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46388         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46389
46390 2008-04-14  Jim Meyering  <meyering@redhat.com>
46391
46392         test-strtod: fix typos: s/abs/fabs/
46393         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
46394
46395 2008-04-13  Bruno Haible  <bruno@clisp.org>
46396
46397         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
46398         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
46399         module is also used and while not building the reloc-wrapper.
46400
46401 2008-04-13  Bruno Haible  <bruno@clisp.org>
46402
46403         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
46404
46405 2008-04-13  Bruno Haible  <bruno@clisp.org>
46406
46407         Fix AIX compilation failure introduced on 2008-04-02.
46408         * tests/test-frexp.c (exp): Undefine before redefining.
46409         * tests/test-frexpl.c (exp): Likewise.
46410
46411 2008-04-13  Bruno Haible  <bruno@clisp.org>
46412
46413         Work around a HP-UX stdio bug.
46414         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
46415         * tests/test-ftello.c (main): Likewise.
46416         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
46417         * doc/posix-functions/ftello.texi: Likewise.
46418
46419 2008-04-13  Bruno Haible  <bruno@clisp.org>
46420
46421         Make test-signbit pass on HP-UX/hppa.
46422         * tests/test-signbit.c (minus_zerol): New variable.
46423         (test_signbitl): Use it.
46424
46425 2008-04-13  Bruno Haible  <bruno@clisp.org>
46426
46427         Make truncl work on OSF/1 4.0.
46428         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
46429         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46430         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
46432         HAVE_DECL_TRUNCL.
46433         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
46434         HAVE_DECL_TRUNCL.
46435         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
46436
46437 2008-04-13  Bruno Haible  <bruno@clisp.org>
46438
46439         * lib/unictype.h: Remove trailing comma from enumeration definitions.
46440
46441 2008-04-13  Bruno Haible  <bruno@clisp.org>
46442
46443         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
46444         expression, so as to avoid HP-UX 11 cc compiler bug.
46445
46446 2008-04-13  Bruno Haible  <bruno@clisp.org>
46447
46448         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
46449
46450 2008-04-13  Bruno Haible  <bruno@clisp.org>
46451
46452         * lib/git-merge-changelog.c: Remove empty declaration outside of
46453         functions.
46454
46455 2008-04-13  Bruno Haible  <bruno@clisp.org>
46456
46457         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
46458
46459 2008-04-13  Bruno Haible  <bruno@clisp.org>
46460
46461         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
46462         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
46463         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
46464         also if it exists but lacks definitions of the SHUT_* macros.
46465         * modules/sys_socket (Description): Update.
46466         Reported by Elbert Pol <e.pol@chello.nl>.
46467
46468 2008-04-13  Bruno Haible  <bruno@clisp.org>
46469
46470         * lib/localcharset.c (OS2): Don't redefine if already defined.
46471         Reported by Elbert Pol <e.pol@chello.nl>.
46472
46473 2008-04-13  Bruno Haible  <bruno@clisp.org>
46474
46475         * lib/binary-io.h [__EMX__]: Include <io.h>.
46476         Reported by Elbert Pol <e.pol@chello.nl>.
46477
46478 2008-04-12  Bruno Haible  <bruno@clisp.org>
46479
46480         * lib/fpucw.h: Enable the definitions also for x86_64.
46481         Needed for NetBSD/x86_64.
46482         Reported by Thomas Klausner <tk@giga.or.at>.
46483
46484 2008-04-12  Bruno Haible  <bruno@clisp.org>
46485
46486         * tests/test-strtod.c: Include isnand.h.
46487         (main): Use isnand instead of isnan.
46488         Reported by Jim Meyering.
46489
46490 2008-04-12  Bruno Haible  <bruno@clisp.org>
46491
46492         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
46493         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46494
46495 2008-04-12  Jim Meyering  <meyering@redhat.com>
46496
46497         * m4/math_h.m4 (gl_MATH_H): Fix typos.
46498
46499 2008-04-12  Bruno Haible  <bruno@clisp.org>
46500
46501         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
46502         Reported by Elbert Pol <e.pol@chello.nl>.
46503
46504 2008-04-12  Eric Blake  <ebb9@byu.net>
46505
46506         Work around Solaris 10 math.h bug.
46507         * m4/math_h.m4 (gl_MATH_H): Check for bug.
46508         (gl_MATH_H_DEFAULTS): Set up default.
46509         * modules/math (Makefile.am): Replace new indicators.
46510         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
46511         * tests/test-math.c (main): Test this.
46512         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
46513         * doc/posix-headers/math.texi (math.h): Mention bug.
46514         Reported by Nelson H. F. Beebe and Jim Meyering.
46515
46516 2008-04-11  Bruno Haible  <bruno@clisp.org>
46517
46518         Adapt to future versions of Apple GCC.
46519         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
46520         Reported by Peter O'Gorman <peter@pogma.com>.
46521
46522 2008-04-11  Bruno Haible  <bruno@clisp.org>
46523
46524         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
46525
46526 2008-04-11  Bruno Haible  <bruno@clisp.org>
46527
46528         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
46529
46530         * modules/getaddrinfo-tests (Makefile.am): Define
46531         test_getaddrinfo_LDADD.
46532
46533 2008-04-11  Bruno Haible  <bruno@clisp.org>
46534
46535         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
46536         (init): Fix syntax error.
46537         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
46538         is declared.
46539
46540 2008-04-11  Bruno Haible  <bruno@clisp.org>
46541
46542         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
46543         * modules/glob (Depends-on): Add stdbool.
46544
46545 2008-04-11  Bruno Haible  <bruno@clisp.org>
46546
46547         * lib/trim.c: Include <string.h>.
46548
46549 2008-04-11  Eric Blake  <ebb9@byu.net>
46550
46551         Avoid compile failure on OS/2.
46552         * lib/regex_internal.h (internal_function): Disable optimization
46553         on OS/2 (__EMX__), where it caused compiler error.
46554         Reported by Elbert Pol.
46555
46556 2008-04-11  Bruno Haible  <bruno@clisp.org>
46557
46558         Flush the standard error stream before aborting. Needed on mingw.
46559         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
46560         * tests/test-array_list.c (ASSERT): Likewise.
46561         * tests/test-array_oset.c (ASSERT): Likewise.
46562         * tests/test-avltree_list.c (ASSERT): Likewise.
46563         * tests/test-avltree_oset.c (ASSERT): Likewise.
46564         * tests/test-avltreehash_list.c (ASSERT): Likewise.
46565         * tests/test-binary-io.c (ASSERT): Likewise.
46566         * tests/test-byteswap.c (ASSERT): Likewise.
46567         * tests/test-c-ctype.c (ASSERT): Likewise.
46568         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
46569         * tests/test-c-strcasestr.c (ASSERT): Likewise.
46570         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
46571         * tests/test-c-strstr.c (ASSERT): Likewise.
46572         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
46573         * tests/test-canonicalize.c (ASSERT): Likewise.
46574         * tests/test-carray_list.c (ASSERT): Likewise.
46575         * tests/test-ceilf1.c (ASSERT): Likewise.
46576         * tests/test-ceilf2.c (ASSERT): Likewise.
46577         * tests/test-ceill.c (ASSERT): Likewise.
46578         * tests/test-count-one-bits.c (ASSERT): Likewise.
46579         * tests/test-fbufmode.c (ASSERT): Likewise.
46580         * tests/test-fflush2.c (ASSERT): Likewise.
46581         * tests/test-floorf1.c (ASSERT): Likewise.
46582         * tests/test-floorf2.c (ASSERT): Likewise.
46583         * tests/test-floorl.c (ASSERT): Likewise.
46584         * tests/test-fopen.c (ASSERT): Likewise.
46585         * tests/test-fpending.c (ASSERT): Likewise.
46586         * tests/test-fprintf-posix.c (ASSERT): Likewise.
46587         * tests/test-fpurge.c (ASSERT): Likewise.
46588         * tests/test-freadable.c (ASSERT): Likewise.
46589         * tests/test-freadahead.c (ASSERT): Likewise.
46590         * tests/test-freading.c (ASSERT): Likewise.
46591         * tests/test-freadptr.c (ASSERT): Likewise.
46592         * tests/test-freadptr2.c (ASSERT): Likewise.
46593         * tests/test-freadseek.c (ASSERT): Likewise.
46594         * tests/test-freopen.c (ASSERT): Likewise.
46595         * tests/test-frexp.c (ASSERT): Likewise.
46596         * tests/test-frexpl.c (ASSERT): Likewise.
46597         * tests/test-fseek.c (ASSERT): Likewise.
46598         * tests/test-fseeko.c (ASSERT): Likewise.
46599         * tests/test-fstrcmp.c (ASSERT): Likewise.
46600         * tests/test-ftell.c (ASSERT): Likewise.
46601         * tests/test-ftello.c (ASSERT): Likewise.
46602         * tests/test-func.c (ASSERT): Likewise.
46603         * tests/test-fwritable.c (ASSERT): Likewise.
46604         * tests/test-fwriting.c (ASSERT): Likewise.
46605         * tests/test-getdelim.c (ASSERT): Likewise.
46606         * tests/test-getline.c (ASSERT): Likewise.
46607         * tests/test-i-ring.c (ASSERT): Likewise.
46608         * tests/test-iconv-utf.c (ASSERT): Likewise.
46609         * tests/test-iconv.c (ASSERT): Likewise.
46610         * tests/test-isfinite.c (ASSERT): Likewise.
46611         * tests/test-isnand.c (ASSERT): Likewise.
46612         * tests/test-isnanf.c (ASSERT): Likewise.
46613         * tests/test-isnanl.h (ASSERT): Likewise.
46614         * tests/test-ldexpl.c (ASSERT): Likewise.
46615         * tests/test-linked_list.c (ASSERT): Likewise.
46616         * tests/test-linkedhash_list.c (ASSERT): Likewise.
46617         * tests/test-localename.c (ASSERT): Likewise.
46618         * tests/test-lseek.c (ASSERT): Likewise.
46619         * tests/test-mbscasecmp.c (ASSERT): Likewise.
46620         * tests/test-mbscasestr1.c (ASSERT): Likewise.
46621         * tests/test-mbscasestr2.c (ASSERT): Likewise.
46622         * tests/test-mbscasestr3.c (ASSERT): Likewise.
46623         * tests/test-mbscasestr4.c (ASSERT): Likewise.
46624         * tests/test-mbschr.c (ASSERT): Likewise.
46625         * tests/test-mbscspn.c (ASSERT): Likewise.
46626         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
46627         * tests/test-mbspbrk.c (ASSERT): Likewise.
46628         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
46629         * tests/test-mbsrchr.c (ASSERT): Likewise.
46630         * tests/test-mbsspn.c (ASSERT): Likewise.
46631         * tests/test-mbsstr1.c (ASSERT): Likewise.
46632         * tests/test-mbsstr2.c (ASSERT): Likewise.
46633         * tests/test-mbsstr3.c (ASSERT): Likewise.
46634         * tests/test-memchr2.c (ASSERT): Likewise.
46635         * tests/test-memmem.c (ASSERT): Likewise.
46636         * tests/test-open.c (ASSERT): Likewise.
46637         * tests/test-printf-frexp.c (ASSERT): Likewise.
46638         * tests/test-printf-frexpl.c (ASSERT): Likewise.
46639         * tests/test-printf-posix.c (ASSERT): Likewise.
46640         * tests/test-quotearg.c (ASSERT): Likewise.
46641         * tests/test-rbtree_list.c (ASSERT): Likewise.
46642         * tests/test-rbtree_oset.c (ASSERT): Likewise.
46643         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
46644         * tests/test-round1.c (ASSERT): Likewise.
46645         * tests/test-roundf1.c (ASSERT): Likewise.
46646         * tests/test-roundl.c (ASSERT): Likewise.
46647         * tests/test-signbit.c (ASSERT): Likewise.
46648         * tests/test-sleep.c (ASSERT): Likewise.
46649         * tests/test-snprintf-posix.c (ASSERT): Likewise.
46650         * tests/test-snprintf.c (ASSERT): Likewise.
46651         * tests/test-sprintf-posix.c (ASSERT): Likewise.
46652         * tests/test-stat-time.c (ASSERT): Likewise.
46653         * tests/test-strcasestr.c (ASSERT): Likewise.
46654         * tests/test-strerror.c (ASSERT): Likewise.
46655         * tests/test-striconv.c (ASSERT): Likewise.
46656         * tests/test-striconveh.c (ASSERT): Likewise.
46657         * tests/test-striconveha.c (ASSERT): Likewise.
46658         * tests/test-strsignal.c (ASSERT): Likewise.
46659         * tests/test-strstr.c (ASSERT): Likewise.
46660         * tests/test-strtod.c (ASSERT): Likewise.
46661         * tests/test-trunc1.c (ASSERT): Likewise.
46662         * tests/test-trunc2.c (ASSERT): Likewise.
46663         * tests/test-truncf1.c (ASSERT): Likewise.
46664         * tests/test-truncf2.c (ASSERT): Likewise.
46665         * tests/test-truncl.c (ASSERT): Likewise.
46666         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
46667         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
46668         * tests/test-vasnprintf.c (ASSERT): Likewise.
46669         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
46670         * tests/test-vasprintf.c (ASSERT): Likewise.
46671         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
46672         * tests/test-vprintf-posix.c (ASSERT): Likewise.
46673         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
46674         * tests/test-vsnprintf.c (ASSERT): Likewise.
46675         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
46676         * tests/test-wcwidth.c (ASSERT): Likewise.
46677         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
46678         * tests/test-xprintf-posix.c (ASSERT): Likewise.
46679         * tests/test-xvasprintf.c (ASSERT): Likewise.
46680         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
46681         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
46682         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
46683         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
46684         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
46685         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
46686         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
46687         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
46688         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
46689         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
46690         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
46691         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
46692         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
46693         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
46694         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
46695         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
46696         * tests/unictype/test-block_list.c (ASSERT): Likewise.
46697         * tests/unictype/test-block_of.c (ASSERT): Likewise.
46698         * tests/unictype/test-block_test.c (ASSERT): Likewise.
46699         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
46700         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
46701         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
46702         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
46703         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
46704         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
46705         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
46706         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
46707         * tests/unictype/test-combining.c (ASSERT): Likewise.
46708         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
46709         * tests/unictype/test-digit.c (ASSERT): Likewise.
46710         * tests/unictype/test-mirror.c (ASSERT): Likewise.
46711         * tests/unictype/test-numeric.c (ASSERT): Likewise.
46712         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
46713         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
46714         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
46715         * tests/unictype/test-scripts.c (ASSERT): Likewise.
46716         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
46717         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
46718         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
46719         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
46720         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
46721         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
46722         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
46723         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
46724         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
46725         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
46726         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
46727         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
46728         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
46729         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
46730         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
46731         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
46732         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
46733         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
46734         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
46735         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
46736         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
46737         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
46738         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
46739         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
46740         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
46741         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
46742         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
46743         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
46744         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
46745         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
46746         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
46747         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
46748         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
46749         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
46750         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
46751         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
46752         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
46753         Reported by Eric Blake.
46754
46755 2008-04-11  Bruno Haible  <bruno@clisp.org>
46756
46757         * lib/wchar.in.h: Tweak comment.
46758
46759 2008-04-11  Bruno Haible  <bruno@clisp.org>
46760
46761         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
46762         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
46763         gl_COMMON.
46764         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
46765
46766 2008-04-11  Bruno Haible  <bruno@clisp.org>
46767
46768         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
46769
46770 2008-04-11  Simon Josefsson  <simon@josefsson.org>
46771
46772         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
46773         of attempting to use non-existing /dev/*random.  Based on patch
46774         from Adam Strzelecki <ono@java.pl> in
46775         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
46776
46777 2008-04-08  Bruno Haible  <bruno@clisp.org>
46778
46779         Add tentative support for emx+gcc.
46780         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
46781         * lib/fpurge.c (fpurge): Likewise.
46782         * lib/freadable.c (freadable): Likewise.
46783         * lib/freadahead.c (freadahead): Likewise.
46784         * lib/freading.c (freading): Likewise.
46785         * lib/freadptr.c (freadptr): Likewise.
46786         * lib/freadseek.c (freadptrinc): Likewise.
46787         * lib/fseeko.c (rpl_fseeko): Likewise.
46788         * lib/fseterr.c (fseterr): Likewise.
46789         * lib/fwritable.c (fwritable): Likewise.
46790         * lib/fwriting.c (fwriting): Likewise.
46791         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
46792
46793 2008-04-09  Eric Blake  <ebb9@byu.net>
46794
46795         Avoid some autoconf warnings.
46796         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
46797         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
46798         * m4/afs.m4 (gl_AFS): Likewise.
46799         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
46800         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
46801         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46802         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
46803         (gl_INTEGER_TYPE_SUFFIX): Likewise.
46804         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
46805         (AC_CHECK_DECLS_ONCE): Likewise.
46806         Rename file...
46807         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
46808         gnulib-tool requires autoconf 2.59 or better.
46809         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
46810
46811 2008-04-08  Eric Blake  <ebb9@byu.net>
46812
46813         Use 'git describe --match' if present (added in git 1.5.5).
46814         * build-aux/git-version-gen: Limit result to tags that match 'v*'
46815         if possible.
46816
46817 2008-04-08  Bruno Haible  <bruno@clisp.org>
46818
46819         Add tentative support for OpenServer.
46820         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
46821         _ptr, _cnt.
46822         * lib/fpurge.c (fpurge): Likewise.
46823         * lib/freadable.c (freadable): Likewise.
46824         * lib/freadahead.c (freadahead): Likewise.
46825         * lib/freading.c (freading): Likewise.
46826         * lib/freadptr.c (freadptr): Likewise.
46827         * lib/freadseek.c (freadptrinc): Likewise.
46828         * lib/fseeko.c (rpl_fseeko): Likewise.
46829         * lib/fseterr.c (fseterr): Likewise.
46830         * lib/fwritable.c (fwritable): Likewise.
46831         * lib/fwriting.c (fwriting): Likewise.
46832         Reported by Roger Cornelius <rac@tenzing.org> and
46833         Brian K. White <brian@aljex.com>.
46834
46835 2008-04-06  Jim Meyering  <meyering@redhat.com>
46836
46837         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
46838
46839 2008-04-06  Bruno Haible  <bruno@clisp.org>
46840
46841         Avoid possible error with non-ASCII bytes in UTF-8 locales.
46842         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
46843         * tests/test-printf-posix.sh: Likewise.
46844         * tests/test-vfprintf-posix.sh: Likewise.
46845         * tests/test-vprintf-posix.sh: Likewise.
46846         * tests/test-xprintf-posix.sh: Likewise.
46847
46848 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46849
46850         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
46851         hide error from 'ls', needed on OS/2.
46852         Report by Elbert Pol <elbert.pol@gmail.com>.
46853
46854 2008-04-04  Eric Blake  <ebb9@byu.net>
46855
46856         Make test-fseeko.c failures meaningful.
46857         * tests/test-fseeko.c: Print line number on failure.
46858         * tests/test-fseek.c: Likewise.
46859         Reported by Nelson H. F. Beebe.
46860
46861         Improve strtod bug detection check.
46862         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
46863         required for Solaris 10.
46864         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
46865
46866 2008-04-04  Bruno Haible  <bruno@clisp.org>
46867
46868         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
46869         by m4/setenv.m4.
46870
46871 2008-04-03  Eric Blake  <ebb9@byu.net>
46872
46873         Ensure sane .version contents.
46874         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
46875         version string.
46876         * build-aux/git-version-gen: Improve documentation.
46877
46878         Make GNU make output nicer.
46879         * top/GNUmakefile [!_have-Makefile]: Add dependency on
46880         MAKECMDGOALS to enforce message for all command line targets.  Set
46881         srcdir for use in maint.mk.
46882
46883         Another maintainer tweak.
46884         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
46885         a target that regenerates version.
46886
46887 2008-04-03  Jim Meyering  <meyering@redhat.com>
46888
46889         vc-list-files: don't cause coreutils "make po-check" failure
46890         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
46891
46892 2008-04-03  Eric Blake  <ebb9@byu.net>
46893
46894         Allow VPATH usage of vc-list-files.
46895         * build-aux/vc-list-files (scriptversion): Add timestamp.
46896         (options): Add --help, --version, -C.
46897         (CVS): Support installed cvsu.
46898
46899 2008-04-02  Bruno Haible  <bruno@clisp.org>
46900
46901         Avoid some "statement with no effect" warnings from gcc.
46902         * tests/test-wctype.c (main): Explicitly ignore unused values.
46903         Reported by Jim Meyering.
46904
46905 2008-04-02  Jim Meyering  <meyering@redhat.com>
46906
46907         Avoid some warnings from "gcc -Wshadow".
46908         * tests/test-frexp.c (exp): Define to a different identifier.
46909         * tests/test-frexpl.c (exp): Likewise.
46910
46911 2008-04-03  Jim Meyering  <meyering@redhat.com>
46912
46913         bootstrap: remove dangling *.[ch] symlinks from lib
46914         * build-aux/bootstrap [dangling symlink removal]: Move find's
46915         -depth option to precede all others, to avoid a warning.
46916         Remove *.[ch] files too, and from "$source_base" (usually lib/).
46917
46918 2008-04-02  Bruno Haible  <bruno@clisp.org>
46919
46920         Avoid some warnings from "gcc -Wshadow".
46921         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
46922         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
46923         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
46924         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
46925         Reported by Jim Meyering.
46926
46927 2008-04-01  Bruno Haible  <bruno@clisp.org>
46928
46929         Fix test to work on IRIX 6.5 with cc.
46930         * tests/test-math.c (numeric_equal): New function.
46931         (main): Use it.
46932
46933 2008-04-01  Bruno Haible  <bruno@clisp.org>
46934
46935         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
46936
46937 2008-04-01  Bruno Haible  <bruno@clisp.org>
46938
46939         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
46940         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46941         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
46942         (Depends-on): Remove math.
46943
46944         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
46945         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46946         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
46947         (Depends-on): Remove math.
46948
46949         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
46950         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46951         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
46952         (Depends-on): Remove math.
46953         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
46954         (Depends-on): Remove math.
46955
46956         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
46957         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46958         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
46959         (Depends-on): Remove math.
46960         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
46961         (Depends-on): Remove math.
46962
46963         * tests/test-round1.c: Include nan.h.
46964         (main): Use NaNd instead of NAN.
46965         * modules/round-tests (Files): Add tests/nan.h.
46966
46967         * tests/test-trunc1.c: Include nan.h.
46968         (main): Use NaNd instead of NAN.
46969         * modules/trunc-tests (Files): Add tests/nan.h.
46970
46971         * tests/test-roundf1.c: Include nan.h.
46972         (main): Use NaNf instead of NAN.
46973         * modules/roundf-tests (Files): Add tests/nan.h.
46974
46975         * tests/test-truncf1.c: Include nan.h.
46976         (main): Use NaNf instead of NAN.
46977         * modules/truncf-tests (Files): Add tests/nan.h.
46978
46979         * tests/test-ceilf1.c: Include nan.h.
46980         (main): Use NaNf instead of NAN.
46981         * modules/ceilf-tests (Files): Add tests/nan.h.
46982
46983         * tests/test-floorf1.c: Include nan.h.
46984         (main): Use NaNf instead of NAN.
46985         * modules/floorf-tests (Files): Add tests/nan.h.
46986
46987         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
46988         (main): Use NaNf instead of NAN.
46989         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
46990
46991         * tests/test-isnand.c: Include nan.h instead of <math.h>.
46992         (main): Use NaNd instead of NAN.
46993         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
46994
46995         * tests/test-frexp.c: Include nan.h.
46996         (main): Use NaNd instead of NAN.
46997         * modules/frexp-tests (Files): Add tests/nan.h.
46998
46999         * lib/isnan.c: Don't include <math.h>.
47000         (FUNC): Don't use NAN macro.
47001         * modules/isnand-nolibm (Depends-on): Remove math.
47002         * modules/isnanf-nolibm (Depends-on): Remove math.
47003         * modules/isnanl (Depends-on): Remove math.
47004         * modules/isnanl-nolibm (Depends-on): Remove math.
47005
47006         * tests/nan.h: New file.
47007
47008 2008-04-01  Eric Blake  <ebb9@byu.net>
47009
47010         Fix typos.
47011         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
47012         values to be the right type.
47013
47014         For now, cater to gnulib strtod inaccuracies.
47015         * tests/test-strtod.c (main): Allow 1-ulp error on expected
47016         fractional results.  While not as nice from a QoI perspective, it
47017         is a quicker patch than correctly implementing decimal to binary
47018         rounding.
47019
47020 2008-03-31  Eric Blake  <ebb9@byu.net>
47021
47022         Guarantee a definition of NAN.
47023         * lib/math.in.h (NAN): Define if missing.
47024         * tests/test-math.c (main): Test it.
47025         * doc/posix-headers/math.texi (math.h): Document this.
47026         * lib/isnan.c (rpl_isnand): Use it.
47027         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
47028         * tests/test-floorf1.c (NaN): Likewise.
47029         * tests/test-frexp.c (NaN): Likewise.
47030         * tests/test-isnand.c (NaN): Likewise.
47031         * tests/test-isnanf.c (NaN): Likewise.
47032         * tests/test-round1.c (NaN): Likewise.
47033         * tests/test-roundf1.c (NaN): Likewise.
47034         * tests/test-snprintf-posix.h (NaN): Likewise.
47035         * tests/test-sprintf-posix.h (NaN): Likewise.
47036         * tests/test-trunc1.c (NaN): Likewise.
47037         * tests/test-truncf1.c (NaN): Likewise.
47038         * tests/test-vasnprintf-posix.c (NaN): Likewise.
47039         * tests/test-vasprintf-posix.c (NaN): Likewise.
47040         * modules/isnand-nolibm (Depends-on): Add math.
47041         * modules/isnanf-nolibm (Depends-on): Likewise.
47042         * modules/isnanl (Depends-on): Likewise.
47043         * modules/isnanl-nolibm (Depends-on): Likewise.
47044         * modules/snprintf-posix-tests (Depends-on): Likewise.
47045         * modules/sprintf-posix-tests (Depends-on): Likewise.
47046         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
47047         * modules/vsprintf-posix-tests (Depends-on): Likewise.
47048         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
47049         * modules/vasprintf-posix-tests (Depends-on): Likewise.
47050
47051 2008-03-31  Bruno Haible  <bruno@clisp.org>
47052
47053         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
47054         * doc/posix-functions/strtod.texi: Likewise.
47055
47056 2008-03-31  Bruno Haible  <bruno@clisp.org>
47057
47058         * tests/test-strtod.c (main): Don't use C99 syntax.
47059
47060 2008-03-31  Bruno Haible  <bruno@clisp.org>
47061
47062         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
47063         Reported by Eric Blake.
47064
47065 2008-03-31  Jim Meyering  <meyering@redhat.com>
47066
47067         Don't compare actual signbit return values.
47068         * tests/test-strtod.c (main): Rather, compare only their
47069         zero/non-zero nature.
47070
47071 2008-03-31  Eric Blake  <ebb9@byu.net>
47072
47073         More strtod documentation.
47074         * doc/posix-functions/strtod.texi (strtod): Interpret more test
47075         failures as distinct bugs.
47076
47077 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
47078
47079         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
47080         Problem reported by Erik Benada in
47081         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
47082
47083 2008-03-30  Bruno Haible  <bruno@clisp.org>
47084
47085         * tests/test-strtod.c: Add comments about which assertion fails on which
47086         platform.
47087         * doc/posix-functions/strtod.texi: Add info about many more platforms.
47088
47089 2008-03-30  Eric Blake  <ebb9@byu.net>
47090
47091         Test signbit behavior on zeros.
47092         * tests/test-signbit.c (test_signbitf): Add tests for zero.
47093         (test_signbitd, test_signbitl): Likewise.
47094
47095         More strtod touchups.
47096         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
47097         sign of negative underflow, for now.  Use .5, not .1.
47098         * doc/posix-functions/strtod.texi (strtod): Mention these
47099         limitations.
47100         Reported by Jim Meyering.
47101
47102 2008-03-30  Bruno Haible  <bruno@clisp.org>
47103
47104         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
47105         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
47106
47107 2008-03-30  Bruno Haible  <bruno@clisp.org>
47108
47109         Avoid failure when attempting to return empty iconv results on some
47110         platforms.
47111         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
47112         allocation, don't report ENOMEM when the resulting string is empty.
47113
47114 2008-03-30  Bruno Haible  <bruno@clisp.org>
47115
47116         Fix buffer overrun.
47117         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
47118         Don't consider the width for tmp_length. Check count against tmp_length
47119         before doing the padding. Ensure enough allocation during padding.
47120
47121 2008-03-30  Eric Blake  <ebb9@byu.net>
47122
47123         strtod touchups.
47124         * lib/strtod.c (strtod): Avoid compiler warnings.
47125         Reported by Jim Meyering.
47126
47127 2008-03-30  Bruno Haible  <bruno@clisp.org>
47128
47129         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
47130         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
47131         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
47132         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
47133         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
47134         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
47135         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
47136         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
47137
47138         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
47139         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
47140         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
47141         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
47142         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
47143         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
47144         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
47145         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
47146
47147         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47148         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
47149         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
47150         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
47151         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
47152         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
47153         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
47154         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
47155
47156         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
47157         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
47158
47159         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
47160         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
47161
47162         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
47163         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
47164
47165         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
47166         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
47167         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
47168
47169         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
47170         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
47171         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
47172
47173         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
47174         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
47175         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
47176
47177         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
47178         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
47179         * modules/vasprintf (Depends-on): Add EOVERFLOW.
47180
47181         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
47182         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
47183         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
47184         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
47185         (Depends-on): Add EOVERFLOW.
47186         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
47187         (Depends-on): Add EOVERFLOW.
47188         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47189         (Depends-on): Add EOVERFLOW.
47190         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47191         (Depends-on): Add EOVERFLOW.
47192         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47193         (Depends-on): Add EOVERFLOW.
47194         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47195         (Depends-on): Add EOVERFLOW.
47196         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47197         (Depends-on): Add EOVERFLOW.
47198         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47199         (Depends-on): Add EOVERFLOW.
47200
47201         * lib/sprintf.c (EOVERFLOW): Remove fallback.
47202         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
47203         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
47204
47205         * lib/snprintf.c (EOVERFLOW): Remove fallback.
47206         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
47207         * modules/snprintf (Depends-on): Add EOVERFLOW.
47208
47209         * lib/poll.c (EOVERFLOW): Remove fallback.
47210         * modules/poll (Depends-on): Add EOVERFLOW.
47211
47212         * lib/getugroups.c (EOVERFLOW): Remove fallback.
47213         * modules/getugroups (Depends-on): Add EOVERFLOW.
47214
47215         * lib/getdelim.c (EOVERFLOW): Remove fallback.
47216         * modules/getdelim (Depends-on): Add EOVERFLOW.
47217
47218         * lib/ftell.c (EOVERFLOW): Remove fallback.
47219         * modules/ftell (Depends-on): Add EOVERFLOW.
47220
47221         * lib/fprintf.c (EOVERFLOW): Remove fallback.
47222         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
47223         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
47224
47225         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
47226
47227         * modules/EOVERFLOW-tests: New file.
47228         * tests/test-EOVERFLOW.c: New file.
47229
47230         * modules/EOVERFLOW: New file.
47231         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
47232
47233 2008-03-30  Bruno Haible  <bruno@clisp.org>
47234
47235         Fix bug introduced on 2007-06-10.
47236         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
47237         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
47238
47239 2008-03-30  Bruno Haible  <bruno@clisp.org>
47240
47241         Improve freadseek's efficiency after ungetc.
47242         * lib/freadseek.c: Include freadahead.h.
47243         (freadptrinc): New function, extracted from freadseek.
47244         (freadseek): Use it in a loop. Use freadahead to determine the number
47245         of loop iterations.
47246         * modules/freadseek (Depends-on): Add freadahead.
47247         (configure.ac): Require AC_C_INLINE.
47248
47249 2008-03-30  Bruno Haible  <bruno@clisp.org>
47250
47251         * lib/freadseek.c (freadseek): Don't ignore the return value of
47252         freadptr.
47253
47254 2008-03-29  Eric Blake  <ebb9@byu.net>
47255
47256         Add hex float support.
47257         * modules/strtod (Depends-on): Add c-ctype.
47258         (Link): Mention POW_LIB.
47259         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
47260         whitespace between 'e' and exponent.
47261         * tests/test-strtod.c (main): Enable hex float tests.
47262         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
47263         now provides.
47264
47265         Document various strtod bugs, with some fixes.
47266         * doc/posix-functions/strtod.texi (strtod): Document bugs with
47267         "-0x", "inf", "nan", and hex constants.
47268         * doc/posix-functions/atof.texi (atof): Likewise.
47269         * modules/stdlib (Makefile.am): Support strtod.
47270         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
47271         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
47272         detect additional strtod bugs.
47273         * lib/stdlib.in.h (rpl_strtod): Add declarations.
47274         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
47275         bool where appropriate.  Parse 'inf' and 'nan'.
47276         * tests/test-strtod.c: New file.
47277         * modules/strtod (Depends-on): Add stdbool, stdlib.
47278         (configure.ac): Turn on module indicator.
47279         * modules/strtod-tests: New module.
47280
47281 2008-03-29  Eric Blake  <ebb9@byu.net>
47282
47283         Fix ftell on mingw.
47284         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
47285         * modules/ftell-tests (Depends-on): Add binary-io.
47286         * modules/ftello-tests (Depends-on): Likewise.
47287         * tests/test-ftell.c (main): Enhance test to cover behavior after
47288         ungetc.  Enforce binary mode.
47289         * tests/test-ftello.c (main): Likewise.
47290
47291         Pass test-freadseek on cygwin.
47292         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
47293         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
47294         ungetc buffer.
47295
47296         * tests/test-fflush2.c (main): Fix typo.
47297
47298 2008-03-29  Bruno Haible  <bruno@clisp.org>
47299
47300         * tests/test-fflush2.c (main): Temporarily disable the contents of
47301         this test.
47302         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
47303         Reported by Eric Blake.
47304
47305 2008-03-28  Simon Josefsson  <simon@josefsson.org>
47306
47307         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
47308         (GC_SHA224_DIGEST_SIZE): Add.
47309
47310         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
47311         (gc_hash_digest_length): Likewise.
47312         (gc_hash_buffer): Likewise.
47313
47314 2008-03-25  Bruno Haible  <bruno@clisp.org>
47315
47316         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
47317         detail which gettext release to use.
47318         Reported by Simon Josefsson.
47319
47320 2008-03-26  Jim Meyering  <meyering@redhat.com>
47321
47322         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
47323         * modules/gnumakefile (clean-GNUmakefile): Also, use
47324         test ... && ... || : syntax rather than if-then ... fi.
47325
47326         gnumakefile: Don't double-quote-expand $(VPATH) value.
47327         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
47328
47329 2008-03-24  Eric Blake  <ebb9@byu.net>
47330
47331         Alter GNUmakefile to install into top directory.
47332         * modules/maintainer-makefile: Split, and add dependency...
47333         * modules/gnumakefile: to this new module.
47334         * build-aux/GNUmakefile: Move...
47335         * top/GNUmakefile: ...here.
47336         * build-aux/maint.mk: Move...
47337         * top/maint.mk: ...here.
47338         * MODULES.html.sh (Support for maintaining...): Document new
47339         module.
47340
47341 2008-03-23  Bruno Haible  <bruno@clisp.org>
47342
47343         * gnulib-tool: New options --vc-files, --no-vc-files.
47344         (func_usage): Document them.
47345         (vc_files): New variable.
47346         (func_import): Consider vc_files.
47347         (func_create_testdir): Set vc_files to empty.
47348         Suggested by Jim Meyering and Karl Berry.
47349
47350 2008-03-23  Bruno Haible  <bruno@clisp.org>
47351
47352         Fix regex compilation error on HP-UX 11.
47353         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
47354         * modules/regex (Files): Add m4/mbstate_t.m4.
47355         Reported by Ton Voon <ton.voon@altinity.com>.
47356
47357 2008-03-23  Bruno Haible  <bruno@clisp.org>
47358
47359         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
47360
47361 2008-03-23  Eric Blake  <ebb9@byu.net>
47362             Bruno Haible  <bruno@clisp.org>
47363
47364         Install files from top/ in the destination directory.
47365         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47366         augmentation also for the files from top/.
47367         (func_import, func_create_testdir): Rewrite file names:
47368         top/filename -> filename.
47369
47370 2008-03-23  Bruno Haible  <bruno@clisp.org>
47371
47372         Tweak "gnulib --version" output.
47373         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
47374
47375 2008-03-23  Bruno Haible  <bruno@clisp.org>
47376
47377         Tweak "gnulib --version" output.
47378         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
47379         rather than contents of ChangeLog, when possible.
47380
47381 2008-03-21  Eric Blake  <ebb9@byu.net>
47382
47383         More --version tweaks.
47384         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
47385         date of last ChangeLog entry.
47386
47387 2008-03-21  Jim Meyering  <meyering@redhat.com>
47388
47389         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
47390
47391 2008-03-20  Eric Blake  <ebb9@byu.net>
47392
47393         VPATH fix.
47394         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
47395
47396 2008-03-20  Simon Josefsson  <simon@josefsson.org>
47397
47398         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
47399         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
47400
47401 2008-03-20  Eric Blake  <ebb9@byu.net>
47402
47403         Sync GNUmakefile with coreutils.
47404         * build-aux/GNUmakefile (have-Makefile): Rename...
47405         (_have-Makefile): ...to this, for namespace consideration.
47406         (GNUmakefile.cfg): Include, if present.
47407         (_autoreconf): Define a default.
47408         (_is-dist-target): New rule for rebuilds to pick up intra-release
47409         version.
47410         (maint-cfg.mk): Rename...
47411         (cfg.mk): ...to this.
47412
47413 2008-03-18  Jim Meyering  <meyering@redhat.com>
47414
47415         New script and module: mktempd
47416         * MODULES.html.sh (maint+release support): Add mktempd.
47417         * build-aux/mktempd: New file.
47418         * modules/mktempd: New file.
47419
47420 2008-03-15  Jim Meyering  <meyering@redhat.com>
47421
47422         Undo last change.
47423         * lib/sha1.c, lib/md5.c: 63 != ~63.
47424         Reported by Andreas Schwab.
47425
47426         sha1.c, md5.c: Hoist a redundant expression.
47427         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
47428         "ctx->buflen" only once, before calling *_process_block.
47429         * lib/md5.c (md5_process_bytes): Likewise.
47430
47431 2008-03-14  Eric Blake  <ebb9@byu.net>
47432
47433         Bump copyright year in files generated by gnulib-tool.
47434         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
47435         gnulib-tool, rather than hard-coding it.
47436
47437         Fix 'gnulib-tool --version' output to work with git.
47438         * gnulib-tool (func_gnulib_dir): New function, extracted from...
47439         (startup): ...here.
47440         (func_version): Use it to invoke git-version-gen, rather than
47441         relying on CVS keyword expansion.  Modernize wording.
47442         (cvsdatestamp, last_checkin_date, version): Kill unused
47443         variables.
47444
47445 2008-03-12  Jim Meyering  <meyering@redhat.com>
47446
47447         Recognize optional cast of the argument to free.
47448         * build-aux/useless-if-before-free: Update regexps.
47449
47450         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
47451
47452 2008-03-11  Bruno Haible  <bruno@clisp.org>
47453
47454         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
47455         by a single package.
47456         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
47457         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
47458         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
47459         Reported by Sam Steingold <sds@gnu.org>.
47460
47461 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47462
47463         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
47464         repositories.
47465
47466 2008-03-11  Bruno Haible  <bruno@clisp.org>
47467
47468         Avoid conflicts between local macro definitions.
47469         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47470         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
47471
47472 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
47473             Bruno Haible  <bruno@clisp.org>
47474
47475         Make va_copy work with some version of xlc on AIX 5.1.
47476         * lib/stdarg.in.h: New file.
47477         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
47478         On AIX, use a <stdarg.h> file substitute.
47479         * modules/stdarg (Files): Add lib/stdarg.in.h.
47480         (Depends-on): Add include_next.
47481         (Makefile.am): Build a stdarg.h substitute if requested.
47482         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
47483
47484 2008-03-10  Bruno Haible  <bruno@clisp.org>
47485
47486         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
47487         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47488         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47489
47490 2008-03-10  Bruno Haible  <bruno@clisp.org>
47491
47492         * modules/stdlib (Depends-on): Add include_next, remove
47493         absolute-header.
47494
47495 2008-03-09  Bruno Haible  <bruno@clisp.org>
47496
47497         * lib/freadahead.h (freadahead): Document more precisely.
47498         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
47499         the sum of both buffer sizes.
47500         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
47501         * NEWS: Document the change.
47502
47503 2008-03-09  Bruno Haible  <bruno@clisp.org>
47504
47505         Extend freadptr to return also the buffer size.
47506         * lib/freadptr.h (freadptr): Add sizep argument.
47507         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
47508         (freadptr): Add sizep argument. Determine buffer size like freadahead
47509         does.
47510         * tests/test-freadptr.c: Don't include freadahead.h.
47511         (main): Adapt for new calling convention of freadptr.
47512         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
47513         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
47514         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
47515         tests/test-freadptr2.sh.
47516         (Depends): Remove freadahead.
47517         (TESTS): Add test-freadptr2.sh.
47518         (check_PROGRAMS): Add test-freadptr2.
47519
47520 2008-03-09  Bruno Haible  <bruno@clisp.org>
47521
47522         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
47523         Report and solution by Simon Josefsson.
47524
47525 2008-03-06  Bruno Haible  <bruno@clisp.org>
47526
47527         Make fflush after ungetc work on BSD platforms.
47528         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
47529         * tests/test-fflush2.c: New file.
47530         * tests/test-fflush2.sh: New file.
47531         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
47532         tests/test-fflush2.c.
47533         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
47534         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
47535
47536 2008-03-06  Eric Blake  <ebb9@byu.net>
47537
47538         Likewise for ftello.
47539         * modules/ftello (Dependencies): Add extensions.
47540         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
47541
47542 2008-03-06  Bruno Haible  <bruno@clisp.org>
47543
47544         * modules/fseeko (Dependencies): Add extensions.
47545         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
47546         Needed on glibc systems.
47547
47548 2008-03-06  Bruno Haible  <bruno@clisp.org>
47549
47550         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
47551         email address.
47552         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47553
47554 2008-03-06  Bruno Haible  <bruno@clisp.org>
47555
47556         * users.txt: Add libgnupdf.
47557
47558 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47559
47560         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
47561         (Header File Substitutes, Function Substitutes,
47562         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
47563         (Build robot for gnulib): Fix typo.
47564
47565 2008-03-06  Bruno Haible  <bruno@clisp.org>
47566
47567         * doc/gnulib-tool.texi (VCS Issues): Small updates.
47568         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47569
47570 2008-03-06  Bruno Haible  <bruno@clisp.org>
47571
47572         * doc/func.texi: New file, extracted from doc/gnulib.texi.
47573         * doc/gnulib.texi: Include it.
47574
47575 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47576
47577         * modules/func (License): Change license to unlimited; there was
47578         no LGPL parts in the module anyway.
47579
47580 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47581
47582         * modules/__func__: Renamed to modules/func.
47583         * modules/__func__-tests: Renamed to modules/func-tests.
47584         * tests/test-__func__.c: Renamed to tests/test-func.c.
47585         * m4/__func__.m4: Renamed to m4/func.m4.
47586         * doc/gnulib.texi (__func__): Section renamed to func.
47587         Suggested by Eric Blake <ebb9@byu.net>.
47588
47589 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47590
47591         * doc/gnulib.texi (__func__): Use C99 terminology when talking
47592         about __func__.  Make example self-contained.  Suggested by Eric
47593         Blake <ebb9@byu.net>.
47594
47595         * tests/test-__func__.c (main): Avoid extraneous () around __func.
47596         Suggested by Eric Blake <ebb9@byu.net>.
47597
47598 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47599
47600         * modules/__func__: New file.
47601         * modules/__func__-tests: New file.
47602         * tests/test-__func__.c: New file.
47603         * m4/__func__.m4: New file.
47604         * doc/gnulib.texi (__func__): Document __func__ module.
47605
47606 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47607
47608         * modules/byteswap (License): Re-license as LGPLv2+.
47609
47610 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47611
47612         * doc/Makefile: Add pdf target.
47613
47614 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47615
47616         * modules/inline (License): Use 'unlimited', since there are only
47617         *.m4 files in this module.
47618
47619 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47620             Bruno Haible  <bruno@clisp.org>
47621
47622         Add support for HP C 7.1 on OpenVMS 8.3.
47623         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
47624
47625 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47626
47627         Update VMS specifics.
47628         * lib/getopt.c [VMS]: Remove include of unixlib.h.
47629
47630 2008-03-02  Jim Meyering  <meyering@redhat.com>
47631
47632         Remove the last dependency on the "free" module.
47633         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
47634         Reported by Bob Proulx.
47635
47636         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
47637
47638         Remove useless "if" tests before free.  Deprecate "free" module.
47639         * doc/posix-functions/free.texi: Mention that this
47640         module is no longer useful.
47641         * modules/free (Notice): Say this module is obsolete.
47642         * modules/readutmp (Depends-on): Remove free.
47643         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
47644         * lib/putenv.c (putenv): Likewise.
47645         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
47646         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
47647         * tests/test-c-strcasestr.c (main): Likewise.
47648         * tests/test-c-strstr.c (main): Likewise.
47649         * tests/test-mbscasestr1.c (main): Likewise.
47650         * tests/test-mbscasestr2.c (main): Likewise.
47651         * tests/test-mbsstr1.c (main): Likewise.
47652         * tests/test-mbsstr2.c (main): Likewise.
47653         * tests/test-memmem.c (main): Likewise.
47654         * tests/test-strcasestr.c (main): Likewise.
47655         * tests/test-striconv.c (main): Likewise.
47656         * tests/test-striconveh.c (main): Likewise.
47657         * tests/test-striconveha.c (main): Likewise.
47658         * tests/test-strstr.c (main): Likewise.
47659
47660         * build-aux/git-version-gen: Adjust a comment and the Usage string.
47661
47662         bootstrap: sync from coreutils again
47663         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
47664
47665 2008-03-01  Jim Meyering  <meyering@redhat.com>
47666
47667         bootstrap: sync from coreutils
47668         * build-aux/bootstrap (update_po_files): Copy a .po file into place
47669         also when the target doesn't exist.
47670
47671 2008-03-01  Eric Blake  <ebb9@byu.net>
47672
47673         Fix bugs in last patch.
47674         * lib/memchr2.c (memchr2): Fix typo.
47675         * tests/test-memchr2.c: Test previous bug, and don't use GNU
47676         extension.
47677         Reported by Bruce Korb.
47678
47679         New module 'memchr2'.
47680         * modules/memchr2: New file.
47681         * modules/memchr2-tests: Likewise.
47682         * lib/memchr2.h: Likewise.
47683         * lib/memchr2.c: Likewise, based on memchr.c.
47684         * tests/test-memchr2.c: New test.
47685         * MODULES.html.sh (String handling): Add memchr2.
47686
47687 2008-02-29  Bruno Haible  <bruno@clisp.org>
47688
47689         * modules/freadseek-tests: New file.
47690         * tests/test-freadseek.sh: New file.
47691         * tests/test-freadseek.c: New file.
47692
47693         New module 'freadseek'.
47694         * modules/freadseek: New file.
47695         * lib/freadseek.h: New file.
47696         * lib/freadseek.c: New file.
47697         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
47698
47699 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
47700
47701         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
47702         wydawca.
47703
47704         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
47705         program_invocation_name and program_invocation_short_name are
47706         present.
47707
47708 2008-02-28  Bruno Haible  <bruno@clisp.org>
47709
47710         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
47711         * tests/test-freadptr.sh: Also test non-seekable stdin.
47712
47713 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
47714
47715         * build-aux/bootstrap (source_base, m4_base)
47716         (doc_base, tests_base): New variables.
47717         (gnulib_tool_options): Do not hardcode base directories, use
47718         the above variables instead.
47719
47720 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
47721
47722         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
47723
47724 2008-02-28  Bruno Haible  <bruno@clisp.org>
47725
47726         * modules/freadptr-tests: New file.
47727         * tests/test-freadptr.sh: New file.
47728         * tests/test-freadptr.c: New file.
47729
47730         New module 'freadptr'.
47731         * modules/freadptr: New file.
47732         * lib/freadptr.h: New file.
47733         * lib/freadptr.c: New file.
47734         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
47735
47736 2008-02-26  Karl Berry  <karl@freefriends.org>
47737
47738         Sync from Libtool:
47739         * libltdl/argz.c (argz_add, argz_count): New functions.
47740         * libltdl/argz.in.h: Declare them.
47741         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
47742
47743 2008-02-22  Bruno Haible  <bruno@clisp.org>
47744
47745         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
47746         is a pointer type.  Needed for HP-UX 10.
47747         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
47748         * doc/posix-functions/gmtime_r.texi: Likewise.
47749         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47750
47751 2008-02-24  Bruno Haible  <bruno@clisp.org>
47752
47753         * modules/environ-tests: New file.
47754         * tests/test-environ.c: New file.
47755
47756         New module 'environ'.
47757         * modules/environ: New file.
47758         * lib/unistd.in.h (environ): New declaration.
47759         * m4/environ.m4: New file.
47760         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
47761         after use.
47762         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
47763         HAVE_DECL_ENVIRON.
47764         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
47765         HAVE_DECL_ENVIRON.
47766         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
47767         wrong claim that 'environ' is missing on some systems.
47768         * modules/execute (Depends-on): Add environ.
47769         * lib/execute.c (environ): Remove fallback declaration.
47770         * modules/pipe (Depends-on): Add environ.
47771         * lib/pipe.c (environ): Remove fallback declaration.
47772         * modules/setenv (Depends-on): Add environ.
47773         * lib/setenv.c (environ): Remove fallback declaration.
47774         * modules/unsetenv (Depends-on): Add environ.
47775         * lib/unsetenv.c (environ): Remove fallback declaration.
47776         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
47777         m4/environ.m4.
47778         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
47779         (gl_PREREQ_UNSETENV): Likewise.
47780
47781 2008-02-24  Bruno Haible  <bruno@clisp.org>
47782
47783         * doc/posix-functions/environ.texi: Document the MacOS X problem.
47784
47785 2008-02-20  Bob Proulx  <bob@proulx.com>
47786
47787         Enable use of older two part flavor 'git describe'.
47788         * build-aux/git-version-gen: If using the older two part flavor of
47789         git version then recreate the third part now present in the
47790         newer three part flavor of git describe.
47791
47792 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
47793
47794         * lib/fts.c (fts_build): Typo correction to comment.
47795
47796 2008-02-17  Bruno Haible  <bruno@clisp.org>
47797
47798         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
47799         generating no-op conflicts.
47800
47801 2008-02-17  Bruno Haible  <bruno@clisp.org>
47802
47803         Speed up by 10%.
47804         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
47805         result_entries, rather than an index-based loop.
47806
47807 2008-02-17  Bruno Haible  <bruno@clisp.org>
47808
47809         Speed up by 25%.
47810         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
47811         'hashcode_cached'.
47812         (entry_create): New function.
47813         (entry_hashcode): Use the cached hashcode if possible.
47814         (read_changelog_file, try_split_merged_entry): Use entry_create.
47815
47816 2008-02-17  Bruno Haible  <bruno@clisp.org>
47817
47818         Speed up from O(n^2) to O(n) for long ChangeLog files.
47819         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
47820         (read_changelog_file): Change implementation of entries_reversed list
47821         to rbtreehash.
47822         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
47823
47824 2008-02-17  Bruno Haible  <bruno@clisp.org>
47825
47826         New option --split-merged-entry.
47827         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
47828         (find_paragraph_end, try_split_merged_entry): New functions.
47829         (long_options): Add option --split-merged-entry.
47830         (usage): Document option --split-merged-entry.
47831         (main): Implement option --split-merged-entry.
47832         Reported by Eric Blake.
47833
47834 2008-02-17  Bruno Haible  <bruno@clisp.org>
47835
47836         * lib/git-merge-changelog.c: Include c-strstr.h.
47837         (main): Support the "git pull --rebase" situation.
47838         * modules/git-merge-changelog (Depends-on): Add c-strstr.
47839         Reported by Eric Blake.
47840
47841 2008-02-16  Eric Blake  <ebb9@byu.net>
47842
47843         Avoid doubling \ in common case of "c-maybe" quoting style.
47844         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
47845         eliding outer quotes.
47846         * lib/quotearg.h: Document this.
47847         * tests/test-quotearg.c (result_strings, inputs, results_g)
47848         (flag_results, locale_results): Test it by adding a new string to
47849         each test group.
47850         (compare_strings): Test new string.
47851
47852 2008-02-13  Eric Blake  <ebb9@byu.net>
47853
47854         Avoid trigraph quoting in default output.
47855         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
47856         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
47857         unless explicitly requested.
47858         * tests/test-quotearg.c (flag_results, main): Add additional tests.
47859
47860 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
47861
47862         Don't rely on signed integer overflowing to negative value.
47863         * lib/getugroups.c (getugroups): Include <limits.h>.
47864         Instead, compare against INT_MAX, and increment only if the test passes.
47865
47866 2008-02-13  Jim Meyering  <meyering@redhat.com>
47867         and Eric Blake  <ebb9@byu.net>
47868
47869         Avoid shadowing warning and compile errors on Linux.
47870         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
47871         forwarding macros on Linux.
47872         (dcgettext): Define a stub, for Linux.
47873         (results_g, main): Avoid warnings.
47874
47875 2008-02-12  Eric Blake  <ebb9@byu.net>
47876
47877         Silence warning in last patch.
47878         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
47879
47880         Quotearg part 4: add tests, fix c-maybe colon quoting.
47881         * lib/quotearg.h: Improve documentation.
47882         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
47883         escapes when adding outer quotes.  When quoting trigraphs, use
47884         valid C notation.  When quoting NUL, omit extra characters if next
47885         character is not digit.  Alter prototype.
47886         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
47887         callers.
47888         * modules/quotearg-tests: New module.
47889         * tests/test-quotearg.c: New test.
47890
47891 2008-02-07  Eric Blake  <ebb9@byu.net>
47892
47893         Quotearg part 3: add flag to control outer quote elision.
47894         * lib/quotearg.h (c_maybe_quoting_style): New style.
47895         (enum quoting_flags): Better documentation of flags.
47896         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
47897         c-maybe style.
47898         (quotearg_buffer_restyled): Handle new flag to elide outer
47899         quotes.
47900
47901         Quotearg part 2: add flag that can control NUL elision.
47902         * lib/quotearg.h (set_quoting_flags): New prototype.
47903         * lib/quotearg.c (struct quoting_options): Add flag field.
47904         (set_quoting_flags): New function.
47905         (quotearg_buffer_restyled): Add flags parameter.
47906         (quotearg_alloc_mem): Set the flag if length cannot be returned.
47907         (quotearg_n_options): Set the flag, since length cannot be
47908         returned.
47909         (quoting_options_from_style): Default flags correctly.
47910
47911         Quotearg part 1: more wrappers, restore quotearg_char state.
47912         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
47913         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
47914         (quotearg_colon_mem): New wrappers.
47915         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
47916         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
47917         functions.
47918         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
47919         (quotearg_colon_mem): New functions.
47920
47921 2008-02-11  Bruno Haible  <bruno@clisp.org>
47922
47923         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
47924         library in the current directory: it does not work with parallel make.
47925         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47926
47927 2008-02-11  Bruno Haible  <bruno@clisp.org>
47928
47929         * .gitattributes: New file.
47930
47931 2008-02-11  Jim Meyering  <meyering@redhat.com>
47932
47933         useless-if-before-free: Fix reversed exit values.
47934         * build-aux/useless-if-before-free: Use correct values
47935         for EXIT_MATCH and EXIT_NO_MATCH.
47936
47937         * build-aux/useless-if-before-free: Close stdout carefully.
47938
47939 2008-02-10  Bruno Haible  <bruno@clisp.org>
47940
47941         New module 'git-merge-changelog'.
47942         * modules/git-merge-changelog: New file.
47943         * lib/git-merge-changelog.c: New file.
47944
47945 2008-02-10  Jim Meyering  <meyering@redhat.com>
47946
47947         useless-if-before-free: New option: --list (-l).
47948
47949         useless-if-before-free: Don't exit immediately upon open failure.
47950         * build-aux/useless-if-before-free: Exit 2 for errors.
47951         Upon failure to open a file, don't exit immediately.
47952         Rather, just warn and continue with any remaining files.
47953
47954 2008-02-10  Bruno Haible  <bruno@clisp.org>
47955
47956         New abstract list operation 'node_set_value'.
47957         * lib/gl_list.h (gl_list_node_set_value): New function.
47958         (struct gl_list_implementation): New field node_set_value.
47959         * lib/gl_list.c (gl_list_node_set_value): New function.
47960         * lib/gl_array_list.c (gl_array_node_set_value): New function.
47961         (gl_array_list_implementation): Update.
47962         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
47963         (gl_carray_list_implementation): Update.
47964         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
47965         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47966         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47967         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
47968         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47969         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47970         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47971         Update.
47972         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
47973         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
47974         (gl_sublist_list_implementation): Update.
47975
47976 2008-02-10  Bruno Haible  <bruno@clisp.org>
47977
47978         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
47979         Needed when ELEMENT is #defined to 'some_type *'.
47980
47981 2008-02-10  Jim Meyering  <meyering@redhat.com>
47982
47983         New script and module: useless-if-before-free
47984         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
47985         * build-aux/useless-if-before-free: New file.
47986         * modules/useless-if-before-free: New file.
47987
47988         * build-aux/gitlog-to-changelog: Use committer date, not author date.
47989
47990         xstrtol_error: Fix typo.
47991         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
47992         s/exit_failure/exit_status/.
47993
47994 2008-02-09  Jim Meyering  <meyering@redhat.com>
47995
47996         New script and module: gitlog-to-changelog
47997         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
47998         * modules/gitlog-to-changelog: New file.
47999         * build-aux/gitlog-to-changelog: New file.
48000
48001 2008-02-08  Jim Meyering  <meyering@redhat.com>
48002
48003         Avoid two "parameter unused" warnings.
48004         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
48005         Mark "st" as used.
48006
48007         Use "git COMMAND", not "git-COMMAND".
48008         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
48009         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
48010         * build-aux/git-version-gen: Use "git status", not "git-status".
48011
48012 2008-02-07  Bruno Haible  <bruno@clisp.org>
48013
48014         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
48015         Avoids a crash on Windows Vista.
48016         Reported by Adam Strzelecki <ono@java.pl> via
48017         Simon Josefsson <simon@josefsson.org>.
48018
48019 2008-02-06  Bruno Haible  <bruno@clisp.org>
48020
48021         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
48022         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
48023         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
48024         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
48025         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48026         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48027         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
48028         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
48029         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48030         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48031         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48032         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48033         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48034         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48035         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48036         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
48037         left-adjust flag.
48038         * tests/test-snprintf-posix.h (test_function): Likewise.
48039         * tests/test-sprintf-posix.h (test_function): Likewise.
48040         * tests/test-vasprintf-posix.c (test_function): Likewise.
48041         * doc/posix-functions/fprintf.texi: Update.
48042         * doc/posix-functions/printf.texi: Update.
48043         * doc/posix-functions/snprintf.texi: Update.
48044         * doc/posix-functions/sprintf.texi: Update.
48045         * doc/posix-functions/vfprintf.texi: Update.
48046         * doc/posix-functions/vprintf.texi: Update.
48047         * doc/posix-functions/vsnprintf.texi: Update.
48048         * doc/posix-functions/vsprintf.texi: Update.
48049         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48050
48051 2008-02-06  Bruno Haible  <bruno@clisp.org>
48052
48053         Fix bug introduced on 2008-01-26.
48054         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
48055
48056 2008-02-06  Bruno Haible  <bruno@clisp.org>
48057
48058         Fix bug introduced on 2007-06-10.
48059         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
48060         !NEED_PRINTF_FLAG_ZERO.
48061
48062 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
48063
48064         getloadavg: use libperfstat on AIX5
48065         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
48066
48067 2008-02-03  Bruno Haible  <bruno@clisp.org>
48068
48069         * lib/diffseq.h: Add comments about required #includes.
48070         Reported by Michael Biggs <gnulib@doubleplum.net>.
48071
48072 2008-02-01  Bruno Haible  <bruno@clisp.org>
48073
48074         * users.txt: Add gnuit.
48075
48076 2008-01-31  Bruno Haible  <bruno@clisp.org>
48077
48078         * lib/md4.c (set_uint32): Mark as inline.
48079         * lib/md5.c (set_uint32): Likewise.
48080         * lib/sha1.c (set_uint32): Likewise.
48081         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
48082         * m4/md5.m4 (gl_MD5): Likewise.
48083         * m4/sha1.m4 (gl_SHA1): Likewise.
48084
48085 2008-01-31  Jim Meyering  <meyering@redhat.com>
48086
48087         Use "sizeof VAR", rather than a literal "4".
48088         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
48089         * lib/md4.c (md4_read_ctx): Likewise.
48090         * lib/sha1.c (sha1_read_ctx): Likewise.
48091
48092 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48093
48094         * tests/test-sha1.c: New file, based on test-md5.c.
48095
48096         * modules/crypto/sha1-tests: New file.
48097
48098 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48099
48100         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
48101
48102 2008-01-31  Jim Meyering  <meyering@redhat.com>
48103
48104         Prefer "sizeof v" over the equivalent "4".
48105         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
48106         * lib/md5.c (set_uint32): Likewise.
48107         * lib/sha1.c (set_uint32): Likewise.
48108
48109 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48110
48111         * lib/sha1.c (set_uint32): Mark function as static.
48112
48113 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48114
48115         md2: clarify comments to say that alignment is not required.
48116         * lib/md2.h: Remove warning about alignment in comment.
48117         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
48118         never been required.
48119
48120 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48121
48122         md4: adapt alignment constraint fix from sha1.
48123         * lib/md4.c (set_uint32): New function, from sha1.c
48124         (md4_read_ctx): Use it.
48125         (md4_finish_ctx): Doc fix.
48126         * lib/md4.h: Doc fix.
48127
48128 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48129
48130         md5: adapt alignment constraint fix from sha1.
48131         * lib/md5.c (set_uint32): New function, from sha1.c
48132         (md5_read_ctx): Use it.
48133         (md5_finish_ctx): Doc fix.
48134         * lib/md5.h: Doc fix.
48135
48136 2008-01-30  Peter Palfrader  <weasel@debian.org>
48137
48138         sha1: remove the result buffer alignment constraint
48139         * lib/sha1.c (set_uint32): New function.
48140         (sha1_read_ctx): Rewrite to remove the result buffer alignment
48141         constraint.
48142         (sha1_finish_ctx): Remove comment warning about alignment constraint.
48143         * lib/sha1.h: Likewise.
48144
48145 2008-01-30  Andreas Schwab  <schwab@suse.de>
48146             Bruno Haible  <bruno@clisp.org>
48147
48148         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
48149         correct definition of LDBL_MIN_EXP.
48150
48151 2008-01-30  Karl Berry  <karl@gnu.org>
48152
48153         * config/srclist-update: try to preserve x bit on updates.
48154         * config/srclistvars.sh: update for karl.
48155
48156 2008-01-29  Jim Meyering  <meyering@redhat.com>
48157
48158         vasnprintf.c: Avoid warning about unused label
48159         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
48160         "overflow" label definition and associated code with the
48161         same cpp condition that guards the sole use of that label.
48162
48163 2008-01-26  Bruno Haible  <bruno@clisp.org>
48164
48165         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
48166         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
48167         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
48168         * lib/isnanl-nolibm.h (isnanl): Likewise.
48169         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48170
48171 2008-01-26  Bruno Haible  <bruno@clisp.org>
48172
48173         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
48174         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
48175
48176 2008-01-26  Bruno Haible  <bruno@clisp.org>
48177
48178         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
48179         GCC >= 4.0 built-in.
48180         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
48181
48182 2008-01-26  Bruno Haible  <bruno@clisp.org>
48183
48184         Rename isnan, applicable to 'double' only, to isnand.
48185         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
48186         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
48187         (configure.ac): Update.
48188         (Include): Replace "isnan.h" with "isnand.h".
48189         * m4/isnand.m4: Renamed from m4/isnan.m4.
48190         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
48191         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
48192         instead of isnan.c.
48193         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
48194         instead of HAVE_ISNAN_IN_LIBC.
48195         (isnand): Renamed from isnan.
48196         * lib/isnand.c: New file.
48197         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
48198         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
48199         (Makefile.am): Update.
48200         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
48201         Include isnand.h instead of isnan.h.
48202         (main): Test isnand instead of isnan.
48203         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
48204         isnan-nolibm.
48205         * modules/frexp (Depends-on): Likewise.
48206         * modules/frexp-tests (Depends-on): Likewise.
48207         * modules/frexp-nolibm (Depends-on): Likewise.
48208         * modules/frexp-nolibm-tests (Depends-on): Likewise.
48209         * modules/isfinite (Depends-on): Likewise.
48210         * modules/round-tests (Depends-on): Likewise.
48211         * modules/signbit (Depends-on): Likewise.
48212         * modules/signbit-tests (Depends-on): Likewise.
48213         * modules/snprintf-posix (Depends-on): Likewise.
48214         * modules/sprintf-posix (Depends-on): Likewise.
48215         * modules/trunc-tests (Depends-on): Likewise.
48216         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48217         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48218         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48219         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48220         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48221         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48222         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48223         * modules/vasnprintf-posix (Depends-on): Likewise.
48224         * modules/vasprintf-posix (Depends-on): Likewise.
48225         * modules/vfprintf-posix (Depends-on): Likewise.
48226         * modules/vsnprintf-posix (Depends-on): Likewise.
48227         * modules/vsprintf-posix (Depends-on): Likewise.
48228         * lib/frexp.c: Include isnand.h instead of isnan.h.
48229         (ISNAN): Set to isnand instead of isnan.
48230         * lib/isfinite.c: Include isnand.h instead of isnan.h.
48231         (gl_isfinited): Use isnand instead of isnan.
48232         * lib/signbitd.c: Include isnand.h instead of isnan.h.
48233         (gl_signbitd): Use isnand instead of isnan.
48234         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
48235         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
48236         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
48237         (main): Use isnand instead of isnan.
48238         * tests/test-round1.c: Include isnand.h.
48239         (main): Use isnand instead of isnan.
48240         * tests/test-round2.c: Include isnand.h instead of isnan.h.
48241         (ISNAN): Set to isnand instead of isnan.
48242         * tests/test-trunc1.c: Include isnand.h.
48243         (main): Use isnand instead of isnan.
48244         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
48245         (equal): Use isnand instead of isnan.
48246         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
48247         isnand-nolibm.
48248         * NEWS: Mention the change.
48249
48250 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48251             Bruno Haible  <bruno@clisp.org>
48252
48253         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
48254         the GCC builtins for signbits are present and set
48255         REPLACE_SIGNBIT_USING_GCC if so.
48256         * lib/math.in.h (signbit): Define using GCC builtins if
48257         REPLACE_SIGNBIT_USING_GCC is set.
48258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
48259         REPLACE_SIGNBIT_USING_GCC.
48260         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
48261
48262 2008-01-25  Jim Meyering  <meyering@redhat.com>
48263
48264         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
48265         * lib/poll.c: Include <config.h>, not "config.h".
48266         * tests/test-getaddrinfo.c: Likewise.
48267
48268 2008-01-25  Simon Josefsson  <simon@josefsson.org>
48269
48270         * modules/sockets-tests: New file.
48271
48272 2008-01-24  Simon Josefsson  <simon@josefsson.org>
48273
48274         * modules/sockets: New module, can be used to call WSA_Startup and
48275         WSA_Cleanup when needed.
48276
48277         * lib/sockets.h, lib/sockets.c: New files.
48278
48279         * m4/sockets.m4: New file.
48280
48281         * tests/test-sockets.c: New file.
48282
48283 2008-01-19  Bruno Haible  <bruno@clisp.org>
48284
48285         * doc/posix-headers: Renamed from doc/headers.
48286         * doc/posix-functions: Renamed from doc/functions.
48287         * doc/gnulib.texi: Update.
48288
48289 2008-01-19  Bruno Haible  <bruno@clisp.org>
48290
48291         * doc/glibc-functions/strcasestr.texi: Include contents of
48292         doc/functions/strcasestr.texi, fixing the list of platforms.
48293         * doc/functions/strcasestr.texi: Remove file.
48294
48295 2008-01-19  Bruno Haible  <bruno@clisp.org>
48296
48297         * doc/glibc-functions/memmem.texi: Include contents of
48298         doc/functions/memmem.texi.
48299         * doc/functions/memmem.texi: Remove file.
48300
48301 2008-01-18  Bruno Haible  <bruno@clisp.org>
48302
48303         * doc/glibc-functions/*.texi: New files.
48304         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
48305         to use the new files.
48306
48307 2008-01-17  Bruno Haible  <bruno@clisp.org>
48308
48309         * tests/test-gethostname.c (main): Fix printf statement.
48310
48311 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48312
48313         * modules/gethostname-tests: New file.
48314
48315         * tests/test-gethostname.c: New file.
48316
48317 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48318
48319         * lib/gethostname.c: Include string.h unconditionally, strncpy is
48320         used by the UNAME case.  Reported by Bruno Haible
48321         <bruno@clisp.org>.
48322
48323 2008-01-17  Eric Blake  <ebb9@byu.net>
48324
48325         Convert c-strcasestr to be more efficient.
48326         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
48327         (Depends-on): Add c-strcase, remove malloca, strnlen.
48328         * tests/test-c-strcasestr.c (main): Enhance test.
48329         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
48330
48331 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
48332
48333         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
48334         Use it in creating po/Makevars.
48335
48336 2008-01-15  Simon Josefsson  <simon@josefsson.org>
48337
48338         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
48339         Applications that requires it should initialize libgcrypt
48340         manually.
48341
48342 2008-01-16  Simon Josefsson  <simon@josefsson.org>
48343
48344         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
48345
48346 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
48347
48348         Fix problem with getdate on mingw32 reported by Simon Josefsson
48349         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
48350         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
48351         tzname", when deciding whether to declare tzname.
48352         * lib/strftime.c (tzname): Likewise.
48353
48354 2008-01-15  Bruno Haible  <bruno@clisp.org>
48355
48356         Work around a MacOS X 10.5 bug in frexpl().
48357         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
48358         * doc/functions/frexpl.texi: Document the bug.
48359         Reported by Elias Pipping <pipping@gentoo.org>.
48360
48361 2008-01-14  Eric Blake  <ebb9@byu.net>
48362
48363         Touch up previous patch.
48364         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
48365         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
48366
48367         Convert strcasestr module to use Two-Way algorithm.
48368         * modules/strcasestr-simple: New module, based on the old
48369         strcasestr, but with Two-Way rather than KMP.
48370         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
48371         * lib/string.in.h (rpl_strcasestr): Declare.
48372         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
48373         performance.
48374         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
48375         * modules/string (Makefile.am): Support strcasestr.
48376         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48377         * modules/strcasestr-tests (Depends-on): Check for alarm.
48378         * tests/test-strcasestr.c: Augment test.
48379         * lib/str-two-way.h: Clean up stray macro.
48380         * NEWS: Document new module.
48381         * MODULES.html.sh (string handling): Likewise.
48382         * doc/functions/strcasestr.texi: New file.
48383         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
48384         here, since it is not a POSIX function.
48385
48386 2008-01-14  Colin Watson  <cjwatson@debian.org>
48387             Bruno Haible  <bruno@clisp.org>
48388
48389         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
48390         works fine; if not, set REPLACE_STRSIGNAL.
48391         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
48392         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48393         REPLACE_STRSIGNAL.
48394         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
48395         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
48396         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
48397
48398 2008-01-14  Bruno Haible  <bruno@clisp.org>
48399
48400         * modules/strsignal (Include): Change to <string.h>.
48401
48402 2008-01-14  Colin Watson  <cjwatson@debian.org>
48403
48404         * modules/argp (Notice): Add a notice recommending to change
48405         XGETTEXT_OPTIONS.
48406         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
48407
48408 2008-01-13  Colin Watson  <cjwatson@debian.org>
48409
48410         * modules/strsignal-tests: New file.
48411         * tests/test-strsignal.c: New file.
48412
48413         * lib/strsignal.c: New file, from glibc with modifications.
48414         * lib/siglist.h: New file, from glibc with modifications.
48415         * lib/string.in.h (strsignal): New declaration.
48416         * m4/strsignal.m4: New file.
48417         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48418         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
48419         * modules/strsignal: New file.
48420         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
48421         HAVE_DECL_STRSIGNAL.
48422
48423 2008-01-13  Bruno Haible  <bruno@clisp.org>
48424
48425         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
48426         locale encoding is not ASCII. Needed for OpenBSD 4.0.
48427         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48428         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48429
48430 2008-01-13  Bruno Haible  <bruno@clisp.org>
48431
48432         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
48433         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
48434         * lib/argp.h (__attribute__): Likewise.
48435         * lib/c-stack.c (__attribute__): Likewise.
48436         * lib/error.h (__attribute__): Likewise.
48437         * lib/fts.c (__attribute__): Likewise.
48438         * lib/openat.h (__attribute__): Likewise.
48439         * lib/stdio.in.h (__attribute__): Likewise.
48440         * lib/string.in.h (__attribute__): Likewise.
48441         * lib/utimens.c (__attribute__): Likewise.
48442         * lib/vasnprintf.h (__attribute__): Likewise.
48443         * lib/xalloc.h (__attribute__): Likewise.
48444         * lib/xprintf.h (__attribute__): Likewise.
48445         * lib/xstrtol.h (__attribute__): Likewise.
48446         * lib/xvasprintf.h (__attribute__): Likewise.
48447
48448 2008-01-12  Bruno Haible  <bruno@clisp.org>
48449
48450         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
48451         * doc/glibc-headers/a.out.texi: New file.
48452         * doc/glibc-headers/aliases.texi: New file.
48453         * doc/glibc-headers/alloca.texi: New file.
48454         * doc/glibc-headers/ar.texi: New file.
48455         * doc/glibc-headers/argp.texi: New file.
48456         * doc/glibc-headers/argz.texi: New file.
48457         * doc/glibc-headers/byteswap.texi: New file.
48458         * doc/glibc-headers/crypt.texi: New file.
48459         * doc/glibc-headers/endian.texi: New file.
48460         * doc/glibc-headers/envz.texi: New file.
48461         * doc/glibc-headers/err.texi: New file.
48462         * doc/glibc-headers/error.texi: New file.
48463         * doc/glibc-headers/execinfo.texi: New file.
48464         * doc/glibc-headers/fpu_control.texi: New file.
48465         * doc/glibc-headers/fstab.texi: New file.
48466         * doc/glibc-headers/fts.texi: New file.
48467         * doc/glibc-headers/getopt.texi: New file.
48468         * doc/glibc-headers/ieee754.texi: New file.
48469         * doc/glibc-headers/ifaddrs.texi: New file.
48470         * doc/glibc-headers/libintl.texi: New file.
48471         * doc/glibc-headers/mcheck.texi: New file.
48472         * doc/glibc-headers/mntent.texi: New file.
48473         * doc/glibc-headers/obstack.texi: New file.
48474         * doc/glibc-headers/paths.texi: New file.
48475         * doc/glibc-headers/printf.texi: New file.
48476         * doc/glibc-headers/pty.texi: New file.
48477         * doc/glibc-headers/resolv.texi: New file.
48478         * doc/glibc-headers/shadow.texi: New file.
48479         * doc/glibc-headers/sysexits.texi: New file.
48480         * doc/glibc-headers/ttyent.texi: New file.
48481
48482 2008-01-12  Jim Meyering  <meyering@redhat.com>
48483
48484         announce-gen: emit Gnulib's git-based version string.
48485         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
48486         New option --gnulib-version=V, where V is expected to be
48487         the output of running git describe in the gnulib directory.
48488         (get_tool_versions): Request feedback on xdelta.  I suspect it's
48489         not useful, and plan to stop publishing an xdelta file with each
48490         coreutils release.
48491
48492         * build-aux/announce-gen: Also check for lzma-compressed files.
48493
48494 2008-01-11  Bruno Haible  <bruno@clisp.org>
48495
48496         * tests/test-memmem.c (main): Increase maximum allowed time.
48497         * tests/test-strstr.c (main): Likewise.
48498
48499 2008-01-11  Bruno Haible  <bruno@clisp.org>
48500
48501         * doc/functions/memmem.texi: Add more precisions about platforms.
48502         * doc/functions/strstr.texi: Likewise.
48503
48504 2008-01-10  Eric Blake  <ebb9@byu.net>
48505
48506         * m4/strstr.m4: Delete cruft from copy-n-paste.
48507         Reported by Bruno Haible.
48508
48509 2008-01-10  Bruno Haible  <bruno@clisp.org>
48510
48511         Make c-strstr rely on strstr.
48512         * lib/c-strstr.c: Don't include str-kmp.h.
48513         (c_strstr): Define in terms of strstr.
48514         * modules/c-strstr (Files): Remove lib/str-kmp.h.
48515         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
48516
48517 2008-01-10  Bruno Haible  <bruno@clisp.org>
48518
48519         * doc/gnulib.texi (String Functions in C Locale): New section.
48520         * doc/c-ctype.texi: New file.
48521         * doc/c-strcase.texi: New file.
48522         * doc/c-strcaseeq.texi: New file.
48523         * doc/c-strcasestr.texi: New file.
48524         * doc/c-strstr.texi: New file.
48525         * doc/c-strtod.texi: New file.
48526         * doc/c-strtold.texi: New file.
48527
48528 2008-01-10  Eric Blake  <ebb9@byu.net>
48529
48530         * lib/relocatable.h: Fix a comment.
48531
48532 2008-01-10  Eric Blake  <ebb9@byu.net>
48533
48534         Share two-way algorithm.
48535         * lib/str-two-way.h: New file, merged from...
48536         * lib/memmem.c: ...here...
48537         * lib/strstr.c: ...and here.
48538         * modules/memmem (Files): Use it.
48539         * modules/strstr (Files): Likewise.
48540
48541         Avoid quadratic strstr implementations.
48542         * lib/strstr.c: New file.
48543         * m4/strstr.m4: Likewise.
48544         * modules/strstr: Likewise.
48545         * modules/strstr-tests: Likewise.
48546         * tests/test-strstr.c: Likewise.
48547         * lib/string.in.h (rpl_strstr): Declare.
48548         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
48549         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
48550         * modules/string (Makefile.am): Likewise.
48551         * MODULES.html.sh (string handling): Mention new module.
48552         * doc/functions/strstr.texi (strstr): Document the bug.
48553
48554 2008-01-10  Bruno Haible  <bruno@clisp.org>
48555
48556         * lib/relocatable.h (relocate): State whether result is freshly
48557         allocated or not.
48558         * lib/relocatable.c (relocate): Return a freshly allocated string
48559         instead of a pointer to a privately held string.
48560         Reported by Sylvain Beucler <beuc@gnu.org>.
48561
48562 2008-01-10  Colin Watson  <cjwatson@debian.org>
48563
48564         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
48565         s/S_ISNLK/S_ISLNK/.
48566
48567 2008-01-09  Bruno Haible  <bruno@clisp.org>
48568
48569         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
48570         and other files.
48571         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
48572         if it's only a guess.
48573         * modules/memmem: Simplify by depending on memmem-simple.
48574
48575 2008-01-09  Bruno Haible  <bruno@clisp.org>
48576
48577         Work around OpenBSD 4.0 tdelete() bug.
48578         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
48579         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
48580         macros and don't redefine the enum values.
48581         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
48582         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
48583         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
48584
48585 2008-01-09  Bruno Haible  <bruno@clisp.org>
48586
48587         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
48588         (main): Don't perform the tests if setlocale did not install a UTF-8
48589         locale. Needed on OpenBSD 4.0.
48590         * modules/wcwidth-tests (Depends-on): Add localcharset.
48591
48592 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48593
48594         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
48595         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
48596         * NEWS: announce this.
48597         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
48598
48599 2008-01-09  Simon Josefsson  <simon@josefsson.org>
48600         and Eric Blake  <ebb9@byu.net>
48601
48602         Add memmem-simple module.
48603         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
48604         (gl_FUNC_MEMMEM): Separate performance from presence checks.
48605         * modules/memmem-simple: New file.
48606         * modules/memmem (Description): Tweak.
48607         * MODULES.html.sh (string handling): Mention new module.
48608         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
48609         addressed by memmem-simple.
48610         * NEWS: Document the difference.
48611
48612 2008-01-09  Eric Blake  <ebb9@byu.net>
48613
48614         Give gcc some memmem optimization hints.
48615         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
48616         (strcasestr): Declare as pure.
48617         * modules/memmem (Maintainer): Claim my implementation.
48618
48619 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48620
48621         Support AIX 6.1 and higher.
48622         * build-aux/config.libpath: Likewise.
48623         * build-aux/config.rpath: Likewise.
48624
48625 2008-01-08  Jim Meyering  <meyering@redhat.com>
48626             Bruno Haible  <bruno@clisp.org>
48627
48628         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
48629         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
48630         Reported by Peter Fales in
48631         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
48632
48633 2008-01-08  Bruno Haible  <bruno@clisp.org>
48634
48635         * modules/unictype/category-of (Depends-on): Add
48636         unictype/category-none.
48637         * modules/unictype/category-and-tests (Depends-on): Add
48638         unictype/category-{L,N,Lu,Nd}.
48639         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
48640         * modules/unictype/category-or-tests (Depends-on): Add
48641         unictype/category-{L,N}.
48642         * modules/unictype/category-name-tests (Depends-on): Add
48643         unictype/category-{Z,Nl}.
48644         Reported by Simon Josefsson.
48645
48646 2008-01-08  Bruno Haible  <bruno@clisp.org>
48647
48648         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
48649         convention better.
48650         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
48651         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
48652         Reported by Peter Miller <millerp@canb.auug.org.au>.
48653
48654 2008-01-08  Eric Blake  <ebb9@byu.net>
48655
48656         Rewrite memmem to guarantee linear complexity without malloc.
48657         * lib/memmem.c (memmem): Use Two-Way rather than
48658         Knuth-Morris-Pratt, to allow O(1) space usage.
48659         (critical_factorization, two_way_short_needle)
48660         (two_way_long_needle): New functions.
48661         (knuth_morris_pratt): Delete.
48662         * modules/memmem (Depends-on): No longer need malloca or stdbool.
48663         Add stdint.
48664         * tests/test-memmem.c (main): Add tests for periodic needle and
48665         sublinear performance.
48666         * doc/functions/memmem.texi (memmem): Document other deficiencies
48667         in cygwin and older glibc.
48668
48669 2008-01-08  Bruno Haible  <bruno@clisp.org>
48670
48671         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
48672         augmentation.
48673
48674 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
48675
48676         Add a configure time option: --disable-acl.
48677         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
48678         AC_ARG_ENABLE(acl).
48679
48680 2008-01-06  Simon Josefsson  <simon@josefsson.org>
48681
48682         * tests/test-localename.c: Don't include obsolete "setenv.h".
48683
48684         * modules/localename-tests (Depends-on): Need unsetenv.
48685
48686 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48687
48688         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
48689
48690 2008-01-06  Colin Watson  <cjwatson@debian.org>
48691
48692         * users.txt: Add man-db.
48693
48694 2008-01-07  Bruno Haible  <bruno@clisp.org>
48695
48696         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
48697         previous section name.
48698
48699 2008-01-07  Bruno Haible  <bruno@clisp.org>
48700
48701         * lib/progname.c (set_program_name): Don't strip off a leading
48702         "lt-" prefix outside a .libs directory.
48703         Suggested by Paul Eggert.
48704
48705 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
48706             Bruno Haible  <bruno@clisp.org>
48707
48708         Improve memory cleanup in 'relocatable' module.
48709         * lib/relocatable.h (compute_curr_prefix): Change return type to
48710         'char *'.
48711         * lib/relocatable.c (compute_curr_prefix): Change return type to
48712         'char *'. Free curr_installdir after use.
48713         (relocate): Free curr_prefix_better after use.
48714         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
48715
48716 2008-01-01  Bruno Haible  <bruno@clisp.org>
48717
48718         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
48719         failure on older glibc systems.
48720         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48721
48722 2008-01-05  Eric Blake  <ebb9@byu.net>
48723
48724         Avoid quadratic system memmem.
48725         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
48726         Reported by Ralf Wildenhues.
48727
48728         Fix memmem test for mingw.
48729         * modules/memmem-tests (configure.ac): Check for alarm.
48730         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
48731         it.
48732         * doc/functions/memmem.texi: New file.
48733         * doc/gnulib.texi (Function Substitutes): Add memmem.
48734         Reported by Bruno Haible.
48735
48736 2008-01-04  Bruno Haible  <bruno@clisp.org>
48737
48738         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
48739         Require gl_HEADER_STRINGS_H_DEFAULTS, not
48740         gl_HEADER_STRING_H_DEFAULTS.
48741
48742 2008-01-04  Eric Blake  <ebb9@byu.net>
48743
48744         Shorten duration of memmem test.
48745         * tests/test-memmem.c (main): Use alarm to declare failure if test
48746         is taking too long.
48747         Reported by Ralf Wildenhues.
48748
48749 2007-12-21  Simon Josefsson  <simon@josefsson.org>
48750
48751         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
48752         string, needed by strerror.
48753
48754 2008-01-03  Colin Watson  <cjwatson@debian.org>
48755             Bruno Haible  <bruno@clisp.org>
48756
48757         * doc/gnulib-tool.texi (Localization): New section.
48758
48759 2008-01-02  Bruno Haible  <bruno@clisp.org>
48760
48761         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
48762         variables to 'unsigned char *' type.
48763         Reported by Paul Eggert.
48764
48765 2008-01-02  Jim Meyering  <jim@meyering.net>
48766
48767         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
48768
48769 2007-12-31  Jim Meyering  <jim@meyering.net>
48770
48771         Avoid use of private FTS type name.
48772         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
48773
48774 2007-12-30  Karl Berry  <karl@gnu.org>
48775
48776         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
48777         work around defect in Texinfo and/or the standalone Info browser.
48778
48779 2007-12-30  Bruno Haible  <bruno@clisp.org>
48780
48781         Unify 5 copies of the KMP code.
48782         * lib/str-kmp.h: New file.
48783         * lib/c-strcasestr.c: Include str-kmp.h.
48784         (knuth_morris_pratt): Remove function.
48785         (c_strcasestr): Update.
48786         * lib/c-strstr.c: Include str-kmp.h.
48787         (knuth_morris_pratt): Remove function.
48788         (c_strcasestr): Update.
48789         * lib/mbscasestr.c: Include str-kmp.h.
48790         (knuth_morris_pratt_unibyte): Remove function.
48791         * lib/mbsstr.c: Include str-kmp.h.
48792         (knuth_morris_pratt_unibyte): Remove function.
48793         * lib/strcasestr.c: Include str-kmp.h.
48794         (knuth_morris_pratt): Remove function.
48795         (strcasestr): Update.
48796         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
48797         * modules/c-strstr (Files): Likewise.
48798         * modules/mbscasestr (Files): Likewise.
48799         * modules/mbsstr (Files): Likewise.
48800         * modules/strcasestr (Files): Likewise.
48801         Suggested by Paul Eggert.
48802
48803 2007-12-30  Bruno Haible  <bruno@clisp.org>
48804
48805         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
48806         defined.
48807
48808 2007-12-30  Bruno Haible  <bruno@clisp.org>
48809
48810         * lib/xmalloca.h: Include xalloc.h.
48811         (xnmalloca): New macro.
48812
48813 2007-12-30  Bruno Haible  <bruno@clisp.org>
48814
48815         * lib/malloca.h (nmalloca): New macro.
48816         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
48817         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
48818         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
48819         knuth_morris_pratt_multibyte): Likewise.
48820         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
48821         knuth_morris_pratt_multibyte): Likewise.
48822         * lib/memmem.c (knuth_morris_pratt): Likewise.
48823         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
48824
48825 2007-12-25  Bruno Haible  <bruno@clisp.org>
48826
48827         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
48828         * lib/glob.c: Don't include openat.h.
48829         (link_exists2_p): Add back the code that deals with the
48830         !GLOB_ALTDIRFUNC case.
48831         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
48832         let it do the filename concatenation.
48833         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
48834         * modules/glob (Depends-on): Remove openat.
48835
48836 2007-12-31  Bruno Haible  <bruno@clisp.org>
48837
48838         * modules/dirfd (License): Change to LGPLv2+.
48839         Approved by Jim Meyering.
48840
48841 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
48842
48843         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
48844         when multiplying M by sizeof (size_t).
48845
48846 2007-12-10  Martin Lambers  <marlam@marlam.de>
48847
48848         Override getpagesize on mingw.
48849         * lib/getpagesize.c: New file.
48850         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
48851         * modules/getpagesize (Files): Add lib/getpagesize.c.
48852         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
48853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48854         REPLACE_GETPAGESIZE.
48855         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
48856
48857 2007-12-25  Bruno Haible  <bruno@clisp.org>
48858
48859         * modules/localcharset (Notice): New field.
48860         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
48861         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
48862
48863 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
48864             Bruno Haible  <bruno@clisp.org>
48865
48866         Avoid using the syntax symbol() in formatted documentation.
48867         * MODULES.html.sh (func_module): When replacing symbol() with a
48868         hyperlink, remove the parentheses. Show an error if some remain.
48869         Recognize and render the '...' syntax.
48870         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
48871         Rework. Add paragraph about GCC's inlining.
48872         * doc/alloca.texi: Likewise.
48873         * doc/error.texi: Remove parentheses from symbol reference.
48874         * doc/gnulib-intro.texi: Likewise.
48875         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
48876         * modules/fnmatch (Description): Reword to say "the ... function".
48877         * modules/full-read (Description): Likewise.
48878         * modules/full-write (Description): Likewise.
48879         * modules/safe-read (Description): Likewise.
48880         * modules/safe-write (Description): Likewise.
48881         * modules/strchrnul (Description): Likewise.
48882         * modules/trim (Description): Likewise.
48883         * modules/error (Description): Remove parentheses from symbol
48884         references.
48885         * modules/verror (Description): Likewise.
48886         Reported by Karl Berry.
48887
48888 2007-12-25  Bruno Haible  <bruno@clisp.org>
48889
48890         Fixup after 2007-10-16 commit.
48891         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
48892
48893 2007-12-24  Bruno Haible  <bruno@clisp.org>
48894
48895         Make --enable-relocatable work with DESTDIR.
48896         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
48897         to compute installdir from destprog.
48898         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
48899         also set the RELOC_DESTDIR variable.
48900         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
48901
48902 2007-12-24  Bruno Haible  <bruno@clisp.org>
48903
48904         Fix link error due to xalloc_die().
48905         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
48906         of xreadlink.
48907         * lib/relocwrapper.c: Update comments.
48908         * build-aux/install-reloc: Remove xreadlink.c from file list.
48909         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
48910         xreadlink.c.
48911         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
48912
48913 2007-12-24  Bruno Haible  <bruno@clisp.org>
48914
48915         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
48916         * lib/setenv.h: Remove file.
48917         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
48918         lib/setenv.h.
48919         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
48920         (Depends-on): Add stdlib.
48921         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
48922         gl_FUNC_UNSETENV.
48923         (Include): Replace setenv.h with <stdlib.h>.
48924         * modules/unsetenv: New file.
48925         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
48926         * lib/unsetenv.c: Include <stdlib.h> first.
48927         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
48928         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
48929         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
48930         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
48931         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
48932         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
48933         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
48934         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
48935         * doc/functions/unsetenv.texi: Update.
48936         * modules/xsetenv (Depends-on): Add unsetenv.
48937         * modules/getdate (Depends-on): Likewise.
48938         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
48939         * lib/xsetenv.c: Don't include setenv.h.
48940         * lib/getdate.y: Likewise.
48941         * lib/relocwrapper.c: Likewise.
48942         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
48943         (Depends-on): Add stdlib.
48944         * NEWS: Mention the changes.
48945         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
48946
48947 2007-12-23  Bruno Haible  <bruno@clisp.org>
48948
48949         * lib/memmem.c (memmem): Use lowercase variable names. Tab
48950         indentation.
48951
48952 2007-12-23  Bruno Haible  <bruno@clisp.org>
48953
48954         * lib/c-strcasestr.c: Add more comments.
48955         * lib/c-strstr.c: Likewise.
48956         * lib/mbscasestr.c: Likewise.
48957         * lib/mbsstr.c: Likewise.
48958         * lib/strcasestr.c: Likewise.
48959         * lib/memmem.c: Likewise.
48960
48961 2007-12-23  Bruno Haible  <bruno@clisp.org>
48962
48963         * tests/test-memmem.c: Include <string.h> first.
48964
48965 2007-12-22  Bruno Haible  <bruno@clisp.org>
48966
48967         * gnulib-tool (func_create_testdir): Change $auxdir while generating
48968         the contents of $testsbase.
48969         Reported by Ralf Wildenhues.
48970
48971 2007-12-22  Bruno Haible  <bruno@clisp.org>
48972
48973         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
48974         two variables local_ldadd_before, local_ldadd_last.
48975
48976 2007-12-20  Eric Blake  <ebb9@byu.net>
48977
48978         Work around circular library issue when cross-compiling.
48979         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
48980         that progname.o does not need to pull in rpl_memcmp.
48981
48982 2007-12-19  Eric Blake  <ebb9@byu.net>
48983
48984         Fix memmem to avoid O(n^2) worst-case complexity.
48985         * lib/memmem.c (knuth_morris_pratt): New function.
48986         (memmem): Use it if first few naive iterations fail.
48987         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
48988         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
48989         * modules/memchr (License): Likewise.
48990         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
48991         malloca.
48992         * tests/test-memmem.c: Rewrite, borrowing ideas from
48993         test-mbsstr1.c; the old version wouldn't even compile!
48994         * modules/memmem-tests: New file.
48995         * lib/string.in.h (rpl_memmem): Add declaration.
48996         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
48997         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
48998         REPLACE_MEMMEM.
48999
49000 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49001
49002         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
49003         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
49004         before any system include files, and undef after them all.  This
49005         should fix a problem on VMS reported by John E. Malmberg in
49006         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
49007
49008 2007-12-17  Eric Blake  <ebb9@byu.net>
49009
49010         Revert addition of verify, for BSD/OS.
49011         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
49012         can't handle large files, for the sake of obsolete platforms.
49013         * modules/fseeko (Depends-on): Remove verify.
49014         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
49015         * doc/functions/ftello.texi (ftello): Likewise.
49016         * doc/functions/fgetpos.texi (fgetpos): Likewise.
49017         Reported by Larry Jones.
49018
49019 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
49020
49021         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
49022         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
49023
49024 2007-12-17  Jim Meyering  <meyering@redhat.com>
49025
49026         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
49027         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
49028         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
49029         * modules/getcwd (Depends-on): Add openat.
49030         Reported by Petr Salinger.
49031
49032 2007-12-17  Bruno Haible  <bruno@clisp.org>
49033
49034         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
49035         avoid a segmentation fault of the configure test on x86_64 systems.
49036
49037 2007-12-15  Jim Meyering  <meyering@redhat.com>
49038
49039         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
49040
49041 2007-12-13  Eric Blake  <ebb9@byu.net>
49042
49043         Another fseek test.
49044         * tests/test-fseek.c (main): Also test ungetc handling.
49045         * tests/test-fseeko.c (main): Likewise.
49046         * modules/fseeko (Depends-on): Add verify.
49047         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
49048         large.
49049         Reported by Larry Jones.
49050
49051         Fix fseeko on mingw.
49052         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
49053         seek.
49054
49055         Beef up fseek tests.
49056         * tests/test-fseek.c (main): Also test eof handling.
49057         * tests/test-fseeko.c (main): Likewise.
49058         Reported by Larry Jones.
49059
49060 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
49061
49062         Fix fseeko on BSD-based platforms.
49063         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
49064         successful seek.
49065
49066 2007-12-12  Eric Blake  <ebb9@byu.net>
49067
49068         Allow circular dependency of separate libtests.a
49069         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
49070         when use_libtests.
49071
49072 2007-12-11  Eric Blake  <ebb9@byu.net>
49073
49074         Fix bug with -0.0L in previous patch.
49075         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
49076         * tests/test-isnan.c (main): Also test on zeroes.
49077         * tests/test-isnanf.c (main): Likewise.
49078         * tests/test-isnanl.h (main): Likewise.
49079
49080         Detect pseudo-denormals on x86 even when cross-compiling.
49081         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
49082         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
49083         invalid bit patterns that happen to satisfy ==.
49084
49085         Avoid link failures with separate libtests.a.
49086         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
49087         last, to satisfy circular dependencies.
49088
49089 2007-12-11  Eric Blake  <ebb9@byu.net>
49090         and Bruno Haible  <bruno@clisp.org>
49091
49092         Fix OpenBSD 4.0 <float.h> handling of long double.
49093         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
49094         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
49095         * doc/headers/float.texi (float.h): Document OpenBSD bug.
49096
49097 2007-12-11  Jim Meyering  <meyering@redhat.com>
49098
49099         * users.txt: Add libvirt.
49100
49101         Support versions of autoconf prior to 2.59c.
49102         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
49103         if it is not already defined.
49104
49105 2007-12-09  Bruno Haible  <bruno@clisp.org>
49106
49107         Let 'gnulib-tool --import' collect sources needed for the tests in
49108         tests/ rather than in lib/.
49109         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
49110         argument. If true, add rules to generate libtests.a, and put libtests.a
49111         into $(LDADD). Consider source files in subdirectories and set
49112         uses_subdirs.
49113         (func_emit_initmacro_start, func_emit_initmacro_end,
49114         func_emit_initmacro_done): Pass all arguments explicitly.
49115         (func_import): Determine two module lists main_modules,
49116         testsrelated_modules. Determine use_libtests. Determine two variables
49117         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
49118         instead of just sed_transform_lib_file. Determine two variables
49119         main_files and testsrelated_files. Compute 'files' as the union of
49120         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
49121         func_add_or_update. In the generated gnulib-comp.m4, collect the
49122         object files for tests/ in different variables than those for lib/.
49123         Substitute LIBTESTS_LIBDEPS.
49124         (func_create_testdir): Combine the uses_subdirs results from
49125         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
49126
49127 2007-12-09  Bruno Haible  <bruno@clisp.org>
49128
49129         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
49130         the build-aux directory.
49131
49132 2007-12-09  Bruno Haible  <bruno@clisp.org>
49133
49134         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
49135         introduced on 2006-09-09.
49136
49137 2007-12-07  Jim Meyering  <meyering@redhat.com>
49138
49139         Let these macros work also with autoconf-2.59.
49140         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
49141         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
49142         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49143
49144 2007-12-06  Jim Meyering  <meyering@redhat.com>
49145
49146         Avoid a configure-time syntax error in gl_FUNC_ACL.
49147         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
49148         function in each branch, before testing the cache variable.
49149
49150 2007-12-04  Eric Blake  <ebb9@byu.net>
49151
49152         Make scripts executable.
49153         * build-aux/config.guess: Add execute permissions.
49154         * build-aux/config.sub: Likewise.
49155         * build-aux/gendocs.sh: Likewise.
49156
49157         Fix frexp on mingw.
49158         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
49159         cross-compiling.
49160         * doc/functions/frexp.texi (frexp): Document the bug.
49161
49162         Make cygwin fseeko check more reliable.
49163         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
49164         version numbers, rather than unrelated feature check.
49165         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
49166         * doc/functions/ftello.texi (ftello): Likewise.
49167         Reported by Bruno Haible.
49168
49169         * m4/strerror.m4: Bump version number.
49170
49171 2007-12-03  Bruno Haible  <bruno@clisp.org>
49172
49173         * doc/functions/mprotect.texi: Mention the mingw problem.
49174
49175 2007-12-03  Eric Blake  <ebb9@byu.net>
49176
49177         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
49178         REPLACE_STRERROR is initialized before this macro.
49179
49180 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49181
49182         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
49183         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
49184         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
49185         put -lsec in even for programs other than 'ls'.  This fixes a problem
49186         for gettext reported by Bruno Haible in
49187         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
49188         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
49189         Add support for Solaris 10.  This isn't efficient, but should get the
49190         job done for now.
49191
49192 2007-12-03  James Youngman  <jay@gnu.org>
49193
49194         * doc/regexprops-generic.texi: change "an close-group" to "a
49195         close-group" and "illegal" to "not allowed".
49196
49197 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49198
49199         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
49200         pr_byname.h. Needed for the rare case when the maintainer has done
49201         "make maintainer-clean" in the source directory and then attempts a
49202         build outside the source directory.
49203         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
49204         scripts_byname.h.
49205
49206 2007-12-02  Martin Lambers <marlam@marlam.de>
49207             Bruno Haible  <bruno@clisp.org>
49208
49209         * lib/getpagesize.h: Remove file.
49210         * lib/unistd.in.h: Include declaration of getpagesize here.
49211         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
49212         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
49213         HAVE_SYS_PARAM_H.
49214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
49215         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49216         * modules/getpagesize (Files): Remove lib/getpagesize.h.
49217         (Depends-on): Add unistd.
49218         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49219         (Include): Use <unistd.h> instead of getpagesize.h.
49220         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
49221         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49222         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
49223         gl_GETPAGESIZE invocation, already handled by module dependency.
49224         * lib/pagealign_alloc.c: Don't include getpagesize.h.
49225
49226 2007-12-02  Bruno Haible  <bruno@clisp.org>
49227
49228         * modules/strings-tests: New file.
49229         * tests/test-strings.c: New file.
49230
49231         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
49232         * lib/strings.in.h: New file.
49233         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
49234         * m4/strings_h.m4: New file.
49235         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
49236         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
49237         * modules/strings: New file.
49238         * modules/string (Makefile.am): Update.
49239         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
49240         Reported by Karl Berry.
49241
49242 2007-12-01  Eric Blake  <ebb9@byu.net>
49243
49244         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
49245         accomodate fix in cygwin 1.5.25.
49246
49247 2007-12-01  Jim Meyering  <meyering@redhat.com>
49248
49249         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
49250         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
49251         that would inhibit utf8-optimization of a regexp containing line-
49252         or buffer-anchors, e.g., `^', `$'.
49253
49254 2007-11-30  Bruno Haible  <bruno@clisp.org>
49255
49256         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
49257         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
49258         glthread_recursive_lock_init.
49259         * lib/lock.c (glthread_recursive_lock_init)
49260         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
49261         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49262
49263 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
49264
49265         New function qset_acl, like set_acl but with syscall semantics.
49266         * lib/acl.h (qset_acl): New decl.
49267         * lib/acl.c (qset_acl): New function.
49268         (set_acl): Use new function.  Use more-consistent diagnostics.
49269
49270 2007-11-28  Jim Meyering  <meyering@redhat.com>
49271
49272         * modules/physmem (License): Change from GPL to LGPLv2+.
49273
49274 2007-11-26  Bruno Haible  <bruno@clisp.org>
49275
49276         * lib/vasnprintf.c (decode_long_double): Don't abort if the
49277         'long double' type has excess precision.
49278         Reported by Jim Meyering in
49279         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
49280
49281 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49282
49283         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
49284         Sync from <http://gnu.org/licenses>.
49285         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
49286         with license text from same location.
49287         * doc/maintain.texi, doc/standards.texi:  Sync from
49288         <http://savannah.gnu.org/projects/gnustandards>.
49289
49290 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
49291         and Jim Meyering  <meyering@redhat.com>
49292
49293         Adjust getdate' grammar to accept a slightly more regular language.
49294         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
49295         Before, the former was rejected.
49296         * lib/getdate.y (digits_to_date_time): New function, factored
49297         out of ...
49298         (number): ...here.  Just call digits_to_date_time.
49299         (hybrid): New non-terminal to handle an <unsigned number,
49300         signed relative offset> sequence consistently.
49301
49302 2007-11-18  Jim Meyering  <meyering@redhat.com>
49303
49304         Pull my changes from coreutils:
49305         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
49306         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
49307         use of $gnulib_tool_option_extras, so that it's separated from the
49308         preceding argument.
49309
49310         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
49311         * build-aux/bootstrap (cp_mark_as_generated): Create any required
49312         parent destination directories before copying a file into place.
49313
49314 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49315
49316         bootstrap: work also with 4-argument variant of AC_INIT
49317         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
49318
49319 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49320
49321         Port test-getaddrinfo to Solaris.
49322         Problem reported by Bruno Haible in
49323         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
49324         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
49325         explanation of setting 'hints'.
49326         Don't reject an implementation merely because it returns EAI_SERVICE.
49327         (EAI_SERVICE): Define to 0 if not defined.
49328
49329 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49330
49331         The license of gnu-make and posix-shell is now "GPLed build tool".
49332         * modules/gnu-make (License): Likewise.
49333         * modules/posix-shell (License): Likewise.
49334
49335         New module posix-shell, for determining a POSIX shell
49336         or perhaps something that is close enough to a POSIX shell.
49337         * m4/posix-shell.m4: New file.
49338         * modules/posix-shell: New file.
49339
49340         * MODULES.html.sh: Mention new module.
49341
49342         New module gnu-make, for determining whether we're using GNU Make.
49343         * m4/gnu-make.m4: New file.
49344         * modules/gnu-make: New file.
49345         * MODULES.html.sh: Mention new module.
49346
49347 2007-11-14  Jim Meyering  <meyering@redhat.com>
49348
49349         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
49350         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
49351         use this macro to create a function _definition_.
49352         Remove useless "#undef ARGMATCH_DIE".
49353
49354 2007-11-14  Bruno Haible  <bruno@clisp.org>
49355
49356         * lib/config.charset: Update for OpenBSD 4.1.
49357         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
49358
49359 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
49360
49361         Document 64-bit #if problems in stdint.texi.
49362         * doc/headers/stdint.texi (stdint.h): Mention problems with
49363         64-bit-#if, and how to work around them.
49364
49365         Don't insist on 'long long int' support in the preprocessor.  It
49366         breaks too many things.  For example, PRIdMAX still uses a 'long
49367         long int' format with the latest Sun compiler, even though
49368         HAVE_LONG_LONG_INT isn't defined due to that compiler's
49369         preprocessor problem.  This causes the latest coreutils to dump
49370         core on Solaris 10 sparc with the Sun C compiler.
49371         Instead, fix the 2007-10-16 problem in a different way, by evaluating
49372         the troublesome expressions at configure-time, not at #if-time.
49373         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
49374         preprocessor.
49375         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
49376         compile-time C checks, done at 'configure'-time.
49377         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
49378         * modules/inttypes (Makefile): Substitute the new symbols that
49379         gl_INTTYPES_H now generates.
49380         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
49381
49382 2007-11-12  Bruno Haible  <bruno@clisp.org>
49383
49384         Tests for Unicode character classification functions.
49385
49386         * modules/unictype/bidicategory-byname-tests: New file.
49387         * modules/unictype/bidicategory-name-tests: New file.
49388         * modules/unictype/bidicategory-of-tests: New file.
49389         * modules/unictype/bidicategory-test-tests: New file.
49390         * modules/unictype/block-list-tests: New file.
49391         * modules/unictype/block-of-tests: New file.
49392         * modules/unictype/block-test-tests: New file.
49393         * modules/unictype/category-C-tests: New file.
49394         * modules/unictype/category-Cc-tests: New file.
49395         * modules/unictype/category-Cf-tests: New file.
49396         * modules/unictype/category-Cn-tests: New file.
49397         * modules/unictype/category-Co-tests: New file.
49398         * modules/unictype/category-Cs-tests: New file.
49399         * modules/unictype/category-L-tests: New file.
49400         * modules/unictype/category-Ll-tests: New file.
49401         * modules/unictype/category-Lm-tests: New file.
49402         * modules/unictype/category-Lo-tests: New file.
49403         * modules/unictype/category-Lt-tests: New file.
49404         * modules/unictype/category-Lu-tests: New file.
49405         * modules/unictype/category-M-tests: New file.
49406         * modules/unictype/category-Mc-tests: New file.
49407         * modules/unictype/category-Me-tests: New file.
49408         * modules/unictype/category-Mn-tests: New file.
49409         * modules/unictype/category-N-tests: New file.
49410         * modules/unictype/category-Nd-tests: New file.
49411         * modules/unictype/category-Nl-tests: New file.
49412         * modules/unictype/category-No-tests: New file.
49413         * modules/unictype/category-P-tests: New file.
49414         * modules/unictype/category-Pc-tests: New file.
49415         * modules/unictype/category-Pd-tests: New file.
49416         * modules/unictype/category-Pe-tests: New file.
49417         * modules/unictype/category-Pf-tests: New file.
49418         * modules/unictype/category-Pi-tests: New file.
49419         * modules/unictype/category-Po-tests: New file.
49420         * modules/unictype/category-Ps-tests: New file.
49421         * modules/unictype/category-S-tests: New file.
49422         * modules/unictype/category-Sc-tests: New file.
49423         * modules/unictype/category-Sk-tests: New file.
49424         * modules/unictype/category-Sm-tests: New file.
49425         * modules/unictype/category-So-tests: New file.
49426         * modules/unictype/category-Z-tests: New file.
49427         * modules/unictype/category-Zl-tests: New file.
49428         * modules/unictype/category-Zp-tests: New file.
49429         * modules/unictype/category-Zs-tests: New file.
49430         * modules/unictype/category-and-not-tests: New file.
49431         * modules/unictype/category-and-tests: New file.
49432         * modules/unictype/category-byname-tests: New file.
49433         * modules/unictype/category-name-tests: New file.
49434         * modules/unictype/category-none-tests: New file.
49435         * modules/unictype/category-of-tests: New file.
49436         * modules/unictype/category-or-tests: New file.
49437         * modules/unictype/category-test-withtable-tests: New file.
49438         * modules/unictype/combining-class-tests: New file.
49439         * modules/unictype/ctype-alnum-tests: New file.
49440         * modules/unictype/ctype-alpha-tests: New file.
49441         * modules/unictype/ctype-blank-tests: New file.
49442         * modules/unictype/ctype-cntrl-tests: New file.
49443         * modules/unictype/ctype-digit-tests: New file.
49444         * modules/unictype/ctype-graph-tests: New file.
49445         * modules/unictype/ctype-lower-tests: New file.
49446         * modules/unictype/ctype-print-tests: New file.
49447         * modules/unictype/ctype-punct-tests: New file.
49448         * modules/unictype/ctype-space-tests: New file.
49449         * modules/unictype/ctype-upper-tests: New file.
49450         * modules/unictype/ctype-xdigit-tests: New file.
49451         * modules/unictype/decimal-digit-tests: New file.
49452         * modules/unictype/digit-tests: New file.
49453         * modules/unictype/mirror-tests: New file.
49454         * modules/unictype/numeric-tests: New file.
49455         * modules/unictype/property-alphabetic-tests: New file.
49456         * modules/unictype/property-ascii-hex-digit-tests: New file.
49457         * modules/unictype/property-bidi-arabic-digit-tests: New file.
49458         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
49459         * modules/unictype/property-bidi-block-separator-tests: New file.
49460         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
49461         * modules/unictype/property-bidi-common-separator-tests: New file.
49462         * modules/unictype/property-bidi-control-tests: New file.
49463         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
49464         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
49465         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
49466         * modules/unictype/property-bidi-european-digit-tests: New file.
49467         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
49468         * modules/unictype/property-bidi-left-to-right-tests: New file.
49469         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
49470         * modules/unictype/property-bidi-other-neutral-tests: New file.
49471         * modules/unictype/property-bidi-pdf-tests: New file.
49472         * modules/unictype/property-bidi-segment-separator-tests: New file.
49473         * modules/unictype/property-bidi-whitespace-tests: New file.
49474         * modules/unictype/property-byname-tests: New file.
49475         * modules/unictype/property-combining-tests: New file.
49476         * modules/unictype/property-composite-tests: New file.
49477         * modules/unictype/property-currency-symbol-tests: New file.
49478         * modules/unictype/property-dash-tests: New file.
49479         * modules/unictype/property-decimal-digit-tests: New file.
49480         * modules/unictype/property-default-ignorable-code-point-tests: New file.
49481         * modules/unictype/property-deprecated-tests: New file.
49482         * modules/unictype/property-diacritic-tests: New file.
49483         * modules/unictype/property-extender-tests: New file.
49484         * modules/unictype/property-format-control-tests: New file.
49485         * modules/unictype/property-grapheme-base-tests: New file.
49486         * modules/unictype/property-grapheme-extend-tests: New file.
49487         * modules/unictype/property-grapheme-link-tests: New file.
49488         * modules/unictype/property-hex-digit-tests: New file.
49489         * modules/unictype/property-hyphen-tests: New file.
49490         * modules/unictype/property-id-continue-tests: New file.
49491         * modules/unictype/property-id-start-tests: New file.
49492         * modules/unictype/property-ideographic-tests: New file.
49493         * modules/unictype/property-ids-binary-operator-tests: New file.
49494         * modules/unictype/property-ids-trinary-operator-tests: New file.
49495         * modules/unictype/property-ignorable-control-tests: New file.
49496         * modules/unictype/property-iso-control-tests: New file.
49497         * modules/unictype/property-join-control-tests: New file.
49498         * modules/unictype/property-left-of-pair-tests: New file.
49499         * modules/unictype/property-line-separator-tests: New file.
49500         * modules/unictype/property-logical-order-exception-tests: New file.
49501         * modules/unictype/property-lowercase-tests: New file.
49502         * modules/unictype/property-math-tests: New file.
49503         * modules/unictype/property-non-break-tests: New file.
49504         * modules/unictype/property-not-a-character-tests: New file.
49505         * modules/unictype/property-numeric-tests: New file.
49506         * modules/unictype/property-other-alphabetic-tests: New file.
49507         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
49508         * modules/unictype/property-other-grapheme-extend-tests: New file.
49509         * modules/unictype/property-other-id-continue-tests: New file.
49510         * modules/unictype/property-other-id-start-tests: New file.
49511         * modules/unictype/property-other-lowercase-tests: New file.
49512         * modules/unictype/property-other-math-tests: New file.
49513         * modules/unictype/property-other-uppercase-tests: New file.
49514         * modules/unictype/property-paired-punctuation-tests: New file.
49515         * modules/unictype/property-paragraph-separator-tests: New file.
49516         * modules/unictype/property-pattern-syntax-tests: New file.
49517         * modules/unictype/property-pattern-white-space-tests: New file.
49518         * modules/unictype/property-private-use-tests: New file.
49519         * modules/unictype/property-punctuation-tests: New file.
49520         * modules/unictype/property-quotation-mark-tests: New file.
49521         * modules/unictype/property-radical-tests: New file.
49522         * modules/unictype/property-sentence-terminal-tests: New file.
49523         * modules/unictype/property-soft-dotted-tests: New file.
49524         * modules/unictype/property-space-tests: New file.
49525         * modules/unictype/property-terminal-punctuation-tests: New file.
49526         * modules/unictype/property-test-tests: New file.
49527         * modules/unictype/property-titlecase-tests: New file.
49528         * modules/unictype/property-unassigned-code-value-tests: New file.
49529         * modules/unictype/property-unified-ideograph-tests: New file.
49530         * modules/unictype/property-uppercase-tests: New file.
49531         * modules/unictype/property-variation-selector-tests: New file.
49532         * modules/unictype/property-white-space-tests: New file.
49533         * modules/unictype/property-xid-continue-tests: New file.
49534         * modules/unictype/property-xid-start-tests: New file.
49535         * modules/unictype/property-zero-width-tests: New file.
49536         * modules/unictype/scripts-tests: New file.
49537         * modules/unictype/syntax-c-ident-tests: New file.
49538         * modules/unictype/syntax-c-whitespace-tests: New file.
49539         * modules/unictype/syntax-java-ident-tests: New file.
49540         * modules/unictype/syntax-java-whitespace-tests: New file.
49541         * tests/unictype/test-bidi_byname.c: New file.
49542         * tests/unictype/test-bidi_name.c: New file.
49543         * tests/unictype/test-bidi_of.c: New file.
49544         * tests/unictype/test-bidi_test.c: New file.
49545         * tests/unictype/test-block_list.c: New file.
49546         * tests/unictype/test-block_of.c: New file.
49547         * tests/unictype/test-block_test.c: New file.
49548         * tests/unictype/test-categ_and.c: New file.
49549         * tests/unictype/test-categ_and_not.c: New file.
49550         * tests/unictype/test-categ_byname.c: New file.
49551         * tests/unictype/test-categ_name.c: New file.
49552         * tests/unictype/test-categ_none.c: New file.
49553         * tests/unictype/test-categ_of.c: New file.
49554         * tests/unictype/test-categ_or.c: New file.
49555         * tests/unictype/test-categ_test_withtable.c: New file.
49556         * tests/unictype/test-combining.c: New file.
49557         * tests/unictype/test-decdigit.c: New file.
49558         * tests/unictype/test-digit.c: New file.
49559         * tests/unictype/test-mirror.c: New file.
49560         * tests/unictype/test-numeric.c: New file.
49561         * tests/unictype/test-pr_byname.c: New file.
49562         * tests/unictype/test-pr_test.c: New file.
49563         * tests/unictype/test-predicate-part1.h: New file.
49564         * tests/unictype/test-predicate-part2.h: New file.
49565         * tests/unictype/test-scripts.c: New file.
49566         * tests/unictype/test-sy_c_ident.c: New file.
49567         * tests/unictype/test-sy_java_ident.c: New file.
49568
49569         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
49570         for Unicode 5.0.0.
49571         * tests/unictype/test-categ_Cc.c: Likewise.
49572         * tests/unictype/test-categ_Cf.c: Likewise.
49573         * tests/unictype/test-categ_Cn.c: Likewise.
49574         * tests/unictype/test-categ_Co.c: Likewise.
49575         * tests/unictype/test-categ_Cs.c: Likewise.
49576         * tests/unictype/test-categ_L.c: Likewise.
49577         * tests/unictype/test-categ_Ll.c: Likewise.
49578         * tests/unictype/test-categ_Lm.c: Likewise.
49579         * tests/unictype/test-categ_Lo.c: Likewise.
49580         * tests/unictype/test-categ_Lt.c: Likewise.
49581         * tests/unictype/test-categ_Lu.c: Likewise.
49582         * tests/unictype/test-categ_M.c: Likewise.
49583         * tests/unictype/test-categ_Mc.c: Likewise.
49584         * tests/unictype/test-categ_Me.c: Likewise.
49585         * tests/unictype/test-categ_Mn.c: Likewise.
49586         * tests/unictype/test-categ_N.c: Likewise.
49587         * tests/unictype/test-categ_Nd.c: Likewise.
49588         * tests/unictype/test-categ_Nl.c: Likewise.
49589         * tests/unictype/test-categ_No.c: Likewise.
49590         * tests/unictype/test-categ_P.c: Likewise.
49591         * tests/unictype/test-categ_Pc.c: Likewise.
49592         * tests/unictype/test-categ_Pd.c: Likewise.
49593         * tests/unictype/test-categ_Pe.c: Likewise.
49594         * tests/unictype/test-categ_Pf.c: Likewise.
49595         * tests/unictype/test-categ_Pi.c: Likewise.
49596         * tests/unictype/test-categ_Po.c: Likewise.
49597         * tests/unictype/test-categ_Ps.c: Likewise.
49598         * tests/unictype/test-categ_S.c: Likewise.
49599         * tests/unictype/test-categ_Sc.c: Likewise.
49600         * tests/unictype/test-categ_Sk.c: Likewise.
49601         * tests/unictype/test-categ_Sm.c: Likewise.
49602         * tests/unictype/test-categ_So.c: Likewise.
49603         * tests/unictype/test-categ_Z.c: Likewise.
49604         * tests/unictype/test-categ_Zl.c: Likewise.
49605         * tests/unictype/test-categ_Zp.c: Likewise.
49606         * tests/unictype/test-categ_Zs.c: Likewise.
49607         * tests/unictype/test-ctype_alnum.c: Likewise.
49608         * tests/unictype/test-ctype_alpha.c: Likewise.
49609         * tests/unictype/test-ctype_blank.c: Likewise.
49610         * tests/unictype/test-ctype_cntrl.c: Likewise.
49611         * tests/unictype/test-ctype_digit.c: Likewise.
49612         * tests/unictype/test-ctype_graph.c: Likewise.
49613         * tests/unictype/test-ctype_lower.c: Likewise.
49614         * tests/unictype/test-ctype_print.c: Likewise.
49615         * tests/unictype/test-ctype_punct.c: Likewise.
49616         * tests/unictype/test-ctype_space.c: Likewise.
49617         * tests/unictype/test-ctype_upper.c: Likewise.
49618         * tests/unictype/test-ctype_xdigit.c: Likewise.
49619         * tests/unictype/test-decdigit.h: Likewise.
49620         * tests/unictype/test-digit.h: Likewise.
49621         * tests/unictype/test-numeric.h: Likewise.
49622         * tests/unictype/test-pr_alphabetic.c: Likewise.
49623         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
49624         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
49625         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
49626         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
49627         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
49628         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
49629         * tests/unictype/test-pr_bidi_control.c: Likewise.
49630         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
49631         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
49632         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
49633         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
49634         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
49635         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
49636         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
49637         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
49638         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
49639         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
49640         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
49641         * tests/unictype/test-pr_combining.c: Likewise.
49642         * tests/unictype/test-pr_composite.c: Likewise.
49643         * tests/unictype/test-pr_currency_symbol.c: Likewise.
49644         * tests/unictype/test-pr_dash.c: Likewise.
49645         * tests/unictype/test-pr_decimal_digit.c: Likewise.
49646         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
49647         * tests/unictype/test-pr_deprecated.c: Likewise.
49648         * tests/unictype/test-pr_diacritic.c: Likewise.
49649         * tests/unictype/test-pr_extender.c: Likewise.
49650         * tests/unictype/test-pr_format_control.c: Likewise.
49651         * tests/unictype/test-pr_grapheme_base.c: Likewise.
49652         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
49653         * tests/unictype/test-pr_grapheme_link.c: Likewise.
49654         * tests/unictype/test-pr_hex_digit.c: Likewise.
49655         * tests/unictype/test-pr_hyphen.c: Likewise.
49656         * tests/unictype/test-pr_id_continue.c: Likewise.
49657         * tests/unictype/test-pr_id_start.c: Likewise.
49658         * tests/unictype/test-pr_ideographic.c: Likewise.
49659         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
49660         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
49661         * tests/unictype/test-pr_ignorable_control.c: Likewise.
49662         * tests/unictype/test-pr_iso_control.c: Likewise.
49663         * tests/unictype/test-pr_join_control.c: Likewise.
49664         * tests/unictype/test-pr_left_of_pair.c: Likewise.
49665         * tests/unictype/test-pr_line_separator.c: Likewise.
49666         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
49667         * tests/unictype/test-pr_lowercase.c: Likewise.
49668         * tests/unictype/test-pr_math.c: Likewise.
49669         * tests/unictype/test-pr_non_break.c: Likewise.
49670         * tests/unictype/test-pr_not_a_character.c: Likewise.
49671         * tests/unictype/test-pr_numeric.c: Likewise.
49672         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
49673         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
49674         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
49675         * tests/unictype/test-pr_other_id_continue.c: Likewise.
49676         * tests/unictype/test-pr_other_id_start.c: Likewise.
49677         * tests/unictype/test-pr_other_lowercase.c: Likewise.
49678         * tests/unictype/test-pr_other_math.c: Likewise.
49679         * tests/unictype/test-pr_other_uppercase.c: Likewise.
49680         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
49681         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
49682         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
49683         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
49684         * tests/unictype/test-pr_private_use.c: Likewise.
49685         * tests/unictype/test-pr_punctuation.c: Likewise.
49686         * tests/unictype/test-pr_quotation_mark.c: Likewise.
49687         * tests/unictype/test-pr_radical.c: Likewise.
49688         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
49689         * tests/unictype/test-pr_soft_dotted.c: Likewise.
49690         * tests/unictype/test-pr_space.c: Likewise.
49691         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
49692         * tests/unictype/test-pr_titlecase.c: Likewise.
49693         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
49694         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
49695         * tests/unictype/test-pr_uppercase.c: Likewise.
49696         * tests/unictype/test-pr_variation_selector.c: Likewise.
49697         * tests/unictype/test-pr_white_space.c: Likewise.
49698         * tests/unictype/test-pr_xid_continue.c: Likewise.
49699         * tests/unictype/test-pr_xid_start.c: Likewise.
49700         * tests/unictype/test-pr_zero_width.c: Likewise.
49701         * tests/unictype/test-sy_c_whitespace.c: Likewise.
49702         * tests/unictype/test-sy_java_whitespace.c: Likewise.
49703
49704 2007-11-12  Bruno Haible  <bruno@clisp.org>
49705
49706         Unicode character classification functions.
49707         * lib/unictype.h: New file.
49708         * modules/unictype/base: New file.
49709         * modules/unictype/category-L: New file.
49710         * modules/unictype/category-Lu: New file.
49711         * modules/unictype/category-Ll: New file.
49712         * modules/unictype/category-Lt: New file.
49713         * modules/unictype/category-Lm: New file.
49714         * modules/unictype/category-Lo: New file.
49715         * modules/unictype/category-M: New file.
49716         * modules/unictype/category-Mn: New file.
49717         * modules/unictype/category-Mc: New file.
49718         * modules/unictype/category-Me: New file.
49719         * modules/unictype/category-N: New file.
49720         * modules/unictype/category-Nd: New file.
49721         * modules/unictype/category-Nl: New file.
49722         * modules/unictype/category-No: New file.
49723         * modules/unictype/category-P: New file.
49724         * modules/unictype/category-Pc: New file.
49725         * modules/unictype/category-Pd: New file.
49726         * modules/unictype/category-Ps: New file.
49727         * modules/unictype/category-Pe: New file.
49728         * modules/unictype/category-Pi: New file.
49729         * modules/unictype/category-Pf: New file.
49730         * modules/unictype/category-Po: New file.
49731         * modules/unictype/category-S: New file.
49732         * modules/unictype/category-Sm: New file.
49733         * modules/unictype/category-Sc: New file.
49734         * modules/unictype/category-Sk: New file.
49735         * modules/unictype/category-So: New file.
49736         * modules/unictype/category-Z: New file.
49737         * modules/unictype/category-Zs: New file.
49738         * modules/unictype/category-Zl: New file.
49739         * modules/unictype/category-Zp: New file.
49740         * modules/unictype/category-C: New file.
49741         * modules/unictype/category-Cc: New file.
49742         * modules/unictype/category-Cf: New file.
49743         * modules/unictype/category-Cs: New file.
49744         * modules/unictype/category-Co: New file.
49745         * modules/unictype/category-Cn: New file.
49746         * modules/unictype/category-or: New file.
49747         * modules/unictype/category-of: New file.
49748         * modules/unictype/category-test: New file.
49749         * modules/unictype/category-test-withtable: New file.
49750         * modules/unictype/category-byname: New file.
49751         * modules/unictype/category-none: New file.
49752         * modules/unictype/category-and: New file.
49753         * modules/unictype/category-and-not: New file.
49754         * modules/unictype/category-name: New file.
49755         * modules/unictype/combining-class: New file.
49756         * modules/unictype/category-all: New file.
49757         * modules/unictype/bidicategory-all: New file.
49758         * modules/unictype/bidicategory-byname: New file.
49759         * modules/unictype/bidicategory-name: New file.
49760         * modules/unictype/bidicategory-of: New file.
49761         * modules/unictype/bidicategory-test: New file.
49762         * modules/unictype/decimal-digit: New file.
49763         * modules/unictype/digit: New file.
49764         * modules/unictype/numeric: New file.
49765         * modules/unictype/mirror: New file.
49766         * modules/unictype/property-white-space: New file.
49767         * modules/unictype/property-alphabetic: New file.
49768         * modules/unictype/property-other-alphabetic: New file.
49769         * modules/unictype/property-not-a-character: New file.
49770         * modules/unictype/property-default-ignorable-code-point: New file.
49771         * modules/unictype/property-other-default-ignorable-code-point: New
49772         file.
49773         * modules/unictype/property-deprecated: New file.
49774         * modules/unictype/property-logical-order-exception: New file.
49775         * modules/unictype/property-variation-selector: New file.
49776         * modules/unictype/property-private-use: New file.
49777         * modules/unictype/property-unassigned-code-value: New file.
49778         * modules/unictype/property-uppercase: New file.
49779         * modules/unictype/property-other-uppercase: New file.
49780         * modules/unictype/property-lowercase: New file.
49781         * modules/unictype/property-other-lowercase: New file.
49782         * modules/unictype/property-titlecase: New file.
49783         * modules/unictype/property-soft-dotted: New file.
49784         * modules/unictype/property-id-start: New file.
49785         * modules/unictype/property-other-id-start: New file.
49786         * modules/unictype/property-id-continue: New file.
49787         * modules/unictype/property-other-id-continue: New file.
49788         * modules/unictype/property-xid-start: New file.
49789         * modules/unictype/property-xid-continue: New file.
49790         * modules/unictype/property-pattern-white-space: New file.
49791         * modules/unictype/property-pattern-syntax: New file.
49792         * modules/unictype/property-join-control: New file.
49793         * modules/unictype/property-grapheme-base: New file.
49794         * modules/unictype/property-grapheme-extend: New file.
49795         * modules/unictype/property-other-grapheme-extend: New file.
49796         * modules/unictype/property-grapheme-link: New file.
49797         * modules/unictype/property-bidi-control: New file.
49798         * modules/unictype/property-bidi-left-to-right: New file.
49799         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
49800         * modules/unictype/property-bidi-arabic-right-to-left: New file.
49801         * modules/unictype/property-bidi-european-digit: New file.
49802         * modules/unictype/property-bidi-eur-num-separator: New file.
49803         * modules/unictype/property-bidi-eur-num-terminator: New file.
49804         * modules/unictype/property-bidi-arabic-digit: New file.
49805         * modules/unictype/property-bidi-common-separator: New file.
49806         * modules/unictype/property-bidi-block-separator: New file.
49807         * modules/unictype/property-bidi-segment-separator: New file.
49808         * modules/unictype/property-bidi-whitespace: New file.
49809         * modules/unictype/property-bidi-non-spacing-mark: New file.
49810         * modules/unictype/property-bidi-boundary-neutral: New file.
49811         * modules/unictype/property-bidi-pdf: New file.
49812         * modules/unictype/property-bidi-embedding-or-override: New file.
49813         * modules/unictype/property-bidi-other-neutral: New file.
49814         * modules/unictype/property-hex-digit: New file.
49815         * modules/unictype/property-ascii-hex-digit: New file.
49816         * modules/unictype/property-ideographic: New file.
49817         * modules/unictype/property-unified-ideograph: New file.
49818         * modules/unictype/property-radical: New file.
49819         * modules/unictype/property-ids-binary-operator: New file.
49820         * modules/unictype/property-ids-trinary-operator: New file.
49821         * modules/unictype/property-zero-width: New file.
49822         * modules/unictype/property-space: New file.
49823         * modules/unictype/property-non-break: New file.
49824         * modules/unictype/property-iso-control: New file.
49825         * modules/unictype/property-format-control: New file.
49826         * modules/unictype/property-dash: New file.
49827         * modules/unictype/property-hyphen: New file.
49828         * modules/unictype/property-punctuation: New file.
49829         * modules/unictype/property-line-separator: New file.
49830         * modules/unictype/property-paragraph-separator: New file.
49831         * modules/unictype/property-quotation-mark: New file.
49832         * modules/unictype/property-sentence-terminal: New file.
49833         * modules/unictype/property-terminal-punctuation: New file.
49834         * modules/unictype/property-currency-symbol: New file.
49835         * modules/unictype/property-math: New file.
49836         * modules/unictype/property-other-math: New file.
49837         * modules/unictype/property-paired-punctuation: New file.
49838         * modules/unictype/property-left-of-pair: New file.
49839         * modules/unictype/property-combining: New file.
49840         * modules/unictype/property-composite: New file.
49841         * modules/unictype/property-decimal-digit: New file.
49842         * modules/unictype/property-numeric: New file.
49843         * modules/unictype/property-diacritic: New file.
49844         * modules/unictype/property-extender: New file.
49845         * modules/unictype/property-ignorable-control: New file.
49846         * modules/unictype/property-test: New file.
49847         * modules/unictype/property-byname: New file.
49848         * modules/unictype/property-all: New file.
49849         * modules/unictype/scripts: New file.
49850         * modules/unictype/scripts-all: New file.
49851         * modules/unictype/block-of: New file.
49852         * modules/unictype/block-test: New file.
49853         * modules/unictype/block-list: New file.
49854         * modules/unictype/block-all: New file.
49855         * modules/unictype/syntax-c-whitespace: New file.
49856         * modules/unictype/syntax-java-whitespace: New file.
49857         * modules/unictype/syntax-c-ident: New file.
49858         * modules/unictype/syntax-java-ident: New file.
49859         * modules/unictype/ctype-alnum: New file.
49860         * modules/unictype/ctype-alpha: New file.
49861         * modules/unictype/ctype-cntrl: New file.
49862         * modules/unictype/ctype-digit: New file.
49863         * modules/unictype/ctype-graph: New file.
49864         * modules/unictype/ctype-lower: New file.
49865         * modules/unictype/ctype-print: New file.
49866         * modules/unictype/ctype-punct: New file.
49867         * modules/unictype/ctype-space: New file.
49868         * modules/unictype/ctype-upper: New file.
49869         * modules/unictype/ctype-xdigit: New file.
49870         * modules/unictype/ctype-blank: New file.
49871         * lib/unictype/bidi_byname.c: New file.
49872         * lib/unictype/bidi_name.c: New file.
49873         * lib/unictype/bidi_of.c: New file.
49874         * lib/unictype/bidi_test.c: New file.
49875         * lib/unictype/bitmap.h: New file.
49876         * lib/unictype/block_test.c: New file.
49877         * lib/unictype/blocks.c: New file.
49878         * lib/unictype/categ_C.c: New file.
49879         * lib/unictype/categ_Cc.c: New file.
49880         * lib/unictype/categ_Cf.c: New file.
49881         * lib/unictype/categ_Cn.c: New file.
49882         * lib/unictype/categ_Co.c: New file.
49883         * lib/unictype/categ_Cs.c: New file.
49884         * lib/unictype/categ_L.c: New file.
49885         * lib/unictype/categ_Ll.c: New file.
49886         * lib/unictype/categ_Lm.c: New file.
49887         * lib/unictype/categ_Lo.c: New file.
49888         * lib/unictype/categ_Lt.c: New file.
49889         * lib/unictype/categ_Lu.c: New file.
49890         * lib/unictype/categ_M.c: New file.
49891         * lib/unictype/categ_Mc.c: New file.
49892         * lib/unictype/categ_Me.c: New file.
49893         * lib/unictype/categ_Mn.c: New file.
49894         * lib/unictype/categ_N.c: New file.
49895         * lib/unictype/categ_Nd.c: New file.
49896         * lib/unictype/categ_Nl.c: New file.
49897         * lib/unictype/categ_No.c: New file.
49898         * lib/unictype/categ_P.c: New file.
49899         * lib/unictype/categ_Pc.c: New file.
49900         * lib/unictype/categ_Pd.c: New file.
49901         * lib/unictype/categ_Pe.c: New file.
49902         * lib/unictype/categ_Pf.c: New file.
49903         * lib/unictype/categ_Pi.c: New file.
49904         * lib/unictype/categ_Po.c: New file.
49905         * lib/unictype/categ_Ps.c: New file.
49906         * lib/unictype/categ_S.c: New file.
49907         * lib/unictype/categ_Sc.c: New file.
49908         * lib/unictype/categ_Sk.c: New file.
49909         * lib/unictype/categ_Sm.c: New file.
49910         * lib/unictype/categ_So.c: New file.
49911         * lib/unictype/categ_Z.c: New file.
49912         * lib/unictype/categ_Zl.c: New file.
49913         * lib/unictype/categ_Zp.c: New file.
49914         * lib/unictype/categ_Zs.c: New file.
49915         * lib/unictype/categ_and.c: New file.
49916         * lib/unictype/categ_and_not.c: New file.
49917         * lib/unictype/categ_byname.c: New file.
49918         * lib/unictype/categ_name.c: New file.
49919         * lib/unictype/categ_none.c: New file.
49920         * lib/unictype/categ_of.c: New file.
49921         * lib/unictype/categ_or.c: New file.
49922         * lib/unictype/categ_test.c: New file.
49923         * lib/unictype/combining.c: New file.
49924         * lib/unictype/ctype_alnum.c: New file.
49925         * lib/unictype/ctype_alpha.c: New file.
49926         * lib/unictype/ctype_blank.c: New file.
49927         * lib/unictype/ctype_cntrl.c: New file.
49928         * lib/unictype/ctype_digit.c: New file.
49929         * lib/unictype/ctype_graph.c: New file.
49930         * lib/unictype/ctype_lower.c: New file.
49931         * lib/unictype/ctype_print.c: New file.
49932         * lib/unictype/ctype_punct.c: New file.
49933         * lib/unictype/ctype_space.c: New file.
49934         * lib/unictype/ctype_upper.c: New file.
49935         * lib/unictype/ctype_xdigit.c: New file.
49936         * lib/unictype/decdigit.c: New file.
49937         * lib/unictype/digit.c: New file.
49938         * lib/unictype/identsyntaxmap.h: New file.
49939         * lib/unictype/mirror.c: New file.
49940         * lib/unictype/numeric.c: New file.
49941         * lib/unictype/pr_alphabetic.c: New file.
49942         * lib/unictype/pr_ascii_hex_digit.c: New file.
49943         * lib/unictype/pr_bidi_arabic_digit.c: New file.
49944         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
49945         * lib/unictype/pr_bidi_block_separator.c: New file.
49946         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
49947         * lib/unictype/pr_bidi_common_separator.c: New file.
49948         * lib/unictype/pr_bidi_control.c: New file.
49949         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
49950         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
49951         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
49952         * lib/unictype/pr_bidi_european_digit.c: New file.
49953         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
49954         * lib/unictype/pr_bidi_left_to_right.c: New file.
49955         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
49956         * lib/unictype/pr_bidi_other_neutral.c: New file.
49957         * lib/unictype/pr_bidi_pdf.c: New file.
49958         * lib/unictype/pr_bidi_segment_separator.c: New file.
49959         * lib/unictype/pr_bidi_whitespace.c: New file.
49960         * lib/unictype/pr_byname.c: New file.
49961         * lib/unictype/pr_byname.gperf: New file.
49962         * lib/unictype/pr_combining.c: New file.
49963         * lib/unictype/pr_composite.c: New file.
49964         * lib/unictype/pr_currency_symbol.c: New file.
49965         * lib/unictype/pr_dash.c: New file.
49966         * lib/unictype/pr_decimal_digit.c: New file.
49967         * lib/unictype/pr_default_ignorable_code_point.c: New file.
49968         * lib/unictype/pr_deprecated.c: New file.
49969         * lib/unictype/pr_diacritic.c: New file.
49970         * lib/unictype/pr_extender.c: New file.
49971         * lib/unictype/pr_format_control.c: New file.
49972         * lib/unictype/pr_grapheme_base.c: New file.
49973         * lib/unictype/pr_grapheme_extend.c: New file.
49974         * lib/unictype/pr_grapheme_link.c: New file.
49975         * lib/unictype/pr_hex_digit.c: New file.
49976         * lib/unictype/pr_hyphen.c: New file.
49977         * lib/unictype/pr_id_continue.c: New file.
49978         * lib/unictype/pr_id_start.c: New file.
49979         * lib/unictype/pr_ideographic.c: New file.
49980         * lib/unictype/pr_ids_binary_operator.c: New file.
49981         * lib/unictype/pr_ids_trinary_operator.c: New file.
49982         * lib/unictype/pr_ignorable_control.c: New file.
49983         * lib/unictype/pr_iso_control.c: New file.
49984         * lib/unictype/pr_join_control.c: New file.
49985         * lib/unictype/pr_left_of_pair.c: New file.
49986         * lib/unictype/pr_line_separator.c: New file.
49987         * lib/unictype/pr_logical_order_exception.c: New file.
49988         * lib/unictype/pr_lowercase.c: New file.
49989         * lib/unictype/pr_math.c: New file.
49990         * lib/unictype/pr_non_break.c: New file.
49991         * lib/unictype/pr_not_a_character.c: New file.
49992         * lib/unictype/pr_numeric.c: New file.
49993         * lib/unictype/pr_other_alphabetic.c: New file.
49994         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
49995         * lib/unictype/pr_other_grapheme_extend.c: New file.
49996         * lib/unictype/pr_other_id_continue.c: New file.
49997         * lib/unictype/pr_other_id_start.c: New file.
49998         * lib/unictype/pr_other_lowercase.c: New file.
49999         * lib/unictype/pr_other_math.c: New file.
50000         * lib/unictype/pr_other_uppercase.c: New file.
50001         * lib/unictype/pr_paired_punctuation.c: New file.
50002         * lib/unictype/pr_paragraph_separator.c: New file.
50003         * lib/unictype/pr_pattern_syntax.c: New file.
50004         * lib/unictype/pr_pattern_white_space.c: New file.
50005         * lib/unictype/pr_private_use.c: New file.
50006         * lib/unictype/pr_punctuation.c: New file.
50007         * lib/unictype/pr_quotation_mark.c: New file.
50008         * lib/unictype/pr_radical.c: New file.
50009         * lib/unictype/pr_sentence_terminal.c: New file.
50010         * lib/unictype/pr_soft_dotted.c: New file.
50011         * lib/unictype/pr_space.c: New file.
50012         * lib/unictype/pr_terminal_punctuation.c: New file.
50013         * lib/unictype/pr_test.c: New file.
50014         * lib/unictype/pr_titlecase.c: New file.
50015         * lib/unictype/pr_unassigned_code_value.c: New file.
50016         * lib/unictype/pr_unified_ideograph.c: New file.
50017         * lib/unictype/pr_uppercase.c: New file.
50018         * lib/unictype/pr_variation_selector.c: New file.
50019         * lib/unictype/pr_white_space.c: New file.
50020         * lib/unictype/pr_xid_continue.c: New file.
50021         * lib/unictype/pr_xid_start.c: New file.
50022         * lib/unictype/pr_zero_width.c: New file.
50023         * lib/unictype/scripts.c: New file.
50024         * lib/unictype/sy_c_ident.c: New file.
50025         * lib/unictype/sy_c_whitespace.c: New file.
50026         * lib/unictype/sy_java_ident.c: New file.
50027         * lib/unictype/sy_java_whitespace.c: New file.
50028
50029         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
50030         Unicode 5.0.0.
50031         * lib/unictype/blocks.h: Likewise.
50032         * lib/unictype/categ_C.h: Likewise.
50033         * lib/unictype/categ_Cc.h: Likewise.
50034         * lib/unictype/categ_Cf.h: Likewise.
50035         * lib/unictype/categ_Cn.h: Likewise.
50036         * lib/unictype/categ_Co.h: Likewise.
50037         * lib/unictype/categ_Cs.h: Likewise.
50038         * lib/unictype/categ_L.h: Likewise.
50039         * lib/unictype/categ_Ll.h: Likewise.
50040         * lib/unictype/categ_Lm.h: Likewise.
50041         * lib/unictype/categ_Lo.h: Likewise.
50042         * lib/unictype/categ_Lt.h: Likewise.
50043         * lib/unictype/categ_Lu.h: Likewise.
50044         * lib/unictype/categ_M.h: Likewise.
50045         * lib/unictype/categ_Mc.h: Likewise.
50046         * lib/unictype/categ_Me.h: Likewise.
50047         * lib/unictype/categ_Mn.h: Likewise.
50048         * lib/unictype/categ_N.h: Likewise.
50049         * lib/unictype/categ_Nd.h: Likewise.
50050         * lib/unictype/categ_Nl.h: Likewise.
50051         * lib/unictype/categ_No.h: Likewise.
50052         * lib/unictype/categ_P.h: Likewise.
50053         * lib/unictype/categ_Pc.h: Likewise.
50054         * lib/unictype/categ_Pd.h: Likewise.
50055         * lib/unictype/categ_Pe.h: Likewise.
50056         * lib/unictype/categ_Pf.h: Likewise.
50057         * lib/unictype/categ_Pi.h: Likewise.
50058         * lib/unictype/categ_Po.h: Likewise.
50059         * lib/unictype/categ_Ps.h: Likewise.
50060         * lib/unictype/categ_S.h: Likewise.
50061         * lib/unictype/categ_Sc.h: Likewise.
50062         * lib/unictype/categ_Sk.h: Likewise.
50063         * lib/unictype/categ_Sm.h: Likewise.
50064         * lib/unictype/categ_So.h: Likewise.
50065         * lib/unictype/categ_Z.h: Likewise.
50066         * lib/unictype/categ_Zl.h: Likewise.
50067         * lib/unictype/categ_Zp.h: Likewise.
50068         * lib/unictype/categ_Zs.h: Likewise.
50069         * lib/unictype/categ_of.h: Likewise.
50070         * lib/unictype/combining.h: Likewise.
50071         * lib/unictype/ctype_alnum.h: Likewise.
50072         * lib/unictype/ctype_alpha.h: Likewise.
50073         * lib/unictype/ctype_blank.h: Likewise.
50074         * lib/unictype/ctype_cntrl.h: Likewise.
50075         * lib/unictype/ctype_digit.h: Likewise.
50076         * lib/unictype/ctype_graph.h: Likewise.
50077         * lib/unictype/ctype_lower.h: Likewise.
50078         * lib/unictype/ctype_print.h: Likewise.
50079         * lib/unictype/ctype_punct.h: Likewise.
50080         * lib/unictype/ctype_space.h: Likewise.
50081         * lib/unictype/ctype_upper.h: Likewise.
50082         * lib/unictype/ctype_xdigit.h: Likewise.
50083         * lib/unictype/decdigit.h: Likewise.
50084         * lib/unictype/digit.h: Likewise.
50085         * lib/unictype/mirror.h: Likewise.
50086         * lib/unictype/numeric.h: Likewise.
50087         * lib/unictype/pr_alphabetic.h: Likewise.
50088         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50089         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50090         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50091         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50092         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50093         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50094         * lib/unictype/pr_bidi_control.h: Likewise.
50095         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50096         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50097         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50098         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50099         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50100         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50101         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50102         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50103         * lib/unictype/pr_bidi_pdf.h: Likewise.
50104         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50105         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50106         * lib/unictype/pr_combining.h: Likewise.
50107         * lib/unictype/pr_composite.h: Likewise.
50108         * lib/unictype/pr_currency_symbol.h: Likewise.
50109         * lib/unictype/pr_dash.h: Likewise.
50110         * lib/unictype/pr_decimal_digit.h: Likewise.
50111         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50112         * lib/unictype/pr_deprecated.h: Likewise.
50113         * lib/unictype/pr_diacritic.h: Likewise.
50114         * lib/unictype/pr_extender.h: Likewise.
50115         * lib/unictype/pr_format_control.h: Likewise.
50116         * lib/unictype/pr_grapheme_base.h: Likewise.
50117         * lib/unictype/pr_grapheme_extend.h: Likewise.
50118         * lib/unictype/pr_grapheme_link.h: Likewise.
50119         * lib/unictype/pr_hex_digit.h: Likewise.
50120         * lib/unictype/pr_hyphen.h: Likewise.
50121         * lib/unictype/pr_id_continue.h: Likewise.
50122         * lib/unictype/pr_id_start.h: Likewise.
50123         * lib/unictype/pr_ideographic.h: Likewise.
50124         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50125         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50126         * lib/unictype/pr_ignorable_control.h: Likewise.
50127         * lib/unictype/pr_iso_control.h: Likewise.
50128         * lib/unictype/pr_join_control.h: Likewise.
50129         * lib/unictype/pr_left_of_pair.h: Likewise.
50130         * lib/unictype/pr_line_separator.h: Likewise.
50131         * lib/unictype/pr_logical_order_exception.h: Likewise.
50132         * lib/unictype/pr_lowercase.h: Likewise.
50133         * lib/unictype/pr_math.h: Likewise.
50134         * lib/unictype/pr_non_break.h: Likewise.
50135         * lib/unictype/pr_not_a_character.h: Likewise.
50136         * lib/unictype/pr_numeric.h: Likewise.
50137         * lib/unictype/pr_other_alphabetic.h: Likewise.
50138         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50139         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50140         * lib/unictype/pr_other_id_continue.h: Likewise.
50141         * lib/unictype/pr_other_id_start.h: Likewise.
50142         * lib/unictype/pr_other_lowercase.h: Likewise.
50143         * lib/unictype/pr_other_math.h: Likewise.
50144         * lib/unictype/pr_other_uppercase.h: Likewise.
50145         * lib/unictype/pr_paired_punctuation.h: Likewise.
50146         * lib/unictype/pr_paragraph_separator.h: Likewise.
50147         * lib/unictype/pr_pattern_syntax.h: Likewise.
50148         * lib/unictype/pr_pattern_white_space.h: Likewise.
50149         * lib/unictype/pr_private_use.h: Likewise.
50150         * lib/unictype/pr_punctuation.h: Likewise.
50151         * lib/unictype/pr_quotation_mark.h: Likewise.
50152         * lib/unictype/pr_radical.h: Likewise.
50153         * lib/unictype/pr_sentence_terminal.h: Likewise.
50154         * lib/unictype/pr_soft_dotted.h: Likewise.
50155         * lib/unictype/pr_space.h: Likewise.
50156         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50157         * lib/unictype/pr_titlecase.h: Likewise.
50158         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50159         * lib/unictype/pr_unified_ideograph.h: Likewise.
50160         * lib/unictype/pr_uppercase.h: Likewise.
50161         * lib/unictype/pr_variation_selector.h: Likewise.
50162         * lib/unictype/pr_white_space.h: Likewise.
50163         * lib/unictype/pr_xid_continue.h: Likewise.
50164         * lib/unictype/pr_xid_start.h: Likewise.
50165         * lib/unictype/pr_zero_width.h: Likewise.
50166         * lib/unictype/scripts.h: Likewise.
50167         * lib/unictype/scripts_byname.gperf: Likewise.
50168         * lib/unictype/sy_c_ident.h: Likewise.
50169         * lib/unictype/sy_c_whitespace.h: Likewise.
50170         * lib/unictype/sy_java_ident.h: Likewise.
50171         * lib/unictype/sy_java_whitespace.h: Likewise.
50172
50173         * lib/unictype/Makefile: New file.
50174         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
50175         glibc.
50176         * lib/unictype/3level.h: New file, copied from glibc.
50177         * lib/unictype/3levelbit.h: New file.
50178
50179 2007-11-11  Bruno Haible  <bruno@clisp.org>
50180
50181         * modules/gperf: New file.
50182         * modules/iconv_open (Depends-on): Add it.
50183         (Makefile.am): Remove the GPERF definition.
50184
50185 2007-11-11  Bruno Haible  <bruno@clisp.org>
50186
50187         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
50188         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
50189
50190 2007-11-11  Bruno Haible  <bruno@clisp.org>
50191
50192         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
50193         (usage): Remove function.
50194
50195 2007-11-11  Bruno Haible  <bruno@clisp.org>
50196
50197         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
50198         gl_FUNC_CEILF_LIBS.
50199         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
50200         gl_FUNC_CEIL_LIBS.
50201         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
50202         gl_FUNC_CEILL_LIBS.
50203         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
50204         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
50205         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
50206
50207 2007-11-11  Bruno Haible  <bruno@clisp.org>
50208
50209         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
50210         roundf were declared but do not exist on functions.
50211         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
50212         roundl were declared but do not exist on functions.
50213         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
50214         HAVE_FLOORL_AND_CEILL, respectively.
50215         Needed for Sun C on Solaris 10.
50216
50217 2007-11-11  Bruno Haible  <bruno@clisp.org>
50218
50219         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
50220         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
50221         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
50222         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
50223         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
50224         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
50225         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
50226         HAVE_DECL_ROUNDF.
50227         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
50228         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
50229         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
50230         of HAVE_DECL_ROUND*.
50231         * modules/math (Makefile.am): Update.
50232
50233 2007-11-10  Bruno Haible  <bruno@clisp.org>
50234
50235         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
50236         ptrdiff_t as m4/intl.m4.
50237
50238 2007-11-10  Jim Meyering  <meyering@redhat.com>
50239
50240         Avoid link failure for the argmatch test.
50241         * tests/test-argmatch.c (usage): Define function to avoid a link
50242         failure: argmatch_die requires a usage function.
50243
50244 2007-11-09  Bruno Haible  <bruno@clisp.org>
50245
50246         * doc/functions/snprintf.texi: Mention BeOS deficiency.
50247         * doc/functions/vsnprintf.texi: Likewise.
50248         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
50249         with a size argument < 2.
50250
50251 2007-11-09  Bruno Haible  <bruno@clisp.org>
50252
50253         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
50254         buffer. Fixes an inefficiency introduced on 2007-11-03.
50255
50256 2007-11-09  Bruno Haible  <bruno@clisp.org>
50257
50258         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
50259         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
50260
50261 2007-11-08  Jim Meyering  <meyering@redhat.com>
50262
50263         Change cache variable name prefix "jm_" to "gl_" everywhere.
50264         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
50265         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
50266         * m4/uptime.m4: s/gl_/jm_/
50267
50268 2007-11-07  Bruno Haible  <bruno@clisp.org>
50269
50270         Update to GNU gettext 0.17.
50271         * m4/intl.m4: Update to GNU gettext 0.17.
50272         * m4/po.m4: Likewise.
50273         * modules/gettext (Files): Remove m4/ulonglong.m4.
50274         (configure.ac): Require gettext infrastructure from version 0.17.
50275
50276 2007-11-06  Bruno Haible  <bruno@clisp.org>
50277
50278         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
50279         symbolic values are not defined in a public header.
50280         * lib/freadable.c (freadable) [QNX]: Likewise.
50281         * lib/freadahead.c (freadahead) [QNX]: Likewise.
50282         * lib/freading.c (freading) [QNX]: Likewise.
50283         * lib/fseterr.c (fseterr) [QNX]: Likewise.
50284         * lib/fwritable.c (fwritable) [QNX]: Likewise.
50285         * lib/fwriting.c (fwriting) [QNX]: Likewise.
50286         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
50287         Reported by Alain Magloire.
50288
50289         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
50290
50291 2007-11-05  Bruno Haible  <bruno@clisp.org>
50292
50293         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
50294         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
50295         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
50296         Reported by Eric Blake.
50297
50298 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50299             Bruno Haible  <bruno@clisp.org>
50300
50301         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
50302         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
50303         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
50304         (malloc): Undefine also before including <stdlib.h>.
50305         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
50306         Needed on OSF/1 4.0.
50307
50308 2007-11-05  Jim Meyering  <meyering@redhat.com>
50309
50310         git-version-gen: sync from coreutils.
50311         * build-aux/git-version-gen: Add comments.
50312         Change the first '-' to '.' in the snapshot version string,
50313         e.g., 6.9-377-08144 -> 6.9.377-08144
50314         Remove first parameter.
50315         Don't declare a version "-dirty" merely because a time
50316         stamp has changed.
50317
50318 2007-11-04  Bruno Haible  <bruno@clisp.org>
50319
50320         * lib/lock.h: Protect all macro definitions containing an 'if'
50321         statement through a "do { ... } while (0)".
50322         * lib/tls.h: Likewise.
50323
50324 2007-11-04  Bruno Haible  <bruno@clisp.org>
50325
50326         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
50327
50328 2007-11-04  Bruno Haible  <bruno@clisp.org>
50329
50330         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
50331         * modules/fprintf-posix (Depends-on): Add nocrash.
50332         * modules/snprintf-posix (Depends-on): Likewise.
50333         * modules/sprintf-posix (Depends-on): Likewise.
50334         * modules/vasnprintf-posix (Depends-on): Likewise.
50335         * modules/vasprintf-posix (Depends-on): Likewise.
50336         * modules/vfprintf-posix (Depends-on): Likewise.
50337         * modules/vsnprintf-posix (Depends-on): Likewise.
50338         * modules/vsprintf-posix (Depends-on): Likewise.
50339         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50340         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50341         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50342         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50343         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50344         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50345         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50346
50347 2007-11-04  Bruno Haible  <bruno@clisp.org>
50348
50349         * modules/nocrash: New file.
50350         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
50351         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
50352
50353 2007-11-04  Bruno Haible  <bruno@clisp.org>
50354
50355         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
50356         precision handling.
50357         * tests/test-vasprintf-posix.c (test_function): Likewise.
50358         * tests/test-snprintf-posix.h (test_function): Likewise.
50359         * tests/test-sprintf-posix.h (test_function): Likewise.
50360
50361         Fix *printf behaviour for large precisions on mingw and BeOS.
50362         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
50363         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
50364         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
50365         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50366         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50367         gl_PRINTF_PRECISION and test its result. Invoke
50368         gl_PREREQ_VASNPRINTF_PRECISION.
50369         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50370         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50371         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50372         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50373         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50374         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50375         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50376         * doc/functions/fprintf.texi: Update.
50377         * doc/functions/printf.texi: Update.
50378         * doc/functions/snprintf.texi: Update.
50379         * doc/functions/sprintf.texi: Update.
50380         * doc/functions/vfprintf.texi: Update.
50381         * doc/functions/vprintf.texi: Update.
50382         * doc/functions/vsnprintf.texi: Update.
50383         * doc/functions/vsprintf.texi: Update.
50384
50385 2007-11-04  Bruno Haible  <bruno@clisp.org>
50386
50387         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
50388
50389 2007-11-04  Bruno Haible  <bruno@clisp.org>
50390
50391         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
50392         Reported by Sylvain Beucler <beuc@gnu.org>.
50393
50394 2007-11-03  Bruno Haible  <bruno@clisp.org>
50395
50396         * tests/test-fprintf-posix2.sh: New file.
50397         * tests/test-fprintf-posix2.c: New file.
50398         * modules/fprintf-posix-tests (Files): Add them.
50399         (TESTS): Add test-fprintf-posix2.sh.
50400         (configure.ac): Check for getrlimit and setrlimit.
50401         (check_PROGRAMS): Add test-fprintf-posix2.
50402
50403         * tests/test-printf-posix2.sh: New file.
50404         * tests/test-printf-posix2.c: New file.
50405         * modules/printf-posix-tests (Files): Add them.
50406         (TESTS): Add test-printf-posix2.sh.
50407         (configure.ac): Check for getrlimit and setrlimit.
50408         (check_PROGRAMS): Add test-printf-posix2.
50409
50410         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
50411         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
50412         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
50413         (decode_double): New function, copied from decode_long_double.
50414         (scale10_round_decimal_decoded): New function, extracted from
50415         scale10_round_decimal_long_double.
50416         (scale10_round_decimal_long_double): Use it.
50417         (scale10_round_decimal_double): New function.
50418         (floorlog10): New function.
50419         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
50420         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
50421         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50422         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50423         gl_PRINTF_ENOMEM and test its result. Invoke
50424         gl_PREREQ_VASNPRINTF_ENOMEM.
50425         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50426         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50427         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50428         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50429         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50430         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50431         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50432         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
50433         * modules/snprintf-posix (Depends-on): Likewise.
50434         * modules/sprintf-posix (Depends-on): Likewise.
50435         * modules/vasnprintf-posix (Depends-on): Likewise.
50436         * modules/vasprintf-posix (Depends-on): Likewise.
50437         * modules/vfprintf-posix (Depends-on): Likewise.
50438         * modules/vsnprintf-posix (Depends-on): Likewise.
50439         * modules/vsprintf-posix (Depends-on): Likewise.
50440         * doc/functions/fprintf.texi: Update.
50441         * doc/functions/printf.texi: Update.
50442         * doc/functions/snprintf.texi: Update.
50443         * doc/functions/sprintf.texi: Update.
50444         * doc/functions/vfprintf.texi: Update.
50445         * doc/functions/vprintf.texi: Update.
50446         * doc/functions/vsnprintf.texi: Update.
50447         * doc/functions/vsprintf.texi: Update.
50448
50449 2007-11-03  Bruno Haible  <bruno@clisp.org>
50450
50451         * modules/frexp-nolibm-tests: New file.
50452
50453         * modules/frexp-nolibm: New file.
50454         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
50455
50456 2007-11-03  Bruno Haible  <bruno@clisp.org>
50457
50458         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
50459         value is C99 compliant.
50460         Needed for OSF/1 5.1.
50461
50462 2007-11-03  Bruno Haible  <bruno@clisp.org>
50463
50464         Fix out-of-memory handling of vasnprintf.
50465         * lib/printf-parse.c: Include <errno.h>.
50466         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
50467         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
50468         is already set.
50469
50470 2007-11-02  Eric Blake  <ebb9@byu.net>
50471
50472         Fix tests on cygwin.
50473         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
50474
50475 2007-11-01  Bruno Haible  <bruno@clisp.org>
50476
50477         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
50478         warning.
50479         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
50480         needed for POSIX compatibility.
50481
50482 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50483
50484         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
50485         for compatibility with GNU.
50486
50487 2007-11-01  Bruno Haible  <bruno@clisp.org>
50488
50489         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
50490         (putenv): Renamed from rpl_putenv. Change argument type from
50491         'const char *' to 'char *'.
50492         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
50493         of defining putenv in config.h, just set REPLACE_PUTENV.
50494         * modules/putenv (Depends-on): Add stdlib.
50495         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50496         (Include): Use <stdlib.h>.
50497         * lib/stdlib.in.h (putenv): New declaration.
50498         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
50499         REPLACE_PUTENV.
50500         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
50501         REPLACE_PUTENV.
50502         Needed for MacOS X 10.5.0.
50503         Reported by Peter O'Gorman <peter@pogma.com>.
50504
50505 2007-11-01  Jim Meyering  <meyering@redhat.com>
50506
50507         Treat an empty date string exactly like "0".
50508         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
50509         if the remaining date string (to be parsed) is empty, use "0".
50510         Reported by Mischa Molhoek and discussed in this thread:
50511         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
50512
50513 2007-10-31  Bruno Haible  <bruno@clisp.org>
50514
50515         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
50516         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
50517         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
50518         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
50519         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
50520         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
50521
50522 2007-10-31  Bruno Haible  <bruno@clisp.org>
50523
50524         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
50525         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
50526         (AC_TYPE_LONG_LONG_INT): Use it.
50527         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
50528         it as well.
50529         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
50530         to m4/longlong.m4.
50531         * modules/stdint (Files): Remove m4/ulonglong.m4.
50532         * modules/strtoull (Files): Use m4/longlong.m4 instead of
50533         m4/ulonglong.m4.
50534         * modules/strtoumax (Files): Likewise.
50535
50536 2007-10-30  Bruno Haible  <bruno@clisp.org>
50537
50538         * modules/xvasprintf-posix: New file.
50539         Suggested by Eric Blake.
50540
50541 2007-10-30  Bruno Haible  <bruno@clisp.org>
50542
50543         * modules/xprintf-posix-tests: New file.
50544         * tests/test-xprintf-posix.sh: New file.
50545         * tests/test-xprintf-posix.c: New file.
50546         * tests/test-xfprintf-posix.c: New file.
50547
50548         * modules/xprintf-posix: New file.
50549
50550 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50551
50552         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
50553         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
50554         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
50555
50556 2007-10-29  Bruno Haible  <bruno@clisp.org>
50557
50558         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
50559         contain the special marker '_cv_'.
50560         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50561         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50562         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50563         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
50564         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50565         Reported by Ralf Wildenhues.
50566
50567 2007-10-29  Bruno Haible  <bruno@clisp.org>
50568
50569         * gnulib-tool (func_import): When --lgpl is not specified, set
50570         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
50571         GPLv3.
50572         Reported by Simon Josefsson.
50573
50574 2007-10-28  Bruno Haible  <bruno@clisp.org>
50575
50576         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
50577         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
50578         HAVE_DECL_ISFINITE.
50579         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50580         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
50581         HAVE_DECL_ISFINITE.
50582
50583 2007-10-28  Bruno Haible  <bruno@clisp.org>
50584
50585         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
50586         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
50587
50588 2007-10-28  Bruno Haible  <bruno@clisp.org>
50589
50590         Fix link errors with Sun C 5.0 on Solaris 10.
50591         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
50592         function is declared but not present in the compiler's libm.
50593         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
50594         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
50595         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
50596         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
50597         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
50598         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
50599         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
50600         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50601         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
50602         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
50603         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
50604         HAVE_DECL_FLOORL.
50605
50606 2007-10-28  Bruno Haible  <bruno@clisp.org>
50607
50608         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
50609         gl_FUNC_FLOORL. Cache the result.
50610         (gl_FUNC_FLOORL): Use it.
50611         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
50612         gl_FUNC_CEILL. Cache the result.
50613         (gl_FUNC_CEILL): Use it.
50614
50615         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
50616         gl_FUNC_FLOOR. Cache the result.
50617         (gl_FUNC_FLOOR): Use it.
50618         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
50619         gl_FUNC_CEIL. Cache the result.
50620         (gl_FUNC_CEIL): Use it.
50621
50622         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
50623         gl_FUNC_FLOORF. Cache the result.
50624         (gl_FUNC_FLOORF): Use it.
50625         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
50626         gl_FUNC_CEILF. Cache the result.
50627         (gl_FUNC_CEILF): Use it.
50628
50629 2007-10-28  Bruno Haible  <bruno@clisp.org>
50630
50631         * gnulib-tool: Allow specifying the LGPL version number through
50632         --lgpl=2 or --lgpl=3.
50633         (func_usage): Document --lgpl with argument.
50634         Handle --lgpl=... arguments.
50635         (func_import): Recognize also gl_LGPL calls with an argument. When
50636         --lgpl=2 is used and the module's license is just LGPL, report an
50637         error. Set sed_transform_lib_file according to the lgpl variable. In
50638         the generated files, use --lgpl or gl_LGPL invocations with argument,
50639         if necessary.
50640         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
50641         an LGPv2+ license.
50642         * doc/gnulib-tool.texi (Modified imports): Update explanation of
50643         gl_LGPL macro.
50644
50645 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50646             Bruno Haible  <bruno@clisp.org>
50647
50648         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
50649         (u16_uctomb_aux): Likewise.
50650         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
50651         !HAVE_INLINE.
50652         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
50653
50654 2007-10-28  Bruno Haible  <bruno@clisp.org>
50655
50656         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
50657         Invoke AM_GETTEXT_OPTION if it exists.
50658         * modules/vasprintf: Likewise.
50659         * modules/verror: Likewise.
50660         * modules/xprintf: Likewise.
50661         * modules/xvasprintf: Likewise.
50662
50663 2007-10-27  Ben Pfaff  <blp@gnu.org>
50664
50665         * lib/math.in.h: Define isfinite macro and prototypes for
50666         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
50667         implementations.
50668         * m4/math_h.m4: New substitutions for isfinite module.
50669         * lib/isfinite.c: New file.
50670         * m4/isfinite.m4: New file.
50671         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
50672         * modules/isfinite: New file.
50673         * modules/isfinite-tests: New file.
50674         * tests/tests-isfinite.c: New file.
50675         * doc/functions/isfinite.texi: Mention isfinite module.
50676         * MODULES.html.sh: Mention new module.
50677
50678 2007-10-27  Ben Pfaff  <blp@gnu.org>
50679
50680         Ralf Wildenhues reported that Tru64 4.0D declares the round
50681         functions but does not have definitions.
50682         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
50683         cannot be found in any library, set the output variable to
50684         "missing" instead of "".
50685         * m4/round.m4: Also use our substitute if we cannot find round in
50686         any library, even if it is declared.
50687         * m4/roundf.m4: Likewise for roundf.
50688         * m4/roundl.m4: Likewise for roundl.
50689         * lib/math.in.h: Undefine roundf, round, roundl before defining
50690         their replacements, to allow for hypothetical systems where these
50691         may be defined as macros but not available in libraries.
50692
50693 2007-10-27  Bruno Haible  <bruno@clisp.org>
50694
50695         * doc/gnulib.texi: Invoke @firstparagraphindent.
50696         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
50697         changes in gnulib.
50698         (Source changes): New section.
50699
50700 2007-10-26  Bruno Haible  <bruno@clisp.org>
50701
50702         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
50703         borrowed from autoconf.
50704
50705 2007-10-26  Bruno Haible  <bruno@clisp.org>
50706
50707         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
50708         strerror returned the empty string. Needed on HP-UX 11.00.
50709
50710 2007-10-24  Micah Cowan  <micah@cowan.name>
50711
50712         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
50713         * build-aux/bootstrap: Remove support for now-unnecessary option,
50714         --cvs-user, and envvars CVS_USER, CVS_RSH.
50715
50716 2007-10-24  Jim Meyering  <meyering@redhat.com>
50717
50718         Avoid diagnostics from sha1sum when there is no cached checksum.
50719         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
50720         if the po.s1 file hasn't been created yet.
50721
50722         * build-aux/bootstrap: Sync from coreutils:
50723         2007-10-24  Jim Meyering  <meyering@redhat.com>
50724         Get gnulib from the git repository, not from an obsolete cvs one.
50725         * build-aux/bootstrap: Suggestion from Micah Cowan.
50726         2007-10-04  Jim Meyering  <jim@meyering.net>
50727         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
50728         (update_po_files): Work also when there are no .po files in po/.
50729
50730 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50731
50732         * README: Append ".git" to git and cg examples.
50733         Problem reported by Benoit Sigoure.
50734
50735 2007-10-23  Micah Cowan  <micah@cowan.name>
50736
50737         * users.txt: Add wget.
50738
50739 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50740
50741         Fix linking of some unistdio tests on FreeBSD.
50742         * modules/unistdio/u16-vsnprintf-tests
50743         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
50744         * modules/unistdio/u16-vsprintf-tests
50745         (test_u16_vsnprintf1_LDADD): Likewise.
50746         * modules/unistdio/u32-vsnprintf-tests
50747         (test_u32_vsnprintf1_LDADD): Likewise.
50748         * modules/unistdio/u32-vsprintf-tests
50749         (test_u32_vsprintf1_LDADD): Likewise.
50750         * modules/unistdio/u8-vsnprintf-tests
50751         (test_u8_vsnprintf1_LDADD): Likewise.
50752         * modules/unistdio/u8-vsprintf-tests
50753         (test_u8_vsprintf1_LDADD): Likewise.
50754         * modules/unistdio/ulc-vsnprintf-tests
50755         (test_ulc_vsnprintf1_LDADD): Likewise.
50756         * modules/unistdio/ulc-vsprintf-tests
50757         (test_ulc_vsprintf1_LDADD): Likewise.
50758
50759         Fix linking of some uniconv tests on FreeBSD.
50760         * modules/uniconv/u16-conv-from-enc-tests
50761         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
50762         * modules/uniconv/u16-conv-to-enc-tests
50763         (test_u16_conv_to_enc_LDADD): Likewise.
50764         * modules/uniconv/u16-strconv-from-enc-tests
50765         (test_u16_strconv_from_enc_LDADD): Likewise.
50766         * modules/uniconv/u16-strconv-to-enc-tests
50767         (test_u16_strconv_to_enc_LDADD): Likewise.
50768         * modules/uniconv/u32-conv-from-enc-tests
50769         (test_u32_conv_from_enc_LDADD): Likewise.
50770         * modules/uniconv/u32-conv-to-enc-tests
50771         (test_u32_conv_to_enc_LDADD): Likewise.
50772         * modules/uniconv/u32-strconv-from-enc-tests
50773         (test_u32_strconv_from_enc_LDADD): Likewise.
50774         * modules/uniconv/u32-strconv-to-enc-tests
50775         (test_u32_strconv_to_enc_LDADD): Likewise.
50776         * modules/uniconv/u8-conv-from-enc-tests
50777         (test_u8_conv_from_enc_LDADD): Likewise.
50778         * modules/uniconv/u8-conv-to-enc-tests
50779         (test_u8_conv_to_enc_LDADD): Likewise.
50780         * modules/uniconv/u8-strconv-from-enc-tests
50781         (test_u8_strconv_from_enc_LDADD): Likewise.
50782         * modules/uniconv/u8-strconv-to-enc-tests
50783         (test_u8_strconv_to_enc_LDADD): Likewise.
50784
50785 2007-10-22  Bruno Haible  <bruno@clisp.org>
50786
50787         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
50788         size.
50789
50790 2007-10-22  Eric Blake  <ebb9@byu.net>
50791
50792         Tweak x*printf documentation.
50793         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
50794         variable name and comments.
50795         Suggested by Bruno Haible.
50796
50797 2007-10-22  Bruno Haible  <bruno@clisp.org>
50798
50799         * lib/acl.c (copy_acl): Fix file name in comment.
50800
50801 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50802
50803         Fix Tru64 problem with stdbool.h.
50804         * lib/stdbool.in.h (false, true):
50805         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
50806         Don't declare as an enum in this situation; it runs afoul of Tru64.
50807         Problem reported by Steven M. Schweda in
50808         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
50809
50810 2007-10-22  Eric Blake  <ebb9@byu.net>
50811
50812         Also wrap vf?printf.
50813         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
50814         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
50815         (xvprintf, xvfprintf): New functions.
50816
50817 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50818
50819         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
50820         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
50821
50822         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
50823         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
50824
50825 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50826
50827         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
50828         by Bruno Haible.
50829
50830 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50831
50832         * lib/getloadavg.c
50833         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
50834         Undef `sys' after including sys/table.h, for Tru64 4.0D.
50835
50836         * tests/test-i-ring.c: Work for C89.
50837
50838 2007-10-22  Bruno Haible  <bruno@clisp.org>
50839
50840         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
50841         -1u, in preprocessor expression, so that we don't test for the bug
50842         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
50843         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
50844
50845 2007-10-22  Eric Blake  <ebb9@byu.net>
50846
50847         * tests/test-yesno.sh: Silence stderr during test.
50848
50849 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50850
50851         * modules/crypto/gc-camellia: New file.
50852
50853         * m4/gc-camellia.m4: New file.
50854
50855         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
50856
50857         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
50858
50859 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50860
50861         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
50862         --help to stdout.  Reported by sms@antinode.org (Steven
50863         M. Schweda).
50864
50865 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50866
50867         * users.txt: Fix link to libksba.
50868
50869 2007-10-21  Ben Pfaff  <blp@gnu.org>
50870
50871         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
50872         round.c roundf implementation that depends on floorf and ceilf to
50873         be tested unconditionally.
50874
50875 2007-10-21  Ben Pfaff  <blp@gnu.org>
50876
50877         * m4/check-libm-func.m4: Removed.
50878         * m4/check-math-lib.m4: New file.
50879         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
50880         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
50881         definition and lack of AC_LIBOBJ([roundf]).
50882         * m4/roundl.m4: Ditto, and similarly for roundl.
50883         * modules/round: Reference new m4 file.
50884         * modules/roundf: Ditto.
50885         * modules/roundl: Ditto.
50886         * tests/test-round2.c (main): Use ROUND instead of round.
50887         Bug report from Bruno Haible.
50888
50889 2007-10-21  Bruno Haible  <bruno@clisp.org>
50890
50891         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
50892         context.
50893
50894 2007-10-21  Bruno Haible  <bruno@clisp.org>
50895
50896         * tests/test-wcwidth.c (main): Allow negative result for some control
50897         characters.
50898
50899         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
50900         Needed on OSF/1 5.1.
50901
50902 2007-10-21  Bruno Haible  <bruno@clisp.org>
50903
50904         * tests/test-floorf1.c: Include isnanf.h.
50905         (main): Use isnanf() instead of isnan().
50906         * tests/test-ceilf1.c: Include isnanf.h.
50907         (main): Use isnanf() instead of isnan().
50908         * tests/test-truncf1.c: Include isnanf.h.
50909         (main): Use isnanf() instead of isnan().
50910         * tests/test-roundf1.c: Include isnanf.h.
50911         (main): Use isnanf() instead of isnan().
50912
50913 2007-10-21  Eric Blake  <ebb9@byu.net>
50914
50915         * users.txt: Update URL for m4.
50916
50917 2007-10-21  Bruno Haible  <bruno@clisp.org>
50918
50919         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
50920
50921 2007-10-21  Bruno Haible  <bruno@clisp.org>
50922
50923         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
50924         Git's management files if the CVS files are not present.
50925
50926 2007-10-20  Bruno Haible  <bruno@clisp.org>
50927
50928         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
50929         gcc-3.4.x.
50930
50931 2007-10-20  Ben Pfaff  <blp@gnu.org>
50932
50933         * lib/math.in.h: Declare round, roundf, roundl if we are providing
50934         implementations.
50935         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
50936         * lib/round.c: New file.
50937         * lib/roundf.c: New file.
50938         * lib/roundl.c: New file.
50939         * m4/round.m4: New file.
50940         * m4/roundf.m4: New file.
50941         * m4/roundl.m4: New file.
50942         * m4/check-libm-func-m4: New file.
50943         * modules/math: Replace round, roundf, roundl related @VARS@ in
50944         math.in.h.
50945         * modules/round: New file.
50946         * modules/round-tests: New file.
50947         * modules/roundf: New file.
50948         * modules/roundf-tests: New file.
50949         * modules/roundl: New file.
50950         * modules/roundl-tests: New file.
50951         * tests/test-round1.c: New file.
50952         * tests/test-round2.c: New file.
50953         * tests/test-roundf1.c: New file.
50954         * tests/test-roundf2.c: New file.
50955         * tests/test-roundl.c: New file.
50956         * doc/functions/round.texi: Mention round module.
50957         * doc/functions/roundf.texi: Mention roundf module.
50958         * doc/functions/roundl.texi: Mention roundl module.
50959         * MODULES.html.sh: Mention new modules.
50960         Thanks to Bruno Haible for suggestions.
50961
50962 2007-10-20  Jim Meyering  <meyering@redhat.com>
50963
50964         * lib/xprintf.c: Include <config.h> unconditionally.
50965
50966         Change xprintf's license to GPL.
50967         * modules/xprintf (License): s/LGPL/GPL/, since this module
50968         depends on modules (exit and exitfail) which are GPL.
50969         Suggestion from Bruno Haible.
50970
50971         xprintf fixes.
50972         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
50973         Use a clearer diagnostic.
50974         Patch from Bruno Haible.
50975
50976 2007-10-20  Bruno Haible  <bruno@clisp.org>
50977
50978         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
50979         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
50980         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50981
50982 2007-10-20  Bruno Haible  <bruno@clisp.org>
50983
50984         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
50985         precision in the comparison result > x - 1 or similar.
50986         * tests/test-ceilf2.c (correct_result_p): Likewise.
50987         * tests/test-truncf2.c (correct_result_p): Likewise.
50988         * tests/test-trunc2.c (correct_result_p): Likewise.
50989         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50990
50991 2007-10-20  Bruno Haible  <bruno@clisp.org>
50992
50993         * modules/ceil: New file.
50994         * m4/ceil.m4: New file.
50995         * doc/functions/ceil.texi: Mention the 'ceil' module.
50996
50997 2007-10-20  Bruno Haible  <bruno@clisp.org>
50998
50999         * modules/floor: New file.
51000         * m4/floor.m4: New file.
51001         * doc/functions/floor.texi: Mention the 'floor' module.
51002
51003 2007-10-20  Bruno Haible  <bruno@clisp.org>
51004
51005         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
51006         of %a.
51007         * modules/floorf-tests (Depends-on): Likewise.
51008         * modules/truncf-tests (Depends-on): Likewise.
51009         * modules/trunc-tests (Depends-on): Likewise.
51010         Reported by Ben Pfaff.
51011
51012 2007-10-19  Jim Meyering  <meyering@redhat.com>
51013
51014         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
51015         Don't bother testing specific errno values.  Just test ferror.
51016
51017         New module: xprintf
51018         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
51019
51020 2007-10-19  Bruno Haible  <bruno@clisp.org>
51021
51022         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
51023         syntax.
51024         * modules/javaexec (Makefile.am): Likewise.
51025         * modules/relocatable-prog (Makefile.am): Likewise.
51026         Suggested by Jim Meyering.
51027
51028 2007-10-18  Bruno Haible  <bruno@clisp.org>
51029
51030         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
51031         Reported by Jim Meyering.
51032
51033 2007-10-18  Eric Blake  <ebb9@byu.net>
51034
51035         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
51036
51037 2007-10-18  Bruno Haible  <bruno@clisp.org>
51038
51039         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
51040         the format string into writable memory. Needed in Fortify conditions.
51041
51042 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
51043             Bruno Haible  <bruno@clisp.org>
51044
51045         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
51046         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
51047         * modules/trim (Depends-on): Add mbchar.
51048         (configure.ac): Add gl_FUNC_MBRTOWC.
51049         (Makefile.am): Augment lib_SOURCES.
51050
51051 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51052
51053         Modify glob.c to use fstatat and dirfd, to simplify it.
51054         Suggested by Eric Blake.
51055         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
51056         Don't include <stdbool.h>; not used.
51057         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
51058         (link_exists_p): Simplify implementation, since we can now assume
51059         dirfd and fstatat.
51060         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
51061
51062 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51063
51064         * gnulib-tool (func_get_dependencies): Fix sed script to
51065         match only tests.
51066
51067 2007-10-17  Bruno Haible  <bruno@clisp.org>
51068
51069         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
51070         allow locale names without encoding suffix.
51071         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51072         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51073
51074 2007-10-16  Bruno Haible  <bruno@clisp.org>
51075
51076         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
51077         * lib/getgroups.c (getgroups): Likewise.
51078         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
51079
51080 2007-10-16  Bruno Haible  <bruno@clisp.org>
51081
51082         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
51083         * modules/malloc-posix (License): Likewise.
51084         * modules/realloc-posix (License): Likewise.
51085         * modules/calloc-posix (License): Likewise.
51086         * modules/intprops (License): Change from GPL to LGPL, with
51087         Paul Eggert's approval.
51088
51089 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51090
51091         Merge glibc changes into lib/glob.c.
51092
51093         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
51094         2007-10-15 04:59:03 UTC.  Here are the changes:
51095
51096         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
51097
51098         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
51099
51100         * lib/glob.c: Add some branch prediction throughout.
51101
51102         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
51103
51104         [BZ #5103]
51105         * lib/glob.c (glob): Recognize patterns starting \/.
51106
51107         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
51108
51109         [BZ #3996]
51110         * lib/glob.c (attribute_hidden): Define if not defined.
51111         (glob): Unescape dirname, filename or username when needed and not
51112         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
51113         is NULL.  Handle unescaped [ in pattern without closing ].
51114         Don't pass GLOB_CHECK down to recursive glob for directories.
51115         (__glob_pattern_type): New function.
51116         (__glob_pattern_p): Implement using __glob_pattern_type.
51117         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
51118         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
51119         Remove unreachable code.
51120
51121         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
51122
51123         * lib/glob.c (glob_in_dir): Add some comments and asserts to
51124         explain why there are no leaks.
51125
51126         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
51127
51128         [BZ #3253]
51129         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
51130         time, rather allocate increasingly bigger arrays of pointers, if
51131         possible with alloca, if too large with malloc.
51132
51133 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51134
51135         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
51136         Problem reported by H.Merijn Brand in
51137         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
51138         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
51139         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51140
51141 2007-10-15  Bruno Haible  <bruno@clisp.org>
51142
51143         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
51144         with explicit rpl_ prefix.
51145         * lib/fopen.c (fopen): Likewise.
51146         * lib/freopen.c (freopen): Likewise.
51147         * lib/iconv.c (iconv): Likewise.
51148         * lib/iconv_close.c (iconv_close): Likewise.
51149
51150 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51151
51152         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
51153
51154 2007-10-15  Bruno Haible  <bruno@clisp.org>
51155
51156         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
51157         <stddef.h> instead of <stdlib.h> since we only need NULL.
51158         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51159
51160 2007-10-15  Bruno Haible  <bruno@clisp.org>
51161
51162         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
51163         Replace paragraph talking about LIBOBJS.
51164         Reported by Colin Watson <cjwatson@debian.org>.
51165
51166 2007-10-15  Bruno Haible  <bruno@clisp.org>
51167
51168         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
51169         <stdlib.h> before using NULL.
51170
51171 2007-10-15  Simon Josefsson  <simon@josefsson.org>
51172
51173         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
51174         Reported by Albert Chin <china@thewrittenword.com>.
51175
51176 2007-10-14  Bruno Haible  <bruno@clisp.org>
51177
51178         * modules/iconv_open-utf-tests: New file.
51179         * tests/test-iconv-utf.c: New file.
51180
51181         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
51182         * modules/iconv_open-utf: New file.
51183         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
51184         (iconv, iconv_close): New declarations.
51185         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
51186         be defined.
51187         (iconv_open): Add special handling of conversion between UTF-8 and
51188         UTF-{16,32}{BE,LE}.
51189         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
51190         * lib/iconv_close.c: New file.
51191         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
51192         gl_FUNC_ICONV_OPEN.
51193         (gl_FUNC_ICONV_OPEN): Use it.
51194         (gl_FUNC_ICONV_OPEN_UTF): New macro.
51195         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
51196         and REPLACE_ICONV_UTF.
51197         * modules/iconv_open (Depends-on): Add c-strcase.
51198         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
51199         ICONV_CONST.
51200         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
51201
51202 2007-10-13  Albert Chin  <china@thewrittenword.com>
51203             Bruno Haible  <bruno@clisp.org>
51204
51205         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
51206         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
51207
51208 2007-10-13  Bruno Haible  <bruno@clisp.org>
51209
51210         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
51211         defined, use the ISO C99 inline semantics.
51212         * lib/argp.h (ARGP_EI): Likewise.
51213
51214 2007-10-13  Bruno Haible  <bruno@clisp.org>
51215
51216         Handle 'inline' change in gcc 4.3.0.
51217         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
51218         argp_fmtstream_write, argp_fmtstream_set_lmargin,
51219         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
51220         argp_fmtstream_point): Disable 'extern' declaration if the function
51221         definition is going to be provided inline.
51222         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
51223         semantics, not the ISO C99 inline semantics.
51224         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
51225         'extern' declaration if the function definition is going to be provided
51226         inline.
51227         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
51228         the GNU C inline semantics, not the ISO C99 inline semantics. With
51229         GCC 4.2, avoid a warning.
51230
51231 2007-10-13  Bruno Haible  <bruno@clisp.org>
51232
51233         * lib/freading.h (freading): Enable the use of __freading for
51234         glibc >= 2.7.
51235         * lib/freading.c (freading): Likewise.
51236
51237 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51238
51239         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
51240         "warning: C99 inline functions are not supported; using GNU89".
51241
51242 2007-10-12  Bruno Haible  <bruno@clisp.org>
51243
51244         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
51245         of 2.
51246         * tests/test-ceilf2.c: New file.
51247         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
51248
51249         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
51250         * modules/ceilf-tests: Update.
51251
51252 2007-10-12  Bruno Haible  <bruno@clisp.org>
51253
51254         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
51255         of 2.
51256         * tests/test-floorf2.c: New file.
51257         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
51258
51259         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
51260         * modules/floorf-tests: Update.
51261
51262 2007-10-12  Bruno Haible  <bruno@clisp.org>
51263
51264         * tests/test-trunc2.c: New file.
51265         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
51266
51267         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
51268         * modules/trunc-tests: Update.
51269
51270 2007-10-12  Bruno Haible  <bruno@clisp.org>
51271
51272         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
51273         of 2.
51274         * tests/test-truncf2.c: New file.
51275         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
51276
51277         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
51278         * modules/truncf-tests: Update.
51279
51280 2007-10-11  Eric Blake  <ebb9@byu.net>
51281
51282         Don't claim strerror is broken on Interix.
51283         * doc/functions/strerror.texi (strerror): Known broken systems are
51284         now Solaris 8, and not Interix.
51285         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
51286         Interix on cross-compile.
51287         Reported by Martin Koeppe in
51288         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
51289
51290 2007-10-11  Bruno Haible  <bruno@clisp.org>
51291
51292         * modules/i-ring-tests: New file.
51293         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
51294         instead of assert.
51295
51296 2007-10-11  Bruno Haible  <bruno@clisp.org>
51297
51298         * modules/filenamecat-tests: New file.
51299         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
51300         * lib/filenamecat.c: Remove test code.
51301
51302 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51303
51304         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
51305
51306         * lib/strerror.c: Include <string.h> always, to test interface,
51307         and to remove the need for the dummy.
51308         Include intprops.h to compute width instead of doing it ourselves
51309         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
51310         (strerror): Define it to return NULL if there's no system strerror.
51311         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
51312         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
51313         ancient pre-strerror Unix systems well any more.  Saying "unknown
51314         system error" is enough.
51315         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
51316         simpler strerror.c implementation.
51317         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
51318         Simplify the tests to reflect the simpler strerror implementation.
51319         * modules/strerror (Depends-on): Add intprops.
51320
51321 2007-10-09  Eric Blake  <ebb9@byu.net>
51322
51323         Silence test-fpending.
51324         * modules/fpending-tests (Files): Add wrapper script.
51325         * tests/test-fpending.sh: New file.
51326
51327 2007-10-09  Bruno Haible  <bruno@clisp.org>
51328
51329         * MODULES.html.sh (func_module): Don't create a hyperlink for
51330         function names like 'printf_frexp'.
51331         (Misc): Add crc, memxor.
51332         (Characteristics of floating types): New section.
51333         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
51334         isnanf-nolibm, signbit, trunc, truncf, truncl.
51335         (Enhancements for ISO C 99 functions): New subsection Input/output.
51336         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
51337         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
51338         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
51339         (Compatibility checks for POSIX:2001 functions): Add clock-time.
51340         (Enhancements for POSIX:2001 functions): Add chdir-long.
51341         (File system functions): Add areadlink, chdir-safer, read-file.
51342         Remove cycle-check.
51343         (File system as inode set): New section.
51344         (Date and time): Add gethrxtime.
51345         (Multithreading): Add openmp.
51346         (Internationalization functions): Add localename.
51347         (Unicode string functions): Add unistr/u*-mbsnlen.
51348         (Support for maintaining and releasing projects): Add git-version-gen.
51349         (Lone files): Remove directories.
51350
51351 2007-10-08  Ben Pfaff  <blp@gnu.org>
51352
51353         * lib/xmalloca.h: Fix typo in comment.
51354
51355 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51356
51357         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
51358         when avoiding problems with integer overflow.  Use a portable test
51359         instead.
51360
51361 2007-10-08  Simon Josefsson  <simon@josefsson.org>
51362
51363         * modules/dummy (License): Change to LGPLv2+.
51364         * modules/float (License): Likewise
51365         * modules/realloc (License): Likewise
51366         * modules/stdlib (License): Likewise
51367
51368 2007-10-07  Bruno Haible  <bruno@clisp.org>
51369
51370         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
51371         * floor.c (TWO_MANT_DIG): Likewise.
51372         * ceil.c (TWO_MANT_DIG): Likewise.
51373         Reported by Ben Pfaff.
51374
51375 2007-10-07  Bruno Haible  <bruno@clisp.org>
51376
51377         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
51378         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
51379         * lib/frexp.c (FUNC): Likewise.
51380         * lib/printf-frexp.h (printf_frexp): Likewise.
51381         * lib/printf-frexpl.h (printf_frexpl): Likewise.
51382         * lib/printf-frexp.c (FUNC): Likewise.
51383         Suggested by Jim Meyering.
51384
51385 2007-10-07  Jim Meyering  <meyering@redhat.com>
51386
51387         Make xnanosleep's integer overflow test more robust.
51388         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
51389         so that gcc-4.3.0 doesn't optimize away this test for overflow.
51390
51391 2007-10-07  Bruno Haible  <bruno@clisp.org>
51392
51393         * NEWS: Mention the license change.
51394
51395         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
51396         abbreviations in the modules files.
51397
51398         Change copyright notice from GPLv2+ to GPLv3+.
51399         * README: Change copyright notice.
51400         * MODULES.html.sh: Likewise.
51401         * build-aux/bootstrap.conf: Likewise.
51402         * build-aux/config.libpath: Likewise.
51403         * build-aux/csharpcomp.sh.in: Likewise.
51404         * build-aux/csharpexec.sh.in: Likewise.
51405         * build-aux/install-reloc: Likewise.
51406         * build-aux/javacomp.sh.in: Likewise.
51407         * build-aux/javaexec.sh.in: Likewise.
51408         * build-aux/ldd.sh.in: Likewise.
51409         * build-aux/reloc-ldflags: Likewise.
51410         * build-aux/relocatable.sh.in: Likewise.
51411         * build-aux/x-to-1.in: Likewise.
51412         * check-module: Likewise.
51413         * config/srclistvars.sh: Likewise.
51414         * gnulib-tool: Likewise.
51415         * lib/acl-internal.h: Likewise.
51416         * lib/acl.c: Likewise.
51417         * lib/acl.h: Likewise.
51418         * lib/acl_entries.c: Likewise.
51419         * lib/areadlink-with-size.c: Likewise.
51420         * lib/areadlink.c: Likewise.
51421         * lib/areadlink.h: Likewise.
51422         * lib/argmatch.c: Likewise.
51423         * lib/argmatch.h: Likewise.
51424         * lib/argp-ba.c: Likewise.
51425         * lib/argp-eexst.c: Likewise.
51426         * lib/argp-fmtstream.c: Likewise.
51427         * lib/argp-fmtstream.h: Likewise.
51428         * lib/argp-fs-xinl.c: Likewise.
51429         * lib/argp-help.c: Likewise.
51430         * lib/argp-namefrob.h: Likewise.
51431         * lib/argp-parse.c: Likewise.
51432         * lib/argp-pin.c: Likewise.
51433         * lib/argp-pv.c: Likewise.
51434         * lib/argp-pvh.c: Likewise.
51435         * lib/argp-xinl.c: Likewise.
51436         * lib/argp.h: Likewise.
51437         * lib/at-func.c: Likewise.
51438         * lib/atanl.c: Likewise.
51439         * lib/backupfile.c: Likewise.
51440         * lib/backupfile.h: Likewise.
51441         * lib/basename.c: Likewise.
51442         * lib/binary-io.h: Likewise.
51443         * lib/byteswap.in.h: Likewise.
51444         * lib/c-stack.c: Likewise.
51445         * lib/c-stack.h: Likewise.
51446         * lib/c-strcasestr.c: Likewise.
51447         * lib/c-strcasestr.h: Likewise.
51448         * lib/c-strstr.c: Likewise.
51449         * lib/c-strstr.h: Likewise.
51450         * lib/c-strtod.c: Likewise.
51451         * lib/calloc.c: Likewise.
51452         * lib/canon-host.c: Likewise.
51453         * lib/canon-host.h: Likewise.
51454         * lib/canonicalize-lgpl.c: Likewise.
51455         * lib/canonicalize.c: Likewise.
51456         * lib/canonicalize.h: Likewise.
51457         * lib/ceil.c: Likewise.
51458         * lib/ceilf.c: Likewise.
51459         * lib/ceill.c: Likewise.
51460         * lib/chdir-long.c: Likewise.
51461         * lib/chdir-long.h: Likewise.
51462         * lib/chdir-safer.c: Likewise.
51463         * lib/chdir-safer.h: Likewise.
51464         * lib/chown.c: Likewise.
51465         * lib/classpath.c: Likewise.
51466         * lib/classpath.h: Likewise.
51467         * lib/clean-temp.c: Likewise.
51468         * lib/clean-temp.h: Likewise.
51469         * lib/cloexec.c: Likewise.
51470         * lib/close-stream.c: Likewise.
51471         * lib/closein.c: Likewise.
51472         * lib/closein.h: Likewise.
51473         * lib/closeout.c: Likewise.
51474         * lib/closeout.h: Likewise.
51475         * lib/concat-filename.c: Likewise.
51476         * lib/copy-file.c: Likewise.
51477         * lib/copy-file.h: Likewise.
51478         * lib/count-one-bits.h: Likewise.
51479         * lib/crc.c: Likewise.
51480         * lib/crc.h: Likewise.
51481         * lib/creat-safer.c: Likewise.
51482         * lib/csharpcomp.c: Likewise.
51483         * lib/csharpcomp.h: Likewise.
51484         * lib/csharpexec.c: Likewise.
51485         * lib/csharpexec.h: Likewise.
51486         * lib/cycle-check.c: Likewise.
51487         * lib/cycle-check.h: Likewise.
51488         * lib/diacrit.c: Likewise.
51489         * lib/diacrit.h: Likewise.
51490         * lib/diffseq.h: Likewise.
51491         * lib/dirchownmod.c: Likewise.
51492         * lib/dirent.in.h: Likewise.
51493         * lib/dirfd.c: Likewise.
51494         * lib/dirfd.h: Likewise.
51495         * lib/dirname.c: Likewise.
51496         * lib/dirname.h: Likewise.
51497         * lib/dummy.c: Likewise.
51498         * lib/dup-safer.c: Likewise.
51499         * lib/dup2.c: Likewise.
51500         * lib/eealloc.h: Likewise.
51501         * lib/error.c: Likewise.
51502         * lib/error.h: Likewise.
51503         * lib/euidaccess.c: Likewise.
51504         * lib/exclude.c: Likewise.
51505         * lib/exclude.h: Likewise.
51506         * lib/execute.c: Likewise.
51507         * lib/execute.h: Likewise.
51508         * lib/exitfail.c: Likewise.
51509         * lib/exitfail.h: Likewise.
51510         * lib/expl.c: Likewise.
51511         * lib/fatal-signal.c: Likewise.
51512         * lib/fatal-signal.h: Likewise.
51513         * lib/fbufmode.c: Likewise.
51514         * lib/fbufmode.h: Likewise.
51515         * lib/fchdir.c: Likewise.
51516         * lib/fchmodat.c: Likewise.
51517         * lib/fchownat.c: Likewise.
51518         * lib/fcntl--.h: Likewise.
51519         * lib/fcntl-safer.h: Likewise.
51520         * lib/fcntl.in.h: Likewise.
51521         * lib/fd-safer.c: Likewise.
51522         * lib/fflush.c: Likewise.
51523         * lib/file-has-acl.c: Likewise.
51524         * lib/file-set.c: Likewise.
51525         * lib/file-type.c: Likewise.
51526         * lib/file-type.h: Likewise.
51527         * lib/fileblocks.c: Likewise.
51528         * lib/filemode.c: Likewise.
51529         * lib/filemode.h: Likewise.
51530         * lib/filename.h: Likewise.
51531         * lib/filenamecat.c: Likewise.
51532         * lib/filenamecat.h: Likewise.
51533         * lib/findprog.c: Likewise.
51534         * lib/findprog.h: Likewise.
51535         * lib/float.in.h: Likewise.
51536         * lib/floor.c: Likewise.
51537         * lib/floorf.c: Likewise.
51538         * lib/floorl.c: Likewise.
51539         * lib/fopen-safer.c: Likewise.
51540         * lib/fopen.c: Likewise.
51541         * lib/fpending.c: Likewise.
51542         * lib/fpending.h: Likewise.
51543         * lib/fprintf.c: Likewise.
51544         * lib/fprintftime.h: Likewise.
51545         * lib/fpucw.h: Likewise.
51546         * lib/fpurge.c: Likewise.
51547         * lib/fpurge.h: Likewise.
51548         * lib/freadable.c: Likewise.
51549         * lib/freadable.h: Likewise.
51550         * lib/freadahead.c: Likewise.
51551         * lib/freadahead.h: Likewise.
51552         * lib/freading.c: Likewise.
51553         * lib/freading.h: Likewise.
51554         * lib/free.c: Likewise.
51555         * lib/freopen.c: Likewise.
51556         * lib/frexp.c: Likewise.
51557         * lib/frexpl.c: Likewise.
51558         * lib/fseek.c: Likewise.
51559         * lib/fseterr.c: Likewise.
51560         * lib/fseterr.h: Likewise.
51561         * lib/fstatat.c: Likewise.
51562         * lib/fstrcmp.c: Likewise.
51563         * lib/fstrcmp.h: Likewise.
51564         * lib/fsusage.c: Likewise.
51565         * lib/fsusage.h: Likewise.
51566         * lib/ftell.c: Likewise.
51567         * lib/ftello.c: Likewise.
51568         * lib/fts-cycle.c: Likewise.
51569         * lib/fts.c: Likewise.
51570         * lib/fts_.h: Likewise.
51571         * lib/full-read.c: Likewise.
51572         * lib/full-read.h: Likewise.
51573         * lib/full-write.c: Likewise.
51574         * lib/full-write.h: Likewise.
51575         * lib/fwritable.c: Likewise.
51576         * lib/fwritable.h: Likewise.
51577         * lib/fwriteerror.c: Likewise.
51578         * lib/fwriteerror.h: Likewise.
51579         * lib/fwriting.c: Likewise.
51580         * lib/fwriting.h: Likewise.
51581         * lib/gcd.c: Likewise.
51582         * lib/gcd.h: Likewise.
51583         * lib/getcwd.c: Likewise.
51584         * lib/getdate.h: Likewise.
51585         * lib/getdate.y: Likewise.
51586         * lib/getdomainname.c: Likewise.
51587         * lib/getdomainname.h: Likewise.
51588         * lib/getgroups.c: Likewise.
51589         * lib/gethostname.c: Likewise.
51590         * lib/gethrxtime.c: Likewise.
51591         * lib/gethrxtime.h: Likewise.
51592         * lib/getloadavg.c: Likewise.
51593         * lib/getndelim2.c: Likewise.
51594         * lib/getndelim2.h: Likewise.
51595         * lib/getnline.c: Likewise.
51596         * lib/getnline.h: Likewise.
51597         * lib/getopt.c: Likewise.
51598         * lib/getopt.in.h: Likewise.
51599         * lib/getopt1.c: Likewise.
51600         * lib/getopt_int.h: Likewise.
51601         * lib/getpagesize.h: Likewise.
51602         * lib/getsubopt.c: Likewise.
51603         * lib/gettime.c: Likewise.
51604         * lib/getugroups.c: Likewise.
51605         * lib/getugroups.h: Likewise.
51606         * lib/getusershell.c: Likewise.
51607         * lib/gl_anyavltree_list1.h: Likewise.
51608         * lib/gl_anyavltree_list2.h: Likewise.
51609         * lib/gl_anyhash_list1.h: Likewise.
51610         * lib/gl_anyhash_list2.h: Likewise.
51611         * lib/gl_anylinked_list1.h: Likewise.
51612         * lib/gl_anylinked_list2.h: Likewise.
51613         * lib/gl_anyrbtree_list1.h: Likewise.
51614         * lib/gl_anyrbtree_list2.h: Likewise.
51615         * lib/gl_anytree_list1.h: Likewise.
51616         * lib/gl_anytree_list2.h: Likewise.
51617         * lib/gl_anytree_oset.h: Likewise.
51618         * lib/gl_anytreehash_list1.h: Likewise.
51619         * lib/gl_anytreehash_list2.h: Likewise.
51620         * lib/gl_array_list.c: Likewise.
51621         * lib/gl_array_list.h: Likewise.
51622         * lib/gl_array_oset.c: Likewise.
51623         * lib/gl_array_oset.h: Likewise.
51624         * lib/gl_avltree_list.c: Likewise.
51625         * lib/gl_avltree_list.h: Likewise.
51626         * lib/gl_avltree_oset.c: Likewise.
51627         * lib/gl_avltree_oset.h: Likewise.
51628         * lib/gl_avltreehash_list.c: Likewise.
51629         * lib/gl_avltreehash_list.h: Likewise.
51630         * lib/gl_carray_list.c: Likewise.
51631         * lib/gl_carray_list.h: Likewise.
51632         * lib/gl_linked_list.c: Likewise.
51633         * lib/gl_linked_list.h: Likewise.
51634         * lib/gl_linkedhash_list.c: Likewise.
51635         * lib/gl_linkedhash_list.h: Likewise.
51636         * lib/gl_list.c: Likewise.
51637         * lib/gl_list.h: Likewise.
51638         * lib/gl_oset.c: Likewise.
51639         * lib/gl_oset.h: Likewise.
51640         * lib/gl_rbtree_list.c: Likewise.
51641         * lib/gl_rbtree_list.h: Likewise.
51642         * lib/gl_rbtree_oset.c: Likewise.
51643         * lib/gl_rbtree_oset.h: Likewise.
51644         * lib/gl_rbtreehash_list.c: Likewise.
51645         * lib/gl_rbtreehash_list.h: Likewise.
51646         * lib/gl_sublist.c: Likewise.
51647         * lib/gl_sublist.h: Likewise.
51648         * lib/group-member.c: Likewise.
51649         * lib/group-member.h: Likewise.
51650         * lib/hard-locale.c: Likewise.
51651         * lib/hard-locale.h: Likewise.
51652         * lib/hash-pjw.c: Likewise.
51653         * lib/hash-pjw.h: Likewise.
51654         * lib/hash-triple.c: Likewise.
51655         * lib/hash.c: Likewise.
51656         * lib/hash.h: Likewise.
51657         * lib/human.c: Likewise.
51658         * lib/human.h: Likewise.
51659         * lib/i-ring.c: Likewise.
51660         * lib/i-ring.h: Likewise.
51661         * lib/idcache.c: Likewise.
51662         * lib/imaxabs.c: Likewise.
51663         * lib/imaxdiv.c: Likewise.
51664         * lib/inet_pton.c: Likewise.
51665         * lib/inet_pton.h: Likewise.
51666         * lib/intprops.h: Likewise.
51667         * lib/inttostr.c: Likewise.
51668         * lib/inttostr.h: Likewise.
51669         * lib/inttypes.in.h: Likewise.
51670         * lib/isapipe.c: Likewise.
51671         * lib/isdir.c: Likewise.
51672         * lib/isnan.c: Likewise.
51673         * lib/isnan.h: Likewise.
51674         * lib/isnanf.c: Likewise.
51675         * lib/isnanf.h: Likewise.
51676         * lib/isnanl-nolibm.h: Likewise.
51677         * lib/isnanl.c: Likewise.
51678         * lib/isnanl.h: Likewise.
51679         * lib/javacomp.c: Likewise.
51680         * lib/javacomp.h: Likewise.
51681         * lib/javaexec.c: Likewise.
51682         * lib/javaexec.h: Likewise.
51683         * lib/javaversion.c: Likewise.
51684         * lib/javaversion.h: Likewise.
51685         * lib/javaversion.java: Likewise.
51686         * lib/lbrkprop.h: Likewise.
51687         * lib/lchmod.h: Likewise.
51688         * lib/lchown.c: Likewise.
51689         * lib/ldexpl.c: Likewise.
51690         * lib/linebreak.c: Likewise.
51691         * lib/linebreak.h: Likewise.
51692         * lib/linebuffer.c: Likewise.
51693         * lib/linebuffer.h: Likewise.
51694         * lib/locale.in.h: Likewise.
51695         * lib/logl.c: Likewise.
51696         * lib/long-options.c: Likewise.
51697         * lib/long-options.h: Likewise.
51698         * lib/lstat.c: Likewise.
51699         * lib/lstat.h: Likewise.
51700         * lib/math.in.h: Likewise.
51701         * lib/mbchar.c: Likewise.
51702         * lib/mbchar.h: Likewise.
51703         * lib/mbfile.h: Likewise.
51704         * lib/mbiter.h: Likewise.
51705         * lib/mbscasecmp.c: Likewise.
51706         * lib/mbscasestr.c: Likewise.
51707         * lib/mbschr.c: Likewise.
51708         * lib/mbscspn.c: Likewise.
51709         * lib/mbslen.c: Likewise.
51710         * lib/mbsncasecmp.c: Likewise.
51711         * lib/mbsnlen.c: Likewise.
51712         * lib/mbspbrk.c: Likewise.
51713         * lib/mbspcasecmp.c: Likewise.
51714         * lib/mbsrchr.c: Likewise.
51715         * lib/mbssep.c: Likewise.
51716         * lib/mbsspn.c: Likewise.
51717         * lib/mbsstr.c: Likewise.
51718         * lib/mbstok_r.c: Likewise.
51719         * lib/mbswidth.c: Likewise.
51720         * lib/mbswidth.h: Likewise.
51721         * lib/mbuiter.h: Likewise.
51722         * lib/memcasecmp.c: Likewise.
51723         * lib/memcasecmp.h: Likewise.
51724         * lib/memchr.c: Likewise.
51725         * lib/memcmp.c: Likewise.
51726         * lib/memcoll.c: Likewise.
51727         * lib/memcoll.h: Likewise.
51728         * lib/memcpy.c: Likewise.
51729         * lib/memrchr.c: Likewise.
51730         * lib/mkancesdirs.c: Likewise.
51731         * lib/mkdir-p.c: Likewise.
51732         * lib/mkdir-p.h: Likewise.
51733         * lib/mkdir.c: Likewise.
51734         * lib/mkdirat.c: Likewise.
51735         * lib/mkdtemp.c: Likewise.
51736         * lib/mkstemp-safer.c: Likewise.
51737         * lib/mkstemp.c: Likewise.
51738         * lib/modechange.c: Likewise.
51739         * lib/modechange.h: Likewise.
51740         * lib/mountlist.c: Likewise.
51741         * lib/mountlist.h: Likewise.
51742         * lib/mpsort.c: Likewise.
51743         * lib/nanosleep.c: Likewise.
51744         * lib/obstack.c: Likewise.
51745         * lib/obstack.h: Likewise.
51746         * lib/open-safer.c: Likewise.
51747         * lib/open.c: Likewise.
51748         * lib/openat-die.c: Likewise.
51749         * lib/openat-priv.h: Likewise.
51750         * lib/openat-proc.c: Likewise.
51751         * lib/openat.c: Likewise.
51752         * lib/openat.h: Likewise.
51753         * lib/pagealign_alloc.c: Likewise.
51754         * lib/pagealign_alloc.h: Likewise.
51755         * lib/physmem.c: Likewise.
51756         * lib/physmem.h: Likewise.
51757         * lib/pipe-safer.c: Likewise.
51758         * lib/pipe.c: Likewise.
51759         * lib/pipe.h: Likewise.
51760         * lib/posixtm.c: Likewise.
51761         * lib/posixtm.h: Likewise.
51762         * lib/posixver.c: Likewise.
51763         * lib/printf-frexp.c: Likewise.
51764         * lib/printf-frexp.h: Likewise.
51765         * lib/printf-frexpl.c: Likewise.
51766         * lib/printf-frexpl.h: Likewise.
51767         * lib/printf.c: Likewise.
51768         * lib/progname.c: Likewise.
51769         * lib/progname.h: Likewise.
51770         * lib/progreloc.c: Likewise.
51771         * lib/putenv.c: Likewise.
51772         * lib/quote.c: Likewise.
51773         * lib/quote.h: Likewise.
51774         * lib/quotearg.c: Likewise.
51775         * lib/quotearg.h: Likewise.
51776         * lib/raise.c: Likewise.
51777         * lib/readline.c: Likewise.
51778         * lib/readline.h: Likewise.
51779         * lib/readlink.c: Likewise.
51780         * lib/readtokens.c: Likewise.
51781         * lib/readtokens.h: Likewise.
51782         * lib/readtokens0.c: Likewise.
51783         * lib/readtokens0.h: Likewise.
51784         * lib/readutmp.c: Likewise.
51785         * lib/readutmp.h: Likewise.
51786         * lib/realloc.c: Likewise.
51787         * lib/relocwrapper.c: Likewise.
51788         * lib/rename-dest-slash.c: Likewise.
51789         * lib/rename.c: Likewise.
51790         * lib/rmdir.c: Likewise.
51791         * lib/rpmatch.c: Likewise.
51792         * lib/safe-read.c: Likewise.
51793         * lib/safe-read.h: Likewise.
51794         * lib/safe-write.c: Likewise.
51795         * lib/safe-write.h: Likewise.
51796         * lib/same-inode.h: Likewise.
51797         * lib/same.c: Likewise.
51798         * lib/same.h: Likewise.
51799         * lib/save-cwd.c: Likewise.
51800         * lib/save-cwd.h: Likewise.
51801         * lib/savedir.c: Likewise.
51802         * lib/savedir.h: Likewise.
51803         * lib/savewd.c: Likewise.
51804         * lib/savewd.h: Likewise.
51805         * lib/search.in.h: Likewise.
51806         * lib/setenv.c: Likewise.
51807         * lib/setenv.h: Likewise.
51808         * lib/settime.c: Likewise.
51809         * lib/sh-quote.c: Likewise.
51810         * lib/sh-quote.h: Likewise.
51811         * lib/sig2str.c: Likewise.
51812         * lib/sig2str.h: Likewise.
51813         * lib/signal.in.h: Likewise.
51814         * lib/signbitd.c: Likewise.
51815         * lib/signbitf.c: Likewise.
51816         * lib/signbitl.c: Likewise.
51817         * lib/sigprocmask.c: Likewise.
51818         * lib/sincosl.c: Likewise.
51819         * lib/sleep.c: Likewise.
51820         * lib/sprintf.c: Likewise.
51821         * lib/sqrtl.c: Likewise.
51822         * lib/stat-time.h: Likewise.
51823         * lib/stdio--.h: Likewise.
51824         * lib/stdio-safer.h: Likewise.
51825         * lib/stdlib--.h: Likewise.
51826         * lib/stdlib-safer.h: Likewise.
51827         * lib/stdlib.in.h: Likewise.
51828         * lib/stpcpy.c: Likewise.
51829         * lib/stpncpy.c: Likewise.
51830         * lib/strchrnul.c: Likewise.
51831         * lib/strcspn.c: Likewise.
51832         * lib/strerror.c: Likewise.
51833         * lib/strftime.c: Likewise.
51834         * lib/strftime.h: Likewise.
51835         * lib/striconveh.c: Likewise.
51836         * lib/striconveh.h: Likewise.
51837         * lib/striconveha.c: Likewise.
51838         * lib/striconveha.h: Likewise.
51839         * lib/stripslash.c: Likewise.
51840         * lib/strnlen1.c: Likewise.
51841         * lib/strnlen1.h: Likewise.
51842         * lib/strtod.c: Likewise.
51843         * lib/strtoimax.c: Likewise.
51844         * lib/strtok_r.c: Likewise.
51845         * lib/strtol.c: Likewise.
51846         * lib/strtoll.c: Likewise.
51847         * lib/strtoul.c: Likewise.
51848         * lib/strtoull.c: Likewise.
51849         * lib/sysexits.in.h: Likewise.
51850         * lib/tempname.c: Likewise.
51851         * lib/tempname.h: Likewise.
51852         * lib/timespec.h: Likewise.
51853         * lib/tls.c: Likewise.
51854         * lib/tls.h: Likewise.
51855         * lib/tmpdir.c: Likewise.
51856         * lib/tmpdir.h: Likewise.
51857         * lib/tmpfile-safer.c: Likewise.
51858         * lib/tmpfile.c: Likewise.
51859         * lib/trigl.c: Likewise.
51860         * lib/trigl.h: Likewise.
51861         * lib/trim.c: Likewise.
51862         * lib/trim.h: Likewise.
51863         * lib/trunc.c: Likewise.
51864         * lib/truncf.c: Likewise.
51865         * lib/truncl.c: Likewise.
51866         * lib/tsearch.c: Likewise.
51867         * lib/unicodeio.c: Likewise.
51868         * lib/unicodeio.h: Likewise.
51869         * lib/unistd--.h: Likewise.
51870         * lib/unistd-safer.h: Likewise.
51871         * lib/unistdio/ulc-fprintf.c: Likewise.
51872         * lib/unistdio/ulc-vfprintf.c: Likewise.
51873         * lib/unlinkdir.c: Likewise.
51874         * lib/unlinkdir.h: Likewise.
51875         * lib/unlocked-io.h: Likewise.
51876         * lib/unsetenv.c: Likewise.
51877         * lib/userspec.c: Likewise.
51878         * lib/utime.c: Likewise.
51879         * lib/utimecmp.c: Likewise.
51880         * lib/utimecmp.h: Likewise.
51881         * lib/utimens.c: Likewise.
51882         * lib/verify.h: Likewise.
51883         * lib/verror.c: Likewise.
51884         * lib/verror.h: Likewise.
51885         * lib/version-etc-fsf.c: Likewise.
51886         * lib/version-etc.c: Likewise.
51887         * lib/version-etc.h: Likewise.
51888         * lib/vfprintf.c: Likewise.
51889         * lib/vprintf.c: Likewise.
51890         * lib/vsprintf.c: Likewise.
51891         * lib/w32spawn.h: Likewise.
51892         * lib/wait-process.c: Likewise.
51893         * lib/wait-process.h: Likewise.
51894         * lib/wcwidth.c: Likewise.
51895         * lib/write-any-file.c: Likewise.
51896         * lib/xalloc-die.c: Likewise.
51897         * lib/xalloc.h: Likewise.
51898         * lib/xasprintf.c: Likewise.
51899         * lib/xgetcwd.c: Likewise.
51900         * lib/xgetcwd.h: Likewise.
51901         * lib/xgetdomainname.c: Likewise.
51902         * lib/xgetdomainname.h: Likewise.
51903         * lib/xgethostname.c: Likewise.
51904         * lib/xmalloc.c: Likewise.
51905         * lib/xmalloca.c: Likewise.
51906         * lib/xmalloca.h: Likewise.
51907         * lib/xmemcoll.c: Likewise.
51908         * lib/xnanosleep.c: Likewise.
51909         * lib/xreadlink.c: Likewise.
51910         * lib/xreadlink.h: Likewise.
51911         * lib/xsetenv.c: Likewise.
51912         * lib/xsetenv.h: Likewise.
51913         * lib/xstriconv.c: Likewise.
51914         * lib/xstriconv.h: Likewise.
51915         * lib/xstrndup.c: Likewise.
51916         * lib/xstrndup.h: Likewise.
51917         * lib/xstrtod.c: Likewise.
51918         * lib/xstrtod.h: Likewise.
51919         * lib/xstrtol-error.c: Likewise.
51920         * lib/xstrtol.c: Likewise.
51921         * lib/xstrtol.h: Likewise.
51922         * lib/xtime.h: Likewise.
51923         * lib/xvasprintf.c: Likewise.
51924         * lib/xvasprintf.h: Likewise.
51925         * lib/yesno.c: Likewise.
51926         * lib/yesno.h: Likewise.
51927         * posix-modules: Likewise.
51928         * tests/test-alloca-opt.c: Likewise.
51929         * tests/test-arcfour.c: Likewise.
51930         * tests/test-arctwo.c: Likewise.
51931         * tests/test-argmatch.c: Likewise.
51932         * tests/test-argp-2.sh: Likewise.
51933         * tests/test-argp.c: Likewise.
51934         * tests/test-arpa_inet.c: Likewise.
51935         * tests/test-array_list.c: Likewise.
51936         * tests/test-array_oset.c: Likewise.
51937         * tests/test-atexit.c: Likewise.
51938         * tests/test-avltree_list.c: Likewise.
51939         * tests/test-avltree_oset.c: Likewise.
51940         * tests/test-avltreehash_list.c: Likewise.
51941         * tests/test-base64.c: Likewise.
51942         * tests/test-binary-io.c: Likewise.
51943         * tests/test-byteswap.c: Likewise.
51944         * tests/test-c-ctype.c: Likewise.
51945         * tests/test-c-strcasecmp.c: Likewise.
51946         * tests/test-c-strcasestr.c: Likewise.
51947         * tests/test-c-strncasecmp.c: Likewise.
51948         * tests/test-c-strstr.c: Likewise.
51949         * tests/test-canonicalize-lgpl.c: Likewise.
51950         * tests/test-canonicalize.c: Likewise.
51951         * tests/test-carray_list.c: Likewise.
51952         * tests/test-ceilf.c: Likewise.
51953         * tests/test-ceill.c: Likewise.
51954         * tests/test-count-one-bits.c: Likewise.
51955         * tests/test-crc.c: Likewise.
51956         * tests/test-dirname.c: Likewise.
51957         * tests/test-fbufmode.c: Likewise.
51958         * tests/test-fcntl.c: Likewise.
51959         * tests/test-fflush.c: Likewise.
51960         * tests/test-floorf.c: Likewise.
51961         * tests/test-floorl.c: Likewise.
51962         * tests/test-fopen.c: Likewise.
51963         * tests/test-fprintf-posix.c: Likewise.
51964         * tests/test-fprintf-posix.h: Likewise.
51965         * tests/test-fpurge.c: Likewise.
51966         * tests/test-freadable.c: Likewise.
51967         * tests/test-freadahead.c: Likewise.
51968         * tests/test-freading.c: Likewise.
51969         * tests/test-freopen.c: Likewise.
51970         * tests/test-frexp.c: Likewise.
51971         * tests/test-frexpl.c: Likewise.
51972         * tests/test-fseek.c: Likewise.
51973         * tests/test-fseeko.c: Likewise.
51974         * tests/test-fseterr.c: Likewise.
51975         * tests/test-fstrcmp.c: Likewise.
51976         * tests/test-ftell.c: Likewise.
51977         * tests/test-ftello.c: Likewise.
51978         * tests/test-fwritable.c: Likewise.
51979         * tests/test-fwriting.c: Likewise.
51980         * tests/test-getaddrinfo.c: Likewise.
51981         * tests/test-getpass.c: Likewise.
51982         * tests/test-gettimeofday.c: Likewise.
51983         * tests/test-hmac-md5.c: Likewise.
51984         * tests/test-hmac-sha1.c: Likewise.
51985         * tests/test-iconv.c: Likewise.
51986         * tests/test-iconvme.c: Likewise.
51987         * tests/test-inttypes.c: Likewise.
51988         * tests/test-isnan.c: Likewise.
51989         * tests/test-isnanf.c: Likewise.
51990         * tests/test-isnanl-nolibm.c: Likewise.
51991         * tests/test-isnanl.c: Likewise.
51992         * tests/test-isnanl.h: Likewise.
51993         * tests/test-ldexpl.c: Likewise.
51994         * tests/test-linked_list.c: Likewise.
51995         * tests/test-linkedhash_list.c: Likewise.
51996         * tests/test-locale.c: Likewise.
51997         * tests/test-localename.c: Likewise.
51998         * tests/test-lock.c: Likewise.
51999         * tests/test-lseek.c: Likewise.
52000         * tests/test-malloca.c: Likewise.
52001         * tests/test-math.c: Likewise.
52002         * tests/test-mbscasecmp.c: Likewise.
52003         * tests/test-mbscasestr1.c: Likewise.
52004         * tests/test-mbscasestr2.c: Likewise.
52005         * tests/test-mbscasestr3.c: Likewise.
52006         * tests/test-mbscasestr4.c: Likewise.
52007         * tests/test-mbschr.c: Likewise.
52008         * tests/test-mbscspn.c: Likewise.
52009         * tests/test-mbsncasecmp.c: Likewise.
52010         * tests/test-mbspbrk.c: Likewise.
52011         * tests/test-mbspcasecmp.c: Likewise.
52012         * tests/test-mbsrchr.c: Likewise.
52013         * tests/test-mbsspn.c: Likewise.
52014         * tests/test-mbsstr1.c: Likewise.
52015         * tests/test-mbsstr2.c: Likewise.
52016         * tests/test-mbsstr3.c: Likewise.
52017         * tests/test-md5.c: Likewise.
52018         * tests/test-memmem.c: Likewise.
52019         * tests/test-netinet_in.c: Likewise.
52020         * tests/test-open.c: Likewise.
52021         * tests/test-printf-frexp.c: Likewise.
52022         * tests/test-printf-frexpl.c: Likewise.
52023         * tests/test-printf-posix.c: Likewise.
52024         * tests/test-printf-posix.h: Likewise.
52025         * tests/test-rbtree_list.c: Likewise.
52026         * tests/test-rbtree_oset.c: Likewise.
52027         * tests/test-rbtreehash_list.c: Likewise.
52028         * tests/test-read-file.c: Likewise.
52029         * tests/test-rijndael.c: Likewise.
52030         * tests/test-search.c: Likewise.
52031         * tests/test-signbit.c: Likewise.
52032         * tests/test-sleep.c: Likewise.
52033         * tests/test-snprintf-posix.c: Likewise.
52034         * tests/test-snprintf-posix.h: Likewise.
52035         * tests/test-snprintf.c: Likewise.
52036         * tests/test-sprintf-posix.c: Likewise.
52037         * tests/test-sprintf-posix.h: Likewise.
52038         * tests/test-stat-time.c: Likewise.
52039         * tests/test-stdbool.c: Likewise.
52040         * tests/test-stdint.c: Likewise.
52041         * tests/test-stdio.c: Likewise.
52042         * tests/test-stdlib.c: Likewise.
52043         * tests/test-stpncpy.c: Likewise.
52044         * tests/test-strcasestr.c: Likewise.
52045         * tests/test-striconv.c: Likewise.
52046         * tests/test-striconveh.c: Likewise.
52047         * tests/test-striconveha.c: Likewise.
52048         * tests/test-string.c: Likewise.
52049         * tests/test-sys_select.c: Likewise.
52050         * tests/test-sys_socket.c: Likewise.
52051         * tests/test-sys_stat.c: Likewise.
52052         * tests/test-sys_time.c: Likewise.
52053         * tests/test-sysexits.c: Likewise.
52054         * tests/test-time.c: Likewise.
52055         * tests/test-tls.c: Likewise.
52056         * tests/test-trunc.c: Likewise.
52057         * tests/test-truncf.c: Likewise.
52058         * tests/test-truncl.c: Likewise.
52059         * tests/test-unistd.c: Likewise.
52060         * tests/test-vasnprintf-posix.c: Likewise.
52061         * tests/test-vasnprintf-posix2.c: Likewise.
52062         * tests/test-vasnprintf.c: Likewise.
52063         * tests/test-vasprintf-posix.c: Likewise.
52064         * tests/test-vasprintf.c: Likewise.
52065         * tests/test-verify.c: Likewise.
52066         * tests/test-vfprintf-posix.c: Likewise.
52067         * tests/test-vprintf-posix.c: Likewise.
52068         * tests/test-vsnprintf-posix.c: Likewise.
52069         * tests/test-vsnprintf.c: Likewise.
52070         * tests/test-vsprintf-posix.c: Likewise.
52071         * tests/test-wchar.c: Likewise.
52072         * tests/test-wctype.c: Likewise.
52073         * tests/test-wcwidth.c: Likewise.
52074         * tests/test-xstrtol.c: Likewise.
52075         * tests/test-xvasprintf.c: Likewise.
52076         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
52077         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
52078         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52079         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52080         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52081         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
52082         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52083         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52084         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52085         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
52086         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52087         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52088         * tests/uniname/test-uninames.c: Likewise.
52089         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
52090         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
52091         * tests/unistdio/test-u16-printf1.h: Likewise.
52092         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
52093         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
52094         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
52095         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
52096         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
52097         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
52098         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
52099         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
52100         * tests/unistdio/test-u32-printf1.h: Likewise.
52101         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
52102         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
52103         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
52104         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
52105         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
52106         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
52107         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
52108         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
52109         * tests/unistdio/test-u8-printf1.h: Likewise.
52110         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
52111         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
52112         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
52113         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
52114         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
52115         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
52116         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
52117         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
52118         * tests/unistdio/test-ulc-printf1.h: Likewise.
52119         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
52120         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
52121         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
52122         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
52123         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
52124         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
52125         * tests/uniwidth/test-u16-strwidth.c: Likewise.
52126         * tests/uniwidth/test-u16-width.c: Likewise.
52127         * tests/uniwidth/test-u32-strwidth.c: Likewise.
52128         * tests/uniwidth/test-u32-width.c: Likewise.
52129         * tests/uniwidth/test-u8-strwidth.c: Likewise.
52130         * tests/uniwidth/test-u8-width.c: Likewise.
52131         * tests/uniwidth/test-uc_width.c: Likewise.
52132         * config/srclist-update: Likewise.
52133         (fixlicense): Update to GPLv3+.
52134
52135         Change copyright notice from LGPLv2.1+ to LGPLv3+.
52136         * tests/test-tsearch.c: Change copyright notice.
52137
52138         Change copyright notice from LGPLv2.0+ to LGPLv3+.
52139         * lib/c-strcaseeq.h: Change copyright notice.
52140         * lib/streq.h: Likewise.
52141         * lib/uniconv.h: Likewise.
52142         * lib/uniconv/u-conv-from-enc.h: Likewise.
52143         * lib/uniconv/u-conv-to-enc.h: Likewise.
52144         * lib/uniconv/u-strconv-from-enc.h: Likewise.
52145         * lib/uniconv/u-strconv-to-enc.h: Likewise.
52146         * lib/uniconv/u16-conv-from-enc.c: Likewise.
52147         * lib/uniconv/u16-conv-to-enc.c: Likewise.
52148         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
52149         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
52150         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
52151         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
52152         * lib/uniconv/u32-conv-from-enc.c: Likewise.
52153         * lib/uniconv/u32-conv-to-enc.c: Likewise.
52154         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
52155         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
52156         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
52157         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
52158         * lib/uniconv/u8-conv-from-enc.c: Likewise.
52159         * lib/uniconv/u8-conv-to-enc.c: Likewise.
52160         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
52161         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
52162         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
52163         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
52164         * lib/uniname.h: Likewise.
52165         * lib/uniname/uniname.c: Likewise.
52166         * lib/unistdio.h: Likewise.
52167         * lib/unistdio/u-asnprintf.h: Likewise.
52168         * lib/unistdio/u-asprintf.h: Likewise.
52169         * lib/unistdio/u-printf-args.c: Likewise.
52170         * lib/unistdio/u-printf-args.h: Likewise.
52171         * lib/unistdio/u-printf-parse.h: Likewise.
52172         * lib/unistdio/u-snprintf.h: Likewise.
52173         * lib/unistdio/u-sprintf.h: Likewise.
52174         * lib/unistdio/u-vasprintf.h: Likewise.
52175         * lib/unistdio/u-vsnprintf.h: Likewise.
52176         * lib/unistdio/u-vsprintf.h: Likewise.
52177         * lib/unistdio/u16-asnprintf.c: Likewise.
52178         * lib/unistdio/u16-asprintf.c: Likewise.
52179         * lib/unistdio/u16-printf-parse.c: Likewise.
52180         * lib/unistdio/u16-snprintf.c: Likewise.
52181         * lib/unistdio/u16-sprintf.c: Likewise.
52182         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
52183         * lib/unistdio/u16-u16-asprintf.c: Likewise.
52184         * lib/unistdio/u16-u16-snprintf.c: Likewise.
52185         * lib/unistdio/u16-u16-sprintf.c: Likewise.
52186         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
52187         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
52188         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
52189         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
52190         * lib/unistdio/u16-vasnprintf.c: Likewise.
52191         * lib/unistdio/u16-vasprintf.c: Likewise.
52192         * lib/unistdio/u16-vsnprintf.c: Likewise.
52193         * lib/unistdio/u16-vsprintf.c: Likewise.
52194         * lib/unistdio/u32-asnprintf.c: Likewise.
52195         * lib/unistdio/u32-asprintf.c: Likewise.
52196         * lib/unistdio/u32-printf-parse.c: Likewise.
52197         * lib/unistdio/u32-snprintf.c: Likewise.
52198         * lib/unistdio/u32-sprintf.c: Likewise.
52199         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
52200         * lib/unistdio/u32-u32-asprintf.c: Likewise.
52201         * lib/unistdio/u32-u32-snprintf.c: Likewise.
52202         * lib/unistdio/u32-u32-sprintf.c: Likewise.
52203         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
52204         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
52205         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
52206         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
52207         * lib/unistdio/u32-vasnprintf.c: Likewise.
52208         * lib/unistdio/u32-vasprintf.c: Likewise.
52209         * lib/unistdio/u32-vsnprintf.c: Likewise.
52210         * lib/unistdio/u32-vsprintf.c: Likewise.
52211         * lib/unistdio/u8-asnprintf.c: Likewise.
52212         * lib/unistdio/u8-asprintf.c: Likewise.
52213         * lib/unistdio/u8-printf-parse.c: Likewise.
52214         * lib/unistdio/u8-snprintf.c: Likewise.
52215         * lib/unistdio/u8-sprintf.c: Likewise.
52216         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
52217         * lib/unistdio/u8-u8-asprintf.c: Likewise.
52218         * lib/unistdio/u8-u8-snprintf.c: Likewise.
52219         * lib/unistdio/u8-u8-sprintf.c: Likewise.
52220         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
52221         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
52222         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
52223         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
52224         * lib/unistdio/u8-vasnprintf.c: Likewise.
52225         * lib/unistdio/u8-vasprintf.c: Likewise.
52226         * lib/unistdio/u8-vsnprintf.c: Likewise.
52227         * lib/unistdio/u8-vsprintf.c: Likewise.
52228         * lib/unistdio/ulc-asnprintf.c: Likewise.
52229         * lib/unistdio/ulc-asprintf.c: Likewise.
52230         * lib/unistdio/ulc-printf-parse.c: Likewise.
52231         * lib/unistdio/ulc-snprintf.c: Likewise.
52232         * lib/unistdio/ulc-sprintf.c: Likewise.
52233         * lib/unistdio/ulc-vasnprintf.c: Likewise.
52234         * lib/unistdio/ulc-vasprintf.c: Likewise.
52235         * lib/unistdio/ulc-vsnprintf.c: Likewise.
52236         * lib/unistdio/ulc-vsprintf.c: Likewise.
52237         * lib/unistr.h: Likewise.
52238         * lib/unistr/u-cpy-alloc.h: Likewise.
52239         * lib/unistr/u-cpy.h: Likewise.
52240         * lib/unistr/u-endswith.h: Likewise.
52241         * lib/unistr/u-move.h: Likewise.
52242         * lib/unistr/u-set.h: Likewise.
52243         * lib/unistr/u-startswith.h: Likewise.
52244         * lib/unistr/u-stpcpy.h: Likewise.
52245         * lib/unistr/u-stpncpy.h: Likewise.
52246         * lib/unistr/u-strcat.h: Likewise.
52247         * lib/unistr/u-strcpy.h: Likewise.
52248         * lib/unistr/u-strcspn.h: Likewise.
52249         * lib/unistr/u-strdup.h: Likewise.
52250         * lib/unistr/u-strlen.h: Likewise.
52251         * lib/unistr/u-strncat.h: Likewise.
52252         * lib/unistr/u-strncpy.h: Likewise.
52253         * lib/unistr/u-strnlen.h: Likewise.
52254         * lib/unistr/u-strpbrk.h: Likewise.
52255         * lib/unistr/u-strspn.h: Likewise.
52256         * lib/unistr/u-strstr.h: Likewise.
52257         * lib/unistr/u-strtok.h: Likewise.
52258         * lib/unistr/u16-check.c: Likewise.
52259         * lib/unistr/u16-chr.c: Likewise.
52260         * lib/unistr/u16-cmp.c: Likewise.
52261         * lib/unistr/u16-cpy-alloc.c: Likewise.
52262         * lib/unistr/u16-cpy.c: Likewise.
52263         * lib/unistr/u16-endswith.c: Likewise.
52264         * lib/unistr/u16-mblen.c: Likewise.
52265         * lib/unistr/u16-mbsnlen.c: Likewise.
52266         * lib/unistr/u16-mbtouc-aux.c: Likewise.
52267         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
52268         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
52269         * lib/unistr/u16-mbtouc.c: Likewise.
52270         * lib/unistr/u16-mbtoucr.c: Likewise.
52271         * lib/unistr/u16-move.c: Likewise.
52272         * lib/unistr/u16-next.c: Likewise.
52273         * lib/unistr/u16-prev.c: Likewise.
52274         * lib/unistr/u16-set.c: Likewise.
52275         * lib/unistr/u16-startswith.c: Likewise.
52276         * lib/unistr/u16-stpcpy.c: Likewise.
52277         * lib/unistr/u16-stpncpy.c: Likewise.
52278         * lib/unistr/u16-strcat.c: Likewise.
52279         * lib/unistr/u16-strchr.c: Likewise.
52280         * lib/unistr/u16-strcmp.c: Likewise.
52281         * lib/unistr/u16-strcpy.c: Likewise.
52282         * lib/unistr/u16-strcspn.c: Likewise.
52283         * lib/unistr/u16-strdup.c: Likewise.
52284         * lib/unistr/u16-strlen.c: Likewise.
52285         * lib/unistr/u16-strmblen.c: Likewise.
52286         * lib/unistr/u16-strmbtouc.c: Likewise.
52287         * lib/unistr/u16-strncat.c: Likewise.
52288         * lib/unistr/u16-strncmp.c: Likewise.
52289         * lib/unistr/u16-strncpy.c: Likewise.
52290         * lib/unistr/u16-strnlen.c: Likewise.
52291         * lib/unistr/u16-strpbrk.c: Likewise.
52292         * lib/unistr/u16-strrchr.c: Likewise.
52293         * lib/unistr/u16-strspn.c: Likewise.
52294         * lib/unistr/u16-strstr.c: Likewise.
52295         * lib/unistr/u16-strtok.c: Likewise.
52296         * lib/unistr/u16-to-u32.c: Likewise.
52297         * lib/unistr/u16-to-u8.c: Likewise.
52298         * lib/unistr/u16-uctomb-aux.c: Likewise.
52299         * lib/unistr/u16-uctomb.c: Likewise.
52300         * lib/unistr/u32-check.c: Likewise.
52301         * lib/unistr/u32-chr.c: Likewise.
52302         * lib/unistr/u32-cmp.c: Likewise.
52303         * lib/unistr/u32-cpy-alloc.c: Likewise.
52304         * lib/unistr/u32-cpy.c: Likewise.
52305         * lib/unistr/u32-endswith.c: Likewise.
52306         * lib/unistr/u32-mblen.c: Likewise.
52307         * lib/unistr/u32-mbsnlen.c: Likewise.
52308         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
52309         * lib/unistr/u32-mbtouc.c: Likewise.
52310         * lib/unistr/u32-mbtoucr.c: Likewise.
52311         * lib/unistr/u32-move.c: Likewise.
52312         * lib/unistr/u32-next.c: Likewise.
52313         * lib/unistr/u32-prev.c: Likewise.
52314         * lib/unistr/u32-set.c: Likewise.
52315         * lib/unistr/u32-startswith.c: Likewise.
52316         * lib/unistr/u32-stpcpy.c: Likewise.
52317         * lib/unistr/u32-stpncpy.c: Likewise.
52318         * lib/unistr/u32-strcat.c: Likewise.
52319         * lib/unistr/u32-strchr.c: Likewise.
52320         * lib/unistr/u32-strcmp.c: Likewise.
52321         * lib/unistr/u32-strcpy.c: Likewise.
52322         * lib/unistr/u32-strcspn.c: Likewise.
52323         * lib/unistr/u32-strdup.c: Likewise.
52324         * lib/unistr/u32-strlen.c: Likewise.
52325         * lib/unistr/u32-strmblen.c: Likewise.
52326         * lib/unistr/u32-strmbtouc.c: Likewise.
52327         * lib/unistr/u32-strncat.c: Likewise.
52328         * lib/unistr/u32-strncmp.c: Likewise.
52329         * lib/unistr/u32-strncpy.c: Likewise.
52330         * lib/unistr/u32-strnlen.c: Likewise.
52331         * lib/unistr/u32-strpbrk.c: Likewise.
52332         * lib/unistr/u32-strrchr.c: Likewise.
52333         * lib/unistr/u32-strspn.c: Likewise.
52334         * lib/unistr/u32-strstr.c: Likewise.
52335         * lib/unistr/u32-strtok.c: Likewise.
52336         * lib/unistr/u32-to-u16.c: Likewise.
52337         * lib/unistr/u32-to-u8.c: Likewise.
52338         * lib/unistr/u32-uctomb.c: Likewise.
52339         * lib/unistr/u8-check.c: Likewise.
52340         * lib/unistr/u8-chr.c: Likewise.
52341         * lib/unistr/u8-cmp.c: Likewise.
52342         * lib/unistr/u8-cpy-alloc.c: Likewise.
52343         * lib/unistr/u8-cpy.c: Likewise.
52344         * lib/unistr/u8-endswith.c: Likewise.
52345         * lib/unistr/u8-mblen.c: Likewise.
52346         * lib/unistr/u8-mbsnlen.c: Likewise.
52347         * lib/unistr/u8-mbtouc-aux.c: Likewise.
52348         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
52349         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
52350         * lib/unistr/u8-mbtouc.c: Likewise.
52351         * lib/unistr/u8-mbtoucr.c: Likewise.
52352         * lib/unistr/u8-move.c: Likewise.
52353         * lib/unistr/u8-next.c: Likewise.
52354         * lib/unistr/u8-prev.c: Likewise.
52355         * lib/unistr/u8-set.c: Likewise.
52356         * lib/unistr/u8-startswith.c: Likewise.
52357         * lib/unistr/u8-stpcpy.c: Likewise.
52358         * lib/unistr/u8-stpncpy.c: Likewise.
52359         * lib/unistr/u8-strcat.c: Likewise.
52360         * lib/unistr/u8-strchr.c: Likewise.
52361         * lib/unistr/u8-strcmp.c: Likewise.
52362         * lib/unistr/u8-strcpy.c: Likewise.
52363         * lib/unistr/u8-strcspn.c: Likewise.
52364         * lib/unistr/u8-strdup.c: Likewise.
52365         * lib/unistr/u8-strlen.c: Likewise.
52366         * lib/unistr/u8-strmblen.c: Likewise.
52367         * lib/unistr/u8-strmbtouc.c: Likewise.
52368         * lib/unistr/u8-strncat.c: Likewise.
52369         * lib/unistr/u8-strncmp.c: Likewise.
52370         * lib/unistr/u8-strncpy.c: Likewise.
52371         * lib/unistr/u8-strnlen.c: Likewise.
52372         * lib/unistr/u8-strpbrk.c: Likewise.
52373         * lib/unistr/u8-strrchr.c: Likewise.
52374         * lib/unistr/u8-strspn.c: Likewise.
52375         * lib/unistr/u8-strstr.c: Likewise.
52376         * lib/unistr/u8-strtok.c: Likewise.
52377         * lib/unistr/u8-to-u16.c: Likewise.
52378         * lib/unistr/u8-to-u32.c: Likewise.
52379         * lib/unistr/u8-uctomb-aux.c: Likewise.
52380         * lib/unistr/u8-uctomb.c: Likewise.
52381         * lib/unitypes.h: Likewise.
52382         * lib/uniwidth.h: Likewise.
52383         * lib/uniwidth/cjk.h: Likewise.
52384         * lib/uniwidth/u16-strwidth.c: Likewise.
52385         * lib/uniwidth/u16-width.c: Likewise.
52386         * lib/uniwidth/u32-strwidth.c: Likewise.
52387         * lib/uniwidth/u32-width.c: Likewise.
52388         * lib/uniwidth/u8-strwidth.c: Likewise.
52389         * lib/uniwidth/u8-width.c: Likewise.
52390         * lib/uniwidth/width.c: Likewise.
52391
52392 2007-10-07  Bruno Haible  <bruno@clisp.org>
52393
52394         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
52395         The file is still under LGPL (see modules/inttypes).
52396
52397 2007-10-06  Bruno Haible  <bruno@clisp.org>
52398
52399         * modules/trunc (Dependencies): Add 'extensions'.
52400         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
52401         Reported by Ben Pfaff <blp@gnu.org>.
52402
52403 2007-10-06  Bruno Haible  <bruno@clisp.org>
52404
52405         * modules/freopen-tests: New file.
52406         * tests/test-freopen.c: New file.
52407
52408         * modules/fopen-tests: New file.
52409         * tests/test-fopen.c: New file.
52410
52411         * modules/fopen: New file.
52412         * lib/fopen.c: New file.
52413         * m4/fopen.m4: New file.
52414         * modules/freopen: New file.
52415         * lib/freopen.c: New file.
52416         * m4/freopen.m4: New file.
52417         * lib/stdio.in.h (fopen, freopen): New declarations.
52418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
52419         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52420         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
52421         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52422         * doc/functions/fopen.texi: Mention the 'fopen' module.
52423         * doc/functions/freopen.texi: Mention the 'freopen' module.
52424
52425 2007-10-06  Bruno Haible  <bruno@clisp.org>
52426
52427         * modules/open-tests: New file.
52428         * tests/test-open.c: New file.
52429
52430         * modules/open: New file.
52431         * lib/open.c: New file.
52432         * m4/open.m4: New file.
52433         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
52434         lib/open.c does.
52435         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
52436         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
52437         macros.
52438         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
52439         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
52440         REPLACE_OPEN.
52441         * doc/functions/open.texi: Mention the 'open' module.
52442
52443 2007-10-04  Bruno Haible  <bruno@clisp.org>
52444
52445         * modules/ceill-tests: New file.
52446         * tests/test-ceill.c: New file.
52447
52448         * modules/ceill: New file.
52449         * lib/ceill.c: Replace entire file.
52450         * m4/ceill.m4: New file.
52451         * lib/math.in.h (ceill): Replace declaration.
52452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
52453         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
52454         * doc/functions/ceill.texi: Mention the 'ceill' module.
52455         * modules/mathl (Files): Remove lib/ceill.c.
52456         (Depends-on): Add ceill.
52457
52458 2007-10-04  Bruno Haible  <bruno@clisp.org>
52459
52460         * modules/ceilf-tests: New file.
52461         * tests/test-ceilf.c: New file.
52462
52463         * modules/ceilf: New file.
52464         * lib/ceil.c: New file.
52465         * lib/ceilf.c: New file.
52466         * m4/ceilf.m4: New file.
52467         * lib/math.in.h (ceilf): New declaration.
52468         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
52469         HAVE_DECL_CEILF.
52470         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
52471         HAVE_DECL_CEILF.
52472         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
52473
52474 2007-10-04  Bruno Haible  <bruno@clisp.org>
52475
52476         * modules/floorl-tests: New file.
52477         * tests/test-floorl.c: New file.
52478
52479         * modules/floorl: New file.
52480         * lib/floorl.c: Replace entire file.
52481         * m4/floorl.m4: New file.
52482         * lib/math.in.h (floorl): Replace declaration.
52483         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
52484         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
52485         * doc/functions/floorl.texi: Mention the 'floorl' module.
52486         * modules/mathl (Files): Remove lib/floorl.c.
52487         (Depends-on): Add floorl.
52488
52489 2007-10-04  Bruno Haible  <bruno@clisp.org>
52490
52491         * modules/floorf-tests: New file.
52492         * tests/test-floorf.c: New file.
52493
52494         * modules/floorf: New file.
52495         * lib/floor.c: New file.
52496         * lib/floorf.c: New file.
52497         * m4/floorf.m4: New file.
52498         * lib/math.in.h (floorf): New declaration.
52499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
52500         HAVE_DECL_FLOORF.
52501         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
52502         HAVE_DECL_FLOORF.
52503         * doc/functions/floorf.texi: Mention the 'floorf' module.
52504
52505 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
52506             Bruno Haible  <bruno@clisp.org>
52507
52508         Advertise for the Git server instead of the CVS server.
52509         * doc/gnulib-intro.texi (Steady Development): Mention the Git
52510         repository instead of the CVS one.
52511         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
52512         about all VCS systems generically.
52513         * doc/gnulib.texi (Introduction): Capitalize `Git'.
52514
52515 2007-10-04  Bruno Haible  <bruno@clisp.org>
52516
52517         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
52518         means.
52519         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
52520
52521 2007-10-04  Bruno Haible  <bruno@clisp.org>
52522
52523         * modules/truncl-tests: New file.
52524         * tests/test-truncl.c: New file.
52525
52526         * modules/truncl: New file.
52527         * lib/truncl.c: New file.
52528         * m4/truncl.m4: New file.
52529         * lib/math.in.h (truncl): New declaration.
52530         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
52531         HAVE_DECL_TRUNCL.
52532         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
52533         HAVE_DECL_TRUNCL.
52534         * doc/functions/truncl.texi: Mention the 'truncl' module.
52535
52536 2007-10-04  Bruno Haible  <bruno@clisp.org>
52537
52538         * modules/truncf-tests: New file.
52539         * tests/test-truncf.c: New file.
52540
52541         * modules/truncf: New file.
52542         * lib/trunc.c: Make paramerizable through USE_* macros.
52543         * lib/truncf.c: New file.
52544         * m4/truncf.m4: New file.
52545         * lib/math.in.h (truncf): New declaration.
52546         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
52547         HAVE_DECL_TRUNCF.
52548         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
52549         HAVE_DECL_TRUNCF.
52550         * doc/functions/truncf.texi: Mention the 'truncf' module.
52551
52552 2007-10-03  Bruno Haible  <bruno@clisp.org>
52553
52554         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52555         augmentation also for tests modules.
52556         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
52557         * modules/atexit-tests (Makefile.am): Likewise.
52558         * modules/binary-io-tests (Makefile.am): Likewise.
52559         * modules/c-strcase-tests (Makefile.am): Likewise.
52560         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
52561         * modules/canonicalize-tests (Makefile.am): Likewise.
52562         * modules/closein-tests (Makefile.am): Likewise.
52563         * modules/fprintf-posix-tests (Makefile.am): Likewise.
52564         * modules/freadahead-tests (Makefile.am): Likewise.
52565         * modules/fseek-tests (Makefile.am): Likewise.
52566         * modules/fseeko-tests (Makefile.am): Likewise.
52567         * modules/ftell-tests (Makefile.am): Likewise.
52568         * modules/ftello-tests (Makefile.am): Likewise.
52569         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
52570         * modules/isnanl-tests (Makefile.am): Likewise.
52571         * modules/lseek-tests (Makefile.am): Likewise.
52572         * modules/mbscasecmp-tests (Makefile.am): Likewise.
52573         * modules/mbscasestr-tests (Makefile.am): Likewise.
52574         * modules/mbschr-tests (Makefile.am): Likewise.
52575         * modules/mbscspn-tests (Makefile.am): Likewise.
52576         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
52577         * modules/mbspbrk-tests (Makefile.am): Likewise.
52578         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
52579         * modules/mbsrchr-tests (Makefile.am): Likewise.
52580         * modules/mbsspn-tests (Makefile.am): Likewise.
52581         * modules/mbsstr-tests (Makefile.am): Likewise.
52582         * modules/printf-posix-tests (Makefile.am): Likewise.
52583         * modules/snprintf-posix-tests (Makefile.am): Likewise.
52584         * modules/sprintf-posix-tests (Makefile.am): Likewise.
52585         * modules/tsearch-tests (Makefile.am): Likewise.
52586         * modules/uniname/uniname-tests (Makefile.am): Likewise.
52587         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
52588         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
52589         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
52590         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
52591         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
52592         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
52593         * modules/vprintf-posix-tests (Makefile.am): Likewise.
52594         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
52595         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
52596         * modules/xstrtoimax-tests (Makefile.am): Likewise.
52597         * modules/xstrtol-tests (Makefile.am): Likewise.
52598         * modules/xstrtoumax-tests (Makefile.am): Likewise.
52599         * modules/yesno-tests (Makefile.am): Likewise.
52600
52601 2007-10-03  Bruno Haible  <bruno@clisp.org>
52602
52603         * modules/trunc-tests: New file.
52604         * tests/test-trunc.c: New file.
52605
52606         * modules/trunc: New file.
52607         * lib/trunc.c: New file.
52608         * m4/trunc.m4: New file.
52609         * lib/math.in.h (trunc): New declaration.
52610         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
52611         HAVE_DECL_TRUNC.
52612         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
52613         HAVE_DECL_TRUNC.
52614         * doc/functions/trunc.texi: Mention the 'trunc' module.
52615
52616 2007-10-03  Bruno Haible  <bruno@clisp.org>
52617
52618         * tests/test-fpending.c: New file, mostly copied
52619         from coreutils/lib/t-fpending.c.
52620         * modules/fpending-tests: New file.
52621
52622 2007-10-03  Bruno Haible  <bruno@clisp.org>
52623
52624         Port the stdio extensions to QNX (untested).
52625         * lib/fseterr.c (fseterr): Add support for QNX.
52626         * lib/fbufmode.c (fbufmode): Likewise.
52627         * lib/freadable.c (freadable): Likewise.
52628         * lib/fwritable.c (fwritable): Likewise.
52629         * lib/freading.c (freading): Likewise.
52630         * lib/fwriting.c (fwriting): Likewise.
52631         * lib/freadahead.c (freadahed): Likewise.
52632         * lib/fpurge.c (fpurge): Likewise.
52633         * lib/fseeko.c (rpl_fseeko): Likewise.
52634
52635 2007-10-03  Bruno Haible  <bruno@clisp.org>
52636             Jim Meyering  <jim@meyering.net>
52637             Eric Blake  <ebb9@byu.net>
52638
52639         * doc/relocatable.texi: Use @command instead of @program.
52640
52641 2007-10-02  Jim Meyering  <jim@meyering.net>
52642
52643         Perform one more "_.h" -> ".in.h" substitution.
52644         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
52645         instead of unistd_.h here, too.
52646
52647 2007-10-01  Bruno Haible  <bruno@clisp.org>
52648
52649         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
52650         Needed for the alloca-opt module.
52651
52652 2007-09-30  Bruno Haible  <bruno@clisp.org>
52653
52654         * lib/alloca.in.h: Renamed from lib/alloca_.h.
52655         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
52656         alloca_.h.
52657         * lib/argz.in.h: Renamed from lib/argz_.h.
52658         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
52659         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
52660         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
52661         byteswap_.h.
52662         * lib/dirent.in.h: Renamed from lib/dirent_.h.
52663         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
52664         dirent_.h.
52665         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
52666         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
52667         fcntl_.h.
52668         * lib/float.in.h: Renamed from lib/float_.h.
52669         * modules/float (Files, Makefile.am): Use float.in.h instead of
52670         float_.h.
52671         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
52672         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
52673         fnmatch_.h.
52674         * lib/getopt.in.h: Renamed from lib/getopt_.h.
52675         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
52676         getopt_.h.
52677         * lib/glob.in.h: Renamed from lib/glob_.h.
52678         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
52679         * lib/iconv.in.h: Renamed from lib/iconv_.h.
52680         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
52681         iconv_.h.
52682         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
52683         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
52684         inttypes_.h.
52685         * lib/locale.in.h: Renamed from lib/locale_.h.
52686         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
52687         locale_.h.
52688         * lib/math.in.h: Renamed from lib/math_.h.
52689         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
52690         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
52691         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
52692         of netinet_in_.h. Add dependency.
52693         * lib/poll.in.h: Renamed from lib/poll_.h.
52694         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
52695         * lib/search.in.h: Renamed from lib/search_.h.
52696         * modules/search (Files, Makefile.am): Use search.in.h instead of
52697         search_.h.
52698         * lib/signal.in.h: Renamed from lib/signal_.h.
52699         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
52700         _signal.h.
52701         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
52702         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
52703         stdbool_.h.
52704         * lib/stdint.in.h: Renamed from lib/stdint_.h.
52705         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
52706         stdint_.h.
52707         * lib/stdio.in.h: Renamed from lib/stdio_.h.
52708         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
52709         stdio_.h.
52710         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
52711         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
52712         stdlib_.h.
52713         * lib/string.in.h: Renamed from lib/string_.h.
52714         * modules/string (Files, Makefile.am): Use string.in.h instead of
52715         string_.h.
52716         * doc/gnulib-tool.texi (Initial import): Update.
52717         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
52718         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
52719         of sys_select_.h. Add dependency.
52720         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
52721         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
52722         of sys_socket_.h.
52723         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
52724         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
52725         sys_stat_.h.
52726         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
52727         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
52728         sys_time_.h.
52729         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
52730         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
52731         sysexits_.h.
52732         * lib/time.in.h: Renamed from lib/time_.h.
52733         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
52734         * lib/unistd.in.h: Renamed from lib/unistd_.h.
52735         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
52736         unistd_.h.
52737         * lib/wchar.in.h: Renamed from lib/wchar_.h.
52738         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
52739         wchar_.h.
52740         * lib/wctype.in.h: Renamed from lib/wctype_.h.
52741         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
52742         wctype_.h.
52743         * build-aux/bootstrap (slurp): Update.
52744         * lib/.cppi-disable: Update.
52745
52746 2007-09-30  Bruno Haible  <bruno@clisp.org>
52747
52748         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
52749         Needed on BeOS.
52750
52751 2007-09-30  Bruno Haible  <bruno@clisp.org>
52752
52753         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
52754
52755 2007-09-29  Bruno Haible  <bruno@clisp.org>
52756
52757         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
52758
52759 2007-09-29  Bruno Haible  <bruno@clisp.org>
52760
52761         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
52762         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
52763         * build-aux/install-reloc: Compile also areadlink.c.
52764         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
52765
52766 2007-09-29  Bruno Haible  <bruno@clisp.org>
52767
52768         * gnulib-tool (func_emit_initmacro_done): Indentation.
52769
52770 2007-09-29  Bruno Haible  <bruno@clisp.org>
52771
52772         * README: Add CVS checkout update instructions.
52773         Info from Bob Proulx <bob@proulx.com>.
52774
52775 2007-09-28  Eric Blake  <ebb9@byu.net>
52776
52777         Provide move-if-change.
52778         * build-aux/move-if-change: New file, based on best practice
52779         rather than any canonical upstream location.
52780
52781 2007-09-28  Jim Meyering  <jim@meyering.net>
52782
52783         Fix canonicalize loop-detection corner case.
52784         Do not attempt to stat the symlink values stored via seen_triple.
52785         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
52786         on linux-2.6.18, (but not 2.6.22).
52787         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
52788         triple_compare.  The former compares dev,ino,filename, while the latter
52789         would actually stat dirname(filename) when dev and ino were equal.
52790         * lib/hash-triple.c: Install <string.h>.
52791         (STREQ): Define.
52792         (triple_compare_ino_str): New function.
52793         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
52794
52795 2007-09-28  Eric Blake  <ebb9@byu.net>
52796
52797         Enforce that AC_REPLACE_FUNCS files exist.
52798         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
52799         override check for typos.
52800
52801         Fix test-closein on Solaris 10.
52802         * tests/test-closein.c (main): Don't assume stdin can be inherited
52803         closed on all systems.
52804         * tests/test-closein.sh: Likewise.
52805         Reported by Piotr Tarnowski.
52806
52807 2007-09-28  Jim Meyering  <jim@meyering.net>
52808
52809         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
52810
52811 2007-09-27  Jim Meyering  <jim@meyering.net>
52812
52813         canonicalize: Avoid a false-positive cycle failure.
52814         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
52815         Sort.  Remove cycle-check.
52816         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
52817         not cycle-check.h.
52818         (seen_triple): New function.
52819         (canonicalize_filename_mode): Use it instead of cycle-check.
52820         * tests/test-canonicalize.c: Add a test for this bug.
52821         * tests/test-canonicalize.sh: Set up and run the test.
52822
52823         New module, file-set, from coreutils.
52824         * modules/file-set: Define it.
52825         * lib/file-set.c, lib/file-set.h: Implement.
52826
52827         New module, hash-triple, from coreutils.
52828         * modules/hash-triple: Define it.
52829         * lib/hash-triple.c, lib/hash-triple.h: Implement.
52830
52831 2007-09-25  Eric Blake  <ebb9@byu.net>
52832
52833         Fix strerror on Interix.
52834         * lib/string_.h (strerror): Declare replacement.
52835         * doc/functions/strerror.texi (strerror): Document the Interix
52836         shortcoming.
52837         * modules/string (Makefile.am): Support new hooks.
52838         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
52839         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
52840         gl_FUNC_STRERROR_SEPARATE.
52841         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
52842         * lib/strerror.c (rpl_strerror): Provide replacement.
52843         * modules/strerror (Depends-on): Add string.
52844         (configure.ac): Detect use of module.
52845         * tests/test-strerror.c: New file.
52846         * modules/strerror-tests: New test module.
52847         * modules/argp (Depends-on): Add strerror.
52848         * modules/error (Depends-on): Likewise.
52849         Reported by Martin Koeppe.
52850
52851 2007-09-24  Bruno Haible  <bruno@clisp.org>
52852
52853         * README: Update git instructions.
52854
52855 2007-09-24  Eric Blake  <ebb9@byu.net>
52856
52857         Revert fpending breakage from 2007-09-08.
52858         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
52859         __fpending.c.
52860
52861 2007-09-24  Jim Meyering  <jim@meyering.net>
52862
52863         filenamecat.c: Add a test.
52864         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
52865         showing how the function works when DIR is the empty string.
52866
52867 2007-09-21  Simon Josefsson  <simon@josefsson.org>
52868
52869         * tests/test-canonicalize.sh: Turn on executable bit.
52870
52871 2007-09-19  Eric Blake  <ebb9@byu.net>
52872
52873         * README: Update CVS instructions.
52874
52875 2007-09-18  Bruno Haible  <bruno@clisp.org>
52876
52877         * modules/areadlink: New file.
52878         * lib/areadlink.h (areadlink): New declaration.
52879         * lib/areadlink.c: New file, based on lib/xreadlink.c.
52880
52881 2007-09-17  Jim Meyering  <jim@meyering.net>
52882
52883         * lib/savewd.c (ESTALE) [!defined]: Define.
52884         Reported to be required on Interix by Martin Koeppe.
52885
52886 2007-09-17  Bruno Haible  <bruno@clisp.org>
52887
52888         * gnulib-tool (func_version): Use $version.
52889
52890 2007-09-16  Bruno Haible  <bruno@clisp.org>
52891
52892         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
52893         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
52894         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
52895         Reported by Greg Schafer <gschafer@zip.com.au>.
52896
52897 2007-09-15  Bruno Haible  <bruno@clisp.org>
52898
52899         * gnulib-tool (sed): Try a little harder to make bash understand the
52900         alias.
52901         Reported by Bruce Korb <bruce.korb@gmail.com>.
52902
52903 2007-09-13  Eric Blake  <ebb9@byu.net>
52904
52905         * ChangeLog: Remove conflict markers.
52906
52907 2007-09-13  Simon Josefsson  <simon@josefsson.org>
52908
52909         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
52910         Reported by Bruno Haible <bruno@clisp.org>.
52911
52912 2007-09-12  Bruno Haible  <bruno@clisp.org>
52913
52914         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
52915         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
52916         is not defined.
52917
52918 2007-09-12  Eric Blake  <ebb9@byu.net>
52919
52920         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
52921         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
52922         Autoconf definition.
52923         * modules/euidaccess (Depends-on): Add extensions, for
52924         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
52925         * modules/fnmatch (Depends-on): Likewise.
52926         * modules/getaddrinfo (Depends-on): Likewise.
52927         * modules/getdelim (Depends-on): Likewise.
52928         * modules/getline (Depends-on): Likewise.
52929         * modules/getsubopt (Depends-on): Likewise.
52930         * modules/gettext (Depends-on): Likewise.
52931         * modules/group-member (Depends-on): Likewise.
52932         * modules/mbchar (Depends-on): Likewise.
52933         * modules/memmem (Depends-on): Likewise.
52934         * modules/mempcpy (Depends-on): Likewise.
52935         * modules/memrchr (Depends-on): Likewise.
52936         * modules/pagealign_alloc (Depends-on): Likewise.
52937         * modules/readutmp (Depends-on): Likewise.
52938         * modules/stpcpy (Depends-on): Likewise.
52939         * modules/stpncpy (Depends-on): Likewise.
52940         * modules/strchrnul (Depends-on): Likewise.
52941         * modules/strndup (Depends-on): Likewise.
52942         * modules/strsep (Depends-on): Likewise.
52943         * modules/strverscmp (Depends-on): Likewise.
52944         * modules/vasprintf (Depends-on): Likewise.
52945         * modules/wcwidth (Depends-on): Likewise.
52946         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
52947         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
52948         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
52949         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
52950         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52951         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
52952         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
52953         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52954         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
52955         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
52956         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52957         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
52958         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
52959         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
52960         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
52961         * m4/readutmp.m4 (gl_READUTMP): Likewise.
52962         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52963         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
52964         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52965         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
52966         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52967         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
52968         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
52969         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
52970         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
52971         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52972         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
52973         so that lock.m4 can be used in gettext without extensions module.
52974
52975 2007-09-11  Bruno Haible  <bruno@clisp.org>
52976
52977         * m4/isc-posix.m4: Remove file.
52978         Suggested by Eric Blake.
52979
52980 2007-09-11  Eric Blake  <ebb9@byu.net>
52981
52982         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
52983
52984 2007-09-10  Bruno Haible  <bruno@clisp.org>
52985
52986         * posix-modules: Fix typo in error message.
52987         Reported by Matt <mkraai@beckman.com>.
52988
52989 2007-09-09  Bruno Haible  <bruno@clisp.org>
52990
52991         * doc/functions/getdelim.texi: Update list of platforms lacking the
52992         function.
52993         * doc/functions/getline.texi: Likewise.
52994
52995 2007-09-09  Jim Meyering  <jim@meyering.net>
52996
52997         * lib/hash.c (hash_initialize): Detect calloc failure.
52998         Reported by Bruno Haible.
52999
53000 2007-09-09  Bruno Haible  <bruno@clisp.org>
53001
53002         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
53003         malloc or realloc fails.
53004
53005 2007-09-09  Bruno Haible  <bruno@clisp.org>
53006
53007         * modules/getcwd (Depends-on): Add malloc-posix.
53008         * modules/glob (Depends-on): Likewise.
53009         * modules/putenv (Depends-on): Likewise.
53010         * modules/strdup (Depends-on): Likewise.
53011         * modules/getdelim (Depends-on): Add realloc-posix.
53012         * modules/read-file (Depends-on): Likewise.
53013
53014 2007-09-09  Bruno Haible  <bruno@clisp.org>
53015
53016         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
53017         (gl_FUNC_MALLOC_POSIX): Require it.
53018         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
53019         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
53020         * modules/realloc (Files): Add m4/malloc.m4.
53021         * modules/calloc (Files): Likewise.
53022
53023 2007-09-09  Bruno Haible  <bruno@clisp.org>
53024
53025         * modules/malloc-posix: New file.
53026         * modules/malloc (Depends-on): Add malloc-posix.
53027         * lib/malloc.c: Include errno.h.
53028         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
53029         and a POSIX-compatible malloc into a single function. Set ENOMEM
53030         when returning NULL.
53031         * m4/malloc.m4: New file.
53032         * doc/functions/malloc.texi: Mention the malloc-posix module.
53033         * lib/stdlib_.h (malloc): New declaration.
53034         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53035         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
53036         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
53037         and HAVE_MALLOC_POSIX.
53038
53039 2007-09-09  Bruno Haible  <bruno@clisp.org>
53040
53041         * modules/realloc-posix: New file.
53042         * modules/realloc (Depends-on): Add realloc-posix.
53043         * lib/realloc.c: Include errno.h.
53044         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
53045         and a POSIX-compatible realloc into a single function. Set ENOMEM
53046         when returning NULL.
53047         * m4/realloc.m4: New file.
53048         * doc/functions/realloc.texi: Mention the realloc-posix module.
53049         * lib/stdlib_.h (realloc): New declaration.
53050         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53051         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
53052         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
53053         and HAVE_REALLOC_POSIX.
53054
53055 2007-09-09  Bruno Haible  <bruno@clisp.org>
53056
53057         * modules/calloc-posix: New file.
53058         * modules/calloc (Depends-on): Add calloc-posix.
53059         * lib/calloc.c: Include errno.h.
53060         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
53061         and a POSIX-compatible calloc into a single function. Set ENOMEM
53062         when returning NULL.
53063         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
53064         * doc/functions/calloc.texi: Mention the calloc-posix module.
53065         * lib/stdlib_.h (calloc): New declaration.
53066         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53067         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
53068         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
53069         and HAVE_CALLOC_POSIX.
53070
53071 2007-09-09  Bruno Haible  <bruno@clisp.org>
53072
53073         Allow for modules to show an arbitrary notice.
53074         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
53075         * gnulib-tool: New option --extract-notice.
53076         (func_usage): Document it.
53077         (sed_extract_prog): Update.
53078         (func_get_notice): New function.
53079         (func_modules_notice): New function.
53080         (func_import, func_create_testdir): Invoke it.
53081         Suggested by Jim Meyering.
53082
53083 2007-09-09  Bruno Haible  <bruno@clisp.org>
53084
53085         * gnulib-tool: New options --verbose, --quiet.
53086         (func_usage): Document them.
53087         (verbose): New variable.
53088         (func_execute_command): New function.
53089         (func_import): Don't show the module list and the file list if
53090         $verbose < 0.
53091         (func_create_testdir): Likewise. Use func_execute_command.
53092         (func_create_megatestdir): Use func_execute_command.
53093
53094 2007-09-08  Bruno Haible  <bruno@clisp.org>
53095
53096         * gnulib-tool (func_import): Prefer rsync over wget when available,
53097         for fetching the PO files.
53098
53099 2007-09-08  Bruno Haible  <bruno@clisp.org>
53100
53101         * posix-modules: New file. Portions copied from gnulib-tool.
53102         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
53103
53104 2007-09-08  Jim Meyering  <jim@meyering.net>
53105
53106         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
53107         * lib/fpending.h: Rename from __fpending.h.
53108         * lib/fpending.c: Rename from __fpending.c.
53109         Include "fpending.h", not "__fpending.h".
53110         * lib/__fpending.h, lib/__fpending.c: Remove files.
53111         * modules/fpending (Files): Reflect new file names.
53112         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
53113
53114 2007-09-08  Bruno Haible  <bruno@clisp.org>
53115
53116         * m4/inttypes-h.m4: Remove stub file.
53117
53118 2007-09-07  Simon Josefsson  <simon@josefsson.org>
53119
53120         * doc/headers/stdint.texi: Discuss #include_next issue.
53121
53122 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53123
53124         * build-aux/bootstrap: Remove obsolete comment about wget --help.
53125
53126 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53127
53128         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
53129         in variable name.
53130
53131 2007-09-03  Jim Meyering  <jim@meyering.net>
53132
53133         New module: git-version-gen.
53134         * modules/git-version-gen: New file.
53135
53136         Import changes from coreutils for bootstrap script.
53137
53138         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
53139
53140         bootstrap: uses rsync to download the .po files
53141         * build-aux/bootstrap (po_download_command_format): New global.
53142         (download_po_files): Use rsync.
53143         (update_po_files): Don't remove .po files after download,
53144         so future rsync runs can take advantage of the copies.
53145
53146         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
53147
53148         Solve the unnecessary-.po-file-regeneration problem once and for all.
53149         * build-aux/bootstrap (download_po_files): New function, renamed from
53150         get_translations.  Now, downloads, but doesn't update LINGUAS.
53151         (update_po_files): New function.
53152
53153         bootstrap: Ignore more.
53154         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
53155         uniwidth to e.g., lib/.gitignore.
53156         (slurp): Handle the sys_stat_.h -> sys mapping, too.
53157
53158         * build-aux/bootstrap: New setting: vc_ignore.
53159         (insert_sorted_if_absent): Create $file if absent.
53160         Adapt to new, possibly empty, list: $vc_ignore.
53161
53162         bootstrap: generate more ignorable names
53163         * build-aux/bootstrap (slurp): When generating ignorable names,
53164         also map .sin to .sed, .gperf to .c, and .y to .c.
53165
53166 2007-09-03  Jim Meyering  <jim@meyering.net>
53167
53168         * build-aux/git-version-gen: New file, from coreutils.  For details, see
53169         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
53170
53171 2007-09-02  Bruno Haible  <bruno@clisp.org>
53172
53173         Fix mis-recognition of 'mcs' on QNX 6.
53174         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
53175         output contains the string "Mono".
53176         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
53177         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
53178
53179 2007-09-01  Bruno Haible  <bruno@clisp.org>
53180
53181         Fix collision between uniwidth/* and linebreak modules.
53182         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
53183         u32_width): Remove declarations.
53184         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
53185         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
53186         streq3, streq2, streq1, streq0): Remove functions.
53187         (STREQ): Remove macro.
53188         (is_cjk_encoding): Remove function.
53189         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
53190         (uc_width, u8_width, u16_width, u32_width): Remove functions.
53191         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
53192         * NEWS: Document the change.
53193
53194 2007-09-01  Bruno Haible  <bruno@clisp.org>
53195
53196         * lib/streq.h: Add double-inclusion guard.
53197
53198 2007-09-01  Karl Berry  <karl@gnu.org>
53199
53200         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
53201
53202 2007-08-28  Jim Meyering  <jim@meyering.net>
53203
53204         Rename mreadlink_with_size to areadlink_with_size.
53205         * NEWS: Document the change.
53206         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
53207         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
53208         * lib/mreadlink.h: Rename this to...
53209         * lib/areadlink.h: ...this.
53210         * modules/mreadlink-with-size: Rename this to...
53211         * modules/areadlink-with-size: ...this.
53212         * lib/canonicalize.c: Reflect the renaming.
53213         * modules/canonicalize: Likewise.
53214
53215 2007-08-26  Bruno Haible  <bruno@clisp.org>
53216
53217         * gnulib-tool (func_import): When deciding which files to remove,
53218         consider also dangling symbolic links.
53219         Reported by Eric Blake.
53220
53221 2007-08-26  Bruno Haible  <bruno@clisp.org>
53222
53223         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
53224
53225 2007-08-23  Simon Josefsson  <simon@josefsson.org>
53226
53227         * lib/readline.c: Don't include getline.h, the prototype is now
53228         found in stdio.h.
53229
53230 2007-08-23  Jim Meyering  <jim@meyering.net>
53231
53232         Getdelim touchup.
53233         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
53234         around the funlockfile call, since funlockfile never sets errno.
53235         Don't set errno upon failed realloc.
53236
53237 2007-08-22  Eric Blake  <ebb9@byu.net>
53238
53239         Getline touchups.
53240         * lib/getdelim.c (getdelim): Revert regression that required *n to
53241         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
53242         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
53243         getdelim, rather than whether implementation is missing.
53244         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
53245         * lib/stdio_.h (getline): Also declare if replacement is
53246         required.
53247         * doc/functions/getdelim.texi: New file.
53248         * doc/functions/getline.texi: Likewise.
53249         * doc/gnulib.texi (Function Substitutes): Add new files.
53250         Reported by Bruno Haible.
53251
53252 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
53253
53254         * users.txt: Add Guile.
53255
53256 2007-08-22  Eric Blake  <ebb9@byu.net>
53257
53258         * tests/test-getdelim.c (main): Use remove, not unlink.
53259         * tests/test-getline.c (main): Likewise.
53260
53261         Move getline and getdelim into stdio.h, per POSIX 200x.
53262         * modules/getline (Files): Remove getline.h.
53263         (Depends-on): Add stdio.
53264         (configure.ac): Add module indicator.
53265         * modules/getdelim (Files): Remove getdelim.h.
53266         (Depends-on): Add stdio.
53267         (configure.ac): Add module indicator.
53268         * modules/stdio (Makefile.am): Work with new indicators.
53269         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
53270         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
53271         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53272         * lib/getdelim.h: Delete.
53273         * lib/getline.h: Delete.
53274         * lib/stdio_.h (getdelim, getline): Declare.
53275         * modules/getdelim-tests: New module.
53276         * modules/getline-tests: Likewise.
53277         * tests/test-getdelim.c: New file.
53278         * tests/test-getline.c: Likewise.
53279         * NEWS: Document the change.
53280         * lib/getline.c: Update choice of header.
53281         * lib/csharpcomp.c: Likewise.
53282         * lib/getpass.c: Likewise.
53283         * lib/javacomp.c: Likewise.
53284         * lib/javaversion.c: Likewise.
53285         * lib/yesno.c: Likewise.
53286         * lib/getdelim.c: Likewise.
53287         (getdelim): Set errno on failure, and avoid memory leak.
53288
53289 2007-08-19  Bruno Haible  <bruno@clisp.org>
53290
53291         * modules/closein (Depends-on): Add freadahead.
53292         * lib/closein.c: Include freadahead.h.
53293         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
53294         is zero.
53295
53296 2007-08-19  Bruno Haible  <bruno@clisp.org>
53297
53298         * modules/freadahead-tests: New file.
53299         * tests/test-freadahead.sh: New file.
53300         * tests/test-freadahead.c: New file.
53301
53302         * modules/freadahead: New file.
53303         * lib/freadahead.h: New file.
53304         * lib/freadahead.c: New file.
53305         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
53306         fbufmode, fpurge, freadable, fwritable.
53307
53308 2007-08-19  Eric Blake  <ebb9@byu.net>
53309
53310         Test yesno in combination with closein.
53311         * lib/yesno.c (yesno): Document use of stdin.
53312         * modules/yesno-tests (Files): New module.
53313         * tests/test-yesno.c (main): New file.
53314         * tests/test-yesno.sh: Likewise.
53315
53316 2007-08-19  Bruno Haible  <bruno@clisp.org>
53317
53318         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
53319         * lib/fseeko.c (rpl_fseeko): Likewise.
53320         * lib/fseterr.c (fseterr): Likewise.
53321
53322 2007-08-19  Bruno Haible  <bruno@clisp.org>
53323
53324         * tests/test-lseek.c (main): Disable a test for BeOS.
53325         * doc/functions/lseek.texi: Document the BeOS bug.
53326
53327 2007-08-19  Bruno Haible  <bruno@clisp.org>
53328             Eric Blake  <ebb9@byu.net>
53329
53330         * lib/lseek.c: Include <sys/stat.h>.
53331         (rpl_lseek): Add workaround code also for Unix platforms.
53332         Needed for BeOS.
53333         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
53334         * doc/functions/lseek.texi: Document BeOS definiency.
53335
53336 2007-08-18  Bruno Haible  <bruno@clisp.org>
53337
53338         * modules/fstrcmp-tests: New file.
53339         * tests/test-fstrcmp.c: New file.
53340
53341 2007-08-18  Bruno Haible  <bruno@clisp.org>
53342
53343         * modules/fstrcmp: New file, from GNU gettext with modifications.
53344         * lib/fstrcmp.h: New file, from GNU gettext.
53345         * lib/fstrcmp.c: New file, from GNU gettext.
53346         * MODULES.html.sh (String handling): Add fstrcmp.
53347
53348 2007-08-18  Bruno Haible  <bruno@clisp.org>
53349
53350         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
53351         'bool'.
53352         (diag, compareseq): Remove const from the ctxt argument.
53353         (USE_HEURISTIC): Undefine at the end.
53354
53355 2007-08-18  Jim Meyering  <jim@meyering.net>
53356
53357         New file: lib/idcache.h
53358         * NEWS: Mention the addition.
53359         * modules/idcache (Files): Add lib/idcache.h
53360         * lib/idcache.c: Include "idcache.h".
53361         Don't include <sys/types.h>.
53362         Add a FIXME comment.
53363         Move file-scoped "static" declarations to the top.
53364         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
53365
53366 2007-08-17  Bruno Haible  <bruno@clisp.org>
53367         and Paul Eggert  <eggert@cs.ucla.edu>
53368
53369         * MODULES.html.sh: Add diffseq.
53370         * modules/diffseq: New file.
53371         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
53372         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
53373
53374 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53375
53376         Import changes from coreutils for bootstrap script.
53377
53378         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
53379
53380         * build-aux/bootstrap (slurp): Work even in environments where
53381         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
53382         current code does not slurp files whose names start with ".", and
53383         this looks like it might be a troublesome area.
53384
53385         2007-07-11  Jim Meyering  <jim@meyering.net>
53386
53387         If there's a GPL vN copyright comment, require that N == 3.
53388
53389         2007-07-08  Jim Meyering  <jim@meyering.net>
53390
53391         Run the coreutils-specific code only if tests/Makefile.am.in exists.
53392         * build-aux/bootstrap (mam_template): Move definition out of loop.
53393
53394         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
53395
53396         * build-aux/bootstrap (symlink_to_dir): Rename function from
53397         symlink_to_gnulib.  Add a directory parameter.  Update all
53398         callers.
53399         (cp_mark_as_generated): Also check for -- and link to -- files in
53400         gl/.
53401
53402         2007-07-08  Jim Meyering  <jim@meyering.net>
53403
53404         Adapt to deeper hierarchy in gnulib.
53405         * build-aux/bootstrap (symlink_to_dir): If the destination
53406         directory doesn't exist, create it. This is required at least for
53407         "lib/uniwidth/cjk.h".
53408
53409         2007-05-15  Jim Meyering  <jim@meyering.net>
53410
53411         * build-aux/bootstrap: Now that generated Makefile.am files
53412         are no longer under version control, they must be created at
53413         bootstrap time.
53414
53415 2007-08-14  Ben Pfaff  <blp@gnu.org>
53416
53417         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
53418
53419 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53420
53421         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
53422         given the changes below.
53423         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
53424         even on hosts that have padding bits beyond the supported 64.
53425
53426 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53427
53428         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
53429         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
53430         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
53431         depends on it.
53432         (xstrtol_error): Remove.
53433         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
53434         but with a different signature.
53435         (ATTRIBUTE_NORETURN, __attribute__): New macros.
53436         * lib/xstrtol-error.c: Include exitfail.h.
53437         (xstrtol_fatal): New function, with a different signature from the
53438         old xstrtol_error, so that the caller need not worry about passing
53439         in an exit status, or about storage management of the option argument.
53440         (xstrtol_error): Now a static function.  Redo signature to
53441         implement xstrtol_fatal.  Output the correct number of hyphens in
53442         front of the option so that the caller need not worry about
53443         storage management.
53444         (N_): New macro.
53445         (_): Remove; not used now.
53446         * modules/xstrtol: Depend on getopt.
53447         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
53448         of old STRTOL_FATAL_ERROR macro.
53449         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
53450         of test program.
53451         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
53452         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
53453
53454 2007-08-08  Eric Blake  <ebb9@byu.net>
53455
53456         * lib/xstrtol-error.c: Add missing include.
53457
53458         Move xstrtol messages into gnulib domain, when --pobase is used.
53459         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
53460         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
53461         * modules/xstrtol (Files): Distribute new file.
53462         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
53463         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
53464         * tests/test-xstrtol.c: ...into new file.
53465         * tests/test-xstrtoul.c: Also test xstrtoul.
53466         * tests/test-xstrtoimax.c: Also test xstrtoimax.
53467         * tests/test-xstrtoumax.c: Also test xstrtoumax.
53468         * tests/test-xstrtol.sh: Drive the tests.
53469         * tests/test-xstrtoimax.sh: Likewise.
53470         * tests/test-xstrtoumax.sh: Likewise.
53471         * modules/xstrtol-tests: New module.
53472         * modules/xstrtoimax-tests: Likewise.
53473         * modules/xstrtoumax-tests: Likewise.
53474
53475 2007-08-08  Jim Meyering  <jim@meyering.net>
53476
53477         New function: mfile_name_concat.
53478         * lib/filenamecat.c (mfile_name_concat): New function, just like
53479         file_name_concat, but return NULL upon failure rather than exiting
53480         with a diagnostic.
53481         * lib/filenamecat.h: Declare it.
53482
53483 2007-08-07  Bruno Haible  <bruno@clisp.org>
53484
53485         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
53486         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
53487         warning from gcc.
53488         Reported by Eric Blake.
53489
53490 2007-08-07  Simon Josefsson  <simon@josefsson.org>
53491
53492         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
53493         * modules/crypto/arcfour (License): Likewise.
53494         * modules/crypto/des-tests (License): Likewise.
53495         * modules/crypto/gc-arctwo-tests (License): Likewise.
53496         * modules/crypto/gc-des-tests (License): Likewise.
53497         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
53498         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
53499         * modules/crypto/gc-md2-tests (License): Likewise.
53500         * modules/crypto/gc-md4-tests (License): Likewise.
53501         * modules/crypto/gc-md5-tests (License): Likewise.
53502         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
53503         * modules/crypto/gc-rijndael-tests (License): Likewise.
53504         * modules/crypto/gc-sha1-tests (License): Likewise.
53505         * modules/crypto/gc-tests (License): Likewise.
53506         * modules/crypto/hmac-md5 (License): Likewise.
53507         * modules/crypto/hmac-sha1 (License): Likewise.
53508         * modules/crypto/md2-tests (License): Likewise.
53509         * modules/crypto/md4-tests (License): Likewise.
53510         * modules/crypto/md5 (License): Likewise.
53511         * modules/crypto/rijndael (License): Likewise.
53512         * modules/crypto/sha1 (License): Likewise.
53513         * modules/memxor (License): Likewise.
53514
53515 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53516         and Bruno Haible  <bruno@clisp.org>
53517
53518         * NEWS: Describe interface changes to human, xstrtol.
53519         * lib/human.h: Include <xstrtol.h>.
53520         (human_options): Return enum strtol_error, not int.  Remove
53521         bool arg; take int * instead.
53522         * lib/human.c: Don't include "gettext.h".
53523         (_): Remove; no longer used.
53524         Don't include <xstrtol.h>, since human.h does it.
53525         (human_options): Adjust to abovementioned interface changes.
53526         Do not report error to stderr; that's now the caller's
53527         responsibility.
53528         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
53529         interface change.
53530         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
53531         Str, Argument_type_string.  All uses changed.  Put " argument"
53532         in diagnostics to make them clearer.  Change wording of suffix
53533         message for clarity.
53534         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
53535         Argument_type_string.
53536         (STRTOL_FATAL_WARN): Remove; no longer used.
53537         * modules/human (Depends-on): Remove gettext-h.
53538
53539 2007-08-06  Simon Josefsson  <simon@josefsson.org>
53540
53541         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
53542
53543 2007-07-31  Bruno Haible  <bruno@clisp.org>
53544
53545         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
53546         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
53547         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
53548
53549 2007-07-31  Bruno Haible  <bruno@clisp.org>
53550
53551         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
53552         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
53553
53554 2007-07-30  Bruno Haible  <bruno@clisp.org>
53555
53556         * modules/base64 (License): Use the synonymous term "LGPLv2+".
53557         * modules/c-ctype (License): Likewise.
53558         * modules/c-strcase (License): Likewise.
53559         * modules/check-version (License): Likewise.
53560         * modules/iconv (License): Likewise.
53561         * modules/iconv_open (License): Likewise.
53562         * modules/read-file (License): Likewise.
53563         * modules/striconv (License): Likewise.
53564         * modules/strverscmp (License): Likewise.
53565         * modules/vasprintf (License): Likewise.
53566         * modules/crypto/des (License): Likewise.
53567         * modules/crypto/gc (License): Likewise.
53568         * modules/crypto/gc-arcfour (License): Likewise.
53569         * modules/crypto/gc-arctwo (License): Likewise.
53570         * modules/crypto/gc-des (License): Likewise.
53571         * modules/crypto/gc-hmac-md5 (License): Likewise.
53572         * modules/crypto/gc-hmac-sha1 (License): Likewise.
53573         * modules/crypto/gc-md2 (License): Likewise.
53574         * modules/crypto/gc-md4 (License): Likewise.
53575         * modules/crypto/gc-md5 (License): Likewise.
53576         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
53577         * modules/crypto/gc-random (License): Likewise.
53578         * modules/crypto/gc-rijndael (License): Likewise.
53579         * modules/crypto/gc-sha1 (License): Likewise.
53580         * modules/crypto/md2 (License): Likewise.
53581         * modules/crypto/md4 (License): Likewise.
53582
53583 2007-07-30  Jim Meyering  <jim@meyering.net>
53584
53585         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
53586         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
53587         it has valid stat data.  This bug would cause du not to count the
53588         sizes of inaccessible directories.
53589         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
53590         in <http://bugzilla.redhat.com/250077>.
53591
53592 2007-07-25  Peter O'Gorman  <peter@pogma.com>
53593             Bruno Haible  <bruno@clisp.org>
53594
53595         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
53596         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
53597         #include_next, gives a diagnostic about it, but reports no error in
53598         the exit code.
53599         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53600
53601 2007-07-24  Ben Pfaff  <blp@gnu.org>
53602
53603         Improve name: "count-one-bits" is better than "popcount".
53604         * MODULES.html.sh: Update name.
53605         * lib/popcount.h: Renamed lib/count-one-bits.h.
53606         (popcount): Renamed count_one_bits.
53607         (popcountl): Renamed count_one_bits_l.
53608         (popcountll): Renamed count_one_bits_ll.
53609         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
53610         * modules/popcount: Renamed module/count-one-bits.
53611         * modules/popcount-tests: Renamed module/count-one-bits-tests.
53612         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
53613
53614 2007-07-23  Ben Pfaff  <blp@gnu.org>
53615
53616         * lib/popcount.h (popcount32): Reduce size of constants, to allow
53617         better code generation, and add U to large constants to avoid
53618         warnings, in non-GCC case.
53619         Suggested by Bruno Haible.
53620
53621 2007-07-23  Ben Pfaff  <blp@gnu.org>
53622
53623         * lib/popcount.h: Use verify_true instead of if...abort.
53624         * modules/popcount: Depend on verify module.
53625         Suggested by Jim Meyering.
53626
53627 2007-07-23  Bruno Haible  <bruno@clisp.org>
53628
53629         * gnulib-tool (func_import): Create a .cvsignore file also when the
53630         directory is not yet in CVS but the toplevel directory is. When
53631         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
53632         Reported by Karl Berry.
53633
53634 2007-07-22  Ben Pfaff  <blp@gnu.org>
53635
53636         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
53637         case.
53638         Suggested by Eric Blake.
53639
53640 2007-07-22  Ben Pfaff  <blp@gnu.org>
53641
53642         New module: popcount.
53643         * MODULES.html.sh: Add popcount.
53644         * modules/popcount: New file.
53645         * modules/popcount-tests: New file.
53646         * tests/test-popcount.c: New file.
53647         * lib/popcount.h: New file.
53648         * m4/popcount.m4: New file.
53649
53650 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53651
53652         * build-aux/announce-gen: Update to GPLv3.
53653
53654         * build-aux/config.guess: Update from config.
53655
53656 2007-07-21  Bruno Haible  <bruno@clisp.org>
53657
53658         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
53659         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
53660
53661 2007-07-20  Jim Meyering  <jim@meyering.net>
53662
53663         * check-module: Diagnose a self-dependency.
53664
53665 2007-07-19  Bruno Haible  <bruno@clisp.org>
53666
53667         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
53668         empty.
53669         Reported by Eric Blake.
53670
53671 2007-07-18  Bruno Haible  <bruno@clisp.org>
53672
53673         * gnulib-tool: New options --po-base, --po-domain.
53674         (func_usage): Document them.
53675         (pobase, po_domain): New variables.
53676         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
53677         DEFAULT_TEXT_DOMAIN.
53678         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
53679         (func_import): Consider pobase and po_domain. Create a po/ directory.
53680         (func_create_testdir): Set pobase and po_domain to empty.
53681         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
53682         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
53683
53684 2007-07-18  Bruno Haible  <bruno@clisp.org>
53685
53686         * gnulib-tool (func_get_automake_snippet): Synthesize also an
53687         EXTRA_DIST augmentation for files in build-aux/.
53688
53689 2007-07-16  Bruno Haible  <bruno@clisp.org>
53690
53691         * modules/lseek (License): Use the synonymous term "LGPLv2+".
53692         * modules/getdelim (License): Likewise.
53693
53694 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53695
53696         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
53697         * modules/d-type (License): Likewise.
53698         * modules/extensions (License): Likewise.
53699         * modules/fnmatch (License): Likewise.
53700         * modules/fseeko (License): Likewise.
53701         * modules/getaddrinfo (License): Likewise.
53702         * modules/getline (License): Likewise.
53703         * modules/getlogin_r (License): Likewise.
53704         * modules/getpass (License): Likewise.
53705         * modules/gettimeofday (License): Likewise.
53706         * modules/glob (License): Likewise.
53707         * modules/inet_ntop (License): Likewise.
53708         * modules/malloc (License): Likewise.
53709         * modules/malloca (License): Likewise.
53710         * modules/memmem (License): Likewise.
53711         * modules/mempcpy (License): Likewise.
53712         * modules/memset (License): Likewise.
53713         * modules/minmax (License): Likewise.
53714         * modules/mktime (License): Likewise.
53715         * modules/netinet_in (License): Likewise.
53716         * modules/pathmax (License): Likewise.
53717         * modules/poll (License): Likewise.
53718         * modules/regex (License): Likewise.
53719         * modules/snprintf (License): Likewise.
53720         * modules/stdbool (License): Likewise.
53721         * modules/stdint (License): Likewise.
53722         * modules/stdio (License): Likewise.
53723         * modules/strcase (License): Likewise.
53724         * modules/strcasestr (License): Likewise.
53725         * modules/strdup (License): Likewise.
53726         * modules/string (License): Likewise.
53727         * modules/strndup (License): Likewise.
53728         * modules/strnlen (License): Likewise.
53729         * modules/strpbrk (License): Likewise.
53730         * modules/strptime (License): Likewise.
53731         * modules/strsep (License): Likewise.
53732         * modules/sys_select (License): Likewise.
53733         * modules/sys_socket (License): Likewise.
53734         * modules/sys_stat (License): Likewise.
53735         * modules/sys_time (License): Likewise.
53736         * modules/time (License): Likewise.
53737         * modules/time_r (License): Likewise.
53738         * modules/timegm (License): Likewise.
53739         * modules/unistd (License): Likewise.
53740         * modules/vsnprintf (License): Likewise.
53741         * modules/wctype (License): Likewise.
53742
53743 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53744
53745         * modules/argz (License): LGPLv2+.
53746
53747 2007-07-15  Karl Berry  <karl@gnu.org>
53748
53749         * doc/gnulib.texi: revise node structure per new fdl.texi.
53750
53751 2007-07-14  Bruno Haible  <bruno@clisp.org>
53752
53753         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
53754         the output file.
53755         * lib/uniname/uninames.h: Regenerated.
53756
53757 2007-07-14  Karl Berry  <karl@gnu.org>
53758
53759         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
53760         omitting sectioning and index commands.
53761
53762 2007-07-13  Bruno Haible  <bruno@clisp.org>
53763
53764         New gnulib-tool option --more-symlinks.
53765         * gnulib-tool (func_usage): Document --more-symlinks.
53766         (do_copyrights): New variable.
53767         Recognize option --more-symlinks.
53768         (func_import): Don't add a copyright notice transform to
53769         sed_transform_lib_file if do_copyrights is empty.
53770
53771 2007-07-13  Bruno Haible  <bruno@clisp.org>
53772
53773         * lib/vasnprintf.c (decimal_point_char): Define also if
53774         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
53775         && !NEED_PRINTF_DIRECTIVE_A.
53776         Reported by Clemens Koller <clemens.koller@anagramm.de> via
53777         Gary V. Vaughan <gary@gnu.org>.
53778
53779 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
53780
53781         * lib/inttypes_.h: Undo previous change, since it was fixed
53782         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
53783
53784 2007-07-13  Bruno Haible  <bruno@clisp.org>
53785
53786         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
53787         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
53788
53789 2007-07-13  Jim Meyering  <jim@meyering.net>
53790
53791         df: Don't fail for Tru64's "file-on-file mount".
53792         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
53793         so we fall through and use statfs instead.  Details here:
53794         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
53795         Reported by Albert Chin.
53796
53797 2007-07-13  Bruno Haible  <bruno@clisp.org>
53798
53799         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
53800         * modules/configmake (License): Likewise.
53801         * modules/gettext (License): Likewise.
53802         * modules/gettext-h (License): Likewise.
53803         * modules/include_next (License): Likewise.
53804         * modules/link-warning (License): Likewise.
53805         * modules/localcharset (License): Likewise.
53806         * modules/localename (License): Likewise.
53807         * modules/lock (License): Likewise.
53808         * modules/relocatable-lib-lgpl (License): Likewise.
53809         * modules/size_max (License): Likewise.
53810         * modules/vasnprintf (License): Likewise.
53811         * modules/wchar (License): Likewise.
53812         * modules/xsize (License): Likewise.
53813
53814 2007-07-13  Bruno Haible  <bruno@clisp.org>
53815
53816         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
53817         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
53818
53819 2007-07-12  Bruno Haible  <bruno@clisp.org>
53820
53821         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
53822         in the modules files.
53823
53824 2007-07-11  Karl Berry  <karl@gnu.org>
53825
53826         * MODULES.html.sh (func_module): use
53827          sed -e '\|^'"${includefile}"'$|d'
53828          instead of /.../d, to avoid errors on $includefile's containing /.
53829
53830 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53831
53832         * gnulib-tool (func_import): Avoid duplication of --avoid
53833         statements
53834         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
53835         names to `_' in variable names.
53836
53837 2007-07-10  Eric Blake  <ebb9@byu.net>
53838
53839         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
53840         * NEWS: Document this change.
53841
53842 2007-07-08  Bruno Haible  <bruno@clisp.org>
53843
53844         Update to Unicode 5.0.
53845         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
53846         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
53847         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
53848         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
53849         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
53850         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
53851         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
53852         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
53853         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
53854         U+10A3F, U+1D242..U+1D244.
53855         (nonspacing_table_ind): Update.
53856         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
53857         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
53858
53859 2007-07-08  Bruno Haible  <bruno@clisp.org>
53860
53861         Update to Unicode 5.0.
53862         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
53863         code transform. Extend the name index field of unicode_name_to_code and
53864         unicode_code_to_name from 16 to 24 bits.
53865         * lib/uniname/uniname.c (unicode_character_name,
53866         unicode_name_character): Add the range 0x12xxx to the code transform.
53867         * lib/uniname/uninames.h: Regenerated.
53868         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
53869
53870 2007-07-07  Bruno Haible  <bruno@clisp.org>
53871
53872         * modules/wcwidth-tests: New file.
53873         * tests/test-wcwidth.c: New file.
53874
53875         Work around MacOS X wcwidth() bug.
53876         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
53877         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
53878         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
53879         original wcwidth in non-UTF-8 locales.
53880         * modules/wcwidth (Depends-on): Add localcharset, streq,
53881         uniwidth/width.
53882         * doc/functions/wcwidth.texi: Update.
53883
53884 2007-07-07  Bruno Haible  <bruno@clisp.org>
53885
53886         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
53887         (wcwidth): New declaration.
53888         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
53889         macros.
53890         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
53891         here. Prepare for creating <wchar.h> unconditionally.
53892         * modules/wchar (Depends-on): Add link-warning.
53893         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
53894         REPLACE_WCWIDTH, and GL_LINK_WARNING.
53895         * lib/wcwidth.h: Remove file.
53896         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
53897         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
53898         * modules/wcwidth (Files): Remove lib/wcwidth.h.
53899         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
53900         (Include): Replace wcwidth.h with <wchar.h>.
53901         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
53902         * lib/mbchar.h: Don't include wcwidth.h.
53903         * lib/mbswidth.c: Likewise.
53904         * NEWS: Mention the change.
53905
53906 2007-07-07  Bruno Haible  <bruno@clisp.org>
53907
53908         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
53909         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
53910         definition with an external declaration.
53911         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
53912         defined as a function. Remove AC_C_INLINE requirement.
53913         * modules/wcwidth (Files): Add lib/wcwidth.c.
53914         (Makefile.am): Remove redundant statement.
53915
53916 2007-07-07  Bruno Haible  <bruno@clisp.org>
53917
53918         * MODULES.html.sh (Unicode string functions): Add the new modules.
53919
53920         * tests/uniwidth/test-u32-strwidth.c: New file.
53921         * modules/uniwidth/u32-strwidth-tests: New file.
53922
53923         * lib/uniwidth/u32-strwidth.c: New file.
53924         * modules/uniwidth/u32-strwidth: New file.
53925
53926         * tests/uniwidth/test-u16-strwidth.c: New file.
53927         * modules/uniwidth/u16-strwidth-tests: New file.
53928
53929         * lib/uniwidth/u16-strwidth.c: New file.
53930         * modules/uniwidth/u16-strwidth: New file.
53931
53932         * tests/uniwidth/test-u8-strwidth.c: New file.
53933         * modules/uniwidth/u8-strwidth-tests: New file.
53934
53935         * lib/uniwidth/u8-strwidth.c: New file.
53936         * modules/uniwidth/u8-strwidth: New file.
53937
53938         * tests/uniwidth/test-u32-width.c: New file.
53939         * modules/uniwidth/u32-width-tests: New file.
53940
53941         * lib/uniwidth/u32-width.c: New file.
53942         * modules/uniwidth/u32-width: New file.
53943
53944         * tests/uniwidth/test-u16-width.c: New file.
53945         * modules/uniwidth/u16-width-tests: New file.
53946
53947         * lib/uniwidth/u16-width.c: New file.
53948         * modules/uniwidth/u16-width: New file.
53949
53950         * tests/uniwidth/test-u8-width.c: New file.
53951         * modules/uniwidth/u8-width-tests: New file.
53952
53953         * lib/uniwidth/u8-width.c: New file.
53954         * modules/uniwidth/u8-width: New file.
53955
53956         * tests/uniwidth/test-uc_width.c: New file.
53957         * modules/uniwidth/width-tests: New file.
53958
53959         * lib/uniwidth/width.c: New file, from GNU libiconv.
53960         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
53961         * modules/uniwidth/width: New file.
53962
53963         * lib/uniwidth.h: New file, from GNU libiconv.
53964         * modules/uniwidth/base: New file.
53965
53966 2007-07-07  Bruno Haible  <bruno@clisp.org>
53967
53968         * lib/uniname.h: New file, from GNU gettext.
53969         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
53970         * lib/uniname/uninames.h: New file, from GNU gettext.
53971         * lib/uniname/uniname.c: New file, from GNU gettext.
53972         * tests/uniname/test-uninames.sh: New file.
53973         * tests/uniname/test-uninames.c: New file, from GNU gettext.
53974         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
53975         * modules/uniname/base: New file.
53976         * modules/uniname/uniname: New file.
53977         * modules/uniname/uniname-tests: New file.
53978         * MODULES.html.sh (Unicode string functions): Add the new modules.
53979
53980 2007-07-06  Bruno Haible  <bruno@clisp.org>
53981
53982         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
53983
53984 2007-07-06  Bruno Haible  <bruno@clisp.org>
53985
53986         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
53987         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
53988         includes <cygwin/sys_time.h> which includes <sys/select.h> which
53989         include <sys/time.h>.
53990         Reported by Eric Blake.
53991
53992 2007-07-06  Eric Blake  <ebb9@byu.net>
53993
53994         Fix testing canonicalize on cygwin.
53995         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
53996         Revert patch from 2007-06-19.
53997         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
53998         canonicalize module is also in use.
53999         * tests/test-canonicalize.c: New file.
54000         * tests/test-canonicalize.sh: Likewise.
54001         * modules/canonicalize-tests: Likewise.
54002
54003 2007-07-06  Jim Meyering  <jim@meyering.net>
54004
54005         * lib/getugroups.c (getugroups): Detect getgrent failure.
54006         Adjust comment to reflect reality: this function may return -1.
54007
54008 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54009
54010         * build-aux/bootstrap (TP_URL,get_translations): Update to use
54011         the new TP address.
54012         (usage): Fix typo
54013         (gnulib_mk): New variable.
54014
54015 2007-07-05  Jim Meyering  <jim@meyering.net>
54016
54017         Don't let endgrent clobber errno, no matter how improbable.
54018         * lib/getugroups.c (getugroups): Save and restore errno around
54019         endgrent call.
54020
54021         Close the group DB even when failing with 2^31 or more members.
54022         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
54023
54024 2007-07-04  Jim Meyering  <jim@meyering.net>
54025
54026         * lib/getugroups.h: New file.
54027         * lib/getugroups.c: Include "getugroups.h".
54028         Remove uses of "register" keyword.
54029         Move local variable, "cp", down into scope where used.
54030         Give "username" parameter the "const" attribute.
54031         * modules/getugroups (Files): Add lib/getugroups.h
54032
54033 2007-07-04  Karl Berry  <karl@gnu.org>
54034
54035         * MODULES.html.sh (func_all_modules): Complete rename of
54036         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
54037
54038 2007-07-02  Bruno Haible  <bruno@clisp.org>
54039
54040         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
54041         mode, when inttypes.h comes from gnulib.
54042         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54043
54044 2007-07-02  Simon Josefsson  <simon@josefsson.org>
54045
54046         * NEWS: Mention lgpl module name change.
54047
54048         * modules/lgpl-2.1: Renamed from lgpl.
54049
54050         * NEWS: Mention gpl module name change.
54051
54052         * modules/gpl-3.0: New file, based on gpl-2.0.
54053
54054         * modules/gpl-2.0: Renamed from gpl.
54055
54056         * modules/gpl: Fix filename, doc/gpl.texi is now found at
54057         doc/gpl-2.0.texi.
54058
54059 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54060
54061         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
54062         #define __STDC_LIMIT_MACROS temporarily while including
54063         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
54064         Problem reported by Joel E. Denny in
54065         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
54066
54067 2007-07-01  Bruno Haible  <bruno@clisp.org>
54068
54069         * lib/unistdio.h: New file.
54070         * lib/unistdio/u-asnprintf.h: New file.
54071         * lib/unistdio/u-asprintf.h: New file.
54072         * lib/unistdio/u-printf-args.c: New file.
54073         * lib/unistdio/u-printf-args.h: New file.
54074         * lib/unistdio/u-printf-parse.h: New file.
54075         * lib/unistdio/u-snprintf.h: New file.
54076         * lib/unistdio/u-sprintf.h: New file.
54077         * lib/unistdio/u-vasprintf.h: New file.
54078         * lib/unistdio/u-vsnprintf.h: New file.
54079         * lib/unistdio/u-vsprintf.h: New file.
54080         * lib/unistdio/ulc-asnprintf.c: New file.
54081         * lib/unistdio/ulc-asprintf.c: New file.
54082         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
54083         * lib/unistdio/ulc-printf-parse.c: New file.
54084         * lib/unistdio/ulc-snprintf.c: New file.
54085         * lib/unistdio/ulc-sprintf.c: New file.
54086         * lib/unistdio/ulc-vasnprintf.c: New file.
54087         * lib/unistdio/ulc-vasprintf.c: New file.
54088         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
54089         * lib/unistdio/ulc-vsnprintf.c: New file.
54090         * lib/unistdio/ulc-vsprintf.c: New file.
54091         * lib/unistdio/u8-asnprintf.c: New file.
54092         * lib/unistdio/u8-asprintf.c: New file.
54093         * lib/unistdio/u8-printf-parse.c: New file.
54094         * lib/unistdio/u8-snprintf.c: New file.
54095         * lib/unistdio/u8-sprintf.c: New file.
54096         * lib/unistdio/u8-vasnprintf.c: New file.
54097         * lib/unistdio/u8-vasprintf.c: New file.
54098         * lib/unistdio/u8-vsnprintf.c: New file.
54099         * lib/unistdio/u8-vsprintf.c: New file.
54100         * lib/unistdio/u8-u8-asnprintf.c: New file.
54101         * lib/unistdio/u8-u8-asprintf.c: New file.
54102         * lib/unistdio/u8-u8-snprintf.c: New file.
54103         * lib/unistdio/u8-u8-sprintf.c: New file.
54104         * lib/unistdio/u8-u8-vasnprintf.c: New file.
54105         * lib/unistdio/u8-u8-vasprintf.c: New file.
54106         * lib/unistdio/u8-u8-vsnprintf.c: New file.
54107         * lib/unistdio/u8-u8-vsprintf.c: New file.
54108         * lib/unistdio/u16-asnprintf.c: New file.
54109         * lib/unistdio/u16-asprintf.c: New file.
54110         * lib/unistdio/u16-printf-parse.c: New file.
54111         * lib/unistdio/u16-snprintf.c: New file.
54112         * lib/unistdio/u16-sprintf.c: New file.
54113         * lib/unistdio/u16-vasnprintf.c: New file.
54114         * lib/unistdio/u16-vasprintf.c: New file.
54115         * lib/unistdio/u16-vsnprintf.c: New file.
54116         * lib/unistdio/u16-vsprintf.c: New file.
54117         * lib/unistdio/u16-u16-asnprintf.c: New file.
54118         * lib/unistdio/u16-u16-asprintf.c: New file.
54119         * lib/unistdio/u16-u16-snprintf.c: New file.
54120         * lib/unistdio/u16-u16-sprintf.c: New file.
54121         * lib/unistdio/u16-u16-vasnprintf.c: New file.
54122         * lib/unistdio/u16-u16-vasprintf.c: New file.
54123         * lib/unistdio/u16-u16-vsnprintf.c: New file.
54124         * lib/unistdio/u16-u16-vsprintf.c: New file.
54125         * lib/unistdio/u32-asnprintf.c: New file.
54126         * lib/unistdio/u32-asprintf.c: New file.
54127         * lib/unistdio/u32-printf-parse.c: New file.
54128         * lib/unistdio/u32-snprintf.c: New file.
54129         * lib/unistdio/u32-sprintf.c: New file.
54130         * lib/unistdio/u32-vasnprintf.c: New file.
54131         * lib/unistdio/u32-vasprintf.c: New file.
54132         * lib/unistdio/u32-vsnprintf.c: New file.
54133         * lib/unistdio/u32-vsprintf.c: New file.
54134         * lib/unistdio/u32-u32-asnprintf.c: New file.
54135         * lib/unistdio/u32-u32-asprintf.c: New file.
54136         * lib/unistdio/u32-u32-snprintf.c: New file.
54137         * lib/unistdio/u32-u32-sprintf.c: New file.
54138         * lib/unistdio/u32-u32-vasnprintf.c: New file.
54139         * lib/unistdio/u32-u32-vasprintf.c: New file.
54140         * lib/unistdio/u32-u32-vsnprintf.c: New file.
54141         * lib/unistdio/u32-u32-vsprintf.c: New file.
54142         * tests/unistdio/test-ulc-asnprintf1.c: New file.
54143         * tests/unistdio/test-ulc-asnprintf1.h: New file.
54144         * tests/unistdio/test-ulc-printf1.h: New file.
54145         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
54146         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
54147         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
54148         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
54149         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
54150         * tests/unistdio/test-ulc-vasprintf1.c: New file.
54151         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
54152         * tests/unistdio/test-ulc-vsprintf1.c: New file.
54153         * tests/unistdio/test-u8-asnprintf1.c: New file.
54154         * tests/unistdio/test-u8-asnprintf1.h: New file.
54155         * tests/unistdio/test-u8-printf1.h: New file.
54156         * tests/unistdio/test-u8-vasnprintf1.c: New file.
54157         * tests/unistdio/test-u8-vasnprintf2.c: New file.
54158         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
54159         * tests/unistdio/test-u8-vasnprintf3.c: New file.
54160         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
54161         * tests/unistdio/test-u8-vasprintf1.c: New file.
54162         * tests/unistdio/test-u8-vsnprintf1.c: New file.
54163         * tests/unistdio/test-u8-vsprintf1.c: New file.
54164         * tests/unistdio/test-u16-asnprintf1.c: New file.
54165         * tests/unistdio/test-u16-asnprintf1.h: New file.
54166         * tests/unistdio/test-u16-printf1.h: New file.
54167         * tests/unistdio/test-u16-vasnprintf1.c: New file.
54168         * tests/unistdio/test-u16-vasnprintf2.c: New file.
54169         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
54170         * tests/unistdio/test-u16-vasnprintf3.c: New file.
54171         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
54172         * tests/unistdio/test-u16-vasprintf1.c: New file.
54173         * tests/unistdio/test-u16-vsnprintf1.c: New file.
54174         * tests/unistdio/test-u16-vsprintf1.c: New file.
54175         * tests/unistdio/test-u32-asnprintf1.c: New file.
54176         * tests/unistdio/test-u32-asnprintf1.h: New file.
54177         * tests/unistdio/test-u32-printf1.h: New file.
54178         * tests/unistdio/test-u32-vasnprintf1.c: New file.
54179         * tests/unistdio/test-u32-vasnprintf2.c: New file.
54180         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
54181         * tests/unistdio/test-u32-vasnprintf3.c: New file.
54182         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
54183         * tests/unistdio/test-u32-vasprintf1.c: New file.
54184         * tests/unistdio/test-u32-vsnprintf1.c: New file.
54185         * tests/unistdio/test-u32-vsprintf1.c: New file.
54186         * modules/unistdio/base: New file.
54187         * modules/unistdio/u-printf-args: New file.
54188         * modules/unistdio/ulc-asnprintf: New file.
54189         * modules/unistdio/ulc-asprintf: New file.
54190         * modules/unistdio/ulc-fprintf: New file.
54191         * modules/unistdio/ulc-printf-parse: New file.
54192         * modules/unistdio/ulc-snprintf: New file.
54193         * modules/unistdio/ulc-sprintf: New file.
54194         * modules/unistdio/ulc-vasnprintf: New file.
54195         * modules/unistdio/ulc-vasprintf: New file.
54196         * modules/unistdio/ulc-vfprintf: New file.
54197         * modules/unistdio/ulc-vsnprintf: New file.
54198         * modules/unistdio/ulc-vsprintf: New file.
54199         * modules/unistdio/u8-asnprintf: New file.
54200         * modules/unistdio/u8-asprintf: New file.
54201         * modules/unistdio/u8-printf-parse: New file.
54202         * modules/unistdio/u8-snprintf: New file.
54203         * modules/unistdio/u8-sprintf: New file.
54204         * modules/unistdio/u8-vasnprintf: New file.
54205         * modules/unistdio/u8-vasprintf: New file.
54206         * modules/unistdio/u8-vsnprintf: New file.
54207         * modules/unistdio/u8-vsprintf: New file.
54208         * modules/unistdio/u8-u8-asnprintf: New file.
54209         * modules/unistdio/u8-u8-asprintf: New file.
54210         * modules/unistdio/u8-u8-snprintf: New file.
54211         * modules/unistdio/u8-u8-sprintf: New file.
54212         * modules/unistdio/u8-u8-vasnprintf: New file.
54213         * modules/unistdio/u8-u8-vasprintf: New file.
54214         * modules/unistdio/u8-u8-vsnprintf: New file.
54215         * modules/unistdio/u8-u8-vsprintf: New file.
54216         * modules/unistdio/u16-asnprintf: New file.
54217         * modules/unistdio/u16-asprintf: New file.
54218         * modules/unistdio/u16-printf-parse: New file.
54219         * modules/unistdio/u16-snprintf: New file.
54220         * modules/unistdio/u16-sprintf: New file.
54221         * modules/unistdio/u16-vasnprintf: New file.
54222         * modules/unistdio/u16-vasprintf: New file.
54223         * modules/unistdio/u16-vsnprintf: New file.
54224         * modules/unistdio/u16-vsprintf: New file.
54225         * modules/unistdio/u16-u16-asnprintf: New file.
54226         * modules/unistdio/u16-u16-asprintf: New file.
54227         * modules/unistdio/u16-u16-snprintf: New file.
54228         * modules/unistdio/u16-u16-sprintf: New file.
54229         * modules/unistdio/u16-u16-vasnprintf: New file.
54230         * modules/unistdio/u16-u16-vasprintf: New file.
54231         * modules/unistdio/u16-u16-vsnprintf: New file.
54232         * modules/unistdio/u16-u16-vsprintf: New file.
54233         * modules/unistdio/u32-asnprintf: New file.
54234         * modules/unistdio/u32-asprintf: New file.
54235         * modules/unistdio/u32-printf-parse: New file.
54236         * modules/unistdio/u32-snprintf: New file.
54237         * modules/unistdio/u32-sprintf: New file.
54238         * modules/unistdio/u32-vasnprintf: New file.
54239         * modules/unistdio/u32-vasprintf: New file.
54240         * modules/unistdio/u32-vsnprintf: New file.
54241         * modules/unistdio/u32-vsprintf: New file.
54242         * modules/unistdio/u32-u32-asnprintf: New file.
54243         * modules/unistdio/u32-u32-asprintf: New file.
54244         * modules/unistdio/u32-u32-snprintf: New file.
54245         * modules/unistdio/u32-u32-sprintf: New file.
54246         * modules/unistdio/u32-u32-vasnprintf: New file.
54247         * modules/unistdio/u32-u32-vasprintf: New file.
54248         * modules/unistdio/u32-u32-vsnprintf: New file.
54249         * modules/unistdio/u32-u32-vsprintf: New file.
54250         * modules/unistdio/ulc-asnprintf-tests: New file.
54251         * modules/unistdio/ulc-vasnprintf-tests: New file.
54252         * modules/unistdio/ulc-vasprintf-tests: New file.
54253         * modules/unistdio/ulc-vsnprintf-tests: New file.
54254         * modules/unistdio/ulc-vsprintf-tests: New file.
54255         * modules/unistdio/u8-asnprintf-tests: New file.
54256         * modules/unistdio/u8-vasnprintf-tests: New file.
54257         * modules/unistdio/u8-vasprintf-tests: New file.
54258         * modules/unistdio/u8-vsnprintf-tests: New file.
54259         * modules/unistdio/u8-vsprintf-tests: New file.
54260         * modules/unistdio/u16-asnprintf-tests: New file.
54261         * modules/unistdio/u16-vasnprintf-tests: New file.
54262         * modules/unistdio/u16-vasprintf-tests: New file.
54263         * modules/unistdio/u16-vsnprintf-tests: New file.
54264         * modules/unistdio/u16-vsprintf-tests: New file.
54265         * modules/unistdio/u32-asnprintf-tests: New file.
54266         * modules/unistdio/u32-vasnprintf-tests: New file.
54267         * modules/unistdio/u32-vasprintf-tests: New file.
54268         * modules/unistdio/u32-vsnprintf-tests: New file.
54269         * modules/unistdio/u32-vsprintf-tests: New file.
54270         * MODULES.html.sh (Unicode string functions): Add the new modules.
54271
54272 2007-07-01  Bruno Haible  <bruno@clisp.org>
54273
54274         * lib/sprintf.c (sprintf): Limit the available length estimation,
54275         to avoid address wraparound.
54276         * lib/vsprintf.c (vsprintf): Likewise.
54277         * modules/sprintf-posix (Dependencies): Add stdint.
54278         * modules/vsprintf-posix (Dependencies): Likewise.
54279
54280 2007-07-01  Bruno Haible  <bruno@clisp.org>
54281
54282         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
54283         Windows PATH as well. Conservative double-quoting. Comments.
54284
54285 2007-07-01  Bruno Haible  <bruno@clisp.org>
54286             Eric Blake  <ebb9@byu.net>
54287             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54288
54289         * gnulib-tool (self_abspathname): Fix algorithm to cope with
54290         empty components in $PATH, denoting '.'.
54291
54292 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54293
54294         * gnulib-tool: Fix indentation.
54295         (func_create_megatestdir): Likewise.
54296         Report by Bruno Haible.
54297
54298 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54299
54300         Sync from Automake.
54301         * build-aux/gnupload: Fix shell portability issues with for loops.
54302         Report by Karl Berry.
54303
54304 2007-06-29  Simon Josefsson  <simon@josefsson.org>
54305
54306         * build-aux/maint.mk (POURL): Use translationproject.org.
54307
54308 2007-06-27  Simon Josefsson  <simon@josefsson.org>
54309             Bruno Haible  <bruno@clisp.org>
54310
54311         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
54312         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
54313         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
54314         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
54315         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
54316
54317 2007-06-27  Bruno Haible  <bruno@clisp.org>
54318
54319         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
54320         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
54321
54322 2007-06-26  Karl Berry  <karl@gnu.org>
54323
54324         * MODULES.html.sh: remove xreadlink-with-size.
54325
54326 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54327
54328         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
54329         method that I hope also handles the double-include problem noted
54330         by Bruno Haible in
54331         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
54332
54333 2007-06-23  Bruno Haible  <bruno@clisp.org>
54334
54335         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54336         Don't let the 'mostlyclean' target fail if the last subdirectory could
54337         not be removed.
54338         Reported by Karl Berry.
54339
54340 2007-06-23  Bruno Haible  <bruno@clisp.org>
54341
54342         * gnulib-tool (echo): Add a speedier workaround for ksh.
54343         * tests/test-echo.sh: Likewise.
54344
54345 2007-06-23  Bruno Haible  <bruno@clisp.org>
54346
54347         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
54348         * tests/test-echo.sh: Likewise.
54349
54350 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54351
54352         * gnulib-tool (IFS): Initialize early, so we don't set it to
54353         empty later.
54354         (self_abspathname): Rewrite algorithm to set it, reindent.
54355         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
54356         (func_create_megatestdir): Merge some sed scripts.
54357
54358 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54359
54360         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
54361         exposed by Sun Studio 11 cc on Solaris 8.
54362
54363 2007-06-22  Bruno Haible  <bruno@clisp.org>
54364
54365         * gnulib-tool (echo): Ensure the echo primitive does not interpret
54366         backslashes.
54367         * tests/test-echo.sh: New file.
54368
54369 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54370
54371         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
54372         simplify `sed_replace_build_aux' scripts, they are portable but
54373         echoing them with `echo' is not.
54374         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
54375
54376 2007-06-21  Karl Berry  <karl@gnu.org>
54377
54378         * config/srclist.txt: guess we can't handle the licenses via
54379         srclist at the moment.
54380
54381 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54382
54383         * MODULES.html.sh: Add include_next.
54384         * modules/include_next: New file.
54385
54386 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54387
54388         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
54389         INCLUDE_NEXT.
54390         (gl_CHECK_NEXT_HEADERS): New macro.
54391         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
54392         the obsolescent gl_ABSOLUTE_HEADER.
54393         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
54394         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
54395         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
54396         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54397         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54398         * m4/math_h.m4 (gl_MATH_H): Likewise.
54399         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54400         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54401         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54402         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54403         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54404         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54405         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54406         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54407         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54408         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54409         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
54410         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
54411         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
54412         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54413         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54414         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54415         * m4/inttypes.m4 (gl_INTTYPES_H): Define
54416         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
54417         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
54418         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
54419         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
54420         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
54421         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
54422         * lib/float_.h: Likewise.
54423         * lib/inttypes_.h: Likewise.
54424         * lib/math_.h: Likewise.
54425         * lib/search_.h: Likewise.
54426         * lib/signal_.h: Likewise.
54427         * lib/stdint_.h: Likewise.
54428         * lib/stdio_.h: Likewise.
54429         * lib/stdlib_.h: Likewise.
54430         * lib/string_.h: Likewise.
54431         * lib/sys_stat_.h: Likewise.
54432         * lib/sys_time_.h: Likewise.
54433         * lib/time_.h: Likewise.
54434         * lib/unistd_.h: Likewise.
54435         * lib/wchar_.h: Likewise.
54436         * lib/wctype_.h: Likewise.
54437         * lib/dirent_.h: Likewise.
54438         * lib/iconv_.h: Likewise.
54439         * lib/locale_.h: Likewise.
54440         * lib/netinet_in_.h: Likewise.
54441         * lib/sys_select_.h: Likewise.
54442         * lib/sys_socket_.h: Likewise.
54443         * lib/sysexits_.h: Likewise.
54444         * modules/fcntl (Depends-on): Depend on include_next, not
54445         absolute_header.
54446         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
54447         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
54448         * modules/fchdir: Likewise.
54449         * modules/float: Likewise.
54450         * modules/iconv_open: Likewise.
54451         * modules/inttypes: Likewise.
54452         * modules/locale: Likewise.
54453         * modules/math: Likewise.
54454         * modules/netinet_in: Likewise.
54455         * modules/search: Likewise.
54456         * modules/signal: Likewise.
54457         * modules/stdint: Likewise.
54458         * modules/stdio: Likewise.
54459         * modules/stdlib: Likewise.
54460         * modules/string: Likewise.
54461         * modules/sys_select: Likewise.
54462         * modules/sys_socket: Likewise.
54463         * modules/sys_stat: Likewise.
54464         * modules/sys_time: Likewise.
54465         * modules/sysexits: Likewise.
54466         * modules/time: Likewise.
54467         * modules/unistd: Likewise.
54468         * modules/wchar: Likewise.
54469         * modules/wctype: Likewise.
54470         * modules/sys_stat: Change maintainer to "all".
54471         * modules/unistd: Likewise.
54472
54473 2007-06-20  Karl Berry  <karl@gnu.org>
54474
54475         * config/srclist.txt: track www changes in license files.
54476
54477 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
54478
54479         * build-aux/bootstrap: Remove stray dot.
54480         Make sure build_aux settings are honored when linking
54481         gnulib_extra_files.
54482
54483 2007-06-19  Eric Blake  <ebb9@byu.net>
54484
54485         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54486         Allow compilation on cygwin.
54487
54488 2007-06-19  Jim Meyering  <jim@meyering.net>
54489
54490         xreadlink-with-size: Remove module.  No longer used.
54491         Ex-callers now use xreadlink or mreadlink-with-size.
54492         * modules/xreadlink-with-size: Remove module.
54493         * lib/xreadlink-with-size.c: Remove file.
54494         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
54495         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
54496         just before the function definition *is* accurate.
54497
54498         Eliminate one way canonicalize_filename_mode could exit.
54499         * lib/canonicalize.c (canonicalize_filename_mode):
54500         Use mreadlink_with_size, not xreadlink_with_size.
54501
54502 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
54503
54504         Detect porting problems to FreeBSD/arm, which has time_t wider than
54505         long int.  Original problem reported for GNU diff by Xin Li in
54506         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
54507         * modules/getdate (Depends-on): Add intprops, verify.
54508         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
54509         is an integer type no wider than long int.
54510
54511 2007-06-18  Jim Meyering  <jim@meyering.net>
54512
54513         New module: mreadlink-with-size.
54514         * MODULES.html.sh: Add mreadlink-with-size.
54515         * modules/mreadlink-with-size: New module
54516         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
54517         not xreadlink-with-size.
54518         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
54519
54520 2007-06-16  Bruno Haible  <bruno@clisp.org>
54521
54522         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
54523         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
54524         Reported by Gary V. Vaughan <gary@gnu.org>.
54525
54526 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
54527
54528         Revamp lchown so that it lives in unistd.h where it belongs.
54529         * lib/lchown.h: Remove.
54530         * lib/dirchownmod.c: Don't include lib/lchown.h.
54531         * lib/fchownat.c: Likewise.
54532         * lib/openat.c: Likewise.
54533         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
54534         does not follow symlinks.
54535         (EOPNOTSUPP): Define if not defined.
54536         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
54537         is defined to 0.
54538         (lchown): New decl.
54539         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
54540         Do not check for lchown decl.
54541         Set REPLACE_LCHOWN.
54542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
54543         REPLACE_LCHOWN.
54544         * modules/chown: Make it clear it follows symlinks.
54545         * modules/lchown: Make it clear it doesn't follow symlinks.
54546         (Files): Remove lib/lchown.h
54547         (Depends-on): Add unistd.
54548         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
54549         (Include): Include <unistd.h>, not "lchown.h".
54550         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
54551         REPLACE_LCHOWN.
54552
54553 2007-06-15  Jim Meyering  <jim@meyering.net>
54554
54555         Change license (GPL to LGPL) of fsusage and dependents.
54556         * modules/fsusage (License): Change to LGPL.
54557         * modules/full-read (License): Likewise.
54558         * modules/full-write (License): Likewise.
54559         * modules/safe-read (License): Likewise.
54560         * modules/safe-write (License): Likewise.
54561
54562 2007-06-14  Ben Pfaff  <blp@gnu.org>
54563
54564         Missing part of allocsa -> malloca transition.
54565         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
54566         gl_MALLOCA.
54567
54568 2007-06-12  Bruno Haible  <bruno@clisp.org>
54569
54570         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
54571         to ia64, x86_64, i386.
54572         Reported by Eric Blake.
54573
54574 2007-06-12  Bruno Haible  <bruno@clisp.org>
54575
54576         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
54577         cross-compiling to x86_64.
54578
54579 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
54580
54581         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
54582         glitch reported by Ralf Wildenhues in
54583         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
54584
54585         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
54586         Vin Shelton.
54587
54588 2007-06-11  Bruno Haible  <bruno@clisp.org>
54589
54590         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
54591         replacement string.
54592         Reported by Eric Blake.
54593
54594 2007-06-10  Bruno Haible  <bruno@clisp.org>
54595
54596         Prepare vasnprintf code for use with Unicode strings.
54597         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
54598         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
54599         TYPE_U32_STRING.
54600         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
54601         a_u32_string variants.
54602         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54603         * lib/printf-args.c: Don't include config.h and the specification
54604         header if PRINTF_FETCHARGS is already defined.
54605         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54606         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
54607         TYPE_U16_STRING, TYPE_U32_STRING.
54608         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
54609         u16_directive, u16_directives, u32_directive, u32_directives): New
54610         types.
54611         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
54612         New declarations.
54613         * lib/printf-parse.c: Don't include config.h and the specification
54614         header if PRINTF_PARSE is already defined. Eliminate the set of
54615         parameters for WIDE_CHAR_VERSION; the user of this file must provide
54616         them now. Include c-ctype.h.
54617         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
54618         directive and CHAR_T_ONLY_ASCII.
54619         * lib/vasnprintf.c: Don't include config.h and the specification header
54620         if VASNPRINTF is already defined.
54621         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
54622         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
54623         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
54624         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
54625         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
54626         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
54627         code accordingly.
54628         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
54629         pad_ourselves also in this case, with the 'c' and 's' directives, and
54630         with a different notion of "width".
54631         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
54632
54633 2007-06-10  Bruno Haible  <bruno@clisp.org>
54634
54635         * modules/unistr/u32-mbsnlen: New file.
54636         * lib/unistr/u32-mbsnlen.c: New file.
54637
54638         * modules/unistr/u16-mbsnlen: New file.
54639         * lib/unistr/u16-mbsnlen.c: New file.
54640
54641         * modules/unistr/u8-mbsnlen: New file.
54642         * lib/unistr/u8-mbsnlen.c: New file.
54643
54644         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
54645         declarations.
54646
54647 2007-06-10  Bruno Haible  <bruno@clisp.org>
54648
54649         * lib/string_.h (mbsnlen): New declaration.
54650         * lib/mbsnlen.c: New file.
54651         * m4/mbsnlen.m4: New file.
54652         * modules/mbsnlen: New file.
54653         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
54654         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
54655         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
54656
54657 2007-06-10  Bruno Haible  <bruno@clisp.org>
54658
54659         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
54660
54661 2007-06-10  Bruno Haible  <bruno@clisp.org>
54662
54663         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
54664         * lib/mbuiter.h: Likewise.
54665
54666 2007-06-10  Bruno Haible  <bruno@clisp.org>
54667
54668         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
54669         declaration.
54670
54671 2007-06-10  Karl Berry  <karl@gnu.org>
54672
54673         * config/srclist.txt: remove gettext entries, Bruno prefers
54674         to update individually.
54675
54676 2007-06-10  Bruno Haible  <bruno@clisp.org>
54677
54678         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
54679         'maxlen'. Ensure only length + width bytes are allocated, not
54680         length + 1 + width.
54681
54682 2007-06-09  Bruno Haible  <bruno@clisp.org>
54683
54684         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
54685         (CHAR_T): Remove macro.
54686         (VASNPRINTF): Update.
54687
54688 2007-06-09  Bruno Haible  <bruno@clisp.org>
54689
54690         * MODULES.html.sh (Unicode string functions): Add the new modules.
54691
54692         * modules/uniconv/u32-conv-to-enc: New file.
54693         * lib/uniconv/u32-conv-to-enc.c: New file.
54694         * modules/uniconv/u32-conv-to-enc-tests: New file.
54695         * tests/uniconv/test-u32-conv-to-enc.c: New file.
54696
54697         * modules/uniconv/u16-conv-to-enc: New file.
54698         * lib/uniconv/u16-conv-to-enc.c: New file.
54699         * lib/uniconv/u-conv-to-enc.h: New file.
54700         * modules/uniconv/u16-conv-to-enc-tests: New file.
54701         * tests/uniconv/test-u16-conv-to-enc.c: New file.
54702
54703         * modules/uniconv/u8-conv-to-enc: New file.
54704         * lib/uniconv/u8-conv-to-enc.c: New file.
54705         * modules/uniconv/u8-conv-to-enc-tests: New file.
54706         * tests/uniconv/test-u8-conv-to-enc.c: New file.
54707
54708         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
54709         u32_conv_to_encoding): New declarations.
54710
54711 2007-06-09  Bruno Haible  <bruno@clisp.org>
54712
54713         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
54714
54715 2007-06-09  Bruno Haible  <bruno@clisp.org>
54716
54717         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
54718         * modules/malloca: Renamed from modules/allocsa, updated.
54719         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
54720         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
54721         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
54722         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
54723         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
54724         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
54725         * modules/xmalloca: Renamed from modules/xallocsa, updated.
54726         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
54727         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
54728         * modules/c-strcasestr (Depends-on): Update.
54729         * lib/c-strcasestr.c: Update.
54730         * modules/c-strstr (Depends-on): Update.
54731         * lib/c-strstr.c: Update.
54732         * modules/canonicalize-lgpl (Depends-on): Update.
54733         * lib/canonicalize-lgpl.c: Update.
54734         * modules/clean-temp (Depends-on): Update.
54735         * lib/clean-temp.c: Update.
54736         * modules/csharpcomp (Depends-on): Update.
54737         * lib/csharpcomp.c: Update.
54738         * modules/csharpexec (Depends-on): Update.
54739         * lib/csharpexec.c: Update.
54740         * modules/javacomp (Depends-on): Update.
54741         * lib/javacomp.c: Update.
54742         * modules/javaexec (Depends-on): Update.
54743         * lib/javaexec.c: Update.
54744         * modules/mbscasestr (Depends-on): Update.
54745         * lib/mbscasestr.c: Update.
54746         * modules/mbsstr (Depends-on): Update.
54747         * lib/mbsstr.c: Update.
54748         * modules/setenv (Depends-on): Update.
54749         * lib/setenv.c: Update.
54750         * modules/strcasestr (Depends-on): Update.
54751         * lib/strcasestr.c: Update.
54752         * modules/striconveha (Depends-on): Update.
54753         * lib/striconveha.c: Update.
54754         * modules/relocatable-prog-wrapper (Files): Update.
54755         * lib/relocwrapper.c: Update.
54756         * build-aux/install-reloc: Update.
54757         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
54758
54759 2007-06-08  Bruno Haible  <bruno@clisp.org>
54760
54761         Port to uClibc.
54762         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
54763         * lib/fpurge.c (fpurge): Likewise.
54764         * lib/freading.c (freading): Likewise.
54765         * lib/fseeko.c (rpl_fseeko): Likewise.
54766         * lib/fseterr.c (fseterr): Likewise.
54767         * lib/fwriting.c (fwriting): Likewise.
54768         * tests/test-fflush.c (main): Avoid a failure on uClibc.
54769
54770 2007-06-08  Bruno Haible  <bruno@clisp.org>
54771
54772         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
54773         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
54774         * modules/gettext (Files): Add m4/intlmacosx.m4.
54775
54776 2007-06-07  Bruno Haible  <bruno@clisp.org>
54777
54778         * modules/localename-tests: New file.
54779         * tests/test-localename.c: New file.
54780
54781         New module 'localename'.
54782         * lib/localename.h: New file.
54783         * lib/localename.c: New file, from GNU gettext.
54784         * m4/localename.m4: New file.
54785         * modules/localename: New file.
54786
54787 2007-06-07  Bruno Haible  <bruno@clisp.org>
54788
54789         Work around the lack of <wchar.h> on some builds of uClibc.
54790         * doc/headers/wchar.texi: Update.
54791         * lib/wchar_.h: Include <wchar.h> only if it exists.
54792         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
54793         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
54794         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
54795         doesn't exist.
54796         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
54797         * modules/mbfile (Depends-on): Add wchar.
54798         * modules/mbiter (Depends-on): Likewise.
54799         * modules/mbuiter (Depends-on): Likewise.
54800         Reported by Simon Josefsson.
54801
54802 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54803
54804         Work around problem reported by Steven M. Schweda in
54805         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
54806         Tru64 5.1B with the Compaq compiler environment installed declares
54807         an 'isblank' function but does not define it in the C library.
54808         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
54809         * lib/regex_internal.h (isblank): Likewise.
54810         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
54811         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54812
54813 2007-06-05  Bruno Haible  <bruno@clisp.org>
54814
54815         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
54816         ia64.
54817         * modules/printf-safe: New file.
54818         * modules/fprintf-posix (Depends-on): Add printf-safe.
54819         * modules/printf-posix (Depends-on): Likewise.
54820         * modules/snprintf-posix (Depends-on): Likewise.
54821         * modules/sprintf-posix (Depends-on): Likewise.
54822         * modules/vasnprintf-posix (Depends-on): Likewise.
54823         * modules/vasprintf-posix (Depends-on): Likewise.
54824         * modules/vfprintf-posix (Depends-on): Likewise.
54825         * modules/vprintf-posix (Depends-on): Likewise.
54826         * modules/vsnprintf-posix (Depends-on): Likewise.
54827         * modules/vsprintf-posix (Depends-on): Likewise.
54828         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
54829         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
54830         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
54831         "no" on i386, x86_64, ia64.
54832         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
54833         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54834         on i386, x86_64, ia64.
54835         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
54836         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54837         on i386, x86_64, ia64.
54838         * tests/test-vasnprintf-posix.c: Include float.h.
54839         (LDBL80_WORDS): New macro.
54840         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54841         on i386, x86_64, ia64.
54842         * tests/test-vasprintf-posix.c: Include float.h.
54843         (LDBL80_WORDS): New macro.
54844         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54845         on i386, x86_64, ia64.
54846         * tests/test-snprintf-posix.c: Include float.h.
54847         * tests/test-sprintf-posix.c: Likewise.
54848         * tests/test-vsnprintf-posix.c: Likewise.
54849         * tests/test-vsprintf-posix.c: Likewise.
54850
54851 2007-06-05  Bruno Haible  <bruno@clisp.org>
54852
54853         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
54854         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
54855         non-IEEE numbers on i386, x86_64, ia64.
54856         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
54857         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
54858         * tests/test-isnanl.h: Include float.h.
54859         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
54860
54861 2007-06-05  Bruno Haible  <bruno@clisp.org>
54862
54863         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
54864         also the %a / %A. Handle the %a / %A code before this extra handling.
54865
54866 2007-06-05  Bruno Haible  <bruno@clisp.org>
54867
54868         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
54869         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
54870
54871 2007-06-05  Bruno Haible  <bruno@clisp.org>
54872
54873         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
54874         typo in variable name.
54875
54876 2007-06-05  Eric Blake  <ebb9@byu.net>
54877
54878         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
54879         Reported by Simon Josefsson.
54880
54881 2007-06-04  Bruno Haible  <bruno@clisp.org>
54882
54883         Avoid test failures on some PowerPC platforms.
54884         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
54885         Define differently for PowerPC.
54886         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
54887         Reported by Gary V. Vaughan <gary@gnu.org>.
54888
54889 2007-06-02  Bruno Haible  <bruno@clisp.org>
54890
54891         Fix test-stdint failure on FreeBSD/ia64.
54892         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
54893         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
54894         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
54895         * doc/headers/stdint.texi: Update.
54896
54897 2007-06-01  Bruno Haible  <bruno@clisp.org>
54898
54899         * tests/test-binary-io.c (main): Pass a third argument to open().
54900         Reported by Gary V. Vaughan <gary@gnu.org>.
54901
54902 2007-06-01  Bruno Haible  <bruno@clisp.org>
54903
54904         * doc/functions/frexpl.texi: Update for mingw.
54905
54906 2007-06-01  Bruno Haible  <bruno@clisp.org>
54907
54908         * tests/test-lseek.c (main): Disable test of errno for invalid third
54909         argument.
54910         * doc/functions/lseek.texi: Update.
54911         Reported by Gary V. Vaughan <gary@gnu.org>.
54912
54913 2007-05-28  Bruno Haible  <bruno@clisp.org>
54914
54915         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
54916
54917 2007-05-31  Eric Blake  <ebb9@byu.net>
54918
54919         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
54920         cross compiling.
54921
54922 2007-05-30  Eric Blake  <ebb9@byu.net>
54923         and Bruno Haible  <bruno@clisp.org>
54924
54925         Work around mingw test failures exposed by m4-1.4.9b.
54926         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
54927         * tests/test-unistd.c: Disable uid_t and git_t tests for the
54928         moment.
54929
54930 2007-05-30  Bruno Haible  <bruno@clisp.org>
54931
54932         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
54933         assuming that they are closed. Needed on HP-UX 11.
54934
54935 2007-05-29  Bruno Haible  <bruno@clisp.org>
54936
54937         Fix a problem with #include_next.
54938         * lib/dirent_.h: Split the double-inclusion guard.
54939         * lib/fcntl_.h: Likewise.
54940         * lib/float_.h: Likewise.
54941         * lib/iconv_.h: Likewise.
54942         * lib/inttypes_.h: Likewise.
54943         * lib/locale_.h: Likewise.
54944         * lib/math_.h: Likewise.
54945         * lib/netinet_in_.h: Likewise.
54946         * lib/search_.h: Likewise.
54947         * lib/signal_.h: Likewise.
54948         * lib/stdint_.h: Likewise.
54949         * lib/stdio_.h: Likewise.
54950         * lib/stdlib_.h: Likewise.
54951         * lib/string_.h: Likewise.
54952         * lib/sys_select_.h: Likewise.
54953         * lib/sys_socket_.h: Likewise.
54954         * lib/sys_stat_.h: Likewise.
54955         * lib/sys_time_.h: Likewise.
54956         * lib/sysexits_.h: Likewise.
54957         * lib/time_.h: Likewise.
54958         * lib/unistd_.h: Likewise.
54959         * lib/wchar_.h: Likewise.
54960         * lib/wctype_.h: Likewise.
54961
54962 2007-05-29  Bruno Haible  <bruno@clisp.org>
54963
54964         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
54965         for the moment.
54966
54967 2007-05-29  Bruno Haible  <bruno@clisp.org>
54968
54969         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
54970         invocation.
54971         Reported by Eric Blake.
54972
54973 2007-05-29  Bruno Haible  <bruno@clisp.org>
54974
54975         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
54976         compiling case.
54977
54978 2007-05-29  Eric Blake  <ebb9@byu.net>
54979             Bruno Haible  <bruno@clisp.org>
54980
54981         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
54982         cross compiles.
54983
54984 2007-05-28  Eric Blake  <ebb9@byu.net>
54985
54986         * modules/closein-tests (test_closein_LDADD): Support test on
54987         cygwin with libtool.
54988
54989 2007-05-28  Bruno Haible  <bruno@clisp.org>
54990
54991         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
54992         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
54993         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
54994         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
54995         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
54996         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
54997         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
54998         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
54999         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55000
55001 2007-05-28  Eric Blake  <ebb9@byu.net>
55002
55003         Unconditionally include <config.h> in unit tests.
55004         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
55005         * tests/test-allocsa.c, tests/test-arcfour.c,
55006         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
55007         tests/test-array_list.c, tests/test-array_oset.c,
55008         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
55009         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
55010         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
55011         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
55012         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
55013         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
55014         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
55015         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
55016         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
55017         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
55018         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
55019         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
55020         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
55021         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
55022         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
55023         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
55024         test-md5.c, test-memmem.c, test-printf-posix.c,
55025         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
55026         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
55027         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
55028         test-strcasestr.c, test-striconv.c, test-striconveh.c,
55029         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
55030         test-vasnprintf-posix2.c, test-vasnprintf.c,
55031         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
55032         test-vfprintf-posix.c, test-vprintf-posix.c,
55033         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
55034         test-xvasprintf.c: Likewise.
55035
55036 2007-05-28  Bruno Haible  <bruno@clisp.org>
55037
55038         * gnulib-tool (func_import): Remember the --with-tests command-line
55039         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
55040         Reported by Eric Blake.
55041
55042 2007-05-28  Bruno Haible  <bruno@clisp.org>
55043
55044         * modules/ftell-tests: New file.
55045         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
55046         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
55047
55048         * lib/ftell.c: New file.
55049         * modules/ftell: New file.
55050         * m4/ftell.m4: New file.
55051         * doc/functions/ftell.texi: Update.
55052         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
55053         REPLACE_FTELL.
55054         * lib/stdio_.h (rpl_ftell): New declaration.
55055         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
55056         REPLACE_FTELL.
55057
55058 2007-05-28  Eric Blake  <ebb9@byu.net>
55059
55060         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
55061
55062 2007-05-28  Bruno Haible  <bruno@clisp.org>
55063
55064         * modules/fseek-tests: New file.
55065         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
55066         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
55067
55068         * lib/fseek.c: New file.
55069         * modules/fseek: New file.
55070         * m4/fseek.m4: New file.
55071         * doc/functions/fseek.texi: Update.
55072         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
55073         REPLACE_FSEEK.
55074         * lib/stdio_.h (rpl_fseek): New declaration.
55075         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
55076         REPLACE_FSEEK.
55077
55078 2007-05-28  Bruno Haible  <bruno@clisp.org>
55079
55080         * lib/stdio_.h (fflush): More comments.
55081
55082 2007-05-28  Bruno Haible  <bruno@clisp.org>
55083
55084         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
55085         runtime test.
55086
55087 2007-05-28  Eric Blake  <ebb9@byu.net>
55088
55089         Improve lseek module.
55090         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
55091         * lib/unistd_.h (lseek): Scale back link warning message.
55092         * tests/test-lseek.c: Beef up test.
55093         * tests/test-lseek.sh: Exercise more facets of lseek.
55094         Reported by Bruno Haible.
55095
55096 2007-05-28  Bruno Haible  <bruno@clisp.org>
55097
55098         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
55099         to define.
55100
55101 2007-05-27  Bruno Haible  <bruno@clisp.org>
55102
55103         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
55104
55105 2007-05-27  Bruno Haible  <bruno@clisp.org>
55106
55107         * modules/openmp: New file.
55108         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
55109         Noah Misch.
55110
55111 2007-05-26  Bruno Haible  <bruno@clisp.org>
55112
55113         * modules/chdir-long (Depends-on): Add fchdir.
55114         * modules/chdir-safer (Depends-on): Likewise.
55115         * modules/fts (Depends-on): Likewise.
55116         * modules/fts-lgpl (Depends-on): Likewise.
55117         * modules/openat (Depends-on): Likewise.
55118         * modules/savewd (Depends-on): Likewise.
55119
55120 2007-05-24  Eric Blake  <ebb9@byu.net>
55121
55122         Fix lseek on mingw.
55123         * modules/lseek: New module.
55124         * m4/lseek.m4: New file.
55125         * lib/lseek.c: New file.
55126         * modules/lseek-tests: New file.
55127         * tests/test-lseek.c: New file.
55128         * tests/test-lseek.sh: New file.
55129         * MODULES.html.sh: Document lseek module.
55130         * modules/fflush (Depends-on): Add lseek, fseeko.
55131         * modules/fseeko (Depends-on): Likewise.
55132         * modules/ftello (Depends-on): Likewise.
55133         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
55134         broken.
55135         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
55136         broken.
55137         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
55138         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
55139         * lib/ftello.c (rpl_ftello): Likewise.
55140         * tests/test-fseeko.c (main): Test this.
55141         * tests/test-fseeko.sh: Likewise.
55142         * tests/test-ftello.c (main): Likewise.
55143         * tests/test-ftello.sh: Likewise.
55144         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
55145         implies replacing fseek.
55146         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
55147         HAVE_FTELLO.
55148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
55149         * modules/unistd (Makefile.am): Likewise.
55150         * lib/unistd_.h (lseek): Declare a replacement.
55151         * doc/functions/lseek.texi (lseek): Document this fix.
55152         * doc/functions/fseek.texi (fseek): Likewise.
55153         * doc/functions/ftell.texi (ftell): Likewise.
55154
55155 2007-05-24  Bruno Haible  <bruno@clisp.org>
55156
55157         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
55158         in the printed representation of a NaN.
55159         * tests/test-vasprintf-posix.c (test_function): Likewise.
55160         * tests/test-snprintf-posix.h (test_function): Likewise.
55161         * tests/test-sprintf-posix.h (test_function): Likewise.
55162         Reported by Eric Blake.
55163
55164 2007-05-23  Eric Blake  <ebb9@byu.net>
55165
55166         Fix fseeko/ftello on cygwin 1.5.24.
55167         * doc/functions/fseeko.texi (fseeko): Document the fix.
55168         * doc/functions/ftello.texi (ftello): Document the fix.
55169         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
55170         * doc/functions/stdout.text (stdout): New file.
55171         * doc/functions/stderr.text (stderr): New file.
55172         * doc/gnulib.texi (Function Substitutes): Use new files.
55173         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
55174         prior to 1.7.0.
55175         * tests/test-ftello.c (main): Likewise for ftello.
55176         * tests/test-fseeko.sh: New file.
55177         * tests/test-ftello.sh: New file.
55178         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
55179         with seekable stdin.
55180         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
55181         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
55182         (gl_REPLACE_FSEEKO): New macro.
55183         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
55184         * modules/fseeko (Files): Distribute fseeko.c.
55185         * modules/ftello (Files): Distribute ftello.c.
55186         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
55187         mode.
55188         * lib/ftello.c (rpl_ftello): New file.
55189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
55190         fseeko, ftello.
55191         (gl_STDIN_LARGE_OFFSET): New macro.
55192         * modules/stdio (Makefile.am): Perform the replacement.
55193         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
55194
55195 2007-05-23  Bruno Haible  <bruno@clisp.org>
55196
55197         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
55198         GNULIB_POSIXCHECK is defined.
55199
55200 2007-05-21  Bruno Haible  <bruno@clisp.org>
55201
55202         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
55203         Check also the output for NaN arguments. When cross-compiling, guess
55204         no on IRIX.
55205         * lib/vasnprintf.c: Update comments.
55206         * tests/test-vasnprintf-posix.c (strisnan): New function.
55207         (test_function): Use it.
55208         * tests/test-vasprintf-posix.c (strisnan): New function.
55209         (test_function): Use it.
55210         * tests/test-snprintf-posix.h (strisnan): New function.
55211         (test_function): Use it.
55212         * tests/test-sprintf-posix.h (strisnan): New function.
55213         (test_function): Use it.
55214         Reported by Eric Blake.
55215
55216 2007-05-20  Bruno Haible  <bruno@clisp.org>
55217
55218         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
55219         numbers that fails on BeOS.
55220         * doc/functions/frexpl.texi: Update.
55221
55222 2007-05-20  Jim Meyering  <jim@meyering.net>
55223
55224         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
55225         forced upon us by glibc-2.6.
55226
55227 2007-05-20  Bruno Haible  <bruno@clisp.org>
55228
55229         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
55230         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
55231         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
55232         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
55233         NEED_PRINTF_INFINITE.
55234         (is_infinitel): New function.
55235         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
55236         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
55237         gl_PREREQ_VASNPRINTF_INFINITE.
55238         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
55239         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55240         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
55241         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
55242         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
55243         gl_PREREQ_VASNPRINTF_INFINITE.
55244         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55245         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55246         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55247         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55248         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55249         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55250         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55251         * doc/functions/fprintf.texi: Update.
55252         * doc/functions/printf.texi: Update.
55253         * doc/functions/snprintf.texi: Update.
55254         * doc/functions/sprintf.texi: Update.
55255         * doc/functions/vfprintf.texi: Update.
55256         * doc/functions/vprintf.texi: Update.
55257         * doc/functions/vsnprintf.texi: Update.
55258         * doc/functions/vsprintf.texi: Update.
55259
55260 2007-05-20  Bruno Haible  <bruno@clisp.org>
55261
55262         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
55263         was not found in libc.
55264         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
55265
55266 2007-05-20  Bruno Haible  <bruno@clisp.org>
55267
55268         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55269         printed as "-nan" instead of "nan".
55270         * tests/test-vasprintf-posix.c (test_function): Likewise.
55271         * tests/test-snprintf-posix.h (test_function): Likewise.
55272         * tests/test-sprintf-posix.h (test_function): Likewise.
55273         Needed for HP-UX 11.
55274
55275 2007-05-20  Jim Meyering  <jim@meyering.net>
55276
55277         Fix buggy test for the fchownat-deref bug.
55278         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
55279         symlink required for the run-test.  Without it, this test would
55280         always declare that fchownat doesn't work, and client code would
55281         unnecessarily use the replacement function with fixed libc.
55282         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
55283         Reported by Greg Schafer.
55284
55285 2007-05-19  Bruno Haible  <bruno@clisp.org>
55286
55287         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
55288         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
55289         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
55290         Needed for IRIX 6.5 and Solaris 2.5.1.
55291
55292 2007-05-19  Bruno Haible  <bruno@clisp.org>
55293
55294         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
55295         (test_function): Skip tests involving -0.0 on platforms where
55296         -0.0 = 0.0.
55297         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
55298         (test_function): Skip tests involving -0.0 on platforms where
55299         -0.0 = 0.0.
55300         * tests/test-snprintf-posix.h (have_minus_zero): New function.
55301         (test_function): Skip tests involving -0.0 on platforms where
55302         -0.0 = 0.0.
55303         * tests/test-sprintf-posix.h (have_minus_zero): New function.
55304         (test_function): Skip tests involving -0.0 on platforms where
55305         -0.0 = 0.0.
55306         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
55307         tests.
55308         * tests/test-printf-posix.h (test_function): Likewise.
55309         * tests/test-printf-posix.output: Remove all -0.0 related results.
55310         Needed for IRIX 6.5.
55311
55312 2007-05-19  Bruno Haible  <bruno@clisp.org>
55313
55314         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55315         printed as "nan0x7fffffff" instead of "nan".
55316         * tests/test-vasprintf-posix.c (test_function): Likewise.
55317         * tests/test-snprintf-posix.h (test_function): Likewise.
55318         * tests/test-sprintf-posix.h (test_function): Likewise.
55319         * tests/test-fprintf-posix.h (NaN): Remove macro.
55320         (test_function): Remove all NaN related tests.
55321         * tests/test-printf-posix.h (NaN): Remove macro.
55322         (test_function): Remove all NaN related tests.
55323         * tests/test-printf-posix.output: Remove all NaN related results.
55324         Needed for IRIX 6.5.
55325
55326 2007-05-19  Bruno Haible  <bruno@clisp.org>
55327
55328         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
55329         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
55330
55331 2007-05-19  Bruno Haible  <bruno@clisp.org>
55332
55333         * lib/float_.h: New file.
55334         * m4/float_h.m4: New file.
55335         * modules/float: New file.
55336         * modules/isnanl (Dependencies): Add float.
55337         * modules/isnanl-nolibm (Dependencies): Likewise.
55338         * modules/mathl (Dependencies): Likewise.
55339         * modules/printf-frexpl (Dependencies): Likewise.
55340         * modules/signbit (Dependencies): Likewise.
55341         * modules/vasnprintf (Dependencies): Likewise.
55342         * doc/headers/float.texi: Update.
55343
55344 2007-05-19  Jim Meyering  <jim@meyering.net>
55345
55346         * lib/utimens.c (gl_futimens): Rename from futimens,
55347         now that glibc-2.6 declares futimens.
55348         * lib/utimens.h: Likewise.
55349
55350 2007-05-19  Bruno Haible  <bruno@clisp.org>
55351
55352         Avoid test failures on mingw.
55353         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
55354         * tests/test-printf-posix.sh: Likewise.
55355         * tests/test-vfprintf-posix.sh: Likewise.
55356         * tests/test-vprintf-posix.sh: Likewise.
55357
55358 2007-05-19  Bruno Haible  <bruno@clisp.org>
55359
55360         Fix *printf result for NaN, Inf, -0.0 on mingw.
55361         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
55362         * lib/vasnprintf.c: Include math.h and isnan.h.
55363         (is_infinite_or_zero): New function.
55364         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
55365         values in the %f, %F, %e, %E, %g, %G directives.
55366         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
55367         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55368         gl_PRINTF_INFINITE and test its result. Invoke
55369         gl_PREREQ_VASNPRINTF_INFINITE.
55370         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55371         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55372         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55373         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55374         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55375         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55376         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55377         * doc/functions/fprintf.texi: Update.
55378         * doc/functions/printf.texi: Update.
55379         * doc/functions/snprintf.texi: Update.
55380         * doc/functions/sprintf.texi: Update.
55381         * doc/functions/vfprintf.texi: Update.
55382         * doc/functions/vprintf.texi: Update.
55383         * doc/functions/vsnprintf.texi: Update.
55384         * doc/functions/vsprintf.texi: Update.
55385
55386 2007-05-19  Bruno Haible  <bruno@clisp.org>
55387
55388         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
55389         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
55390         Instead of multiplying with 10^k, set extra_zeroes to k.
55391         (scale10_round_long_double): Remove function.
55392
55393 2007-05-18  Bruno Haible  <bruno@clisp.org>
55394
55395         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
55396         introduced on 2007-05-06.
55397
55398 2007-05-18  Bruno Haible  <bruno@clisp.org>
55399
55400         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
55401         %g directives.
55402         * tests/test-vasprintf-posix.c (test_function): Likewise.
55403         * tests/test-snprintf-posix.h (test_function): Likewise.
55404         * tests/test-sprintf-posix.h (test_function): Likewise.
55405
55406 2007-05-18  Bruno Haible  <bruno@clisp.org>
55407
55408         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
55409         (strmatch): New function.
55410         (test_function): Test the %f directive on numbers of various exponents.
55411         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
55412         (strmatch): New function.
55413         (test_function): Test the %f directive on numbers of various exponents.
55414         * tests/test-snprintf-posix.h (strmatch): New function.
55415         (test_function): Test the %f directive on numbers of various exponents.
55416         * tests/test-sprintf-posix.h (strmatch): New function.
55417         (test_function): Test the %f directive on numbers of various exponents.
55418         * tests/test-snprintf-posix.c (SIZEOF): New macro.
55419         * tests/test-sprintf-posix.c (SIZEOF): New macro.
55420         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
55421         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
55422
55423 2007-05-18  Bruno Haible  <bruno@clisp.org>
55424
55425         Add support for 'long double' number output.
55426         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
55427         * lib/vasnprintf.c: Include math.h and float+.h.
55428         (mp_limb_t): New type.
55429         (GMP_LIMB_BITS): New macro.
55430         (mp_twolimb_t): New type.
55431         (GMP_TWOLIMB_BITS): New macro.
55432         (mpn_t): New type.
55433         (multiply, divide, convert_to_decimal, decode_long_double,
55434         scale10_round_long_double, scale10_round_decimal_long_double,
55435         floorlog10l): New functions.
55436         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
55437         for the %f, %F, %e, %E, %g, %G directives.
55438         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
55439         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55440         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
55441         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
55442         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55443         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55444         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55445         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55446         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55447         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55448         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55449         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
55450         * modules/snprintf-posix (Depends-on): Likewise.
55451         * modules/sprintf-posix (Depends-on): Likewise.
55452         * modules/vasnprintf-posix (Depends-on): Likewise.
55453         * modules/vasprintf-posix (Depends-on): Likewise.
55454         * modules/vfprintf-posix (Depends-on): Likewise.
55455         * modules/vsnprintf-posix (Depends-on): Likewise.
55456         * modules/vsprintf-posix (Depends-on): Likewise.
55457         * modules/vasnprintf (Files): Add lib/float+.h.
55458         * doc/functions/fprintf.texi: Update.
55459         * doc/functions/printf.texi: Update.
55460         * doc/functions/snprintf.texi: Update.
55461         * doc/functions/sprintf.texi: Update.
55462         * doc/functions/vfprintf.texi: Update.
55463         * doc/functions/vprintf.texi: Update.
55464         * doc/functions/vsnprintf.texi: Update.
55465         * doc/functions/vsprintf.texi: Update.
55466
55467 2007-05-18  Bruno Haible  <bruno@clisp.org>
55468
55469         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
55470
55471 2007-05-18  Bruno Haible  <bruno@clisp.org>
55472
55473         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
55474         for printing 64-bit integers. Needed for mingw.
55475
55476 2007-05-18  Bruno Haible  <bruno@clisp.org>
55477
55478         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55479         gl_FUNC_FREXPL_WORKS.
55480         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
55481
55482 2007-05-18  Bruno Haible  <bruno@clisp.org>
55483
55484         * modules/frexpl-nolibm-tests: New file.
55485
55486         * modules/frexpl-nolibm: New file.
55487         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
55488
55489 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55490
55491         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
55492         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55493         GCC 4.2, which otherwise issues a lot of warnings.
55494         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
55495         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
55496         Likewise.
55497         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
55498         * modules/iconv_open (iconv.h): Likewise.
55499         * modules/locale (locale.h): Likewise.
55500         * modules/netinet_in (netinet/in.h): Likewise.
55501         * modules/sys_select (sys_select.h): Likewise.
55502         * modules/sys_socket (sys/socket.h): Likewise.
55503         * modules/sys_stat (sys/stat.h): Likewise.
55504         * modules/sysexits (sysexits.h): Likewise.
55505         * modules/unistd (unistd.h): Likewise.
55506
55507 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55508
55509         * modules/closein-tests (Makefile.am): Distribute
55510         `test-closein.sh'.
55511
55512 2007-05-17  Bruno Haible  <bruno@clisp.org>
55513
55514         * tests/test-printf-posix.output: Renamed from
55515         tests/test-fprintf-posix.out.
55516         * modules/fprintf-posix-tests: Update.
55517         * modules/printf-posix-tests: Update.
55518         * modules/vfprintf-posix-tests: Update.
55519         * modules/vprintf-posix-tests: Update.
55520         * tests/test-fprintf-posix.sh: Update.
55521         * tests/test-printf-posix.sh: Update.
55522         * tests/test-vfprintf-posix.sh: Update.
55523         * tests/test-vprintf-posix.sh: Update.
55524         Reported by Ralf Wildenhues.
55525
55526 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55527
55528         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
55529         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55530         GCC 4.2, which otherwise issues a lot of warnings.
55531         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
55532         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
55533         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
55534         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
55535         it should no longer be needed.
55536         * lib/string_.h: Likewise.
55537         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
55538         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
55539         * modules/inttypes (inttypes.h): Likewise.
55540         * modules/math (math.h): Likewise.
55541         * modules/search (search.h): Likewise.
55542         * modules/signal (signal.h): Likewise.
55543         * modules/stdint (stdint.h): Likewise.
55544         * modules/stdio (stdio.h): Likewise.
55545         * modules/stdlib (stdlib.h): Likewise.
55546         * modules/string (string.h): Likewise.
55547         * modules/sys_time (sys/time.h): Likewise.
55548         * modules/time (time.h): Likewise.
55549         * modules/wchar (wchar.h): Likewise.
55550         * modules/wctype (wtype.h): Likewise.
55551
55552 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55553
55554         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
55555
55556 2007-05-13  Bruno Haible  <bruno@clisp.org>
55557
55558         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
55559         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55560         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
55561         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55562         (gl_PREREQ_STRTOK_R): Don't require it here.
55563
55564 2007-05-13  Bruno Haible  <bruno@clisp.org>
55565
55566         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
55567         when used in C++ mode.
55568
55569 2007-05-12  Bruno Haible  <bruno@clisp.org>
55570
55571         * lib/linebuffer.h: Tweak doc.
55572         * lib/linebuffer.c: Likewise.
55573
55574 2007-05-12  James Youngman  <jay@gnu.org>
55575
55576         * lib/linebuffer.c (readlinebuffer_delim): New function,
55577         like readlinebuffer, but use a caller-specified delimiter.
55578         (readlinebuffer): Just call readlinebuffer_delim with '\n'
55579         as the delimiter.
55580         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
55581
55582 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55583
55584         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
55585         * modules/openat (Files): Remove openat-die.c.
55586         (Depends-on): Add openat-die.
55587         * modules/openat-die: New module.
55588
55589 2007-05-06  Bruno Haible  <bruno@clisp.org>
55590
55591         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
55592         Update with info about Cygwin.
55593         * doc/functions/fprintf.texi: Update.
55594         * doc/functions/printf.texi: Update.
55595         * doc/functions/snprintf.texi: Update.
55596         * doc/functions/sprintf.texi: Update.
55597         * doc/functions/vfprintf.texi: Update.
55598         * doc/functions/vprintf.texi: Update.
55599         * doc/functions/vsnprintf.texi: Update.
55600         * doc/functions/vsprintf.texi: Update.
55601         Reported by Eric Blake.
55602
55603 2007-05-06  Bruno Haible  <bruno@clisp.org>
55604
55605         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
55606         padding ourselves for the floating-point directives.
55607         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
55608         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
55609         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55610         gl_PRINTF_FLAG_ZERO and test its result. Invoke
55611         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
55612         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55613         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55614         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55615         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55616         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55617         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55618         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55619         * tests/test-snprintf-posix.h (test_function): Also check the width
55620         and some flags in the %f directive.
55621         * tests/test-sprintf-posix.h (test_function): Likewise.
55622         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55623         * tests/test-vasprintf-posix.c (test_function): Likewise.
55624         * doc/functions/fprintf.texi: Update.
55625         * doc/functions/printf.texi: Update.
55626         * doc/functions/snprintf.texi: Update.
55627         * doc/functions/sprintf.texi: Update.
55628         * doc/functions/vfprintf.texi: Update.
55629         * doc/functions/vprintf.texi: Update.
55630         * doc/functions/vsnprintf.texi: Update.
55631         * doc/functions/vsprintf.texi: Update.
55632
55633 2007-05-06  Bruno Haible  <bruno@clisp.org>
55634
55635         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
55636         pass the ' flag character to sprintf or snprintf.
55637         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
55638         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
55639         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55640         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
55641         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
55642         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55643         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55644         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55645         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55646         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55647         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55648         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55649         * tests/test-snprintf-posix.h (test_function): Also check the grouping
55650         flag.
55651         * tests/test-sprintf-posix.h (test_function): Likewise.
55652         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55653         * tests/test-vasprintf-posix.c (test_function): Likewise.
55654         * doc/functions/fprintf.texi: Update.
55655         * doc/functions/printf.texi: Update.
55656         * doc/functions/snprintf.texi: Update.
55657         * doc/functions/sprintf.texi: Update.
55658         * doc/functions/vfprintf.texi: Update.
55659         * doc/functions/vprintf.texi: Update.
55660         * doc/functions/vsnprintf.texi: Update.
55661         * doc/functions/vsprintf.texi: Update.
55662
55663 2007-05-01  Bruno Haible  <bruno@clisp.org>
55664
55665         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
55666
55667 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
55668
55669         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
55670         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
55671
55672 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55673
55674         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
55675         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
55676         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
55677
55678 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
55679
55680         * lib/argp-help.c (struct hol_entry): New member `ord'.
55681         (HOL_ENTRY_PTRCMP): Use ord for comparison
55682         (hol_sort): Initialize ord.
55683
55684 2007-05-01  Bruno Haible  <bruno@clisp.org>
55685
55686         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
55687         Reported by Eric Blake.
55688         * doc/gnulib.texi (Function Substitutes): Update.
55689
55690 2007-05-01  Bruno Haible  <bruno@clisp.org>
55691
55692         * doc/functions.texi: Remove file, now redundant through
55693         doc/functions/*.texi.
55694
55695 2007-05-01  Bruno Haible  <bruno@clisp.org>
55696
55697         * modules/argp (Depends-on): Add sleep.
55698
55699 2007-05-01  Bruno Haible  <bruno@clisp.org>
55700
55701         * modules/sleep-tests: New file.
55702         * tests/test-sleep.c: New file.
55703
55704         * modules/sleep: New file.
55705         * lib/sleep.c: New file.
55706         * m4/sleep.m4: New file.
55707         * lib/unistd_.h (sleep): New declaration.
55708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
55709         HAVE_SLEEP.
55710         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
55711         * doc/functions/sleep.texi: Document the sleep module.
55712
55713 2007-05-01  Bruno Haible  <bruno@clisp.org>
55714
55715         * lib/sigprocmask.h: Remove file.
55716         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
55717         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
55718         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
55719         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
55720         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
55721         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
55722         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
55723         HAVE_SIGSET_T as a shell variable.
55724         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
55725         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
55726         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
55727         (Depends-on): Add signal. Remove verify.
55728         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
55729         (Include): Mention <signal.h> instead of sigprocmask.h.
55730         * NEWS: Mention the change.
55731         * lib/fatal-signal.c: Don't include sigprocmask.h.
55732
55733 2007-05-01  Bruno Haible  <bruno@clisp.org>
55734
55735         * modules/signal: New file.
55736         * lib/signal_.h: New file.
55737         * m4/signal_h.m4: New file.
55738
55739 2007-05-01  Bruno Haible  <bruno@clisp.org>
55740
55741         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
55742         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
55743         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
55744         HAVE_WCTYPE_CTMP_BUG into wctype.h.
55745
55746 2007-05-01  Bruno Haible  <bruno@clisp.org>
55747
55748         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
55749         configure time.
55750         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
55751         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
55752         * modules/sys_stat (Makefile.am): Substitute their values into
55753         sys/stat.h.
55754
55755 2007-05-01  Bruno Haible  <bruno@clisp.org>
55756
55757         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
55758         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
55759         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
55760
55761 2007-05-01  Bruno Haible  <bruno@clisp.org>
55762
55763         * doc/header/assert.texi: Undo last change: don't mention the gnulib
55764         'assert' module here.
55765
55766 2007-05-01  Bruno Haible  <bruno@clisp.org>
55767
55768         * doc/functions/*.texi: New files.
55769         * doc/functions/google-ranking.txt: New file.
55770         * doc/gnulib.texi (Function Substitutes): New chapter.
55771         (ctime, inet_ntoa): Remove sections.
55772         * doc/ctime.texi: Remove file.
55773         * doc/inet_ntoa.texi: Remove file.
55774         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
55775         dependencies.
55776         (%.info): New rule, specifying a --reference-limit.
55777
55778 2007-05-01  Bruno Haible  <bruno@clisp.org>
55779
55780         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
55781
55782 2007-05-01  Bruno Haible  <bruno@clisp.org>
55783
55784         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
55785         the portability of 'mkdir' to mingw systems.
55786
55787 2007-05-01  Bruno Haible  <bruno@clisp.org>
55788
55789         * doc/headers/google-ranking.txt: New file.
55790
55791 2007-04-30  Eric Blake  <ebb9@byu.net>
55792
55793         Prefer fseeko to fseek.
55794         * modules/getpass (Depends-on): Add fseeko.
55795         * lib/getpass.c (getpass): Use fseeko, not fseek.
55796
55797 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
55798
55799         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
55800         assumes the sorting is stable, while most qsort implementations
55801         are not.  Use argument addresses to ensure they never compare as
55802         equal.
55803
55804         * tests/test-argp-2.sh (usage-indent test): Fix output
55805         (func_compare): Restore diff options
55806         * tests/test-argp.c: Restore #include "progname.h"
55807
55808 2007-04-29  Bruno Haible  <bruno@clisp.org>
55809
55810         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
55811         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55812         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
55813         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55814         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
55815         (configure.ac): Define CHECK_SNPRINTF_POSIX.
55816         (TESTS, check_PROGRAMS): Add test-snprintf.
55817         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
55818         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
55819         (TESTS, check_PROGRAMS): Add test-vsnprintf.
55820         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
55821         assertions that fail on HP-UX, OSF/1, or IRIX.
55822         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
55823
55824 2007-04-29  Bruno Haible  <bruno@clisp.org>
55825
55826         * MODULES.html.sh (posix_functions): Remove 'contents'.
55827
55828 2007-04-29  Karl Berry  <karl@gnu.org>
55829
55830         * config/srclist.txt (gendocs_template_min): new entry.
55831
55832 2007-04-29  Bruno Haible  <bruno@clisp.org>
55833
55834         Work around fpurge bug on BSD systems.
55835         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
55836         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
55837         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
55838         fpurge to rpl_fpurge if the system already has this function.
55839         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
55840         the case where the system already has this function. Correct invariants
55841         on BSD systems.
55842         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
55843         BSD systems.
55844
55845 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
55846
55847         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
55848         proposed by Sven Verdoolaege.
55849
55850         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
55851         options.
55852         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
55853         (usage and help tests): Update
55854
55855 2007-04-29  Bruno Haible  <bruno@clisp.org>
55856
55857         * tests/test-fflush.c (main): Use a file of size 17, not 10.
55858         Print more information in case of failure. Disable a test on BeOS.
55859
55860 2007-04-29  Bruno Haible  <bruno@clisp.org>
55861
55862         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
55863         This helps debugging on systems on which no gdb is available.
55864
55865 2007-04-29  Bruno Haible  <bruno@clisp.org>
55866
55867         * lib/freading.h: Improve comments.
55868         * lib/fwriting.h: Likewise.
55869         * tests/test-freading.c (main): Don't check freading immediately after
55870         repositioning. Needed for glibc.
55871
55872 2007-04-29  Bruno Haible  <bruno@clisp.org>
55873
55874         * lib/freading.c (freading): Trivial simplification.
55875
55876 2007-04-28  Bruno Haible  <bruno@clisp.org>
55877
55878         * tests/test-fwriting.c (main): Also test the interaction between
55879         fflush and fwriting.
55880         * modules/fwriting-tests (Depends-on): Add fflush.
55881
55882         * tests/test-freading.c (main): Also test the interaction between
55883         fflush and freading.
55884         * modules/freading-tests (Depends-on): Add fflush.
55885
55886 2007-04-28  Bruno Haible  <bruno@clisp.org>
55887
55888         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
55889         fseeko and ftello.
55890         Suggested by Eric Blake.
55891
55892 2007-04-28  Jim Meyering  <jim@meyering.net>
55893
55894         Avoid false-negative in gl_STDINT_H's C99 conformance test.
55895         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
55896         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
55897
55898 2007-04-27  Eric Blake  <ebb9@byu.net>
55899
55900         * doc/headers/assert.texi (assert.h): Document assert module use.
55901
55902 2007-04-27  Bruno Haible  <bruno@clisp.org>
55903
55904         * doc/headers/*.texi: New files.
55905         * doc/gnulib.texi (Header File Substitutes): New chapter.
55906         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
55907         dependencies.
55908         (standards.info ,standards.html, standards.dvi): Update dependencies.
55909         (mostlyclean, clean): New targets.
55910
55911 2007-04-27  Bruno Haible  <bruno@clisp.org>
55912
55913         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
55914         * modules/sysexits (Files, Makefile.am): Update.
55915
55916         * lib/sys_socket_.h: Renamed from lib/socket_.h.
55917         * modules/sys_socket (Files, Makefile.am): Update.
55918
55919         * lib/sys_stat_.h: Renamed from lib/stat_.h.
55920         * modules/sys_stat (Files, Makefile.am): Update.
55921
55922 2007-04-27  Eric Blake  <ebb9@byu.net>
55923
55924         * lib/freading.h: Improve comments.
55925         * lib/fwriting.h: Likewise.
55926         * lib/fflush.c: Likewise.
55927
55928         Fix closein for mingw.
55929         * modules/closein-tests: Add tests for closein.
55930         * tests/test-closein.c: New file.
55931         * tests/test-closein.sh: Likewise.
55932         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
55933         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
55934
55935 2007-04-27  Bruno Haible  <bruno@clisp.org>
55936
55937         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
55938         version is < 6.
55939         * lib/math_.h [__DECC]: Likewise.
55940         * lib/stdio_.h [__DECC]: Likewise.
55941         * lib/stdlib_.h [__DECC]: Likewise.
55942         * lib/string_.h [__DECC]: Likewise.
55943         * lib/time_.h [__DECC]: Likewise.
55944         * lib/wchar_.h [__DECC]: Likewise.
55945         * lib/wctype_.h [__DECC]: Likewise.
55946
55947 2007-04-27  Bruno Haible  <bruno@clisp.org>
55948
55949         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
55950
55951 2007-04-27  Bruno Haible  <bruno@clisp.org>
55952
55953         * lib/fflush.c: Add comments.
55954         * modules/fpurge-tests (Depends-on): Add fflush.
55955         * modules/freadable-tests (Depends-on): Likewise.
55956         * modules/fwritable-tests (Depends-on): Likewise.
55957
55958 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
55959
55960         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
55961         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
55962         Report by Bruno Haible <bruno@clisp.org>.
55963
55964 2007-04-26  Eric Blake  <ebb9@byu.net>
55965
55966         Fix fflush on mingw.
55967         * modules/fflush (Depends-on): Add freading.
55968         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
55969         but unread data.
55970
55971 2007-04-26  Eric Blake  <ebb9@byu.net>
55972         and Bruno Haible  <bruno@clisp.org>
55973
55974         Implement freading and fwriting.
55975         * lib/freading.c: New file.
55976         * lib/freading.h: Likewise.
55977         * m4/freading.m4: Likewise.
55978         * modules/freading: Likewise.
55979         * modules/freading-tests: Likewise.
55980         * tests/test-freading.c: Likewise.
55981         * lib/fwriting.c: New file.
55982         * lib/fwriting.h: Likewise.
55983         * m4/fwriting.m4: Likewise.
55984         * modules/fwriting: Likewise.
55985         * modules/fwriting-tests: Likewise.
55986         * tests/test-fwriting.c: Likewise.
55987         * MODULES.html.sh (File stream based Input/Output): Mention them.
55988
55989 2007-04-26  Bruno Haible  <bruno@clisp.org>
55990
55991         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
55992         'long' when we assume it.
55993         Suggested by Eric Blake.
55994
55995 2007-04-26  Bruno Haible  <bruno@clisp.org>
55996
55997         Ensure fseeko, ftello are declared on glibc systems.
55998         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
55999         * modules/fseeko (configure.ac-early): Likewise.
56000         * modules/ftello (configure.ac-early): Likewise.
56001         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
56002         AC_FUNC_FSEEKO for this.
56003         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
56004         (gl_CHECK_FSEEKO): Remove macro.
56005
56006 2007-04-26  Bruno Haible  <bruno@clisp.org>
56007
56008         * tests/test-fflush.c (main): Also check the ftell result after
56009         fflush and fseek/fseeko.
56010         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
56011         file descriptor position cache in the stream.
56012         * lib/fseeko.c (rpl_fseeko): Likewise.
56013
56014 2007-04-26  Bruno Haible  <bruno@clisp.org>
56015
56016         * modules/fflush-tests (Depends-on): Add fseeko.
56017
56018 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
56019             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56020
56021         * lib/argz_.h: ensure error_t definition is obtained in same
56022         mechanism system argz.h would have.
56023         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
56024         argz facilities are known bad.  Err on the side of caution if
56025         cross-compiling.
56026
56027 2007-04-25  Eric Blake  <ebb9@byu.net>
56028
56029         * lib/fpurge.c (includes): Use stdlib.h for free.
56030         * tests/test-fflush.c (main): Also test fflush-fseeko.
56031
56032 2007-04-25  Bruno Haible  <bruno@clisp.org>
56033
56034         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
56035         * lib/fseeko.c: New file.
56036         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
56037         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
56038         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
56039         gl_FUNC_FSEEKO.
56040         (gl_FUNC_FSEEKO): Invoke it.
56041         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
56042         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
56043         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
56044
56045 2007-04-25  Bruno Haible  <bruno@clisp.org>
56046
56047         * modules/fflush (Depends-on): Add ftello.
56048
56049 2007-04-25  Bruno Haible  <bruno@clisp.org>
56050
56051         * modules/ftello-tests: New file.
56052         * tests/test-ftello.c: New file.
56053
56054         * modules/ftello: New file.
56055         * m4/ftello.m4: New file.
56056         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
56057         HAVE_FTELLO.
56058         * lib/stdio_.h (ftello): New declaration.
56059         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
56060         HAVE_FTELLO.
56061
56062 2007-04-25  Bruno Haible  <bruno@clisp.org>
56063
56064         * modules/fseeko-tests: New file.
56065         * tests/test-fseeko.c: New file.
56066
56067         * modules/fseeko: New file.
56068         * m4/fseeko.m4: New file.
56069         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
56070         HAVE_FSEEKO.
56071         * lib/stdio_.h (fseeko): New declaration.
56072         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
56073         HAVE_FSEEKO.
56074
56075 2007-04-25  Bruno Haible  <bruno@clisp.org>
56076
56077         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
56078
56079 2007-04-25  Bruno Haible  <bruno@clisp.org>
56080
56081         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
56082         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
56083         * tests/test-unistd.c: Likewise.
56084         * tests/test-fcntl.c: Likewise.
56085
56086 2007-04-23  Eric Blake  <ebb9@byu.net>
56087
56088         * lib/fflush.c: Fix missing include.
56089         Reported by Bruno Haible.
56090
56091 2007-04-23  Bruno Haible  <bruno@clisp.org>
56092
56093         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
56094         Reported by Eric Blake.
56095
56096 2007-04-23  Bruno Haible  <bruno@clisp.org>
56097
56098         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
56099
56100 2007-04-23  Bruno Haible  <bruno@clisp.org>
56101
56102         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
56103
56104 2007-04-23  Bruno Haible  <bruno@clisp.org>
56105
56106         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
56107         Needed on HP-UX 11.
56108
56109 2007-04-16  Eric Blake  <ebb9@byu.net>
56110
56111         Make fflush rely on fpurge.
56112         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
56113         open coding all variants.
56114         * modules/fflush (Depends-on): Add fpurge and unistd.
56115         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
56116         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
56117
56118         Fix --with-tests compilation on cygwin.
56119         * modules/argmatch-tests (Makefile.am): List gnulib library first
56120         in LDADD.
56121         * modules/argp-tests (Makefile.am): Likewise.
56122         * modules/array-list-tests (Makefile.am): Likewise.
56123         * modules/array-oset-tests (Makefile.am): Likewise.
56124         * modules/avltree-list-tests (Makefile.am): Likewise.
56125         * modules/avltree-oset-tests (Makefile.am): Likewise.
56126         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56127         * modules/carray-list-tests (Makefile.am): Likewise.
56128         * modules/dirname-tests (Makefile.am): Likewise.
56129         * modules/frexp-tests (Makefile.am): Likewise.
56130         * modules/isnanl-tests (Makefile.am): Likewise.
56131         * modules/linked-list-tests (Makefile.am): Likewise.
56132         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56133         * modules/lock-tests (Makefile.am): Likewise.
56134         * modules/rbtree-list-tests (Makefile.am): Likewise.
56135         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56136         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56137         * modules/tls-tests (Makefile.am): Likewise.
56138         * modules/tsearch-tests (Makefile.am): Likewise.
56139         * modules/xvasprintf-tests (Makefile.am): Likewise.
56140
56141         Fix fpurge for cygwin.
56142         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
56143         value.
56144         * modules/fpurge-tests (Depends-on): Clean up trash.
56145
56146 2007-04-16  Simon Josefsson  <simon@josefsson.org>
56147
56148         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
56149
56150         * m4/autobuild.m4: Re-indent.
56151
56152 2007-04-13  Bruno Haible  <bruno@clisp.org>
56153
56154         * modules/fpurge-tests: New file.
56155         * tests/test-fpurge.c: New file.
56156
56157         * modules/fpurge: New file.
56158         * lib/fpurge.h: New file.
56159         * lib/fpurge.c: New file.
56160         * m4/fpurge.m4: New file.
56161
56162 2007-04-13  Bruno Haible  <bruno@clisp.org>
56163
56164         * modules/fbufmode-tests: New file.
56165         * tests/test-fbufmode.c: New file.
56166
56167         * modules/fbufmode: New file.
56168         * lib/fbufmode.h: New file.
56169         * lib/fbufmode.c: New file.
56170         * m4/fbufmode.m4: New file.
56171
56172 2007-04-13  Bruno Haible  <bruno@clisp.org>
56173
56174         * modules/fwritable-tests: New file.
56175         * tests/test-fwritable.c: New file.
56176
56177         * modules/fwritable: New file.
56178         * lib/fwritable.h: New file.
56179         * lib/fwritable.c: New file.
56180         * m4/fwritable.m4: New file.
56181
56182 2007-04-13  Bruno Haible  <bruno@clisp.org>
56183
56184         * modules/freadable-tests: New file.
56185         * tests/test-freadable.c: New file.
56186
56187         * modules/freadable: New file.
56188         * lib/freadable.h: New file.
56189         * lib/freadable.c: New file.
56190         * m4/freadable.m4: New file.
56191
56192 2007-04-13  Bruno Haible  <bruno@clisp.org>
56193
56194         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
56195         MOSTLYCLEANFILES.
56196
56197 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56198
56199         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
56200         gzip bootstrap.conf to avoid dragging in i18n machinery.
56201         (gnulib_tool_option): Use it.
56202
56203 2007-04-13  Bruno Haible  <bruno@clisp.org>
56204
56205         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
56206         %F directives.
56207         * tests/test-vasprintf-posix.c (test_function): Likewise.
56208         * tests/test-snprintf-posix.h (test_function): Likewise.
56209         * tests/test-sprintf-posix.h (test_function): Likewise.
56210         * tests/test-fprintf-posix.h (test_function): Likewise.
56211         * tests/test-printf-posix.h (test_function): Likewise.
56212         * tests/test-fprintf-posix.out: Likewise.
56213
56214 2007-04-13  Bruno Haible  <bruno@clisp.org>
56215
56216         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
56217         * modules/tls-tests (configure.ac): Likewise.
56218         Reported by Arto C. Nirkko <anirkko@insel.ch>.
56219
56220 2007-04-13  Bruno Haible  <bruno@clisp.org>
56221
56222         * lib/tls.c (glthread_tls_get): Fix return type.
56223         Patch by Arto C. Nirkko <anirkko@insel.ch>.
56224
56225 2007-04-12  Eric Blake  <ebb9@byu.net>
56226
56227         * modules/gettime (Depends-on): Remove gettime.
56228         Reported by Dmitry V. Levin.
56229
56230 2007-04-12  Bruno Haible  <bruno@clisp.org>
56231
56232         * modules/fflush (Include): Mention <stdio.h>.
56233         * modules/strtoimax (Include): Mention <inttypes.h>.
56234         * modules/strtoumax (Include): Likewise.
56235
56236 2007-04-12  Eric Blake  <ebb9@byu.net>
56237
56238         * .cvsignore: New file.
56239         * .gitignore: Likewise.
56240
56241 2007-04-12  Bruno Haible  <bruno@clisp.org>
56242
56243         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
56244         not before, since $(LDADD) often contains libgnu.a.
56245         * modules/striconv-tests (test_striconv_LDADD): Likewise.
56246         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
56247         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
56248         Needed on Cygwin.
56249
56250 2007-04-12  Eric Blake  <ebb9@byu.net>
56251
56252         Work around glibc's failure to flush stdin on fclose.
56253         * lib/closein.c (close_stdin): Flush stdin before closing.
56254
56255         Work around glibc's failure to reset seekable stdin on exit.
56256         * modules/closein: New module.
56257         * lib/closein.c: New file.
56258         * lib/closein.h: Likewise.
56259         * m4/closein.m4: Likewise.
56260         * MODULES.html.sh (File stream based Input/Output): Document it.
56261
56262 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56263
56264         * gnulib-tool: Rename generated 'autobuild' script to
56265         'do-autobuild' in --create-megatestdir output.
56266
56267         * doc/gnulib.texi (Build robot for gnulib): Fix.
56268
56269 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56270
56271         * modules/sysexits (Depends-on): Add absolute-header.
56272
56273 2007-04-12  Eric Blake  <ebb9@byu.net>
56274
56275         No need to preserve errno on success.
56276         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
56277         Reported by Bruno Haible.
56278
56279 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56280
56281         * MODULES.html.sh (Support for maintaining and releasing
56282         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
56283
56284 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56285
56286         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
56287
56288 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56289
56290         * modules/autobuild: New module.
56291
56292         * m4/autobuild.m4: New file.
56293
56294 2007-04-11  Bruno Haible  <bruno@clisp.org>
56295
56296         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
56297         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
56298         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
56299         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
56300         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56301         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56302         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56303         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56304         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56305         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56306         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
56307         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56308         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56309         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
56310         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56311         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56312         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
56313         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56314         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56315         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
56316         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56317         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56318         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
56319         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56320         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56321         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
56322         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56323         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56324         Reported by Eric Blake.
56325
56326 2007-04-11  Bruno Haible  <bruno@clisp.org>
56327
56328         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
56329
56330 2007-04-10  Bruno Haible  <bruno@clisp.org>
56331
56332         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
56333         for NaN and Infinity. Needed on FreeBSD 6.1.
56334         * tests/test-vasnprintf-posix.c (test_function): Undo last change
56335         regarding results for "%010a" of Infinity and NaN.
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-10  Bruno Haible  <bruno@clisp.org>
56344
56345         * modules/locale-tests: New file.
56346         * tests/test-locale.c: New file.
56347
56348         * modules/locale: New file.
56349         * lib/locale_.h: New file.
56350         * m4/locale_h.m4: New file.
56351
56352 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
56353             Bruno Haible  <bruno@clisp.org>
56354
56355         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
56356         be determined, test for availability of the copysignf, copysign,
56357         copysignl functions.
56358         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
56359         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
56360         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
56361
56362 2007-04-09  Eric Blake  <ebb9@byu.net>
56363
56364         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
56365         * modules/stdio (Makefile.am): Support fflush.
56366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56367         * modules/fflush: New file.
56368         * lib/fflush.c: Likewise.
56369         * m4/fflush.m4: Likewise.
56370         * modules/fflush-tests: New test.
56371         * tests/test-fflush.c: Likewise.
56372         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
56373
56374 2007-04-06  Bruno Haible  <bruno@clisp.org>
56375
56376         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
56377         (VASNPRINTF): Use signbit for faster determination whether to print a
56378         minus sign.
56379         * modules/vasnprintf (Files): Remove lib/float+.h.
56380         * modules/fprintf-posix (Depends-on): Add signbit.
56381         * modules/snprintf-posix (Depends-on): Likewise.
56382         * modules/sprintf-posix (Depends-on): Likewise.
56383         * modules/vasnprintf-posix (Depends-on): Likewise.
56384         * modules/vasprintf-posix (Depends-on): Likewise.
56385         * modules/vfprintf-posix (Depends-on): Likewise.
56386         * modules/vsnprintf-posix (Depends-on): Likewise.
56387         * modules/vsprintf-posix (Depends-on): Likewise.
56388
56389 2007-04-06  Bruno Haible  <bruno@clisp.org>
56390
56391         * tests/test-frexp.c (main): Test also the sign bit of zero results.
56392         * tests/test-frexpl.c (main): Likewise.
56393         * tests/test-ldexpl.c (main): Likewise.
56394         * modules/frexp-tests (Depends-on): Add signbit.
56395         * modules/frexpl-tests (Depdends-on): Likewise.
56396         * modules/ldexpl-tests (Depdends-on): Likewise.
56397
56398 2007-04-06  Bruno Haible  <bruno@clisp.org>
56399
56400         * modules/signbit-tests: New file.
56401         * tests/test-signbit.c: New file.
56402
56403         * modules/signbit: New file.
56404         * lib/signbitf.c: New file.
56405         * lib/signbitd.c: New file.
56406         * lib/signbitl.c: New file.
56407         * m4/signbit.m4: New file.
56408         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
56409         (signbit): New macro.
56410         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
56411         REPLACE_SIGNBIT.
56412         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
56413         REPLACE_FREXPL into math.h.
56414
56415 2007-04-06  Bruno Haible  <bruno@clisp.org>
56416
56417         * modules/isnanf-nolibm-tests: New file.
56418         * tests/test-isnanf.c: New file.
56419
56420         * modules/isnanf-nolibm: New file.
56421         * lib/isnanf.h: New file.
56422         * lib/isnanf.c: New file.
56423         * lib/isnan.c: Consider the USE_FLOAT macro.
56424         * m4/isnanf.m4: New file.
56425
56426 2007-04-06  Bruno Haible  <bruno@clisp.org>
56427
56428         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
56429         (Link): New section.
56430
56431         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
56432
56433 2007-04-06  Bruno Haible  <bruno@clisp.org>
56434
56435         Assume the 'long double' type.
56436         * m4/longdouble.m4: Remove file.
56437         * config/srclist.txt: Don't mention longdouble.m4.
56438         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
56439         * lib/float+.h: Likewise.
56440         * lib/frexp.c: Likewise.
56441         * lib/printf-args.h: Likewise.
56442         * lib/printf-args.c: Likewise.
56443         * lib/printf-frexp.c: Likewise.
56444         * lib/printf-parse.c: Likewise.
56445         * lib/vasnprintf.c: Likewise.
56446         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
56447         * m4/intl.m4: Likewise.
56448         * m4/isnanl.m4: Likewise.
56449         * m4/printf.m4: Likewise.
56450         * m4/printf-frexpl.m4: Likewise.
56451         * m4/vasnprintf.m4: Likewise.
56452         * modules/allocsa (Files): Remove m4/longdouble.m4.
56453         * modules/gettext (Files): Likewise.
56454         * modules/relocatable-prog-wrapper (Files): Likewise.
56455         * modules/vasnprintf (Files): Likewise.
56456         * modules/isnanl (Files): Likewise.
56457         (Include): Simplify.
56458         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
56459         (Include): Simplify.
56460         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
56461         (Include): Simplify.
56462         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
56463         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56464         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
56465         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56466         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56467         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56468         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
56469         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56470         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56471         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56472         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
56473         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56474         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
56475         * tests/test-isnanl.c: Likewise.
56476         * tests/test-snprintf-posix.h: Likewise.
56477         * tests/test-sprintf-posix.h: Likewise.
56478         * tests/test-vasnprintf-posix.c: Likewise.
56479         * tests/test-vasnprintf-posix2.c: Likewise.
56480         * tests/test-vasprintf-posix.c: Likewise.
56481
56482 2007-04-06  Bruno Haible  <bruno@clisp.org>
56483
56484         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
56485         * lib/math_.h [__DECC]: Include the overridden include file through
56486         #include_next, outside the double-inclusion guard.
56487         * lib/stdio_.h [__DECC]: Likewise.
56488         * lib/stdlib_.h [__DECC]: Likewise.
56489         * lib/string_.h [__DECC]: Likewise.
56490         * lib/time_.h [__DECC]: Likewise.
56491         * lib/wchar_.h [__DECC]: Likewise.
56492         * lib/wctype_.h [__DECC]: Likewise.
56493         * lib/inttypes_.h [__DECC]: Likewise.
56494         Reported by Albert Chin <china@thewrittenword.com> in
56495         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
56496
56497 2007-04-04  Eric Blake  <ebb9@byu.net>
56498
56499         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
56500         1.5.x.
56501
56502 2007-04-04  Bruno Haible  <bruno@clisp.org>
56503
56504         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
56505         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
56506
56507 2007-04-04  Bruno Haible  <bruno@clisp.org>
56508
56509         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
56510         results for "%010a" of Infinity and NaN.
56511         * tests/test-vasprintf-posix.c (test_function): Likewise.
56512         * tests/test-snprintf-posix.h (test_function): Likewise.
56513         * tests/test-sprintf-posix.h (test_function): Likewise.
56514         * tests/test-fprintf-posix.h (test_function): Remove these tests.
56515         * tests/test-printf-posix.h (test_function): Likewise.
56516         * tests/test-fprintf-posix.out: Update.
56517         Needed for FreeBSD 6.1.
56518
56519 2007-04-04  Bruno Haible  <bruno@clisp.org>
56520
56521         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
56522         directly used by the gnulib modules nor by gnulib-tool.
56523
56524 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56525
56526         * DEPENDENCIES: Give overall description of version dependency
56527         desirability.  Use more-typical names for apps.
56528         Add shell, coreutils, diffutils, grep, tar, gzip.
56529
56530 2007-04-04  Simon Josefsson  <simon@josefsson.org>
56531
56532         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
56533
56534 2007-04-04  Karl Berry  <karl@gnu.org>
56535
56536         * MODULES.html.sh (func_module): missing '.
56537
56538 2007-04-03  Bruno Haible  <bruno@clisp.org>
56539
56540         * modules/argmatch-tests (Makefile.am): New variable
56541         test_argmatch_LDADD.
56542         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
56543         * modules/array-list-tests (Makefile.am): New variable
56544         test_array_list_LDADD.
56545         * modules/array-oset-tests (Makefile.am): New variable
56546         test_array_oset_LDADD.
56547         * modules/avltree-list-tests (Makefile.am): New variable
56548         test_avltree_list_LDADD.
56549         * modules/avltree-oset-tests (Makefile.am): New variable
56550         test_avltree_oset_LDADD.
56551         * modules/avltreehash-list-tests (Makefile.am): New variable
56552         test_avltreehash_list_LDADD.
56553         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
56554         test_canonicalize_lgpl_LDADD.
56555         * modules/carray-list-tests (Makefile.am): New variable
56556         test_carray_list_LDADD.
56557         * modules/dirname-tests (Makefile.am): New variable
56558         test_dirname_LDADD.
56559         * modules/linked-list-tests (Makefile.am): New variable
56560         test_linked_list_LDADD.
56561         * modules/linkedhash-list-tests (Makefile.am): New variable
56562         test_linkedhash_list_LDADD.
56563         * modules/rbtree-list-tests (Makefile.am): New variable
56564         test_rbtree_list_LDADD.
56565         * modules/rbtree-oset-tests (Makefile.am): New variable
56566         test_rbtree_oset_LDADD.
56567         * modules/rbtreehash-list-tests (Makefile.am): New variable
56568         test_rbtreehash_list_LDADD.
56569         * modules/xvasprintf-tests (Makefile.am): New variable
56570         test_xvasprintf_LDADD.
56571         Reported by Eric Blake.
56572
56573 2007-04-03  Eric Blake  <ebb9@byu.net>
56574
56575         * DEPENDENCIES: Weaken m4 requirements.
56576
56577 2007-04-03  Bruno Haible  <bruno@clisp.org>
56578
56579         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
56580         * modules/isnanl-tests (configure.ac): Likewise.
56581
56582 2007-04-03  Ben Pfaff  <blp@gnu.org>
56583
56584         * modules/iconv_open: Add $(srcdir)/ to source directory
56585         references in Makefile fragments that call gperf, to fix VPATH
56586         builds.
56587
56588 2007-04-03  Bruno Haible  <bruno@clisp.org>
56589
56590         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
56591         * lib/ldexpl.c: Undo last change.
56592
56593 2007-04-03  Bruno Haible  <bruno@clisp.org>
56594
56595         * modules/printf-frexpl (Depends-on): Undo last change.
56596         (Files): Add m4/ldexpl.m4.
56597
56598 2007-04-03  Bruno Haible  <bruno@clisp.org>
56599
56600         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
56601         * modules/isnanl (Link): New section.
56602
56603         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
56604         * modules/frexp (Link): New section.
56605
56606         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
56607         * modules/frexpl (Link): New section.
56608
56609         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
56610         * modules/ldexpl (Link): New section.
56611
56612 2007-04-03  Bruno Haible  <bruno@clisp.org>
56613
56614         * modules/TEMPLATE-EXTENDED: New file.
56615         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
56616
56617 2007-04-03  Bruno Haible  <bruno@clisp.org>
56618
56619         * DEPENDENCIES: New file.
56620         Suggested by Simon Josefsson.
56621
56622 2007-04-03  Bruno Haible  <bruno@clisp.org>
56623
56624         * doc/gnulib.texi: Escape @.
56625
56626 2007-04-03  James Youngman  <jay@gnu.org>
56627         and Paul Eggert  <eggert@cs.ucla.edu>
56628
56629         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
56630         birthtime on all systems that have birthtime, not just those which
56631         use st_birthtimensec rather than st_birthtim.  Putting zero in
56632         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
56633         that the birth time is not available for files on an NFS mount.
56634
56635 2007-04-03  Simon Josefsson  <simon@josefsson.org>
56636
56637         * modules/memxor: Move back from crypto/, suggested by Bruno.
56638         * modules/crypto/hmac-sha1: Fix memxor dependency.
56639
56640         * modules/crypto/gc: Moved from ../.
56641
56642 2007-04-02  Eric Blake  <ebb9@byu.net>
56643
56644         * lib/ldexpl.c (includes): Avoid libm.
56645
56646         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
56647
56648 2007-04-02  Bruno Haible  <bruno@clisp.org>
56649
56650         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
56651         on IRIX.
56652
56653 2007-04-02  Bruno Haible  <bruno@clisp.org>
56654
56655         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
56656         x86 or x86_64 platforms running MacOS X.
56657         Reported by Ryan Schmidt <@ryandesign.com>.
56658
56659 2007-04-02  Bruno Haible  <bruno@clisp.org>
56660
56661         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
56662         i386.
56663
56664 2007-04-01  Simon Josefsson  <simon@josefsson.org>
56665
56666         * modules/crypto/arcfour: Moved from ../.
56667         * modules/crypto/arcfour-tests: Moved from ../.
56668         * modules/crypto/arctwo: Moved from ../.
56669         * modules/crypto/arctwo-tests: Moved from ../.
56670         * modules/crypto/des: Moved from ../.
56671         * modules/crypto/des-tests: Moved from ../.
56672         * modules/crypto/gc-arcfour: Moved from ../.
56673         * modules/crypto/gc-arcfour-tests: Moved from ../.
56674         * modules/crypto/gc-arctwo: Moved from ../.
56675         * modules/crypto/gc-arctwo-tests: Moved from ../.
56676         * modules/crypto/gc-des: Moved from ../.
56677         * modules/crypto/gc-des-tests: Moved from ../.
56678         * modules/crypto/gc-hmac-md5: Moved from ../.
56679         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
56680         * modules/crypto/gc-hmac-sha1: Moved from ../.
56681         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
56682         * modules/crypto/gc-md2: Moved from ../.
56683         * modules/crypto/gc-md2-tests: Moved from ../.
56684         * modules/crypto/gc-md4: Moved from ../.
56685         * modules/crypto/gc-md4-tests: Moved from ../.
56686         * modules/crypto/gc-md5: Moved from ../.
56687         * modules/crypto/gc-md5-tests: Moved from ../.
56688         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
56689         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
56690         * modules/crypto/gc-random: Moved from ../.
56691         * modules/crypto/gc-rijndael: Moved from ../.
56692         * modules/crypto/gc-rijndael-tests: Moved from ../.
56693         * modules/crypto/gc-sha1: Moved from ../.
56694         * modules/crypto/gc-sha1-tests: Moved from ../.
56695         * modules/crypto/gc-tests: Moved from ../.
56696         * modules/crypto/hmac-md5: Moved from ../.
56697         * modules/crypto/hmac-md5-tests: Moved from ../.
56698         * modules/crypto/hmac-sha1: Moved from ../.
56699         * modules/crypto/hmac-sha1-tests: Moved from ../.
56700         * modules/crypto/md2: Moved from ../.
56701         * modules/crypto/md2-tests: Moved from ../.
56702         * modules/crypto/md4: Moved from ../.
56703         * modules/crypto/md4-tests: Moved from ../.
56704         * modules/crypto/md5: Moved from ../.
56705         * modules/crypto/md5-tests: Moved from ../.
56706         * modules/crypto/memxor: Moved from ../.
56707         * modules/crypto/rijndael: Moved from ../.
56708         * modules/crypto/rijndael-tests: Moved from ../.
56709         * modules/crypto/sha1: Moved from ../.
56710
56711 2007-03-30  James Youngman  <jay@gnu.org>
56712
56713         * tests/test-stat-time.c (prepare_test): use chmod() rather than
56714         rename() to change the ctime of a file (because ctime is unaffected
56715         by rename on jfs2 on AIX 5.1).
56716         (main): Start by doing cleanup, in case a previous run failed leaving
56717         test files behind.
56718
56719 2007-03-31  Bruno Haible  <bruno@clisp.org>
56720
56721         Support old proprietary implementations of iconv.
56722         * modules/iconv_open: New file.
56723         * lib/iconv_.h: New file.
56724         * m4/iconv_h.m4: New file.
56725         * lib/iconv_open.c: New file.
56726         * lib/iconv_open-aix.gperf: New file.
56727         * lib/iconv_open-hpux.gperf: New file.
56728         * lib/iconv_open-irix.gperf: New file.
56729         * lib/iconv_open-osf.gperf: New file.
56730         * m4/iconv_open.m4: New file.
56731         * modules/linebreak (Depends-on): Add iconv_open.
56732         * modules/striconv (Depends-on): Likewise.
56733         * modules/striconveh (Depends-on): Likewise.
56734         * modules/unicodeio (Depends-on): Likewise.
56735         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
56736         (iconv_t)(-1).
56737         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
56738         conversion if cd is (iconv_t)(-1).
56739         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
56740         is not possible.
56741
56742 2007-03-31  Bruno Haible  <bruno@clisp.org>
56743
56744         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56745         work on Solaris either. Protect also second use of "autodetect_jp".
56746
56747 2007-03-31  Bruno Haible  <bruno@clisp.org>
56748
56749         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
56750         the function is not present.
56751
56752 2007-03-31  Bruno Haible  <bruno@clisp.org>
56753
56754         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
56755         the function is not present.
56756
56757 2007-03-31  Bruno Haible  <bruno@clisp.org>
56758
56759         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
56760         a bug in HP-UX iconv_open().
56761
56762 2007-03-31  Bruno Haible  <bruno@clisp.org>
56763
56764         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
56765         (Mathematics <math.h>): New section, add fpieee.
56766         (Input/output <stdio.h>): Add fseterr.
56767         (Mathematics <math.h>): New section, add printf-frexp.
56768         (Container data structures): Add sublist.
56769         (Core language properties): Add fpucw, inline.
56770         (Functions for greatest-width integer types <inttypes.h>): Add
56771         imaxabs, imaxdiv, inttypes.
56772         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
56773         isnanl-nolibm, ldexp.
56774         (Mathematics <math.h>): New section, add printf-frexpl.
56775         (Support for systems lacking POSIX:2001): Add fprintf-posix,
56776         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
56777         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
56778         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
56779         (Unicode string functions): Add unistr/u*-mbtoucr.
56780         (Java): Add javacomp-script, javaexec-script.
56781         (C#): Add csharpcomp-script, csharpexec-script.
56782         (Support for building libraries and executables): Add havelib,
56783         relocatable-*.
56784         (Support for maintaining and releasing projects): Renamed from
56785         'Support for maintaining and release projects'. Add announce-gen.
56786
56787 2007-03-31  Bruno Haible  <bruno@clisp.org>
56788
56789         * README: Talk primarily about git.
56790         (git and CVS): Renamed from CVS.
56791         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
56792         gnulib is available through git.
56793         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
56794
56795 2007-03-30  Bruno Haible  <bruno@clisp.org>
56796
56797         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
56798         * lib/poll_.h: Likewise.
56799         * lib/stat_.h: Likewise.
56800         * lib/sys_time_.h: Likewise.
56801         * lib/sysexit_.h: Likewise.
56802         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
56803         * lib/stdbool_.h: Likewise.
56804         * lib/byteswap_.h: Add double-inclusion guard.
56805
56806 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
56807
56808         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
56809
56810 2007-03-30  Karl Berry  <karl@gnu.org>
56811
56812         * config/srclist-update: double space after USA in the license
56813         substitution, since that's how it's usually (?) written.
56814
56815 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56816
56817         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
56818         reported by Bruno Haible.
56819
56820 2007-03-29  Bruno Haible  <bruno@clisp.org>
56821
56822         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
56823         a bug in AIX iconv().
56824
56825 2007-03-29  Bruno Haible  <bruno@clisp.org>
56826
56827         * modules/ldexpl-tests: New file.
56828         * tests/test-ldexpl.c: New file.
56829
56830 2007-03-29  Bruno Haible  <bruno@clisp.org>
56831
56832         * lib/ldexpl.c: Include fpucw.h.
56833         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
56834         multiplication.
56835         * modules/ldexpl (Depends-on): Add fpucw.
56836
56837 2007-03-29  Bruno Haible  <bruno@clisp.org>
56838
56839         * modules/ldexpl: New file.
56840         * m4/ldexpl.m4: New file.
56841         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
56842         set.
56843         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
56844         REPLACE_LDEXPL.
56845         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
56846         REPLACE_LDEXPL.
56847         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56848         gl_FUNC_LDEXPL_WORKS.
56849         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
56850         * modules/mathl (Files): Remove lib/ldexpl.c.
56851         (Depends-on): Add ldexpl.
56852
56853 2007-03-29  Bruno Haible  <bruno@clisp.org>
56854
56855         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
56856
56857 2007-03-29  Bruno Haible  <bruno@clisp.org>
56858
56859         * tests/test-striconveh.c (main): Don't assume that a direct conversion
56860         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
56861         and possibly also HP-UX.
56862         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56863         work on AIX, IRIX, HP-UX, OSF/1.
56864         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
56865         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
56866         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
56867         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
56868         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
56869         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
56870
56871 2007-03-29  Bruno Haible  <bruno@clisp.org>
56872
56873         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
56874
56875 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
56876
56877         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
56878         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
56879
56880 2007-03-29  Eric Blake  <ebb9@byu.net>
56881
56882         * lib/acl-internal.h: Remove redundant include.
56883         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
56884         Cygwin when a file is locked.
56885
56886 2007-03-29  Bruno Haible  <bruno@clisp.org>
56887
56888         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
56889         file.
56890         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
56891
56892 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
56893
56894         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
56895         try to remove a parent directory if the child couldn't be removed
56896         (except for the first rmdir, which could fail because the child
56897         doesn't exist).  Problem reported by Jeff Blaine in
56898         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
56899
56900 2007-03-28  Bruno Haible  <bruno@clisp.org>
56901
56902         * lib/striconveh.c (utf8conv_carefully): New function.
56903         (mem_cd_iconveh_internal): Invoke it.
56904
56905 2007-03-28  Bruno Haible  <bruno@clisp.org>
56906
56907         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
56908         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
56909         input.
56910         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
56911         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
56912         unistr/u8-uctomb.
56913
56914 2007-03-28  Bruno Haible  <bruno@clisp.org>
56915
56916         * modules/unistr/u8-mbtoucr: New file.
56917         * lib/unistr/u8-mbtoucr.c: New file.
56918         * modules/unistr/u16-mbtoucr: New file.
56919         * lib/unistr/u16-mbtoucr.c: New file.
56920         * modules/unistr/u16-mbtoucr: New file.
56921         * lib/unistr/u16-mbtoucr.c: New file.
56922         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
56923
56924 2007-03-27  Simon Josefsson  <simon@josefsson.org>
56925             Bruno Haible  <bruno@clisp.org>
56926
56927         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
56928         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
56929         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
56930
56931         * m4/stdio_h.m4: Add stubs for vasprintf too.
56932
56933         * modules/stdio: Support vasprintf in sed command.
56934
56935         * modules/vasprintf: Depend on stdio for prototypes.  Remove
56936         vasprintf.h.  Add stdio module indicator.
56937
56938         * lib/stdio_.h: Declare asprintf and vasprintf, based on
56939         vasprintf.h.
56940
56941         * lib/vasprintf.h: File removed.
56942
56943         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
56944         * lib/vasprintf.c: Ditto.
56945         * lib/xvasprintf.c: Ditto.
56946         * tests/test-vasprintf-posix.c: Ditto.
56947         * tests/test-vasprintf.c: Ditto.
56948
56949 2007-03-27  Bruno Haible  <bruno@clisp.org>
56950
56951         Make vasnprintf multithread-safe.
56952         * lib/vasnprintf.c (decimal_point_char): New function.
56953         (VASNPRINTF): Use it.
56954         Suggested by Simon Josefsson.
56955
56956 2007-03-27  Eric Blake  <ebb9@byu.net>
56957
56958         Support sub-second birthtime on cygwin.
56959         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
56960         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
56961         (get_stat_birthtime): Also work with st_birthtim.
56962
56963 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
56964
56965         * lib/stat-time.h (USE_BIRTHTIME): Remove.
56966         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
56967         (get_stat_birthtime_ns): Do not try to use "spare" fields.
56968         (get_stat_birthtime_ns): Simplify compile-time tests.
56969         (get_stat_birthtime): Change the API to look like
56970         get_stat_mtime etc., except return a negative tv_nsec on error.
56971         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
56972         Don't check for "spare" fields.
56973         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
56974         or for struct stat.st_birthtime, as these tests aren't used.
56975         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
56976
56977 2007-03-27  Bruno Haible  <bruno@clisp.org>
56978
56979         * lib/stat-time.h: Include <sys/stat.h>.
56980
56981 2007-03-27  James Youngman  <jay@gnu.org>
56982
56983         * lib/stat-time.h (get_stat_birthtime): New function for
56984           retrieving st_birthtime as provided by UFS2 (hence *BSD).
56985         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
56986           and its variants.
56987         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
56988         * modules/stat-time-test: New file.
56989         * tests/test-stat-time.c: New test, devised by Bruno Haible.
56990
56991 2007-03-26  Bruno Haible  <bruno@clisp.org>
56992
56993         Better support of signalling NaNs.
56994         * lib/atanl.c: Include isnanl.h.
56995         (atanl): Perform test for NaN at the beginning of the function and
56996         through a call to isnanl.
56997         * lib/cosl.c: Include isnanl.h.
56998         (cosl): Perform test for NaN at the beginning of the function and
56999         through a call to isnanl.
57000         * lib/ldexpl.c: Include isnanl.h.
57001         (ldexpl): Perform test for NaN through a call to isnanl.
57002         * lib/logl.c: Include isnanl.h.
57003         (logl): Perform test for NaN at the beginning of the function and
57004         through a call to isnanl.
57005         * lib/sinl.c: Include isnanl.h.
57006         (sinl): Perform test for NaN at the beginning of the function and
57007         through a call to isnanl.
57008         * lib/sqrtl.c: Include isnanl.h.
57009         (sqrtl): Perform test for NaN at the beginning of the function and
57010         through a call to isnanl.
57011         * lib/tanl.c: Include isnanl.h.
57012         (tanl): Perform test for NaN at the beginning of the function and
57013         through a call to isnanl.
57014         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
57015         * modules/mathl (Depends-on): Add isnanl.
57016
57017 2007-03-26  Eric Blake  <ebb9@byu.net>
57018
57019         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
57020         regression in logic sense of previous patch.
57021
57022 2007-03-26  Bruno Haible  <bruno@clisp.org>
57023
57024         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
57025         unportable shell command "if ! ...".
57026         Reported by Ralf Wildenhues.
57027
57028 2007-03-25  Bruno Haible  <bruno@clisp.org>
57029
57030         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
57031         <sysexits.h> file, and only add EX_CONFIG.
57032         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
57033         absolute file name and whether it is sufficient. Substitute also
57034         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
57035         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
57036         ABSOLUTE_SYSEXITS_H into sysexits.h.
57037
57038 2007-03-25  Bruno Haible  <bruno@clisp.org>
57039
57040         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
57041         hints is NULL.
57042
57043 2007-03-25  Bruno Haible  <bruno@clisp.org>
57044
57045         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
57046         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
57047
57048 2007-03-25  Bruno Haible  <bruno@clisp.org>
57049
57050         * lib/vasnprintf.c: Include langinfo.h.
57051         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
57052         multithread-safe.
57053         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
57054         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
57055         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57056         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57057         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57058         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57059         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57060         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
57061         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57062         Reported by Simon Josefsson.
57063
57064 2007-03-25  Bruno Haible  <bruno@clisp.org>
57065
57066         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
57067         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
57068         * modules/vasnprintf (Depends-on): Add stdint.
57069
57070 2007-03-25  Bruno Haible  <bruno@clisp.org>
57071
57072         * modules/fpieee: New file.
57073         * m4/fpieee.m4: New file.
57074         * modules/isnan-nolibm (Depends-on): Add fpieee.
57075         * modules/isnanl-nolibm (Depends-on): Add fpieee.
57076         * modules/isnanl (Depends-on): Add fpieee.
57077
57078 2007-03-25  Bruno Haible  <bruno@clisp.org>
57079
57080         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
57081
57082 2007-03-25  Bruno Haible  <bruno@clisp.org>
57083
57084         Avoid test failures on IRIX 6.5.
57085         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
57086         (main): Use it.
57087         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
57088         macros.
57089         (main): Use them.
57090
57091 2007-03-25  Bruno Haible  <bruno@clisp.org>
57092
57093         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
57094         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
57095         exists but doesn't work.
57096         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
57097         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
57098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
57099         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
57100         math.h.
57101
57102 2007-03-25  Bruno Haible  <bruno@clisp.org>
57103
57104         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
57105         returns inf. Needed on IRIX 6.5.
57106
57107 2007-03-25  Bruno Haible  <bruno@clisp.org>
57108
57109         * tests/test-frexpl.c: Include isnanl-nolibm.h.
57110         (main): Use isnanl instead of x != x idiom.
57111         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
57112
57113         * tests/test-frexp.c: Include isnan.h.
57114         (main): Use isnan instead of x != x idiom.
57115         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
57116
57117 2007-03-25  Bruno Haible  <bruno@clisp.org>
57118
57119         * tests/test-frexp.c (NaN): New function/macro.
57120         (main): Use it instead of 0.0 / 0.0.
57121         * tests/test-isnan.c (NaN): New function/macro.
57122         (main): Use it instead of 0.0 / 0.0.
57123         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
57124         (test_function): Use it instead of 0.0 / 0.0.
57125         * tests/test-vasprintf-posix.c (NaN): New function/macro.
57126         (test_function): Use it instead of 0.0 / 0.0.
57127         * tests/test-snprintf-posix.h (NaN): New function/macro.
57128         (test_function): Use it instead of 0.0 / 0.0.
57129         * tests/test-sprintf-posix.h (NaN): New function/macro.
57130         (test_function): Use it instead of 0.0 / 0.0.
57131         * tests/test-fprintf-posix.h (NaN): New function/macro.
57132         (test_function): Use it instead of 0.0 / 0.0.
57133         * tests/test-printf-posix.h (NaN): New function/macro.
57134         (test_function): Use it instead of 0.0 / 0.0.
57135
57136         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
57137
57138 2007-03-25  Bruno Haible  <bruno@clisp.org>
57139
57140         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
57141
57142 2007-03-25  Bruno Haible  <bruno@clisp.org>
57143
57144         * lib/regexec.c (merge_state_with_log): Make static.
57145
57146 2007-03-25  Bruno Haible  <bruno@clisp.org>
57147
57148         * lib/trigl.c (kernel_rem_pio2): Make static.
57149
57150 2007-03-25  Bruno Haible  <bruno@clisp.org>
57151
57152         * lib/sincosl.c (sincosl_table): Make static.
57153
57154 2007-03-25  Bruno Haible  <bruno@clisp.org>
57155
57156         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
57157         if the compiler does not support C99.
57158
57159 2007-03-25  Bruno Haible  <bruno@clisp.org>
57160
57161         * modules/time (Makefile.am): Ensure all rule action lines start with a
57162         tab.
57163
57164 2007-03-24  Bruno Haible  <bruno@clisp.org>
57165
57166         * modules/tsearch-tests: New file.
57167         * tests/test-tsearch.sh: New file.
57168         * tests/test-tsearch.c: New file, mostly copied from glibc.
57169
57170         * modules/search-tests: New file.
57171         * tests/test-search.c: New file.
57172
57173         * modules/search: New file.
57174         * lib/search_.h: New file, incorporating lib/tsearch.h.
57175         * m4/search_h.m4: New file.
57176         * lib/tsearch.h: Remove file.
57177         * lib/tsearch.c: Include search.h instead of tsearch.h.
57178         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
57179         HAVE_TSEARCH.
57180         * modules/tsearch (Files): Remove lib/tsearch.h.
57181         (Depends-on): Add search.
57182         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
57183         (Include): Change tsearch.h into search.h.
57184
57185 2007-03-24  Bruno Haible  <bruno@clisp.org>
57186
57187         * modules/fpucw: New file.
57188         * lib/fpucw.h: New file.
57189         * lib/frexp.c: Include fpucw.h.
57190         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57191         (FUNC): Use them.
57192         * lib/printf-frexp.c: Include fpucw.h.
57193         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57194         (FUNC): Use them.
57195         * lib/vasnprintf.c: Include fpucw.h.
57196         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
57197         'long double' calculations.
57198         * tests/test-frexpl.c: Include fpucw.h.
57199         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57200         * tests/test-printf-frexpl.c: Include fpucw.h.
57201         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57202         * modules/frexpl (Depends-on): Add fpucw.
57203         * modules/printf-frexpl (Depends-on): Likewise.
57204         * modules/fprintf-posix (Depends-on): Likewise.
57205         * modules/snprintf-posix (Depends-on): Likewise.
57206         * modules/sprintf-posix (Depends-on): Likewise.
57207         * modules/vasnprintf-posix (Depends-on): Likewise.
57208         * modules/vasprintf-posix (Depends-on): Likewise.
57209         * modules/vfprintf-posix (Depends-on): Likewise.
57210         * modules/vsnprintf-posix (Depends-on): Likewise.
57211         * modules/vsprintf-posix (Depends-on): Likewise.
57212         * modules/frexpl-tests (Depends-on): Likewise.
57213         * modules/printf-frexpl-tests (Depends-on): Likewise.
57214
57215 2007-03-24  Bruno Haible  <bruno@clisp.org>
57216
57217         * lib/float+.h: New file.
57218         * lib/isnan.c: Include float+.h.
57219         (SIZE): New macro.
57220         (FUNC): Compare only SIZE bytes of the value.
57221         * lib/vasnprintf.c: Include float+.h.
57222         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
57223         SIZEOF_LDBL or SIZEOF_DBL bytes.
57224         * modules/isnan-nolibm (Files): Add lib/float+.h.
57225         * modules/isnanl-nolibm (Files): Add lib/float+.h.
57226         * modules/isnanl (Files): Add lib/float+.h.
57227         * modules/vasnprintf (Files): Add lib/float+.h.
57228
57229 2007-03-24  Bruno Haible  <bruno@clisp.org>
57230
57231         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
57232         include isnanl-nolibm.h.
57233
57234 2007-03-24  Bruno Haible  <bruno@clisp.org>
57235
57236         * tests/test-read-file.c (main): Don't produce spurious output for
57237         expected situations. Make the test fail if it encountered unexpected
57238         results.
57239
57240 2007-03-24  Bruno Haible  <bruno@clisp.org>
57241
57242         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
57243         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
57244
57245 2007-03-24  Bruno Haible  <bruno@clisp.org>
57246
57247         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
57248
57249 2007-03-24  Bruno Haible  <bruno@clisp.org>
57250
57251         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
57252         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
57253
57254         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
57255         * modules/utf8-ucs4: Turn into a symbolic link to module
57256         unistr/u8-mbtouc.
57257
57258         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
57259         utf8-ucs4-unsafe.
57260         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
57261         unistr/u8-mbtouc-unsafe.
57262
57263         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
57264         * modules/utf16-ucs4: Turn into a symbolic link to module
57265         unistr/u16-mbtouc.
57266
57267         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
57268         utf16-ucs4-unsafe.
57269         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
57270         unistr/u16-mbtouc-unsafe.
57271
57272         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
57273         * modules/ucs4-utf8: Turn into a symbolic link to module
57274         unistr/u8-ubtomb.
57275
57276         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
57277         * modules/ucs4-utf16: Turn into a symbolic link to module
57278         unistr/u16-ubtomb.
57279
57280 2007-03-24  Bruno Haible  <bruno@clisp.org>
57281
57282         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
57283         Enable the function only if HAVE_INLINE.
57284         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
57285         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57286         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
57287         Enable the function only if HAVE_INLINE.
57288         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
57289         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57290         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
57291         Enable the function only if HAVE_INLINE.
57292         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
57293         Enable the function only if HAVE_INLINE.
57294         * modules/utf8-ucs4: Update.
57295         * modules/utf8-ucs4-unsafe: Update.
57296         * modules/utf16-ucs4: Update.
57297         * modules/utf16-ucs4-unsafe: Update.
57298         * modules/ucs4-utf8: Update.
57299         * modules/ucs4-utf16: Update.
57300
57301 2007-03-24  Bruno Haible  <bruno@clisp.org>
57302
57303         * lib/utf8-ucs4.h: Remove file.
57304         * lib/utf8-ucs4-unsafe.h: Remove file.
57305         * lib/utf16-ucs4.h: Remove file.
57306         * lib/utf16-ucs4-unsafe.h: Remove file.
57307         * lib/ucs4-utf8.h: Remove file.
57308         * lib/ucs4-utf16.h: Remove file.
57309         * lib/unistr.h: Include their previous contents.
57310         * m4/utf-ucs4.m4: Remove file.
57311         * m4/ucs4-utf.m4: Remove file.
57312         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
57313         (Depends-on): Add unistr/base.
57314         (configure.ac): Remove gl_UTF_UCS4.
57315         (Makefile.am): Update.
57316         (Include): Change to unistr.h.
57317         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
57318         (Depends-on): Add unistr/base.
57319         (configure.ac): Remove gl_UTF_UCS4.
57320         (Makefile.am): Update.
57321         (Include): Change to unistr.h.
57322         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
57323         (Depends-on): Add unistr/base.
57324         (configure.ac): Remove gl_UTF_UCS4.
57325         (Makefile.am): Update.
57326         (Include): Change to unistr.h.
57327         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
57328         (Depends-on): Add unistr/base.
57329         (configure.ac): Remove gl_UTF_UCS4.
57330         (Makefile.am): Update.
57331         (Include): Change to unistr.h.
57332         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
57333         (Depends-on): Add unistr/base.
57334         (configure.ac): Remove gl_UCS4_UTF.
57335         (Makefile.am): Update.
57336         (Include): Change to unistr.h.
57337         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
57338         (Depends-on): Add unistr/base.
57339         (configure.ac): Remove gl_UCS4_UTF.
57340         (Makefile.am): Update.
57341         (Include): Change to unistr.h.
57342         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
57343         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
57344         utf8-ucs4-unsafe.h.
57345         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
57346         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
57347         utf16-ucs4-unsafe.h.
57348         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
57349         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
57350         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
57351         * lib/unistr/u8-strchr.c: Likewise.
57352         * lib/unistr/u8-strrchr.c: Likewise.
57353         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
57354         * lib/unistr/u16-strchr.c: Likewise.
57355         * lib/unistr/u16-strrchr.c: Likewise.
57356         * lib/striconveh.c: Update.
57357         * lib/linebreak.c: Update.
57358
57359 2007-03-24  Bruno Haible  <bruno@clisp.org>
57360
57361         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
57362         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
57363
57364 2007-03-22  Bruno Haible  <bruno@clisp.org>
57365
57366         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
57367
57368 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57369
57370         * MODULES.html.sh (File system functions): New module write-any-file.
57371         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
57372         * m4/write-any-file.m4: New files.
57373
57374 2007-03-23  Eric Blake  <ebb9@byu.net>
57375
57376         * gnulib-tool: Rearrange space-tab sequences, since some editors
57377         like to eat them.
57378
57379 2007-03-23  Eric Blake  <ebb9@byu.net>
57380
57381         * lib/version-etc.c (version_etc_va): Update license wording to
57382         be more concise.  Recommended by Richard Stallman.
57383
57384 2007-03-22  Bruno Haible  <bruno@clisp.org>
57385
57386         * lib/poll.c (MSG_PEEK): New fallback definition.
57387
57388 2007-03-22  Bruno Haible  <bruno@clisp.org>
57389
57390         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
57391         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
57392         (main): Update.
57393         Fixes a compilation error on BeOS.
57394
57395 2007-03-22  Bruno Haible  <bruno@clisp.org>
57396
57397         * modules/frexpl-tests: New file.
57398         * tests/test-frexpl.c: New file.
57399
57400         * modules/frexpl: New file.
57401         * m4/frexpl.m4: New file.
57402         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
57403         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
57404         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
57405         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
57406         (Depends-on): Add frexpl. Remove isnanl-nolibm.
57407         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
57408
57409 2007-03-22  Bruno Haible  <bruno@clisp.org>
57410
57411         * lib/frexpl.c: Share code with lib/frexp.c.
57412         * modules/mathl (Files): Add lib/frexp.c.
57413         (Depends-on): Add isnanl-nolibm.
57414
57415 2007-03-22  Bruno Haible  <bruno@clisp.org>
57416
57417         * modules/printf-frexp (Files): Add m4/frexp.m4.
57418         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
57419         only if the found frexp function actually works.
57420
57421 2007-03-22  Bruno Haible  <bruno@clisp.org>
57422
57423         * lib/frexp.c: Remove older implementation that uses divisions.
57424
57425 2007-03-21  Bruno Haible  <bruno@clisp.org>
57426
57427         * modules/frexp-tests: New file.
57428         * tests/test-frexp.c: New file.
57429
57430         * modules/frexp: New file.
57431         * lib/frexp.c: New file.
57432         * m4/frexp.m4: New file.
57433         * lib/math_.h (frexp): New declaration.
57434         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
57435         REPLACE_FREXP.
57436         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
57437
57438 2007-03-21  Bruno Haible  <bruno@clisp.org>
57439
57440         * modules/isnanl-tests: New file.
57441         * tests/test-isnanl.c: New file.
57442
57443         * modules/isnanl: New file.
57444         * lib/isnanl.h: New file.
57445         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
57446         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
57447         gl_FUNC_ISNANL_WORKS.
57448         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
57449         New macros.
57450
57451 2007-03-21  Bruno Haible  <bruno@clisp.org>
57452
57453         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
57454         lib/isnanl.h.
57455         (Include): Update.
57456         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
57457         * lib/vasnprintf.c: Update.
57458         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
57459         tests/test-isnanl.h, remove tests/test-isnanl.c.
57460         (Makefile.am): Update.
57461         * tests/test-isnanl-nolibm.c: New file.
57462         * tests/test-isnanl.h: New file.
57463         * tests/test-isnanl.c: Remove file.
57464
57465 2007-03-21  Jim Meyering  <jim@meyering.net>
57466
57467         When trying to open ".", treat ESTALE like EACCES.
57468         * lib/savewd.c (savewd_save): Resort to forking not just upon
57469         failure with EACCES, but also when errno is ESTALE.
57470
57471 2007-03-20  Bruno Haible  <bruno@clisp.org>
57472
57473         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
57474         Needed on AIX 5.1. Reported by Matthew Woehlke.
57475
57476 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57477
57478         Suggestions by Bruno Haible:
57479         * lib/acl-internal.h: Include "gettext.h" rather than rolling
57480         our own.
57481         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
57482         * modules/acl (Depends-on): Add gettext.
57483
57484 2007-03-19  Bruno Haible  <bruno@clisp.org>
57485
57486         * modules/iconvme: Remove file.
57487         * lib/iconvme.h: Remove file.
57488         * lib/iconvme.c: Remove file.
57489         * m4/iconvme.m4: Remove file.
57490
57491 2007-03-19  Bruno Haible  <bruno@clisp.org>
57492
57493         * doc/relocatable-maint.texi: Break long shell script line.
57494         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57495
57496 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57497
57498         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
57499         handle file_has_acl.
57500         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
57501         * lib/acl.c: Move header inclusions and related macro defns into
57502         lib/acl-internal.h.
57503         (S_ISLNK): Remove defn, since that's now done for us.
57504         (file_has_acl): Move to lib/file-has-acl.c.
57505         Call acl_trivial if available.  This is the crucial part of the fix.
57506         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
57507         shared within the library.  Rewrite a bit, partly to make it compatible
57508         with the GNU coding style.
57509         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
57510         Remove unnecessary double-quotes.
57511         Don't test for acl_to_text; the build will catch that.
57512         Replace acl_entries if it doesn't exist and it is needed.
57513         Check for -lsec and acl_trivial (as used on Solaris 10).
57514         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
57515         lib/file-has-acl.c.
57516         (Depends-on): Add sys_stat, for S_ISLNK.
57517
57518 2007-03-19  Ben Pfaff  <blp@gnu.org>
57519
57520         * doc/gnulib.texi: Fix typos.
57521         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57522
57523 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57524
57525         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
57526         If size is zero here, buf must be zero.
57527
57528 2007-03-19  Simon Josefsson  <simon@josefsson.org>
57529
57530         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
57531         <bruno@clisp.org>.
57532
57533 2007-03-18  Bruno Haible  <bruno@clisp.org>
57534
57535         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
57536         Suggested by Eric Blake.
57537
57538 2007-03-18  Ben Pfaff  <blp@gnu.org>
57539
57540         * doc/relocatable.texi: Recommend using as prefix a directory
57541         that does not exist and will never be created.  Based on
57542         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
57543         and others.
57544
57545 2007-03-17  Bruno Haible  <bruno@clisp.org>
57546
57547         * lib/fchownat.c: Include lchown.h.
57548
57549 2007-03-17  Bruno Haible  <bruno@clisp.org>
57550
57551         Fix endless loop when the given allocated size was > INT_MAX.
57552         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
57553         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
57554         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
57555         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
57556         * lib/sprintf.c (sprintf): Likewise.
57557
57558 2007-03-17  Bruno Haible  <bruno@clisp.org>
57559
57560         * tests/test-argp-2.sh (func_compare): Output a context diff.
57561
57562 2007-03-17  Bruno Haible  <bruno@clisp.org>
57563
57564         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
57565         locale's decimal-point character.
57566
57567 2007-03-17  Bruno Haible  <bruno@clisp.org>
57568
57569         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
57570         before comparing it. Needed because on some platforms (e.g. x86) a
57571         'long double' occupies less bytes than sizeof (long double).
57572
57573 2007-03-17  Bruno Haible  <bruno@clisp.org>
57574
57575         * tests/test-crc.c (main): Make printf statements 64-bit clean.
57576         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
57577         * tests/test-getaddrinfo.c (simple): Likewise.
57578         * tests/test-read-file.c (main): Likewise.
57579
57580 2007-03-17  Bruno Haible  <bruno@clisp.org>
57581
57582         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
57583
57584 2007-03-17  Bruno Haible  <bruno@clisp.org>
57585
57586         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
57587         unused variable.
57588
57589 2007-03-17  Bruno Haible  <bruno@clisp.org>
57590
57591         * tests/test-c-strcasecmp.c: Include c-strcase.h.
57592         * tests/test-c-strncasecmp.c: Likewise.
57593
57594 2007-03-17  Bruno Haible  <bruno@clisp.org>
57595
57596         * modules/stdlib (Depends-on): Add unistd.
57597         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
57598         Needed for MacOS X 10.3.
57599
57600 2007-03-17  Bruno Haible  <bruno@clisp.org>
57601
57602         * lib/unistr/u-strdup.h: Include <stdlib.h>.
57603
57604 2007-03-17  Bruno Haible  <bruno@clisp.org>
57605
57606         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
57607
57608 2007-03-17  Bruno Haible  <bruno@clisp.org>
57609
57610         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
57611         to reflect files copied from gnulib (with or without modifications).
57612         Suggested by Jim Meyering.
57613
57614 2007-03-17  Eric Blake  <ebb9@byu.net>
57615
57616         * NEWS: Document stdlib change from 2007-02-18.
57617
57618 2007-03-17  Jim Meyering  <jim@meyering.net>
57619
57620         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
57621         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
57622         someone uses a name containing shell meta-characters.
57623         Reported by Alfred M. Szmidt.
57624
57625         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
57626
57627 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57628
57629         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
57630         and copy gettext configuration files only if configure.ac contains
57631         a use of AM_GNU_GETTEXT_VERSION.
57632
57633 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57634
57635         * build-aux/bootstrap (gnulib_name): New variable.
57636         (gnulib_tool_options): Use it.
57637
57638 2007-03-13  Simon Josefsson  <simon@josefsson.org>
57639
57640         * tests/test-des.c: Use new namespace.
57641
57642 2007-03-15  Bruno Haible  <bruno@clisp.org>
57643
57644         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
57645         Reported by James Youngman <jay@gnu.org>.
57646
57647 2007-03-15  Bruno Haible  <bruno@clisp.org>
57648
57649         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
57650         declared prototype. Needed with cc on OSF/1 5.1.
57651
57652 2007-03-15  Bruno Haible  <bruno@clisp.org>
57653
57654         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
57655         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
57656         (struct gl_list_implementation): Add dispose_fn argument to the
57657         'create_empty', 'create' methods.
57658         (struct gl_list_impl_base): Add field 'dispose_fn'.
57659         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
57660         argument.
57661         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
57662         dispose_fn argument.
57663         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
57664         dispose_fn on the dropped values.
57665         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
57666         dispose_fn argument.
57667         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
57668         dropped values.
57669         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
57670         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57671         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
57672         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57673         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
57674         argument.
57675         (gl_tree_list_free): Call dispose_fn on the dropped values.
57676         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
57677         the dropped values.
57678         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57679         Add dispose_fn argument.
57680         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
57681         Call dispose_fn on the dropped values.
57682         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
57683         Add dispose_fn argument.
57684         (gl_sublist_create): Initialize the 'dispose_fn' field.
57685         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
57686         * tests/test-array_list.c (main): Update.
57687         * tests/test-carray_list.c (main): Update.
57688         * tests/test-avltree_list.c (main): Update.
57689         * tests/test-rbtree_list.c (main): Update.
57690         * tests/test-avltreehash_list.c (main): Update.
57691         * tests/test-rbtreehash_list.c (main): Update.
57692         * tests/test-linked_list.c (main): Update.
57693         * tests/test-linkedhash_list.c (main): Update.
57694         * tests/test-array_oset.c (main): Update.
57695
57696 2007-03-15  Bruno Haible  <bruno@clisp.org>
57697
57698         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
57699         (gl_oset_create_empty): Add dispose_fn argument.
57700         (struct gl_oset_implementation): Add dispose_fn argument to
57701         'create_empty' method.
57702         (struct gl_oset_impl_base): Add dispose_fn field.
57703         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
57704         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
57705         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
57706         values.
57707         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
57708         (gl_tree_oset_free): Call dispose_fn on the dropped values.
57709         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57710         dropped value.
57711         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57712         dropped value.
57713         * tests/test-array_oset.c (main): Update.
57714         * tests/test-avltree_oset.c (main): Update.
57715         * tests/test-rbtree_oset.c (main): Update.
57716         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
57717
57718 2007-03-13  Bruno Haible  <bruno@clisp.org>
57719
57720         * tests/test-stdbool.c (i): Update after last patch.
57721
57722 2007-03-12  Bruno Haible  <bruno@clisp.org>
57723
57724         * lib/quotearg.c: Include <wctype.h> early, before the definition of
57725         the iswprint macro. Needed on Solaris 2.5.1.
57726
57727 2007-03-12  Bruno Haible  <bruno@clisp.org>
57728
57729         * tests/test-printf-frexp.c (main): Declare x as volatile.
57730
57731 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57732
57733         * doc/gnulib.texi (Build robot for gnulib): New section.
57734
57735 2007-03-12  Jim Meyering  <jim@meyering.net>
57736
57737         * build-aux/bootstrap: New file.
57738         * build-aux/bootstrap.conf: New file, from coreutils.
57739
57740 2007-03-11  Bruno Haible  <bruno@clisp.org>
57741
57742         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
57743
57744 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57745
57746         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
57747         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
57748         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
57749
57750 2007-03-11  Bruno Haible  <bruno@clisp.org>
57751
57752         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
57753         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
57754
57755 2007-03-11  Bruno Haible  <bruno@clisp.org>
57756
57757         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
57758         formula. Needed for SunPRO C 5.0.
57759
57760 2007-03-11  Bruno Haible  <bruno@clisp.org>
57761
57762         * modules/long-options (Depends-on): Add getopt.
57763
57764 2007-03-11  Bruno Haible  <bruno@clisp.org>
57765
57766         * modules/modechange (Depends-on): Add stdbool.
57767
57768 2007-03-11  Bruno Haible  <bruno@clisp.org>
57769
57770         * modules/i-ring (Depends-on): Add stdbool.
57771
57772 2007-03-11  Bruno Haible  <bruno@clisp.org>
57773
57774         * modules/gc-des (Depends-on): Add stdbool.
57775
57776 2007-03-11  Bruno Haible  <bruno@clisp.org>
57777
57778         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
57779
57780 2007-03-11  Bruno Haible  <bruno@clisp.org>
57781
57782         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
57783
57784 2007-03-11  Bruno Haible  <bruno@clisp.org>
57785
57786         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
57787
57788 2007-03-11  Bruno Haible  <bruno@clisp.org>
57789
57790         * lib/vasnprintf.c (sprintf): Undefine.
57791
57792 2007-03-11  Bruno Haible  <bruno@clisp.org>
57793
57794         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
57795         initializers in SunPRO C and Compaq C compilers.
57796
57797 2007-03-11  Bruno Haible  <bruno@clisp.org>
57798
57799         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
57800         decrementing code ANSI C compliant.
57801
57802 2007-03-11  Bruno Haible  <bruno@clisp.org>
57803
57804         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
57805         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
57806
57807 2007-03-11  Bruno Haible  <bruno@clisp.org>
57808
57809         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
57810         <stdbool.h> substitute doesn't pass.
57811
57812 2007-03-11  Bruno Haible  <bruno@clisp.org>
57813
57814         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
57815
57816 2007-03-11  Bruno Haible  <bruno@clisp.org>
57817
57818         * gnulib-tool (func_create_megatestdir): Create also an autobuild
57819         script, for submission to autobuild.josefsson.org.
57820
57821 2007-03-10  Bruno Haible  <bruno@clisp.org>
57822
57823         * modules/canonicalize-lgpl-tests: New file.
57824         * tests/test-canonicalize-lgpl.sh: New file.
57825         * tests/test-canonicalize-lgpl.c: New file.
57826
57827         * modules/c-strcase-tests: New file.
57828         * tests/test-c-strcase.sh: New file.
57829         * tests/test-c-strcasecmp.c: New file.
57830         * tests/test-c-strncasecmp.c: New file.
57831
57832         * modules/atexit-tests: New file.
57833         * tests/test-atexit.sh: New file.
57834         * tests/test-atexit.c: New file.
57835
57836 2007-03-10  Bruno Haible  <bruno@clisp.org>
57837
57838         * tests/test-binary-io.sh: Use temporary filenames that are not so
57839         likely to clash with those of other tests (in a parallel make).
57840         * tests/test-binary-io.c: Likewise.
57841
57842 2007-03-10  Bruno Haible  <bruno@clisp.org>
57843
57844         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
57845         fallback; use #error instead.
57846         Suggested by Simon Josefsson.
57847
57848 2007-03-10  Bruno Haible  <bruno@clisp.org>
57849
57850         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
57851         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
57852         first and the last.
57853
57854 2007-03-10  Bruno Haible  <bruno@clisp.org>
57855
57856         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
57857
57858 2007-03-10  Bruno Haible  <bruno@clisp.org>
57859
57860         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
57861         "make distcheck".
57862         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
57863         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
57864         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
57865
57866 2007-03-10  Bruno Haible  <bruno@clisp.org>
57867
57868         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
57869         variable.
57870         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
57871         variable.
57872
57873 2007-03-09  Eric Blake  <ebb9@byu.net>
57874         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
57875
57876         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
57877         types are not being provided by gnulib.
57878         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
57879         types are supported.
57880
57881 2007-03-10  Bruno Haible  <bruno@clisp.org>
57882
57883         * lib/stdio_.h (__attribute__): New macro.
57884         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
57885         vsprintf): Specify __attribute__ __format__ for GCC.
57886         Suggested by Eric Blake.
57887
57888 2007-03-09  Bruno Haible  <bruno@clisp.org>
57889
57890         * modules/printf-posix-tests: New file.
57891         * tests/test-printf-posix.sh: New file.
57892         * tests/test-printf-posix.c: New file.
57893
57894         * modules/printf-posix: New file.
57895         * lib/printf.c: New file.
57896         * m4/printf-posix-rpl.m4: New file.
57897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
57898         REPLACE_PRINTF.
57899         * lib/stdio_.h (printf): New declaration.
57900         (format, __format__, ____printf____, ____scanf____, ____strftime____,
57901         ____strfmon____): New macros.
57902         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
57903         REPLACE_PRINTF.
57904
57905 2007-03-09  Bruno Haible  <bruno@clisp.org>
57906
57907         * tests/test-vasnprintf-posix2.sh: New file.
57908         * tests/test-vasnprintf-posix2.c: New file.
57909         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
57910         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
57911         (Makefile.am): Activate test-vasnprintf-posix2.sh.
57912
57913         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
57914         a locale dependent decimal point, rather than always '.'.
57915
57916 2007-03-09  Eric Blake  <ebb9@byu.net>
57917
57918         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
57919         spite of platforms like Tandem/NSK that define it to -1.
57920
57921 2007-03-08  Bruno Haible  <bruno@clisp.org>
57922
57923         * modules/vprintf-posix-tests: New file.
57924         * tests/test-vprintf-posix.sh: New file.
57925         * tests/test-vprintf-posix.c: New file.
57926         * tests/test-printf-posix.h: New file.
57927
57928         * modules/vprintf-posix: New file.
57929         * lib/vprintf.c: New file.
57930         * m4/vprintf-posix.m4: New file.
57931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
57932         REPLACE_VPRINTF.
57933         * lib/stdio_.h (vprintf): New declaration.
57934         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
57935         REPLACE_VPRINTF.
57936
57937 2007-03-08  Bruno Haible  <bruno@clisp.org>
57938
57939         * modules/fprintf-posix-tests: New file.
57940         * tests/test-fprintf-posix.sh: New file.
57941         * tests/test-fprintf-posix.c: New file.
57942
57943         * modules/fprintf-posix: New file.
57944         * lib/fprintf.c: New file.
57945         * m4/fprintf-posix.m4: New file.
57946         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
57947         REPLACE_FPRINTF.
57948         * lib/stdio_.h (fprintf): New declaration.
57949         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
57950         REPLACE_FPRINTF.
57951
57952 2007-03-08  Bruno Haible  <bruno@clisp.org>
57953
57954         * modules/vfprintf-posix-tests: New file.
57955         * tests/test-vfprintf-posix.sh: New file.
57956         * tests/test-vfprintf-posix.c: New file.
57957         * tests/test-fprintf-posix.h: New file.
57958         * tests/test-fprintf-posix.out: New file.
57959
57960         * modules/vfprintf-posix: New file.
57961         * lib/vfprintf.c: New file.
57962         * m4/vfprintf-posix.m4: New file.
57963         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
57964         REPLACE_VFPRINTF.
57965         * lib/stdio_.h (vfprintf): New declaration.
57966         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
57967         REPLACE_VFPRINTF.
57968
57969 2007-03-08  Bruno Haible  <bruno@clisp.org>
57970
57971         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
57972
57973 2007-03-08  Bruno Haible  <bruno@clisp.org>
57974
57975         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
57976         instead of 'expr' invocations.
57977         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57978         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57979         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57980         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57981         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57982         Suggested by Paul Eggert.
57983
57984 2007-03-08  Bruno Haible  <bruno@clisp.org>
57985
57986         * modules/fseterr-tests: New file.
57987         * tests/test-fseterr.c: New file.
57988
57989         * modules/fseterr: New file.
57990         * lib/fseterr.h: New file.
57991         * lib/fseterr.c: New file.
57992
57993 2007-03-08  Bruno Haible  <bruno@clisp.org>
57994
57995         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
57996         * lib/getopt_.h: Likewise.
57997         * lib/mbswidth.h: Likewise.
57998         * lib/setenv.h: Likewise.
57999         * lib/vasnprintf.h: Likewise.
58000         * lib/vasprintf.h: Likewise.
58001         * lib/verror.h: Likewise.
58002         * lib/xsetenv.h: Likewise.
58003         * lib/xvasprintf.h: Likewise.
58004
58005 2007-03-08  Jim Meyering  <jim@meyering.net>
58006
58007         * users.txt: Add parted.
58008
58009         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
58010
58011 2007-03-07  Bruno Haible  <bruno@clisp.org>
58012
58013         * m4/printf.m4: Make the shell script snippets copy&pastable.
58014
58015 2007-03-02  Bruno Haible  <bruno@clisp.org>
58016
58017         * lib/netinet_in_.h: New file.
58018         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
58019         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
58020         * modules/netinet_in (Files): Add lib/netinet_in_.h.
58021         (Depends-on): Add absolute-header.
58022         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
58023         into netinet/in.h.
58024
58025 2007-03-03  Bruno Haible  <bruno@clisp.org>
58026
58027         * lib/sys_select_.h: New file.
58028         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
58029         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
58030         * modules/sys_select (Files): Add lib/sys_select_.h.
58031         (Depends-on): Add absolute-header.
58032         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
58033         into sys/select.h.
58034
58035 2007-03-02  Bruno Haible  <bruno@clisp.org>
58036
58037         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
58038         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
58039         values.
58040         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
58041         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
58042         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
58043         * modules/sys_socket (Depends-on): Add absolute-header.
58044         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
58045         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
58046         (Include): Remove requirement of inclusion of <sys/types.h>.
58047
58048 2007-03-02  Bruno Haible  <bruno@clisp.org>
58049
58050         * lib/byteswap_.h (bswap_32): Fix formula.
58051
58052 2007-03-06  Bruno Haible  <bruno@clisp.org>
58053
58054         * modules/sprintf-posix-tests: New file.
58055         * tests/test-sprintf-posix.c: New file.
58056
58057         * modules/sprintf-posix: New file.
58058         * lib/sprintf.c: New file.
58059         * m4/sprintf-posix.m4: New file.
58060         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
58061         REPLACE_SPRINTF.
58062         * lib/stdio_.h (sprintf): New declaration.
58063         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
58064         REPLACE_SPRINTF.
58065
58066 2007-03-06  Bruno Haible  <bruno@clisp.org>
58067
58068         * modules/vsprintf-posix-tests: New file.
58069         * tests/test-vsprintf-posix.c: New file.
58070         * tests/test-sprintf-posix.h: New file.
58071
58072         * modules/vsprintf-posix: New file.
58073         * lib/vsprintf.c: New file.
58074         * m4/vsprintf-posix.m4: New file.
58075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
58076         REPLACE_VSPRINTF.
58077         * lib/stdio_.h (vsprintf): New declaration.
58078         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
58079         REPLACE_VSPRINTF.
58080
58081 2007-03-06  Bruno Haible  <bruno@clisp.org>
58082
58083         * modules/vsnprintf (Depend-on): Remove minmax.
58084
58085 2007-03-06  Bruno Haible  <bruno@clisp.org>
58086
58087         * modules/snprintf-posix-tests: New file.
58088         * tests/test-snprintf-posix.c: New file.
58089
58090         * modules/snprintf-posix: New file.
58091         * m4/snprintf-posix.m4: New file.
58092         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
58093         gl_FUNC_SNPRINTF.
58094         (gl_FUNC_SNPRINTF): Invoke it.
58095         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
58096         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
58097         is set.
58098         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
58099
58100 2007-03-06  Bruno Haible  <bruno@clisp.org>
58101
58102         * modules/vsnprintf-posix-tests: New file.
58103         * tests/test-vsnprintf-posix.c: New file.
58104         * tests/test-snprintf-posix.h: New file.
58105
58106         * modules/vsnprintf-posix: New file.
58107         * m4/vsnprintf-posix.m4: New file.
58108         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
58109         gl_FUNC_VSNPRINTF.
58110         (gl_FUNC_VSNPRINTF): Invoke it.
58111         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
58112         * lib/stdio_.h (vsnprintf): Define as a replacement if
58113         REPLACE_VSNPRINTF is set.
58114         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
58115
58116 2007-03-06  Bruno Haible  <bruno@clisp.org>
58117
58118         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
58119         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
58120
58121 2007-03-06  Bruno Haible  <bruno@clisp.org>
58122
58123         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
58124         (asinl): Declare also if HAVE_DECL_ASINL is set.
58125         (atanl): Declare also if HAVE_DECL_ATANL is set.
58126         (ceill): Declare also if HAVE_DECL_CEILL is set.
58127         (cosl): Declare also if HAVE_DECL_COSL is set.
58128         (expl): Declare also if HAVE_DECL_EXPL is set.
58129         (floorl): Declare also if HAVE_DECL_FLOORL is set.
58130         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
58131         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
58132         (logl): Declare also if HAVE_DECL_LOGL is set.
58133         (sinl): Declare also if HAVE_DECL_SINL is set.
58134         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
58135         (tanl): Declare also if HAVE_DECL_TANL is set.
58136         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
58137         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
58138         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
58139         declaration of frexpl, ldexpl.
58140         * modules/printf-frexpl (Depends-on): Add math.
58141         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
58142
58143 2007-03-05  Bruno Haible  <bruno@clisp.org>
58144
58145         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
58146         frexpl and ldexpl are declared.
58147         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
58148
58149 2007-03-05  Bruno Haible  <bruno@clisp.org>
58150
58151         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
58152         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
58153
58154 2007-03-05  Bruno Haible  <bruno@clisp.org>
58155
58156         * lib/stdio_.h: Include <stddef.h>.
58157
58158 2007-03-05  Bruno Haible  <bruno@clisp.org>
58159
58160         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
58161
58162 2007-03-05  Bruno Haible  <bruno@clisp.org>
58163
58164         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
58165         NetBSD 4, from Ralf Wildenhues.
58166
58167 2007-03-04  Bruno Haible  <bruno@clisp.org>
58168
58169         * lib/vasprintf.h: Update #if logic for the case when the functions
58170         exist but are overridden.
58171
58172 2007-03-04  Bruno Haible  <bruno@clisp.org>
58173
58174         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
58175         implementations: glibc-2.4 and MacOS X 10.3.
58176         * tests/test-vasnprintf-posix.c (test_function): Test also the case
58177         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
58178         * tests/test-vasprintf-posix.c (test_function): Likewise.
58179
58180 2007-03-04  Bruno Haible  <bruno@clisp.org>
58181
58182         * modules/vasprintf-posix-tests: New file.
58183         * tests/test-vasprintf-posix.c: New file.
58184
58185         * modules/vasprintf-posix: New file.
58186         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
58187         defined.
58188         * m4/vasprintf-posix.m4: New file.
58189         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
58190         gl_FUNC_VASPRINTF.
58191         (gl_FUNC_VASPRINTF): Invoke it.
58192         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
58193         here.
58194         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
58195
58196 2007-03-04  Bruno Haible  <bruno@clisp.org>
58197
58198         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
58199         REPLACE_GETTIMEOFDAY.
58200         * modules/sys_time (Makefile.am): Likewise.
58201         * m4/sys_time_h.m4: Likewise.
58202         * m4/gettimeofday.m4: Likewise.
58203
58204 2007-03-04  Bruno Haible  <bruno@clisp.org>
58205
58206         * modules/vasnprintf-posix-tests: New file.
58207         * tests/test-vasnprintf-posix.c: New file.
58208
58209         * modules/vasnprintf-posix: New file.
58210         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
58211         printf-frexpl.h.
58212         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
58213         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
58214         REPLACE_VASNPRINTF is defined.
58215         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
58216         gl_FUNC_VASNPRINTF.
58217         (gl_FUNC_VASNPRINTF): Invoke it.
58218         * m4/vasnprintf-posix.m4: New file.
58219         * m4/printf.m4: New file.
58220
58221 2007-03-04  Bruno Haible  <bruno@clisp.org>
58222
58223         Compile progreloc.c only if --enable-relocatable is specified.
58224         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
58225         if --enable-relocatable was specified.
58226         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
58227         lib_SOURCES.
58228
58229 2007-03-04  Jim Meyering  <jim@meyering.net>
58230
58231         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
58232         Use it consistently, rather than enumerating errno constants.
58233
58234 2007-03-04  Bruno Haible  <bruno@clisp.org>
58235
58236         * modules/xvasprintf-tests: New file.
58237         * tests/test-xvasprintf.c: New file.
58238
58239         * modules/vasprintf-tests: New file.
58240         * tests/test-vasprintf.c: New file.
58241
58242         * modules/vasnprintf-tests: New file.
58243         * tests/test-vasnprintf.c: New file.
58244
58245         * modules/vsnprintf-tests: New file.
58246         * tests/test-vsnprintf.c: New file.
58247
58248         * modules/snprintf-tests: New file.
58249         * tests/test-snprintf.c: New file.
58250
58251 2007-03-04  Bruno Haible  <bruno@clisp.org>
58252
58253         Compile relocatable.c only if --enable-relocatable is specified.
58254         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
58255         gl_RELOCATABLE_LIBRARY.
58256         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
58257         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
58258         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
58259         gl_RELOCATABLE_LIBRARY.
58260         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
58261         (Makefile.am): Remove lib_SOURCES.
58262         * modules/relocatable-lib-lgpl (configure.ac): Invoke
58263         gl_RELOCATABLE_LIBRARY.
58264         (Makefile.am): Remove lib_SOURCES.
58265         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
58266         always.
58267         * modules/relocatable-prog-wrapper (configure.ac): Invoke
58268         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
58269
58270 2007-03-04  Bruno Haible  <bruno@clisp.org>
58271
58272         * modules/argmatch-tests: New file.
58273         * tests/test-argmatch.c: New file.
58274
58275         * tests/test-allocsa.c (main): Halve the number of loop runs.
58276
58277         * modules/alloca-opt-tests: New file.
58278         * tests/test-alloca-opt.c: New file.
58279
58280 2007-03-04  Jim Meyering  <jim@meyering.net>
58281
58282         Work around difference between Linux ACLs and Solaris 10 ZFS.
58283         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
58284         for EINVAL.
58285
58286 2007-03-03  Bruno Haible  <bruno@clisp.org>
58287
58288         * modules/relocatable-prog (Depends-on): Add back progreloc's
58289         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
58290
58291 2007-03-03  Bruno Haible  <bruno@clisp.org>
58292
58293         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
58294         * modules/relocatable-lib: New file.
58295
58296 2007-03-03  Bruno Haible  <bruno@clisp.org>
58297
58298         * modules/relocatable-prog: Renamed from modules/relocatable.
58299         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
58300
58301 2007-03-03  Bruno Haible  <bruno@clisp.org>
58302
58303         * modules/relocatable-script (Files): Add doc/relocatable.texi,
58304         m4/relocatable-lib.m4.
58305         (Depends-on): Remove 'relocatable'.
58306         (configure.ac): Add gl_RELOCATABLE_NOP.
58307
58308 2007-03-03  Bruno Haible  <bruno@clisp.org>
58309
58310         * modules/relocatable-prog-wrapper: New file.
58311         * modules/relocatable (Depends-on): Add it. Remove all other
58312         dependencies except progname.
58313         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
58314
58315         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
58316         (gl_FUNC_STRERROR): Nop.
58317         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
58318
58319         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
58320         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
58321
58322         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
58323         (gl_FUNC_READLINK): Update.
58324
58325         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
58326
58327 2007-03-03  Bruno Haible  <bruno@clisp.org>
58328
58329         * lib/xreadlink.c: Include <unistd.h> unconditionally.
58330         * modules/xreadlink (Depends-on): Add unistd.
58331         * modules/xreadlink-with-size (Depends-on): Likewise.
58332
58333 2007-03-03  Bruno Haible  <bruno@clisp.org>
58334
58335         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
58336         extracted from gt_FUNC_SETENV.
58337         (gt_FUNC_SETENV): Remove macro.
58338         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
58339         remove gt_FUNC_SETENV.
58340
58341 2007-03-03  Bruno Haible  <bruno@clisp.org>
58342
58343         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
58344         ENABLE_RELOCATABLE here.
58345         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
58346
58347 2007-03-03  Bruno Haible  <bruno@clisp.org>
58348
58349         * modules/rbtreehash-list-tests (Depends-on): Add progname.
58350         * tests/test-rbtreehash_list.c: Include progname.h.
58351         (main): Call set_program_name.
58352
58353         * modules/rbtree-oset-tests (Depends-on): Add progname.
58354         * tests/test-rbtree_oset.c: Include progname.h.
58355         (main): Call set_program_name.
58356
58357         * modules/rbtree-list-tests (Depends-on): Add progname.
58358         * tests/test-rbtree_list.c: Include progname.h.
58359         (main): Call set_program_name.
58360
58361         * modules/linked-list-tests (Depends-on): Add progname.
58362         * tests/test-linked_list.c: Include progname.h.
58363         (main): Call set_program_name.
58364
58365 2007-03-03  Bruno Haible  <bruno@clisp.org>
58366
58367         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
58368         All uses of __restrict changed to _Restrict_.
58369         * lib/glob_.h (__restrict): Remove macro.
58370
58371 2007-03-02  Bruno Haible  <bruno@clisp.org>
58372
58373         * modules/gettext (configure.ac): Require gettext infrastructure
58374         from version 0.16.1.
58375
58376 2007-03-02  Bruno Haible  <bruno@clisp.org>
58377
58378         * modules/linkedhash-list-tests (Depends-on): Add progname.
58379         * tests/test-linkedhash_list.c: Include progname.h.
58380         (main): Call set_program_name.
58381
58382         * modules/carray-list-tests (Depends-on): Add progname.
58383         * tests/test-carray_list.c: Include progname.h.
58384         (main): Call set_program_name.
58385
58386         * modules/avltreehash-list-tests (Depends-on): Add progname.
58387         * tests/test-avltreehash_list.c: Include progname.h.
58388         (main): Call set_program_name.
58389
58390         * modules/avltree-oset-tests (Depends-on): Add progname.
58391         * tests/test-avltree_oset.c: Include progname.h.
58392         (main): Call set_program_name.
58393
58394         * modules/avltree-list-tests (Depends-on): Add progname.
58395         * tests/test-avltree_list.c: Include progname.h.
58396         (main): Call set_program_name.
58397
58398         * modules/array-oset-tests (Depends-on): Add progname.
58399         * tests/test-array_oset.c: Include progname.h.
58400         (main): Call set_program_name.
58401
58402         * modules/array-list-tests (Depends-on): Add progname.
58403         * tests/test-array_list.c: Include progname.h.
58404         (main): Call set_program_name.
58405
58406         * modules/argp-tests (Depends-on): Add progname.
58407         * tests/test-argp.c: Include argp.h first. Include progname.h.
58408         (main): Call set_program_name.
58409
58410 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
58411
58412         * doc/gnulib-tool.texi (Initial import): Reword description of
58413         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
58414         limited effect even if defined after the first system include.
58415
58416 2007-03-01  Bruno Haible  <bruno@clisp.org>
58417
58418         * build-aux/config.libpath: Update to libtool-1.5.22.
58419         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58420
58421 2007-03-01  Bruno Haible  <bruno@clisp.org>
58422
58423         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
58424         foo_CFLAGS.
58425         Reported by Ralf Wildenhues.
58426
58427 2007-03-01  Bruno Haible  <bruno@clisp.org>
58428
58429         * build-aux/install-reloc: Remove object files left over by some
58430         compilers.
58431         Reported by Ralf Wildenhues.
58432
58433 2007-03-01  Bruno Haible  <bruno@clisp.org>
58434
58435         * build-aux/install-reloc: Break long lines.
58436
58437 2007-03-01  Bruno Haible  <bruno@clisp.org>
58438
58439         * doc/relocatable.texi: Document that it may not work on OpenBSD.
58440         Reported by Ralf Wildenhues.
58441
58442 2007-03-01  Bruno Haible  <bruno@clisp.org>
58443
58444         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
58445         include ordering constraints.
58446
58447 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58448
58449         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
58450         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
58451         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
58452         as another example.
58453         * lib/time_.h: Fix misspelling.
58454         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58455         Require gl_HEADER_TIME_H_DEFAULTS.
58456         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
58457         * m4/time_r.m4 (gl_TIME_R): Likewise.
58458         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
58459
58460 2007-03-01  Bruno Haible  <bruno@clisp.org>
58461
58462         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
58463         * m4/utimens.m4 (gl_UTIMENS): Likewise.
58464
58465 2007-03-01  Jim Meyering  <jim@meyering.net>
58466
58467         * modules/xreadlink (Maintainer): Add my name.
58468         * modules/xreadlink-with-size (Depends-on): Alphabetize.
58469
58470 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
58471             Bruno Haible  <bruno@clisp.org>
58472
58473         * build-aux/install-reloc: Compile also c-ctype.c.
58474         * build-aux/relocatable.sh.in: New file.
58475         * doc/relocatable.texi: New file.
58476         * doc/relocatable-maint.texi: New file.
58477         * doc/gnulib.texi: Include relocatable-maint.texi.
58478         * lib/progreloc.c: Include unistd.h unconditionally.
58479         * lib/relocwrapper.c: Include unistd.h unconditionally.
58480         Include c-ctype.h.
58481         (add_dotbin): Use c_tolower.
58482         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
58483         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
58484         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
58485         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
58486         to m4/relocatable-lib.m4.
58487         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
58488         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
58489         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
58490         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
58491         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
58492         * modules/relocatable: New file.
58493         * modules/relocatable-lib: New file.
58494         * modules/relocatable-script: New file.
58495
58496 2007-02-28  Bruno Haible  <bruno@clisp.org>
58497
58498         Import --enable-relocatable infrastructure.
58499         * build-aux/config.libpath: New file, from GNU gettext.
58500         * build-aux/install-reloc: New file, from GNU gettext.
58501         * build-aux/reloc-ldflags: New file, from GNU gettext.
58502         * lib/relocatable.h: New file, from GNU gettext.
58503         * lib/relocatable.c: New file, from GNU gettext.
58504         * lib/relocwrapper.c: New file, from GNU gettext.
58505         * m4/relocatable.m4: New file, from GNU gettext.
58506
58507 2007-02-28  Bruno Haible  <bruno@clisp.org>
58508
58509         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
58510
58511         * modules/xreadlink: New file, from GNU gettext with modifications.
58512         * lib/xreadlink.c: New file, from GNU gettext.
58513         * lib/xreadlink.h: Add comments.
58514         (xreadlink): New declaration.
58515
58516         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
58517         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
58518         lib/xreadlink-with-size.c.
58519         (configure.ac): Remove gl_XREADLINK invocation.
58520         (Makefile.am): Augment lib_SOURCES.
58521         * m4/xreadlink.m4: Remove file.
58522         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
58523         (xreadlink_with_size): Renamed from xreadink.
58524         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
58525         * modules/canonicalize (Depends-on): Replace xreadlink with
58526         xreadlink-with-size.
58527         * lib/canonicalize.c (canonicalize_filename_mode): Update.
58528
58529 2007-02-25  Jim Meyering  <jim@meyering.net>
58530
58531         * build-aux/announce-gen: When complaining about excess arguments,
58532         list them.
58533
58534 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58535
58536         * README: Document signed integer overflow situation more
58537         accurately.
58538
58539 2007-02-25  Bruno Haible  <bruno@clisp.org>
58540
58541         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
58542         'a' or 'A' conversion.
58543
58544 2007-02-25  Bruno Haible  <bruno@clisp.org>
58545
58546         * modules/filename: Renamed from modules/pathname.
58547         (Files): Replace lib/pathname.h with lib/filename.h. Replace
58548         lib/concatpath.c with lib/concat-filename.c.
58549         (Makefile.am): Update.
58550         (Include): Replace pathname.h with filename.h.
58551         * lib/filename.h: Renamed from lib/pathname.h.
58552         (concatenated_filename): Renamed from concatenated_pathname.
58553         * lib/concat-filename.c: Renamed from lib/concatpath.c.
58554         (concatenated_filename): Renamed from concatenated_pathname.
58555         * lib/findprog.c: Include filename.h instead of pathname.h.
58556         (find_in_path): Update.
58557         * lib/javacomp.c: Include filename.h instead of pathname.h.
58558         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58559         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58560         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58561         is_oldgcj_14_13_usable, is_javac_usable): Update.
58562         * lib/javaexec.c: Include filename.h instead of pathname.h.
58563         (execute_java_class): Update.
58564         * modules/findprog: Update.
58565         * modules/javacomp: Update.
58566         * modules/javaexec: Update.
58567         * MODULES.html.sh (File system functions): Add 'filename', remove
58568         'pathname'.
58569
58570 2007-02-25  Bruno Haible  <bruno@clisp.org>
58571
58572         * modules/printf-frexpl-tests: New file.
58573         * tests/test-printf-frexpl.c: New file.
58574
58575         * modules/printf-frexpl: New file.
58576         * lib/printf-frexpl.h: New file.
58577         * lib/printf-frexpl.c: New file.
58578         * m4/printf-frexpl.m4: New file.
58579
58580 2007-02-25  Bruno Haible  <bruno@clisp.org>
58581
58582         * modules/printf-frexp-tests: New file.
58583         * tests/test-printf-frexp.c: New file.
58584
58585         * modules/printf-frexp: New file.
58586         * lib/printf-frexp.h: New file.
58587         * lib/printf-frexp.c: New file.
58588         * m4/printf-frexp.m4: New file.
58589
58590 2007-02-25  Bruno Haible  <bruno@clisp.org>
58591
58592         Assume automake >= 1.10 for the tests.
58593         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
58594         * modules/arctwo-tests: Likewise.
58595         * modules/argp-tests: Likewise.
58596         * modules/avltree-list-tests: Likewise.
58597         * modules/avltree-oset-tests: Likewise.
58598         * modules/avltreehash-list-tests: Likewise.
58599         * modules/carray-list-tests: Likewise.
58600         * modules/crc-tests: Likewise.
58601         * modules/des-tests: Likewise.
58602         * modules/gc-arcfour-tests: Likewise.
58603         * modules/gc-arctwo-tests: Likewise.
58604         * modules/gc-des-tests: Likewise.
58605         * modules/gc-hmac-md5-tests: Likewise.
58606         * modules/gc-hmac-sha1-tests: Likewise.
58607         * modules/gc-md2-tests: Likewise.
58608         * modules/gc-md4-tests: Likewise.
58609         * modules/gc-md5-tests: Likewise.
58610         * modules/gc-pbkdf2-sha1-tests: Likewise.
58611         * modules/gc-rijndael-tests: Likewise.
58612         * modules/gc-sha1-tests: Likewise.
58613         * modules/gc-tests: Likewise.
58614         * modules/getaddrinfo-tests: Likewise.
58615         * modules/hmac-md5-tests: Likewise.
58616         * modules/hmac-sha1-tests: Likewise.
58617         * modules/linked-list-tests: Likewise.
58618         * modules/linkedhash-list-tests: Likewise.
58619         * modules/lock-tests: Likewise.
58620         * modules/md2-tests: Likewise.
58621         * modules/md4-tests: Likewise.
58622         * modules/md5-tests: Likewise.
58623         * modules/rbtree-list-tests: Likewise.
58624         * modules/rbtree-oset-tests: Likewise.
58625         * modules/rbtreehash-list-tests: Likewise.
58626         * modules/read-file-tests: Likewise.
58627         * modules/rijndael-tests: Likewise.
58628         * modules/stdint-tests: Likewise.
58629         * modules/tls-tests: Likewise.
58630
58631 2007-02-24  Bruno Haible  <bruno@clisp.org>
58632
58633         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
58634         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
58635         function; instead check whether isnan with a double argument links.
58636         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
58637         function; instead check whether isnan with a 'long double' argument
58638         links.
58639         Reported by Eric Blake <ebb9@byu.net>.
58640
58641 2007-02-24  Bruno Haible  <bruno@clisp.org>
58642
58643         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
58644         defined.
58645         * lib/isnanl.c: Remove all code. Just include isnan.c.
58646         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
58647
58648 2007-02-25  Jim Meyering  <jim@meyering.net>
58649
58650         Avoid conflicting types for 'unsetenv' on FreeBSD.
58651         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
58652         conflicting with FreeBSD's (5.0 and 6.1) function declaration
58653         in stdlib.h.
58654
58655 2007-02-24  Bruno Haible  <bruno@clisp.org>
58656
58657         * modules/isnanl-nolibm-tests: New file.
58658         * tests/test-isnanl.c: New file.
58659
58660         * modules/isnanl-nolibm: New file.
58661         * lib/isnanl.h: New file.
58662         * lib/isnanl.c: New file.
58663         * m4/isnanl.m4: New file.
58664
58665 2007-02-24  Bruno Haible  <bruno@clisp.org>
58666
58667         * modules/isnan-nolibm-tests: New file.
58668         * tests/test-isnan.c: New file.
58669
58670         * modules/isnan-nolibm: New file.
58671         * lib/isnan.h: New file.
58672         * lib/isnan.c: New file.
58673         * m4/isnan.m4: New file.
58674
58675 2007-02-24  Bruno Haible  <bruno@clisp.org>
58676
58677         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
58678         assume that an exponent fits in 20 bits.
58679
58680 2007-02-24  Jim Meyering  <jim@meyering.net>
58681
58682         * m4/regex.m4: Update the description of the configure-time option,
58683         --without-included-regex, to state accurately what the defaults are,
58684         and perhaps to give people an idea why using this option is risky.
58685
58686 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58687
58688         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
58689         loops on small arguments.  This attempts to avoid the problem
58690         Bruno Haible reported for AIX 4.3.2 in
58691         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
58692
58693 2007-02-23  Bruno Haible  <bruno@clisp.org>
58694
58695         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
58696         Needed for help2man.
58697
58698 2007-02-23  Karl Berry  <karl@gnu.org>
58699
58700         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
58701         exists, foo.h should be cvs-ignored, not committed.
58702
58703 2007-02-23  Eric Blake  <ebb9@byu.net>
58704
58705         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
58706         * lib/stat-time.h (includes): Likewise.
58707         * lib/utimecmp.c (includes): Likewise.
58708         * lib/utimens.h (includes): Likewise.
58709         * lib/getdate.y (includes): Also include "timespec.h" for use
58710         internal to the module.
58711         * modules/utimens (Depends-on): Revert yesterday's patch.
58712         * modules/nanosleep (Depends-on): Add missing dependency.
58713
58714 2007-02-22  Bruno Haible  <bruno@clisp.org>
58715
58716         * lib/glob.c: Don't include getlogin_r.h.
58717
58718 2007-02-22  Jim Meyering  <jim@meyering.net>
58719
58720         * modules/utimens (Depends-on): Add timespec, required for
58721         utimens.h's inclusion of timespec.h.
58722
58723 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
58724
58725         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
58726         long unreadable paths in GNU/Linux.  Problem reported by Andreas
58727         Schwab in
58728         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
58729         I'll try to think of a better way to fix the Solaris problem.
58730
58731         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
58732         like glibc; on Solaris 10, it fails with errno == EINVAL.
58733         POSIX says the behavior is unspecified if the first argument is NULL,
58734         so play it safe and never pass NULL to the system getcwd.
58735
58736 2007-02-21  Jim Meyering  <jim@meyering.net>
58737
58738         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
58739         of gettimeofday.  It would conflict with the one now always
58740         provided via sys_time_.h.  Reported by Matthew Woehlke, as
58741         an IRIX 6.5 build failure.
58742
58743 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
58744
58745         Minor fixups to port to Solaris 10 with Sun C 5.8.
58746         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
58747         * modules/getcwd (Depends-on): Add dirfd.
58748         * lib/putenv.c (putenv): #undef it.
58749         (rpl_putenv): New decl.
58750         (malloc, free): Include <stdlib.h> rather than prototyping separately.
58751
58752 2007-02-20  Bruno Haible  <bruno@clisp.org>
58753
58754         * modules/stdio-tests: New file.
58755         * tests/test-stdio.c: New file.
58756
58757         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
58758         (Depends-on): Add stdio.
58759         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58760         (Include): Use <stdio.h> instead of vsnprintf.h.
58761         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58762         HAVE_DECL_VSNPRINTF.
58763         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
58764
58765         * modules/snprintf (Files): Remove lib/snprintf.h.
58766         (Depends-on): Add stdio.
58767         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58768         (Include): Use <stdio.h> instead of snprintf.h.
58769         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58770         HAVE_DECL_SNPRINTF.
58771         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
58772         * lib/getaddrinfo.c: Likewise.
58773
58774         * modules/stdio: New file.
58775         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
58776         * lib/snprintf.h: Remove file.
58777         * lib/vsnprintf.h: Remove file.
58778         * lib/.cppi-disable: Remove snprintf.h.
58779         * m4/stdio_h.m4: New file.
58780         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
58781
58782 2007-02-20  Jim Meyering  <jim@meyering.net>
58783
58784         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
58785         used by e.g., mingw.  From Bruno Haible.
58786
58787 2007-02-19  Bruno Haible  <bruno@clisp.org>
58788
58789         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
58790         warnings.
58791         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58792
58793 2007-02-19  Bruno Haible  <bruno@clisp.org>
58794
58795         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
58796         from mingw users.
58797
58798 2007-02-19  Bruno Haible  <bruno@clisp.org>
58799
58800         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
58801         warnings.
58802         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
58803
58804 2007-02-19  Jim Meyering  <jim@meyering.net>
58805
58806         Don't use FD after a successful "fdopendir (fd)".
58807         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
58808         Reset it by calling dirfd on the just-obtained DIR*.
58809
58810         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
58811         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
58812
58813 2007-02-18  Bruno Haible  <bruno@clisp.org>
58814
58815         * lib/readlink.c: Include <unistd.h>.
58816         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
58817         HAVE_READLINK.
58818         * modules/readlink (Depends-on): Add unistd.
58819         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58820         (Include): Add <unistd.h>.
58821
58822         * lib/getlogin_r.h: Remove file.
58823         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
58824         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
58825         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
58826         HAVE_DECL_GETLOGIN_R.
58827         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
58828         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58829         (Include): Use <unistd.h> instead of getlogin_r.h.
58830
58831         * lib/getcwd.h: Remove file.
58832         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
58833         * lib/xgetcwd.c: Likewise.
58834         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
58835         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
58836         * modules/getcwd (Files): Remove lib/getcwd.h.
58837         (Depends-on): Add unistd.
58838         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58839         (Include): Use <unistd.h> instad of getcwd.h.
58840
58841         * lib/ftruncate.c: Include <unistd.h> first.
58842         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
58843         Set HAVE_FTRUNCATE.
58844         * modules/ftruncate (Depends-on): Add unistd.
58845         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58846
58847         * lib/fchdir.c: Include <unistd.h> first.
58848         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
58849         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
58850         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
58851         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58852         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
58853
58854         * lib/dup2.c: Include <unistd.h> first.
58855         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
58856         HAVE_DUP2.
58857         * modules/dup2 (Depends-on): Add unistd.
58858         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58859
58860         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
58861         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
58862         REPLACE_CHOWN. Don't define chown as a macro here.
58863         * modules/chown (Depends-on): Add unistd.
58864         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58865
58866         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
58867         Add definition for GL_LINK_WARNING.
58868         (chown, dup2): New declarations.
58869         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
58870         link warning.
58871         (ftruncate): New declaration.
58872         (getcwd): New declaration, taken from old getcwd.h.
58873         (getlogin_r): New declaration, taken from old getlogin_r.h.
58874         (readlink): New declaration.
58875         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
58876         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
58877         (gl_PREREQ_UNISTD): Remove macro.
58878         (gl_UNISTD_MODULE_INDICATOR): New macro.
58879         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
58880         many new variables. Don't set UNISTD_H.
58881         * modules/unistd (Description): Change.
58882         (Depends-on): Add link-warning.
58883         (configure.ac): Update.
58884         (Makefile.am): Create unistd.h always. Substitute many new variables
58885         into it.
58886
58887 2007-02-18  Bruno Haible  <bruno@clisp.org>
58888
58889         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
58890         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
58891         HAVE_GETSUBOPT.
58892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
58893         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
58894         * lib/getsubopt.h: Remove file.
58895         * modules/getsubopt (Files): Remove lib/getsubopt.h.
58896         (Depends-on): Add stdlib.
58897         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58898         (Includes): Use <stdlib.h> instead of getsubopt.h.
58899         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
58900         Set HAVE_GETSUBOPT.
58901         * lib/getsubopt.c: Don't include getsubopt.h.
58902
58903 2007-02-18  Bruno Haible  <bruno@clisp.org>
58904
58905         * modules/fchdir (Depends-on): Add dup2.
58906
58907 2007-02-18  Bruno Haible  <bruno@clisp.org>
58908
58909         * lib/stdlib_.h: Handle glibc's special invocation convention
58910         specially.
58911
58912 2007-02-18  Bruno Haible  <bruno@clisp.org>
58913
58914         * modules/stdlib-tests: New file.
58915         * tests/test-stdlib.c: New file.
58916
58917         * modules/mkstemp (Files): Remove lib/mkstemp.h.
58918         (Depends-on): Add stdlib.
58919         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58920         (Includes): Use <stdlib.h> instead of mkstemp.h.
58921         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
58922         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
58923         * lib/mkstemp.c: Don't include mkstemp.h.
58924         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
58925         * lib/stdlib--.h: Don't include mkstemp.h.
58926
58927         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
58928         (Depends-on): Add stdlib.
58929         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58930         (Includes): Use <stdlib.h> instead of mkdtemp.h.
58931         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
58932         HAVE_MKDTEMP.
58933         * lib/mkdtemp.c: Don't include mkdtemp.h.
58934         * lib/clean-temp.c: Don't include mkdtemp.h.
58935
58936         * modules/exit (Files): Remove lib/exit.h.
58937         (Depends-on): Add stdlib.
58938         (Makefile.am): Remove lib_SOURCES.
58939         (Include): Use <stdlib.h> instead of exit.h.
58940         * lib/argmatch.c: Don't include exit.h.
58941         * lib/execute.c: Likewise.
58942         * lib/pagealign_alloc.c: Likewise.
58943         * lib/pipe.c: Likewise.
58944         * lib/wait-process.c: Likewise.
58945         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
58946         * lib/exitfail.c: Likewise.
58947         * lib/savewd.c: Likewise.
58948         * lib/xsetenv.c: Likewise.
58949
58950         * modules/stdlib: New file.
58951         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
58952         and extra comments about mkstemp().
58953         * lib/exit.h: Remove file.
58954         * lib/mkdtemp.h: Remove file.
58955         * lib/mkstemp.h: Remove file.
58956         * m4/stdlib_h.m4: New file.
58957         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
58958
58959 2007-02-18  Bruno Haible  <bruno@clisp.org>
58960
58961         * modules/math-tests: New file.
58962         * tests/test-math.c: New file.
58963
58964         * modules/math: New file.
58965         * modules/mathl (Files): Remove lib/mathl.h.
58966         (Depends-on): Add math.
58967         (Makefile.am): Don't mention mathl.h.
58968         (Include): Use <math.h> instead of mathl.h.
58969         * lib/math_.h: New file.
58970         * lib/mathl.h: Remove file.
58971         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
58972         mathl.h.
58973         * lib/asinl.c: Likewise.
58974         * lib/atanl.c: Likewise.
58975         * lib/ceill.c: Likewise.
58976         * lib/cosl.c: Likewise.
58977         * lib/expl.c: Likewise.
58978         * lib/floorl.c: Likewise.
58979         * lib/frexpl.c: Likewise.
58980         * lib/ldexpl.c: Likewise.
58981         * lib/logl.c: Likewise.
58982         * lib/sincosl.c: Likewise.
58983         * lib/sinl.c: Likewise.
58984         * lib/sqrtl.c: Likewise.
58985         * lib/tanl.c: Likewise.
58986         * lib/trigl.c: Likewise.
58987         * m4/math_h.m4: New file.
58988         * MODULES.html.sh (Mathematics): Add math.
58989
58990 2007-02-17  Bruno Haible  <bruno@clisp.org>
58991
58992         * modules/wctype-tests: New file.
58993         * tests/test-wctype.c: New file.
58994
58995         * modules/wchar-tests: New file.
58996         * tests/test-wchar.c: New file.
58997
58998         * modules/unistd-tests: New file.
58999         * tests/test-unistd.c: New file.
59000
59001         * modules/time-tests: New file.
59002         * tests/test-time.c: New file.
59003
59004         * modules/sysexits-tests: New file.
59005         * tests/test-sysexits.c: New file.
59006
59007         * modules/sys_time-tests: New file.
59008         * tests/test-sys_time.c: New file.
59009
59010         * modules/sys_stat-tests: New file.
59011         * tests/test-sys_stat.c: New file.
59012
59013         * modules/sys_socket-tests: New file.
59014         * tests/test-sys_socket.c: New file.
59015
59016         * modules/sys_select-tests: New file.
59017         * tests/test-sys_select.c: New file.
59018
59019         * modules/string-tests: New file.
59020         * tests/test-string.c: New file.
59021
59022         * modules/stdbool-tests: New file.
59023         * tests/test-stdbool.c: New file.
59024
59025         * modules/netinet_in-tests: New file.
59026         * tests/test-netinet_in.c: New file.
59027
59028         * modules/inttypes-tests: New file.
59029         * tests/test-inttypes.c: New file.
59030
59031         * modules/fcntl-tests: New file.
59032         * tests/test-fcntl.c: New file.
59033
59034         * modules/byteswap-tests: New file.
59035         * tests/test-byteswap.c: New file.
59036
59037         * modules/arpa_inet-tests: New file.
59038         * tests/test-arpa_inet.c: New file.
59039
59040 2007-02-17  Bruno Haible  <bruno@clisp.org>
59041
59042         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
59043         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
59044         if the corresponding module is not enabled. Emit link warnings if
59045         the function is used nevertheless.
59046         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
59047         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
59048         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
59049         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
59050         * modules/inttypes (Depends-on): Add link-warning.
59051         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59052         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
59053         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
59054         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
59055         * modules/imaxdiv (configure.ac): Likewise.
59056         * modules/strtoimax (configure.ac): Likewise.
59057         * modules/strtoumax (configure.ac): Likewise.
59058
59059 2007-02-17  Bruno Haible  <bruno@clisp.org>
59060
59061         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
59062         gl_STRING_MODULE_INDICATOR_DEFAULTS.
59063         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
59064         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
59065
59066 2007-02-17  Bruno Haible  <bruno@clisp.org>
59067
59068         * modules/link-warning: New file.
59069         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
59070         * lib/string_.h (GL_LINK_WARNING): Remove definition.
59071         * modules/string (Depends-on): Add link-warning.
59072         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59073         string.h.
59074         * MODULES.html.sh (Support for building libraries and executables): Add
59075         link-warning.
59076
59077 2007-02-17  Bruno Haible  <bruno@clisp.org>
59078
59079         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
59080         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
59081         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
59082         long lines.
59083
59084 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
59085             Bruno Haible  <bruno@clisp.org>
59086
59087         * modules/tmpfile: New file.
59088         * lib/tmpfile.c: New file.
59089         * m4/tmpfile.m4: New file.
59090         * MODULES.html.sh (func_all_modules): New section "Input/output".
59091
59092 2007-02-15  Bruno Haible  <bruno@clisp.org>
59093
59094         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
59095         (supports_delete_on_close): New function.
59096         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
59097
59098 2007-02-14  Bruno Haible  <bruno@clisp.org>
59099
59100         * modules/mbspcasecmp-tests: New file.
59101         * tests/test-mbspcasecmp.sh: New file.
59102         * tests/test-mbspcasecmp.c: New file.
59103
59104         New module mbspcasecmp.
59105         * modules/mbspcasecmp: New file.
59106         * lib/mbspcasecmp.c: New file.
59107         * lib/string_.h (strncasecmp): Change warning message.
59108         (mbspcasecmp): New declaration.
59109         * m4/mbspcasecmp.m4: New file.
59110         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59111         GNULIB_MBSPCASECMP.
59112         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
59113         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
59114
59115 2007-02-14  Bruno Haible  <bruno@clisp.org>
59116
59117         * modules/mbsncasecmp-tests: New file.
59118         * tests/test-mbsncasecmp.sh: New file.
59119         * tests/test-mbsncasecmp.c: New file.
59120
59121         New module mbsncasecmp.
59122         * modules/mbsncasecmp: New file.
59123         * lib/mbsncasecmp.c: New file.
59124         * lib/string_.h (mbsncasecmp): New declaration.
59125         * m4/mbsncasecmp.m4: New file.
59126         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59127         GNULIB_MBSNCASECMP.
59128         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
59129         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
59130
59131 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59132
59133         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
59134         Verify that it doesn't overlap with our flags.
59135         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
59136         do not have the desired effect in multibyte locales; instead, use
59137         mbscasecmp.
59138         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
59139         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
59140         we don't require GNU fnmatch ourselves (if our users require it, they
59141         should do so explicitly).
59142
59143         Fix regex code so it doesn't rely on strcasecmp.
59144         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
59145         Otherwise, include gnulib's langinfo.h.
59146         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
59147         undesirable behavior in non-C locales.  Instead, rely on localecharset.
59148         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
59149         * modules/regex (FILES): Remove m4/codeset.m4.
59150         (Depends-on): Add localcharset.  Remove strcase.
59151
59152 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59153
59154         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
59155         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59156
59157 2007-02-13  Bruno Haible  <bruno@clisp.org>
59158
59159         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
59160         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59161
59162 2007-02-12  Bruno Haible  <bruno@clisp.org>
59163
59164         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59165         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
59166         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
59167         time warning rather than a link error.
59168
59169 2007-02-12  Bruno Haible  <bruno@clisp.org>
59170
59171         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
59172         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59173         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59174
59175 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59176
59177         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
59178         args, not 2.
59179
59180 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59181
59182         New module 'time', so that apps can include <time.h> as per
59183         POSIX and GNU instead of separate include files like time_r.h
59184         and timegm.h.  This implementation tries out a simpler approach
59185         for replacing decls in standard include files (as compared to
59186         the string module), somewhat as an experiment.
59187
59188         * config/srclist.txt: Comment out mktime.c for now.
59189         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
59190         since it doesn't apply any more.  Use generic wording instead.
59191         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
59192         'time'.
59193         * lib/time_.h, m4/time_h.m4, modules/time: New files.
59194         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
59195         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
59196         Don't include <sys/types.h>; no longer needed since we assume C89.
59197         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
59198         * lib/strftime.c: Likewise.
59199         * lib/time_r.c: Likewise.
59200         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
59201         * lib/nanosleep.c: Include <time.h> first, to check interface.
59202         * lib/strptime.c: Likewise.
59203         * lib/time_r.c: Likewise.
59204         * lib/timegm.c: Likewise.
59205         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
59206         needed.
59207         * lib/timegm.c: Don't include timegm.h; no longer needed.
59208         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
59209         time.h now handles any problems in that area.
59210         (struct timespec, nanosleep): Remove; time.h now arranges for these.
59211         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
59212         that time.h defines struct timespec.
59213         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
59214         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
59215         handles that.
59216         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
59217         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
59218         needed.  Set REPLACE_LOCALTIME.
59219         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
59220         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
59221         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
59222         nanosleep; time_h.m4 now does that.  Don't require
59223         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
59224         module handles this now.
59225         * modules/getdate (Depends-on): Remove timespec.  Add time.
59226         * modules/nanosleep (Depends-on): Likewise.
59227         * modules/stat-time (Depends-on): Likewise.
59228         * modules/nanosleep (Include): Include time.h, not timespec.h.
59229         * modules/strptime (Files): Remove lib/strptime.h.
59230         (Depends-on): Add extensions, time.
59231         (Include): Include time.h, not strptime.h.
59232         * modules/time_r (Files): Remove lib/time_r.h.
59233         (Depends-on): Add time.
59234         (Include): Include time.h, not time_r.h.
59235         * modules/timegm: Likewise.
59236         * modules/timespec (Description): Now does timespec-related decls
59237         of our own, instead of struct timespec itself.
59238         (Depends-on): Add time; remove extensions.
59239         (Maintainer): Add self.
59240         * modules/utimecmp (Depends-on): Add time; remove timespec.
59241         * modules/utimens (Depends-on): Likewise.
59242         * modules/xnanosleep (Depends-on): Likewise.
59243
59244 2007-02-11  Bruno Haible  <bruno@clisp.org>
59245
59246         * lib/c-strstr.c: Include allocsa.h.
59247         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59248         * lib/c-strcasestr.c: Include allocsa.h.
59249         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59250         * lib/strcasestr.c: Include allocsa.h.
59251         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59252         * lib/mbsstr.c: Include allocsa.h.
59253         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59254         allocsa/freesa instead of malloc/free.
59255         * lib/mbscasestr.c: Include allocsa.h.
59256         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59257         allocsa/freesa instead of malloc/free.
59258         * modules/c-strstr (Depends-on): Add allocsa.
59259         * modules/c-strcasestr (Depends-on): Likewise.
59260         * modules/strcasestr (Depends-on): Likewise.
59261         * modules/mbsstr (Depends-on): Likewise.
59262         * modules/mbscasestr (Depends-on): Likewise.
59263
59264 2007-02-11  Bruno Haible  <bruno@clisp.org>
59265
59266         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
59267
59268         * modules/mbsspn-tests: New file.
59269         * tests/test-mbsspn.sh: New file.
59270         * tests/test-mbsspn.c: New file.
59271
59272 2007-02-11  Bruno Haible  <bruno@clisp.org>
59273
59274         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
59275
59276         * modules/mbspbrk-tests: New file.
59277         * tests/test-mbspbrk.sh: New file.
59278         * tests/test-mbspbrk.c: New file.
59279
59280 2007-02-11  Bruno Haible  <bruno@clisp.org>
59281
59282         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
59283         unneeded cast.
59284
59285         * modules/mbscspn-tests: New file.
59286         * tests/test-mbscspn.sh: New file.
59287         * tests/test-mbscspn.c: New file.
59288
59289 2007-02-11  Bruno Haible  <bruno@clisp.org>
59290
59291         * modules/mbscasecmp-tests: New file.
59292         * tests/test-mbscasecmp.sh: New file.
59293         * tests/test-mbscasecmp.c: New file.
59294
59295 2007-02-11  Bruno Haible  <bruno@clisp.org>
59296
59297         Ensure O(n) worst-case complexity of mbscasestr.
59298         * lib/mbscasestr.c: Include stdbool.h.
59299         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59300         functions.
59301         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
59302         the bookkeeping indicates that it's worth it.
59303         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
59304
59305         * modules/mbscasestr-tests: New file.
59306         * tests/test-mbscasestr1.c: New file.
59307         * tests/test-mbscasestr2.sh: New file.
59308         * tests/test-mbscasestr2.c: New file.
59309         * tests/test-mbscasestr3.sh: New file.
59310         * tests/test-mbscasestr3.c: New file.
59311         * tests/test-mbscasestr4.sh: New file.
59312         * tests/test-mbscasestr4.c: New file.
59313         * m4/locale-tr.m4: New file.
59314
59315 2007-02-11  Bruno Haible  <bruno@clisp.org>
59316
59317         Ensure O(n) worst-case complexity of mbsstr.
59318         * lib/mbsstr.c: Include stdbool.h.
59319         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59320         functions.
59321         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
59322         bookkeeping indicates that it's worth it.
59323         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
59324
59325         * modules/mbsstr-tests: New file.
59326         * tests/test-mbsstr1.c: New file.
59327         * tests/test-mbsstr2.sh: New file.
59328         * tests/test-mbsstr2.c: New file.
59329         * tests/test-mbsstr3.sh: New file.
59330         * tests/test-mbsstr3.c: New file.
59331         * m4/locale-fr.m4: New file.
59332
59333 2007-02-11  Bruno Haible  <bruno@clisp.org>
59334
59335         * lib/mbsrchr.c (mbsrchr): Fix bug.
59336
59337         * modules/mbsrchr-tests: New file.
59338         * tests/test-mbsrchr.sh: New file.
59339         * tests/test-mbsrchr.c: New file.
59340
59341 2007-02-11  Bruno Haible  <bruno@clisp.org>
59342
59343         * lib/mbschr.c (mbschr): Fix bug.
59344
59345         * modules/mbschr-tests: New file.
59346         * tests/test-mbschr.sh: New file.
59347         * tests/test-mbschr.c: New file.
59348         * m4/locale-zh.m4: New file.
59349
59350 2007-02-11  Bruno Haible  <bruno@clisp.org>
59351
59352         Support for copying multibyte string iterators.
59353         * lib/mbiter.h: Include <string.h>.
59354         (mbiter_multi_copy): New function.
59355         (mbi_copy): New macro.
59356         * lib/mbuiter.h: Include <string.h>.
59357         (mbuiter_multi_copy): New function.
59358         (mbui_copy): New macro.
59359
59360 2007-02-11  Bruno Haible  <bruno@clisp.org>
59361
59362         New module mbslen.
59363         * modules/mbslen: New file.
59364         * lib/mbslen.c: New file.
59365         * lib/string_.h (mbslen): New declaration.
59366         * m4/mbslen.m4: New file.
59367         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59368         GNULIB_MBSLEN.
59369         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
59370         * MODULES.html.sh (Internationalization functions): Add mbslen.
59371
59372 2007-02-11  Bruno Haible  <bruno@clisp.org>
59373
59374         Ensure O(n) worst-case complexity of strcasestr substitute.
59375         * lib/strcasestr.c: Include stdbool.h.
59376         (knuth_morris_pratt): New function.
59377         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59378         bookkeeping indicates that it's worth it.
59379         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
59380
59381         * modules/strcasestr-tests: New file.
59382         * tests/test-strcasestr.c: New file.
59383
59384 2007-02-11  Bruno Haible  <bruno@clisp.org>
59385
59386         Ensure O(n) worst-case complexity of c_strcasestr.
59387         * lib/c-strcasestr.c: Include stdbool.h, string.h.
59388         (knuth_morris_pratt): New function.
59389         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
59390         the bookkeeping indicates that it's worth it.
59391         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
59392
59393         * modules/c-strcasestr-tests: New file.
59394         * tests/test-c-strcasestr.c: New file.
59395
59396 2007-02-11  Bruno Haible  <bruno@clisp.org>
59397
59398         Ensure O(n) worst-case complexity of c_strstr.
59399         * lib/c-strstr.c: Include stdbool.h, string.h.
59400         (knuth_morris_pratt): New function.
59401         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59402         bookkeeping indicates that it's worth it.
59403         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
59404
59405         * lib/c-strstr.c: Complete rewrite for maintainability.
59406
59407         * modules/c-strstr-tests: New file.
59408         * tests/test-c-strstr.c: New file.
59409
59410 2007-02-11  Bruno Haible  <bruno@clisp.org>
59411
59412         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
59413         5.2.1 and earlier, whereby \055 was treated just like the range
59414         delimiter '-'.
59415         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59416
59417 2007-02-08  Bruno Haible  <bruno@clisp.org>
59418
59419         * modules/regex (Depends-on): Add stdbool.
59420         Reported by Dalibor Topic <robilad@kaffe.org>.
59421
59422 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
59423
59424         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
59425         Prefer returning from main to exiting from it.
59426         Remove unnecessary parens after sizeof.
59427
59428 2007-02-05  Bruno Haible  <bruno@clisp.org>
59429
59430         New module mbssep.
59431         * modules/mbssep: New file.
59432         * lib/mbssep.c: New file.
59433         * lib/string_.h (strsep): Add a conditional link warning.
59434         (mbssep): New declaration.
59435         * m4/mbssep.m4: New file.
59436         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59437         GNULIB_MBSSEP.
59438         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
59439         * MODULES.html.sh (Internationalization functions): Add mbssep.
59440
59441 2007-02-05  Bruno Haible  <bruno@clisp.org>
59442
59443         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
59444         Optimize search in case of 1 delimiter.
59445
59446 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59447
59448         * lib/acl.h: Include sys/types.h before sys/acl.h.
59449
59450 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59451
59452         Merge upstream fix for glibc bugzilla #3957:
59453
59454         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
59455
59456         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
59457         bit for RE_HAT_LISTS_NOT_NEWLINE.
59458         (build_charclass_op): Remove bogus comment.
59459
59460 2007-02-05  Simon Josefsson  <simon@josefsson.org>
59461
59462         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
59463
59464 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59465
59466         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
59467         * lib/memmem.c [!defined _LIBC]: Include config.h.
59468
59469 2007-02-04  Bruno Haible  <bruno@clisp.org>
59470
59471         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
59472         warning message.
59473
59474 2007-02-04  Bruno Haible  <bruno@clisp.org>
59475
59476         New module mbstok_r.
59477         * modules/mbstok_r: New file.
59478         * lib/mbstok_r.c: New file.
59479         * lib/string_.h (strtok_r): Change argument names to match the
59480         comments. Add a conditional link warning.
59481         (mbstok_r): New declaration.
59482         * m4/mbstok_r.m4: New file.
59483         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59484         GNULIB_MBSTOK_R.
59485         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
59486         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
59487
59488 2007-02-04  Bruno Haible  <bruno@clisp.org>
59489
59490         New module mbsspn.
59491         * modules/mbsspn: New file.
59492         * lib/mbsspn.c: New file.
59493         * lib/string_.h (strspn): Add a conditional link warning.
59494         (mbsspn): New declaration.
59495         * m4/mbsspn.m4: New file.
59496         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59497         GNULIB_MBSSPN.
59498         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
59499         * MODULES.html.sh (Internationalization functions): Add mbsspn.
59500
59501 2007-02-04  Bruno Haible  <bruno@clisp.org>
59502
59503         New module mbspbrk.
59504         * modules/mbspbrk: New file.
59505         * lib/mbspbrk.c: New file.
59506         * lib/string_.h (strpbrk): Add a conditional link warning.
59507         (mbspbrk): New declaration.
59508         * m4/mbspbrk.m4: New file.
59509         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59510         GNULIB_MBSPBRK.
59511         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
59512         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
59513
59514 2007-02-04  Bruno Haible  <bruno@clisp.org>
59515
59516         New module mbscspn.
59517         * modules/mbscspn: New file.
59518         * lib/mbscspn.c: New file.
59519         * lib/string_.h (strcspn): Add a conditional link warning.
59520         (mbscspn): New declaration.
59521         * m4/mbscspn.m4: New file.
59522         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59523         GNULIB_MBSCSPN.
59524         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
59525         * MODULES.html.sh (Internationalization functions): Add mbscspn.
59526
59527 2007-02-04  Bruno Haible  <bruno@clisp.org>
59528
59529         New module mbscasestr, reduced goal of strcasestr.
59530         * modules/mbscasestr: New file.
59531         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
59532         (mbscasestr): Renamed from strcasestr.
59533         * lib/strcasestr.c: Don't include mbuiter.h.
59534         (strcasestr): Remove support for multibyte locales.
59535         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
59536         Change the conditional link warning.
59537         (mbscasestr): New declaration.
59538         * m4/mbscasestr.m4: New file.
59539         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
59540         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
59541         REPLACE_STRCASESTR.
59542         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
59543         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59544         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59545         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
59546         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
59547         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59548         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
59549         (Depends-on): Remove mbuiter.
59550         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
59551
59552 2007-02-04  Bruno Haible  <bruno@clisp.org>
59553
59554         Simplify handling of strncasecmp.
59555         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
59556         the conditional link warning.
59557         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59558         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
59559         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
59560         * modules/strcase (configure.ac): Don't invoke
59561         gl_STRING_MODULE_INDICATOR.
59562         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
59563
59564 2007-02-04  Bruno Haible  <bruno@clisp.org>
59565
59566         New module mbscasecmp, reduced goal of strcasecmp.
59567         * modules/mbscasecmp: New file.
59568         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
59569         (mbscasecmp): Renamed from strcasecmp.
59570         * lib/strcasecmp.c: Don't include mbuiter.h.
59571         (strcasecmp): Remove support for multibyte locales.
59572         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
59573         Change the conditional link warning.
59574         (mbscasecmp): New declaration.
59575         * m4/mbscasecmp.m4: New file.
59576         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
59577         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
59578         REPLACE_STRCASECMP.
59579         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
59580         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59581         GNULIB_MBSCASECMP.
59582         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
59583         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
59584         * modules/strcase (Files): Remove m4/mbrtowc.m4.
59585         (Depends-on): Remove mbuiter.
59586         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
59587
59588 2007-02-04  Bruno Haible  <bruno@clisp.org>
59589
59590         New module mbsstr. Remove module strstr.
59591         * modules/mbsstr: New file.
59592         * modules/strstr: Remove file.
59593         * lib/mbsstr.c: Renamed from lib/strstr.c.
59594         (mbsstr): Renamed from strstr.
59595         * lib/string_.h (strstr): Remove declaration. Change the conditional
59596         link warning.
59597         (mbsstr): New declaration.
59598         * m4/mbsstr.m4: New file.
59599         * m4/strstr.m4: Remove file.
59600         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
59601         REPLACE_STRSTR.
59602         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
59603         Don't initialize GNULIB_STRSTR.
59604         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
59605         substitute GNULIB_STRSTR and REPLACE_STRSTR.
59606         * MODULES.html.sh (Internationalization functions): Add mbsstr.
59607         (Support for systems lacking ANSI C 89): Remove strstr.
59608
59609 2007-02-04  Bruno Haible  <bruno@clisp.org>
59610
59611         New module mbsrchr.
59612         * modules/mbsrchr: New file.
59613         * lib/mbsrchr.c: New file.
59614         * lib/string_.h (strrchr): Add a conditional link warning.
59615         (mbsrchr): New declaration.
59616         * m4/mbsrchr.m4: New file.
59617         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59618         GNULIB_MBSRCHR.
59619         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
59620         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
59621
59622 2007-02-04  Bruno Haible  <bruno@clisp.org>
59623
59624         New module mbschr.
59625         * modules/mbschr: New file.
59626         * lib/mbschr.c: New file.
59627         * lib/string_.h (strchr): Add a conditional link warning.
59628         (mbschr): New declaration.
59629         * m4/mbschr.m4: New file.
59630         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59631         GNULIB_MBSCHR.
59632         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
59633         * MODULES.html.sh (Internationalization functions): Add mbschr.
59634
59635 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59636
59637         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
59638
59639         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
59640
59641 2007-02-04  Bruno Haible  <bruno@clisp.org>
59642
59643         New module description section 'configure.ac-early'.
59644         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
59645         (func_get_autoconf_early_snippet): New function.
59646         (func_import, func_create_testdir): Use it. Remove special cases for
59647         modules 'extensions' and 'lock'.
59648         * modules/extensions (configure.ac-early): Require
59649         gl_USE_SYSTEM_EXTENSIONS.
59650         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
59651
59652 2007-02-04  Bruno Haible  <bruno@clisp.org>
59653
59654         Make use of gcj-4.3's -fsource and -ftarget option.
59655         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
59656         and if so try the options -fsource and -ftarget.
59657         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
59658         source_version, ftarget_option, target_version arguments.
59659         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
59660         (is_envjavac_oldgcj_14_14_usable): Renamed from
59661         is_envjavac_gcj_14_14_usable.
59662         (is_envjavac_oldgcj_14_13_usable): Renamed from
59663         is_envjavac_gcj_14_13_usable.
59664         (is_gcj_present): Update.
59665         (is_gcj_43, is_gcj43_usable): New functions.
59666         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
59667         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
59668         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
59669         try the options -fsource and -ftarget.
59670
59671 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59672
59673         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
59674         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
59675         larger value.
59676
59677 2007-02-03  Jim Meyering  <jim@meyering.net>
59678
59679         Give tools a better chance to allocate space for very large buffers.
59680         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
59681
59682         Make pwd and readlink work also when run with an unreadable parent dir
59683         on systems with openat support.
59684         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
59685         provided getcwd function, even when we have openat support.
59686         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
59687
59688 2007-02-02  Bruno Haible  <bruno@clisp.org>
59689
59690         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59691         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
59692         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
59693         portability problems if one of these functions is only used on specific
59694         platforms.
59695         Reported by Paul Eggert.
59696
59697 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
59698
59699         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
59700         is causing more trouble than it's curing.
59701         * lib/regex_internal.h (__mempcpy): Remove.
59702         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
59703         (and make the code a tad smaller to boot).
59704         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
59705
59706 2007-02-02  Jim Meyering  <jim@meyering.net>
59707
59708         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
59709         section, not in the Makefile.am: one.
59710
59711 2007-02-02  Eric Blake  <ebb9@byu.net>
59712
59713         * lib/strchrnul.c: Always include config.h first.
59714
59715         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
59716         gnulib strstr is not necessary here.
59717
59718 2007-02-02  Simon Josefsson  <simon@josefsson.org>
59719
59720         * m4/socklen.m4: Fix typo.
59721
59722 2007-02-02  Eric Blake  <ebb9@byu.net>
59723
59724         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
59725         * modules/netinet_in (Makefile.am): Likewise.
59726
59727 2007-02-01  Bruno Haible  <bruno@clisp.org>
59728
59729         * lib/string_.h (GL_LINK_WARNING): New macro.
59730         (strcasecmp, strstr, strcasestr): If provided by the system,
59731         conditionally define as a macro that leads to a warning instead of to
59732         an error.
59733         (strncasecmp): Conditionally define as a macro that leads to a warning.
59734
59735 2007-02-01  Karl Berry  <karl@gnu.org>
59736
59737         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
59738
59739 2007-02-01  Bruno Haible  <bruno@clisp.org>
59740
59741         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
59742         renamings.
59743
59744 2007-02-01  Eric Blake  <ebb9@byu.net>
59745
59746         * modules/regex (Depends-on): Revert dependence on mempcpy.
59747         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
59748         module's definition of mempcpy.
59749         Reported by Paul Eggert.
59750
59751 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
59752
59753         * lib/string_.h: If the gnulib module XYZ is not present, undefine
59754         the symbol XYZ before redefining it.  This fixes a problem with
59755         programs that don't use XYZ, when compiled on systems that define
59756         XYZ to something else.
59757
59758 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
59759
59760         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
59761         occurs when "mkdir -m foo" creates a setgid directory that is (1)
59762         writeable to group or other and (2) is intended to have a special
59763         mode bit that is set or cleared.  In such a case, the directory
59764         should be neither group- nor other-writeable until the special
59765         mode bits are right.
59766
59767 2007-01-31  Eric Blake  <ebb9@byu.net>
59768
59769         * modules/mountlist (Depends-on): Add strstr.
59770
59771         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
59772         bug.
59773         * modules/string (Makefile.am): Remove redundant replacement.
59774         * modules/regex (Depends-on): Add mempcpy.
59775
59776 2007-01-31  Bruno Haible  <bruno@clisp.org>
59777
59778         New module description field 'Link'.
59779         * gnulib-tool (func_usage): Document --extract-link-directive.
59780         (sed_extract_prog): Recognize 'Link' directive.
59781         (func_get_link_directive): New function.
59782         (func_import): Show summary of link directives.
59783         Handle --extract-link-directive option.
59784         * modules/acl (Link): New section.
59785         * modules/clock-time (Link): New section.
59786         * modules/euidaccess (Link): New section.
59787         * modules/gettext (Link): New section.
59788         * modules/iconv (Link): New section.
59789         * modules/lock (Link): New section.
59790         * modules/nanosleep (Link): New section.
59791         * modules/readline (Link): New section.
59792
59793 2007-01-27  Bruno Haible  <bruno@clisp.org>
59794
59795         Enforce the use of gnulib modules for unportable <string.h> functions.
59796         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
59797         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
59798         (gl_HEADER_STRING_H_BODY): Require it.
59799         * lib/string_.h: If the gnulib module XYZ is not present, redefine
59800         the symbol XYZ to one that gives a link error.
59801         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
59802         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
59803         * modules/mempcpy (configure.ac): Likewise.
59804         * modules/memrchr (configure.ac): Likewise.
59805         * modules/stpcpy (configure.ac): Likewise.
59806         * modules/stpncpy (configure.ac): Likewise.
59807         * modules/strcase (configure.ac): Likewise.
59808         * modules/strcasestr (configure.ac): Likewise.
59809         * modules/strchrnul (configure.ac): Likewise.
59810         * modules/strdup (configure.ac): Likewise.
59811         * modules/strndup (configure.ac): Likewise.
59812         * modules/strnlen (configure.ac): Likewise.
59813         * modules/strpbrk (configure.ac): Likewise.
59814         * modules/strsep (configure.ac): Likewise.
59815         * modules/strstr (configure.ac): Likewise.
59816         * modules/strtok_r (configure.ac): Likewise.
59817
59818 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
59819
59820         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
59821
59822 2007-01-30  Jim Meyering  <jim@meyering.net>
59823
59824         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
59825
59826 2007-01-29  Bruno Haible  <bruno@clisp.org>
59827
59828         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
59829         * lib/execute.c: Likewise.
59830         * lib/pipe.c: Likewise.
59831         * lib/printf-args.h: Likewise.
59832         * lib/printf-args.c: Likewise.
59833         * lib/printf-parse.c: Likewise.
59834         * lib/vasnprintf.c: Likewise.
59835
59836 2007-01-29  Eric Blake  <ebb9@byu.net>
59837
59838         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
59839         declaration.
59840
59841 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
59842
59843         * lib/strptime.h (strptime): Use 'restrict' for args where
59844         POSIX requires this.
59845         * lib/strptime.c (strptime): Likewise.
59846         Change license notice from LGPL to GPL, since gnulib-tool will
59847         change this as needed.
59848         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
59849         defined.
59850         Include "strptime.h" first, to check interface.
59851         Do not #undef _LIBC and _NL_CURRENT.
59852         Do not include <stdlib.h>; no longer needed.
59853         Include "time_r.h" and declare ptime_locale_status
59854         only if _LIBC is not defined.
59855         (__P): Remove unused macro.
59856         (match_string): Bring back glibc version, but use it only if _LIBC
59857         is defined.
59858         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
59859         Remove unnecessary assertion and abort() call.
59860         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
59861         * m4/strptime.m4: Fix serial number comment.
59862         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
59863         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
59864         (Depends-on): Add time_r.
59865
59866 2007-01-29  Bruno Haible  <bruno@clisp.org>
59867
59868         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59869         strptime.
59870         * modules/strptime (Depends-on): Add stdbool.
59871         * lib/strptime.h: Include <time.h> always. Add comments.
59872
59873 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59874
59875         * modules/strptime: New file.
59876         * lib/strptime.h: New file.
59877         * lib/strptime.c: New file.
59878         * m4/strptime.m4: New file.
59879
59880 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59881
59882         * MODULES.html.sh: New module mpsort.
59883         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
59884
59885         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
59886         a circularity problem with HP-UX ia64 reported by Bob Proulx in
59887         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
59888         All uses changed.
59889         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
59890         All uses changed.
59891         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
59892         to _Restrict_.
59893         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
59894         the parameter matches the prototype.
59895
59896 2007-01-28  Jim Meyering  <jim@meyering.net>
59897
59898         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
59899         sys/time.h here, reverting that part of the previous patch:
59900         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
59901
59902 2007-01-28  Bruno Haible  <bruno@clisp.org>
59903
59904         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
59905         value of $(SYS_TIME_H).
59906         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
59907         remove it conditionally, too. [added by Jim Meyering]
59908         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
59909         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
59910         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
59911         GETTIMEOFDAY_REPLACEMENT to 1.
59912
59913 2007-01-28  Bruno Haible  <bruno@clisp.org>
59914
59915         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
59916         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
59917         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
59918         Set UNISTD_H instead of UNISTD_H2.
59919         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
59920
59921 2007-01-28  Bruno Haible  <bruno@clisp.org>
59922
59923         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
59924         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
59925
59926 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59927
59928         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
59929         (func_create_testdir): Ensure C locale for `grep' and `tr'
59930         character ranges.
59931         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
59932         ACLOCAL_AMFLAGS parsing state machine.
59933
59934 2007-01-27  Bruno Haible  <bruno@clisp.org>
59935
59936         * modules/unistr/base: Update.
59937
59938 2007-01-27  Bruno Haible  <bruno@clisp.org>
59939
59940         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
59941         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
59942         * modules/unistr/u32-mbtouc-unsafe: Renamed from
59943         modules/unistr/u32-mbtouc.
59944         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
59945         * lib/unistr.h: Update.
59946         * lib/linebreak.c: Update.
59947         * modules/unistr/u32-mbtouc: Renamed from
59948         modules/unistr/u32-mbtouc-safe.
59949         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
59950         * lib/unistr.h: Update.
59951         * lib/unistr/u32-to-u8.c: Update.
59952         * lib/unistr/u32-to-u16.c: Update.
59953
59954 2007-01-27  Bruno Haible  <bruno@clisp.org>
59955
59956         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
59957         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
59958         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
59959         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
59960         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
59961         * modules/unistr/u16-mbtouc-unsafe: Renamed from
59962         modules/unistr/u16-mbtouc.
59963         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
59964         * lib/unistr.h: Update.
59965         * lib/linebreak.c: Update.
59966         * modules/linebreak: Update.
59967         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
59968         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
59969         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
59970         * modules/unistr/u16-mbtouc: Renamed from
59971         modules/unistr/u16-mbtouc-safe.
59972         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
59973         * lib/unistr.h: Update.
59974         * lib/unistr/u16-to-u8.c: Update.
59975         * modules/unistr/u16-to-u8: Update.
59976         * lib/unistr/u16-to-u32.c: Update.
59977         * modules/unistr/u16-to-u32: Update.
59978
59979 2007-01-27  Bruno Haible  <bruno@clisp.org>
59980
59981         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
59982         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
59983         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
59984         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
59985         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
59986         * modules/unistr/u8-mbtouc-unsafe: Renamed from
59987         modules/unistr/u8-mbtouc.
59988         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
59989         * lib/unistr.h: Update.
59990         * lib/striconveh.c: Update.
59991         * modules/striconveh: Update.
59992         * lib/linebreak.c: Update.
59993         * modules/linebreak: Update.
59994         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
59995         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
59996         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
59997         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
59998         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
59999         * lib/unistr.h: Update.
60000         * lib/striconveh.c: Update.
60001         * modules/striconveh: Update.
60002         * lib/unistr/u8-to-u16.c: Update.
60003         * modules/unistr/u8-to-u16: Update.
60004         * lib/unistr/u8-to-u32.c: Update.
60005         * modules/unistr/u8-to-u32: Update.
60006
60007 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60008
60009         Sync from Libtool.
60010         * lib/argz.c: Do not include strings.h nor memory.h, include
60011         string.h unconditionally.  Patch by Simon Josefsson.
60012
60013 2007-01-27  Bruno Haible  <bruno@clisp.org>
60014
60015         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
60016         from gl_HEADER_STRING_H_BODY.
60017         (gl_HEADER_STRING_H_BODY): Require it.
60018         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
60019         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
60020         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
60021         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
60022         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60023         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
60024         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60025         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
60026         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
60027         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60028         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
60029         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
60030         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
60031         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60032         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60033
60034 2007-01-27  Bruno Haible  <bruno@clisp.org>
60035
60036         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
60037         check_PROGRAMS into noinst_PROGRAMS.
60038         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
60039         check_PROGRAMS in this case.
60040         (func_import): Set for_test to false.
60041         (func_create_testdir): Set for_test to true.
60042
60043 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60044             Bruno Haible  <bruno@clisp.org>
60045
60046         * modules/strcasestr (Files): Remove lib/strcasestr.h.
60047         (Depends-on): Add string.
60048         (Includes): Use <string.h> instead of strcasestr.h.
60049         * modules/string (Makefile.am): Also substitute the value of
60050         REPLACE_STRCASESTR.
60051         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
60052         assume strcasestr is declared in <string.h> not <strings.h>. Also
60053         set REPLACE_STRCASESTR.
60054         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
60055         REPLACE_STRCASESTR.
60056         * lib/strcasestr.h: Remove file.
60057         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
60058         * lib/string_.h (strcasestr): New declaration.
60059
60060 2007-01-27  Bruno Haible  <bruno@clisp.org>
60061
60062         * lib/string_.h: Use 'extern'.
60063
60064 2007-01-27  Jim Meyering  <jim@meyering.net>
60065
60066         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
60067         of set-but-not-used local, "q".
60068
60069         * lib/mempcpy.c: Include <config.h> before <string.h>.
60070         This fixes a compilation error on HP-UX, due to the system's
60071         "restrict"-using mempcpy prototype.
60072
60073 2007-01-26  Bruno Haible  <bruno@clisp.org>
60074
60075         Small optimization.
60076         * lib/javacomp.c: Include c-strstr.h.
60077          (is_envjavac_gcj): Use c_strstr instead of strstr.
60078         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
60079
60080 2007-01-26  Bruno Haible  <bruno@clisp.org>
60081
60082         * MODULES.html.sh (Unicode string functions): Add the new modules.
60083
60084         * modules/uniconv/u32-strconv-to-locale: New file.
60085         * lib/uniconv/u32-strconv-to-locale.c: New file.
60086
60087         * modules/uniconv/u16-strconv-to-locale: New file.
60088         * lib/uniconv/u16-strconv-to-locale.c: New file.
60089
60090         * modules/uniconv/u8-strconv-to-locale: New file.
60091         * lib/uniconv/u8-strconv-to-locale.c: New file.
60092
60093         * modules/uniconv/u32-strconv-from-locale: New file.
60094         * lib/uniconv/u32-strconv-from-locale.c: New file.
60095
60096         * modules/uniconv/u16-strconv-from-locale: New file.
60097         * lib/uniconv/u16-strconv-from-locale.c: New file.
60098
60099         * modules/uniconv/u8-strconv-from-locale: New file.
60100         * lib/uniconv/u8-strconv-from-locale.c: New file.
60101
60102         * modules/uniconv/u32-strconv-to-enc: New file.
60103         * lib/uniconv/u32-strconv-to-enc.c: New file.
60104         * modules/uniconv/u32-strconv-to-enc-tests: New file.
60105         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
60106
60107         * modules/uniconv/u16-strconv-to-enc: New file.
60108         * lib/uniconv/u16-strconv-to-enc.c: New file.
60109         * lib/uniconv/u-strconv-to-enc.h: New file.
60110         * modules/uniconv/u16-strconv-to-enc-tests: New file.
60111         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
60112
60113         * modules/uniconv/u8-strconv-to-enc: New file.
60114         * lib/uniconv/u8-strconv-to-enc.c: New file.
60115         * modules/uniconv/u8-strconv-to-enc-tests: New file.
60116         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
60117
60118         * modules/uniconv/u32-strconv-from-enc: New file.
60119         * lib/uniconv/u32-strconv-from-enc.c: New file.
60120         * modules/uniconv/u32-strconv-from-enc-tests: New file.
60121         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
60122
60123         * modules/uniconv/u16-strconv-from-enc: New file.
60124         * lib/uniconv/u16-strconv-from-enc.c: New file.
60125         * modules/uniconv/u16-strconv-from-enc-tests: New file.
60126         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
60127
60128         * modules/uniconv/u8-strconv-from-enc: New file.
60129         * lib/uniconv/u8-strconv-from-enc.c: New file.
60130         * lib/uniconv/u-strconv-from-enc.h: New file.
60131         * modules/uniconv/u8-strconv-from-enc-tests: New file.
60132         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
60133
60134         * modules/uniconv/u32-conv-from-enc: New file.
60135         * lib/uniconv/u32-conv-from-enc.c: New file.
60136         * modules/uniconv/u32-conv-from-enc-tests: New file.
60137         * tests/uniconv/test-u32-conv-from-enc.c: New file.
60138
60139         * modules/uniconv/u16-conv-from-enc: New file.
60140         * lib/uniconv/u16-conv-from-enc.c: New file.
60141         * lib/uniconv/u-conv-from-enc.h: New file.
60142         * modules/uniconv/u16-conv-from-enc-tests: New file.
60143         * tests/uniconv/test-u16-conv-from-enc.c: New file.
60144
60145         * modules/uniconv/u8-conv-from-enc: New file.
60146         * lib/uniconv/u8-conv-from-enc.c: New file.
60147         * modules/uniconv/u8-conv-from-enc-tests: New file.
60148         * tests/uniconv/test-u8-conv-from-enc.c: New file.
60149
60150         * modules/uniconv/base: New file.
60151         * lib/uniconv.h: New file.
60152
60153 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60154
60155         * doc/gnulib-tool.texi (Initial import): Update to match current
60156         behavior with strdup module.
60157         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
60158         * lib/memmem.h: Remove; all uses removed.  This is now done
60159         by <string.h>.
60160         * lib/mempcpy.h: Likewise.
60161         * lib/memrchr.h: Likewise.
60162         * lib/stpcpy.h: Likewise.
60163         * lib/stpncpy.h: Likewise.
60164         * lib/strcase.h: Likewise.
60165         * lib/strchrnul.h: Likewise.
60166         * lib/strdup.h: Likewise.
60167         * lib/strndup.h: Likewise.
60168         * lib/strnlen.h: Likewise.
60169         * lib/strpbrk.h: Likewise.
60170         * lib/strsep.h: Likewise.
60171         * lib/strstr.h: Likewise.
60172         * lib/strtok_r.h: Likewise.
60173         * lib/string_.h: New file.
60174         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
60175         Rely on <string.h> instead.
60176         * lib/canon-host.c: Likewise.
60177         * lib/chdir-long.c: Likewise.
60178         * lib/concatpath.c: Likewise.
60179         * lib/exclude.c: Likewise.
60180         * lib/fchdir.c: Likewise.
60181         * lib/getaddrinfo.c: Likewise.
60182         * lib/getcwd.c: Likewise.
60183         * lib/getsubopt.c: Likewise.
60184         * lib/glob.c: Likewise.
60185         * lib/hard-locale.c: Likewise.
60186         * lib/iconvme.c: Likewise.
60187         * lib/javacomp.c: Likewise.
60188         * lib/mempcpy.c: Likewise.
60189         * lib/memrchr.c: Likewise.
60190         * lib/regex_internal.h: Likewise.
60191         * lib/stpncpy.c: Likewise.
60192         * lib/strcasecmp.c: Likewise.
60193         * lib/strchrnul.c: Likewise.
60194         * lib/strdup.c: Likewise.
60195         * lib/striconv.c: Likewise.
60196         * lib/striconveh.c: Likewise.
60197         * lib/striconveha.c: Likewise.
60198         * lib/strncasecmp.c: Likewise.
60199         * lib/strndup.c: Likewise.
60200         * lib/strnlen.c: Likewise.
60201         * lib/strsep.c: Likewise.
60202         * lib/strstr.c: Likewise.
60203         * lib/strtok_r.c: Likewise.
60204         * lib/userspec.c: Likewise.
60205         * lib/w32spawn.h: Likewise.
60206         * lib/xstrndup.c: Likewise.
60207         * lib/mountlist.c (strstr): Remove decl.
60208         * m4/string_h.m4: New file.
60209         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
60210         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
60211         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
60212         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
60213         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
60214         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
60215         Set REPLACE_STRCASECMP if necessary.
60216         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
60217         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
60218         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
60219         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
60220         HAVE_DECL_STRDUP if necessary.
60221         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
60222         since gl_FUNC_STRNDUP does that now.
60223         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
60224         Check for decl here...
60225         (gl_PREREQ_STRNLEN): ... not here.
60226         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
60227         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
60228         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
60229         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
60230         necessary.
60231         * modules/string: New file.
60232         * modules/memmem (Files): Remove special-purpose include file.
60233         (Depends-on): Add string.
60234         (Include): Include <string.h>, not the removed file.
60235         * modules/mempcpy: Likewise.
60236         * modules/memrchr: Likewise.
60237         * modules/stpcpy: Likewise.
60238         * modules/stpncpy: Likewise.
60239         * modules/strcase: Likewise.
60240         * modules/strchrnul: Likewise.
60241         * modules/strdup: Likewise.
60242         * modules/strndup: Likewise.
60243         * modules/strnlen: Likewise.
60244         * modules/strpbrk: Likewise.
60245         * modules/strsep: Likewise.
60246         * modules/strstr: Likewise.
60247         * modules/strtok_r: Likewise.
60248         * tests/test-dirname.c: Don't include "strdup.h", since
60249         <string.h> now suffices.
60250         * tests/test-memmem.c: Don't include "memmem.h", since
60251         <string.h> now suffices.
60252
60253 2007-01-25  Bruno Haible  <bruno@clisp.org>
60254
60255         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
60256         *resultp is 0.
60257
60258         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
60259         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
60260         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
60261         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
60262
60263         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
60264         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
60265         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
60266         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
60267         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
60268         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
60269
60270 2007-01-24  Bruno Haible  <bruno@clisp.org>
60271
60272         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
60273         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
60274         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
60275         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
60276         gl_FUNC_FTS_CORE.
60277         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
60278         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
60279         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60280         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
60281         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
60282         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
60283         gl_FUNC_FCHOWNAT.
60284         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
60285         gl_FUNC_STRFTIME.
60286         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
60287         Reported by Ralf Wildenhues.
60288
60289 2007-01-24  Bruno Haible  <bruno@clisp.org>
60290
60291         Drop AC_REQUIRE calls that are redundant with the module dependencies.
60292         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
60293         gl_GETADDRINFO.
60294         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
60295         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
60296         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
60297
60298 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
60299
60300         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
60301         Don't use 'exit'; just return from 'main'.
60302         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
60303
60304         * lib/fnmatch_.h: Readjust white space and comments to match
60305         glibc, to avoid spurious diffs.
60306
60307 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60308
60309         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
60310         2004-12-01 change by Jakub Jelinek, since this code won't compile
60311         if !LIBC.  Problem reported by Bob Proulx.
60312
60313 2007-01-23  Bruno Haible  <bruno@clisp.org>
60314
60315         * lib/striconveh.c: Include c-strcaseeq.h.
60316         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
60317         * modules/striconveh (Depends-on): Add c-strcaseeq.
60318
60319 2007-01-23  Bruno Haible  <bruno@clisp.org>
60320
60321         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
60322
60323         * modules/c-strcaseeq: New file.
60324         * lib/c-strcaseeq.h: New file.
60325
60326         * modules/streq: New file.
60327         * lib/streq.h: New file.
60328
60329 2007-01-23  Bruno Haible  <bruno@clisp.org>
60330
60331         * modules/striconveha-tests: New file.
60332         * tests/test-striconveha.c: New file.
60333
60334         * lib/striconveha.h: Include <stdbool.h>.
60335         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
60336         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
60337         (mem_iconveha_notranslit): Renamed from mem_iconveha.
60338         (mem_iconveha): New function.
60339         (str_iconveha_notranslit): Renamed from str_iconveha.
60340         (str_iconveha): New function.
60341         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
60342         c-strcase.
60343
60344 2007-01-23  Bruno Haible  <bruno@clisp.org>
60345
60346         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
60347         encodings without forgiving before trying any encoding with handler.
60348         (str_iconveha): Try all encodings without forgiving before trying any
60349         encoding with handler.
60350
60351 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60352
60353         Import the following changes from libc.
60354
60355         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60356
60357         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
60358
60359         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60360
60361         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
60362         normal_bracket label.
60363
60364         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
60365
60366         [BZ #361]
60367         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
60368         to normal_bracket after fetching the next character.
60369
60370 2007-01-22  Bruno Haible  <bruno@clisp.org>
60371
60372         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
60373         argument.
60374         * lib/striconveh.c (iconv_carefully_1): New function.
60375         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
60376         argument.
60377         (str_cd_iconveh): Update.
60378         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
60379         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
60380         * tests/test-striconveh.c (MAGIC): New macro.
60381         (new_offsets): New function.
60382         (main): Test call with and without offsets.
60383
60384 2007-01-22  Bruno Haible  <bruno@clisp.org>
60385
60386         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
60387         * modules/sys_select (Makefile.am): Likewise.
60388         * modules/sys_socket (Makefile.am): Likewise.
60389         * modules/sys_time (Makefile.am): Likewise.
60390
60391 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60392
60393         * modules/gettimeofday (License): Change from GPL to LGPL, since
60394         gettimeofday is a library function.
60395
60396 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60397
60398         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
60399
60400 2007-01-21  Bruno Haible  <bruno@clisp.org>
60401
60402         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
60403
60404 2007-01-21  Bruno Haible  <bruno@clisp.org>
60405
60406         * modules/striconveha: New file.
60407         * lib/striconveha.h: New file.
60408         * lib/striconveha.c: New file.
60409         * MODULES.html.sh (Internationalization functions): Add striconveha.
60410         * lib/striconv.c (str_iconv): Optimize the case of an empty input
60411         string.
60412         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
60413
60414 2007-01-21  Bruno Haible  <bruno@clisp.org>
60415
60416         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
60417         * lib/striconveh.c (str_iconveh): Likewise.
60418
60419 2007-01-21  Bruno Haible  <bruno@clisp.org>
60420
60421         * lib/striconveh.h (mem_iconveh): New declaration.
60422         * lib/striconveh.c (mem_iconveh): New function.
60423         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
60424
60425 2007-01-21  Bruno Haible  <bruno@clisp.org>
60426
60427         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
60428
60429         * lib/striconveh.h (mem_cd_iconveh): Change specification.
60430         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
60431         original result buffer.
60432         (str_cd_iconveh): Update.
60433         * tests/test-striconveh.c (main): Update.
60434
60435         * lib/striconv.h (mem_cd_iconv): Change specification.
60436         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
60437         result buffer.
60438         (str_cd_iconv): Update.
60439         * tests/test-striconv.c (main): Update.
60440
60441 2007-01-21  Bruno Haible  <bruno@clisp.org>
60442
60443         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
60444
60445 2007-01-20  Jim Meyering  <jim@meyering.net>
60446
60447         * lib/userspec.c (parse_with_separator): If a user or group string
60448         starts with "+", skip the corresponding name-to-ID look-up, since
60449         such a look-up must fail: user and group names may not include "+".
60450
60451 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60452
60453         * lib/poll.c: Include sys/time.h and time.h unconditionally,
60454         since we now assume the sys_time module.
60455         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
60456         check for sys/time.h; no longer needed.
60457         * modules/poll (Depends-on): Depend on sys_time.
60458
60459 2007-01-18  Bruno Haible  <bruno@clisp.org>
60460
60461         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
60462         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60463
60464         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
60465         gettimeofday.
60466
60467         * tests/test-gettimeofday.c: Include <time.h>.
60468         (dummy): Remove variable.
60469
60470         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
60471         gl_HEADER_SYS_TIME_H.
60472         (gl_HEADER_SYS_TIME_H): New macro.
60473
60474         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
60475         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60476         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
60477         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
60478         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60479         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
60480         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
60481         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60482         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
60483         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
60484         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60485
60486         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
60487         last change; it caused a compilation error when cross-compiling to
60488         Cygwin.
60489
60490 2007-01-18  Jim Meyering  <jim@meyering.net>
60491
60492         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
60493         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
60494         than the race-prone "test -d sys || mkdir sys".
60495         (configure.ac): Use AC_PROG_MKDIR_P.
60496         * modules/sys_select: Likewise.
60497         * modules/sys_socket: Likewise.
60498         * modules/sys_time: Likewise.
60499
60500 2007-01-18  Eric Blake  <ebb9@byu.net>
60501
60502         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
60503         replace gettimeofday.
60504         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
60505         name, to avoid infinite recursion.
60506
60507 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
60508
60509         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
60510         module sys_time.
60511         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
60512         assume timespec.h defines struct timeval.
60513         * lib/settime.c: Likewise.
60514         * lib/utimens.c: Likewise.
60515         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
60516         since we now assume the gettimeofday module.
60517         * lib/tempname.c (__gen_tempname): Likewise.
60518         * lib/gettimeofday.h: Remove.
60519         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
60520         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
60521         Include <time.h>, for 'time()'.
60522         (localtime_buffer_addr): Also use this workaround if
60523         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
60524         to simplify the uses.  All uses changed.
60525         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
60526         that #undef is inside {}, and 'const' follows type name consistently.
60527         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
60528         (gettimeofday): Do not use the maximum possible value for
60529         tv->tv_usec, since that might break usages other than ls.c.
60530         Instead, we'll leave ls.c alone.  This undoes today's patch
60531         by Bruno.  Add a compile-time warning for 1s-clock resolution;
60532         we've never observed the problem but might as well keep the
60533         canary.
60534         * lib/nanosleep.c: Include timespec.h first, for interface check.
60535         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
60536         now assume the sys_time module.
60537         * lib/tempname.c: Likewise.
60538         * lib/timespec.h: Likewise.
60539         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
60540         needed.
60541         * lib/strftime.c: Likewise.
60542         * lib/timespec.h: Likewise.
60543         * lib/posixtm.c: Include posixtm.h first, for interface check.
60544         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
60545         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
60546         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
60547         * lib/sys_time_.h: New file.
60548         * lib/timespec.h (struct timespec): Use long int, not long.
60549         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60550         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
60551         Remove obsolescent call to AC_HEADER_TIME.
60552         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60553         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60554         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60555         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
60556         Likewise.
60557         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
60558         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
60559         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
60560         into the sys_time module.  Check for gettimeofday just once.
60561         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
60562         for gettimeofday signature to just check the signature.  Merely
60563         compile it, since linking doesn't test signature.  Improve test for
60564         whether gettimeofday.o is actually needed.
60565         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
60566         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
60567         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
60568         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60569         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
60570         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
60571         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
60572         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
60573         than worrying about sys/time.h.
60574         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60575         Don't bother worrying about TIME_WITH_SYS_TIME.
60576         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
60577         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
60578         * m4/sys_time_h.m4: New file.
60579         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
60580         Don't include sys/time.h.  Return from main rather than exiting.
60581         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
60582         all uses changed.
60583         * modules/gethrxtime (Depends-on): Add sys_time.
60584         * modules/gettime (Depends-on): Likewise.
60585         * modules/gettimeofday (Depends-on): Likewise.
60586         * modules/nanosleep (Depends-on): Likewise.
60587         * modules/settime (Depends-on): Likewise.
60588         * modules/tempname (Depends-on): Likewise.
60589         * modules/utimens (Depends-on): Likewise.
60590         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
60591         (Include): Change back to <sys/time.h>.
60592         (Maintainer): Add self.
60593         * modules/sys_time: New file.
60594         * modules/tempname (Depends-on): Add gettimeofday.
60595         * tests/test-gettimeofday.c: Include <sys/time.h>
60596         rather than gettimeofday.h.
60597
60598 2007-01-17  Bruno Haible  <bruno@clisp.org>
60599
60600         * gnulib-tool (func_get_license): Revert last patch. Instead, let
60601         the license default to GPL.
60602         (func_create_testdir): Don't complain if a module is LGPL and its
60603         tests module depends on GPLed modules.
60604
60605 2007-01-17  Bruno Haible  <bruno@clisp.org>
60606
60607         * lib/gettimeofday.c (gettimeofday): Add code for the case
60608         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
60609         maximum possible value for tv->tv_usec, rather than the minimum one.
60610
60611 2005-10-08  Martin Lambers  <marlam@marlam.de>
60612 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60613 2007-01-16  Bruno Haible  <bruno@clisp.org>
60614
60615         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
60616         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
60617         gl_FUNC_GETTIMEOFDAY.
60618         (Include): Add gettimeofday.h.
60619         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
60620         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
60621         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
60622         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
60623         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
60624         * lib/gettimeofday.h: New file.
60625         * lib/gettimeofday.c: Include <sys/timeb.h>.
60626         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
60627         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60628         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
60629         fall back on time().
60630
60631         * tests/test-gettimeofday.c: New file.
60632         * modules/gettimeofday-tests: New file.
60633
60634 2007-01-16  Eric Blake  <ebb9@byu.net>
60635
60636         * modules/fnmatch (Depends-on): Depend on wchar.
60637         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
60638         * m4/fnmatch.m4: Likewise.
60639         * modules/mbchar (Makefile.am): Assume <wchar.h>.
60640         * m4/mbchar.m4: Likewise.
60641         * modules/mbswidth (Depends-on): Depend on wchar.
60642         * lib/mbswidth.c: Assume <wchar.h>.
60643         * m4/mbswidth.m4: Likewise.
60644         * modules/quotearg (Depends-on): Depend on wchar.
60645         * lib/quotearg.c: Assume <wchar.h>.
60646         * m4/quotearg.m4: Likewise.
60647         * modules/regex (Depends-on): Depend on wchar.
60648         * lib/regex_internal.h: Assume <wchar.h>.
60649         * m4/regex.m4: Likewise.
60650         * modules/stdint (Depends-on): Depend on wchar.
60651         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
60652         * m4/stdint.m4: Likewise.
60653         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
60654         * modules/strftime (Depends-on): Depend on wchar.
60655         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
60656         * modules/strtol (Depends-on): Depend on wchar.
60657         * lib/strtol.c: Assume <wchar.h>.
60658         * modules/wcwidth (Depends-on): Depend on wchar.
60659         * lib/wcwidth.h: Assume <wchar.h>.
60660         * m4/wcwidth.m4: Likewise.
60661
60662 2007-01-16  Bruno Haible  <bruno@clisp.org>
60663
60664         * modules/csharpexec-script: New, created from...
60665         * modules/csharpexec: ... this.
60666
60667 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60668
60669         * modules/javaexec-script: New, created from...
60670         * modules/javaexec: ... this.
60671
60672 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60673
60674         * modules/poll (Dependencies): Add sys_select.
60675
60676 2007-01-15  Jim Meyering  <jim@meyering.net>
60677
60678         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
60679         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
60680         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
60681         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
60682
60683 2007-01-15  Bruno Haible  <bruno@clisp.org>
60684
60685         * modules/striconveh: New file.
60686         * lib/striconveh.h: New file.
60687         * lib/striconveh.c: New file.
60688         * MODULES.html.sh (Internationalization functions): Add striconveh.
60689
60690         * modules/striconveh-tests: New file.
60691         * tests/test-striconveh.c: New file.
60692
60693 2007-01-15  Bruno Haible  <bruno@clisp.org>
60694
60695         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
60696         not from GNU libiconv or GNU libc.
60697
60698 2007-01-15  Bruno Haible  <bruno@clisp.org>
60699
60700         * doc/gnulib-intro.texi (Copyright): Explain the different license
60701         terms for module descriptions, autoconf macros, tests, documentation.
60702
60703 2007-01-14  Bruno Haible  <bruno@clisp.org>
60704
60705         * modules/striconv-tests: New file.
60706         * tests/test-striconv.c: New file.
60707
60708 2007-01-14  Bruno Haible  <bruno@clisp.org>
60709
60710         * modules/iconv-tests: New file.
60711         * tests/test-iconv.c: New file.
60712
60713 2007-01-14  Bruno Haible  <bruno@clisp.org>
60714
60715         * gnulib-tool (func_get_license): For test modules, use the license of
60716         the main module.
60717
60718 2007-01-14  Bruno Haible  <bruno@clisp.org>
60719
60720         * modules/iconv (Include): Clarify that <iconv.h> can only be included
60721         if iconv is found to exist.
60722
60723 2007-01-14  Bruno Haible  <bruno@clisp.org>
60724
60725         * modules/c-ctype-tests: New file.
60726         * tests/test-c-ctype.c: New file.
60727
60728 2007-01-14  Bruno Haible  <bruno@clisp.org>
60729
60730         * modules/binary-io-tests: New file.
60731         * tests/test-binary-io.sh: New file.
60732         * tests/test-binary-io.c: New file.
60733
60734 2007-01-14  Bruno Haible  <bruno@clisp.org>
60735
60736         * modules/array-oset-tests: New file.
60737         * tests/test-array_oset.c: New file.
60738
60739 2007-01-14  Bruno Haible  <bruno@clisp.org>
60740
60741         * modules/array-list-tests: New file.
60742         * tests/test-array_list.c: New file.
60743
60744 2007-01-14  Bruno Haible  <bruno@clisp.org>
60745
60746         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
60747         and make.
60748         Reported by Simon Josefsson in
60749         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
60750
60751 2007-01-14  Bruno Haible  <bruno@clisp.org>
60752
60753         * modules/allocsa-tests: New file.
60754         * tests/test-allocsa.c: New file.
60755
60756 2007-01-14  Bruno Haible  <bruno@clisp.org>
60757
60758         * modules/fchdir (Depends-on): Add absolute-header.
60759         * modules/unistd (Depends-on): Likewise.
60760
60761 2006-12-30  Bruno Haible  <bruno@clisp.org>
60762
60763         * modules/fchdir: New file.
60764         * modules/unistd (Files): Add lib/unistd_.h.
60765         (Makefile.am): Generate unistd.h from unistd_.h.
60766         * lib/fchdir.c: New file.
60767         * lib/dirent_.h: New file.
60768         * lib/unistd_.h: New file.
60769         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
60770         * m4/fchdir.m4: New file.
60771         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
60772         (gl_HEADER_UNISTD): Invoke it.
60773         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
60774         function.
60775         * lib/backupfile.c (opendir, closedir): Undefine.
60776         * lib/chown.c (open, close): Undefine.
60777         * lib/clean-temp.c (open, close): Undefine.
60778         * lib/copy-file.c (open, close): Undefine.
60779         * lib/execute.c (open, close): Undefine.
60780         * lib/fsusage.c (open, close): Undefine.
60781         * lib/gc-gnulib.c (open, close): Undefine.
60782         * lib/getcwd.c (opendir, closedir): Undefine.
60783         * lib/glob.c (opendir, closedir): Undefine.
60784         * lib/javacomp.c (open, close): Undefine.
60785         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
60786         * lib/openat-proc.c (open, close): Undefine.
60787         * lib/pagealign_alloc.c (open, close): Undefine.
60788         * lib/pipe.c (open, close): Undefine.
60789         * lib/progreloc.c (open, close): Undefine.
60790         * lib/savedir.c (opendir, closedir): Undefine.
60791         * lib/utime.c (open, close): Undefine.
60792         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
60793
60794 2007-01-10  Bruno Haible  <bruno@clisp.org>
60795
60796         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
60797
60798 2007-01-12  Eric Blake  <ebb9@byu.net>
60799
60800         Provide a robust <wchar.h>.  Further simplifications are now
60801         possible in other modules, but not included here.
60802         * modules/wchar: New module.
60803         * m4/wchar.m4: New file.
60804         * lib/wchar_.h: Likewise.
60805         * modules/mbchar (Depends-on): Depend on wchar, as the first use
60806         of the new module.
60807         * MODULES.html.sh (Extended multibyte and wide character utilities):
60808         New section.
60809
60810 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
60811
60812         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
60813         to a reasonable default for memory allocation.
60814         (xreadlink): Don't allocate a huge buffer, to work around a buggy
60815         file system that reports garbage st_size values for symlinks.
60816         Problem reported by Liyang Hu.
60817
60818 2007-01-11  Simon Josefsson  <simon@josefsson.org>
60819
60820         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
60821         Emacs .#* auto-save files).
60822
60823 2007-01-11  Bruno Haible  <bruno@clisp.org>
60824
60825         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
60826         directory.
60827
60828 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60829
60830         Use @...@ consistently in lib/wctype_.h.
60831         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
60832         on it being set to 1 or 0.
60833         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
60834         go back to AC_SUBSTing it.
60835         * modules/wctype (Makefile.am): Undo previous change.
60836
60837 2007-01-10  Eric Blake  <ebb9@byu.net>
60838
60839         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
60840         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
60841         * modules/wctype (Makefile.am): Likewise.
60842         Reported by Chris McGuire.
60843
60844 2007-01-10  Jim Meyering  <jim@meyering.net>
60845
60846         fts.c: a small readability/maintainability improvement
60847         * lib/fts.c (fts_read): Make this code slightly more readable and
60848         maintainable by hoisting the "sp->fts_cur = p" assignments to
60849         immediately follow the statements that set P.  Derived from
60850         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
60851
60852 2007-01-10  Eric Blake  <ebb9@byu.net>
60853
60854         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
60855         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
60856         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60857         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
60858         Reported by Chris McGuire.
60859
60860 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60861
60862         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
60863         in sed script.
60864
60865 2007-01-09  Bruno Haible  <bruno@clisp.org>
60866
60867         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
60868         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
60869         variables.
60870         (func_module): Use them.
60871
60872 2007-01-09  Bruno Haible  <bruno@clisp.org>
60873
60874         * modules/unistr/base: New file.
60875         * lib/unistr.h: New file.
60876
60877         * modules/unistr/u8-to-u16: New file.
60878         * lib/unistr/u8-to-u16.c: New file.
60879
60880         * modules/unistr/u8-to-u32: New file.
60881         * lib/unistr/u8-to-u32.c: New file.
60882
60883         * modules/unistr/u16-to-u8: New file.
60884         * lib/unistr/u16-to-u8.c: New file.
60885
60886         * modules/unistr/u16-to-u32: New file.
60887         * lib/unistr/u16-to-u32.c: New file.
60888
60889         * modules/unistr/u32-to-u8: New file.
60890         * lib/unistr/u32-to-u8.c: New file.
60891
60892         * modules/unistr/u32-to-u16: New file.
60893         * lib/unistr/u32-to-u16.c: New file.
60894
60895         * modules/unistr/u8-check: New file.
60896         * modules/unistr/u16-check: New file.
60897         * modules/unistr/u32-check: New file.
60898         * lib/unistr/u8-check.c: New file.
60899         * lib/unistr/u16-check.c: New file.
60900         * lib/unistr/u32-check.c: New file.
60901
60902         * modules/unistr/u8-chr: New file.
60903         * modules/unistr/u16-chr: New file.
60904         * modules/unistr/u32-chr: New file.
60905         * lib/unistr/u8-chr.c: New file.
60906         * lib/unistr/u16-chr.c: New file.
60907         * lib/unistr/u32-chr.c: New file.
60908
60909         * modules/unistr/u8-cmp: New file.
60910         * modules/unistr/u16-cmp: New file.
60911         * modules/unistr/u32-cmp: New file.
60912         * lib/unistr/u8-cmp.c: New file.
60913         * lib/unistr/u16-cmp.c: New file.
60914         * lib/unistr/u32-cmp.c: New file.
60915
60916         * modules/unistr/u8-cpy: New file.
60917         * modules/unistr/u16-cpy: New file.
60918         * modules/unistr/u32-cpy: New file.
60919         * lib/unistr/u8-cpy.c: New file.
60920         * lib/unistr/u16-cpy.c: New file.
60921         * lib/unistr/u32-cpy.c: New file.
60922         * lib/unistr/u-cpy.h: New file.
60923
60924         * modules/unistr/u8-cpy-alloc: New file.
60925         * modules/unistr/u16-cpy-alloc: New file.
60926         * modules/unistr/u32-cpy-alloc: New file.
60927         * lib/unistr/u8-cpy-alloc.c: New file.
60928         * lib/unistr/u16-cpy-alloc.c: New file.
60929         * lib/unistr/u32-cpy-alloc.c: New file.
60930         * lib/unistr/u-cpy-alloc.h: New file.
60931
60932         * modules/unistr/u8-endswith: New file.
60933         * modules/unistr/u16-endswith: New file.
60934         * modules/unistr/u32-endswith: New file.
60935         * lib/unistr/u8-endswith.c: New file.
60936         * lib/unistr/u16-endswith.c: New file.
60937         * lib/unistr/u32-endswith.c: New file.
60938         * lib/unistr/u-endswith.h: New file.
60939
60940         * modules/unistr/u8-mblen: New file.
60941         * modules/unistr/u16-mblen: New file.
60942         * modules/unistr/u32-mblen: New file.
60943         * lib/unistr/u8-mblen.c: New file.
60944         * lib/unistr/u16-mblen.c: New file.
60945         * lib/unistr/u32-mblen.c: New file.
60946
60947         * modules/unistr/u8-mbtouc: New file.
60948         * modules/unistr/u16-mbtouc: New file.
60949         * modules/unistr/u32-mbtouc: New file.
60950         * lib/unistr/u8-mbtouc.c: New file.
60951         * lib/unistr/u16-mbtouc.c: New file.
60952         * lib/unistr/u32-mbtouc.c: New file.
60953
60954         * modules/unistr/u8-mbtouc-safe: New file.
60955         * modules/unistr/u16-mbtouc-safe: New file.
60956         * modules/unistr/u32-mbtouc-safe: New file.
60957         * lib/unistr/u8-mbtouc-safe.c: New file.
60958         * lib/unistr/u16-mbtouc-safe.c: New file.
60959         * lib/unistr/u32-mbtouc-safe.c: New file.
60960
60961         * modules/unistr/u8-move: New file.
60962         * modules/unistr/u16-move: New file.
60963         * modules/unistr/u32-move: New file.
60964         * lib/unistr/u8-move.c: New file.
60965         * lib/unistr/u16-move.c: New file.
60966         * lib/unistr/u32-move.c: New file.
60967         * lib/unistr/u-move.h: New file.
60968
60969         * modules/unistr/u8-next: New file.
60970         * modules/unistr/u16-next: New file.
60971         * modules/unistr/u32-next: New file.
60972         * lib/unistr/u8-next.c: New file.
60973         * lib/unistr/u16-next.c: New file.
60974         * lib/unistr/u32-next.c: New file.
60975
60976         * modules/unistr/u8-prev: New file.
60977         * modules/unistr/u16-prev: New file.
60978         * modules/unistr/u32-prev: New file.
60979         * lib/unistr/u8-prev.c: New file.
60980         * lib/unistr/u16-prev.c: New file.
60981         * lib/unistr/u32-prev.c: New file.
60982
60983         * modules/unistr/u8-set: New file.
60984         * modules/unistr/u16-set: New file.
60985         * modules/unistr/u32-set: New file.
60986         * lib/unistr/u8-set.c: New file.
60987         * lib/unistr/u16-set.c: New file.
60988         * lib/unistr/u32-set.c: New file.
60989         * lib/unistr/u-set.h: New file.
60990
60991         * modules/unistr/u8-startswith: New file.
60992         * modules/unistr/u16-startswith: New file.
60993         * modules/unistr/u32-startswith: New file.
60994         * lib/unistr/u8-startswith.c: New file.
60995         * lib/unistr/u16-startswith.c: New file.
60996         * lib/unistr/u32-startswith.c: New file.
60997         * lib/unistr/u-startswith.h: New file.
60998
60999         * modules/unistr/u8-stpcpy: New file.
61000         * modules/unistr/u16-stpcpy: New file.
61001         * modules/unistr/u32-stpcpy: New file.
61002         * lib/unistr/u8-stpcpy.c: New file.
61003         * lib/unistr/u16-stpcpy.c: New file.
61004         * lib/unistr/u32-stpcpy.c: New file.
61005         * lib/unistr/u-stpcpy.h: New file.
61006
61007         * modules/unistr/u8-stpncpy: New file.
61008         * modules/unistr/u16-stpncpy: New file.
61009         * modules/unistr/u32-stpncpy: New file.
61010         * lib/unistr/u8-stpncpy.c: New file.
61011         * lib/unistr/u16-stpncpy.c: New file.
61012         * lib/unistr/u32-stpncpy.c: New file.
61013         * lib/unistr/u-stpncpy.h: New file.
61014
61015         * modules/unistr/u8-strcat: New file.
61016         * modules/unistr/u16-strcat: New file.
61017         * modules/unistr/u32-strcat: New file.
61018         * lib/unistr/u8-strcat.c: New file.
61019         * lib/unistr/u16-strcat.c: New file.
61020         * lib/unistr/u32-strcat.c: New file.
61021         * lib/unistr/u-strcat.h: New file.
61022
61023         * modules/unistr/u8-strchr: New file.
61024         * modules/unistr/u16-strchr: New file.
61025         * modules/unistr/u32-strchr: New file.
61026         * lib/unistr/u8-strchr.c: New file.
61027         * lib/unistr/u16-strchr.c: New file.
61028         * lib/unistr/u32-strchr.c: New file.
61029
61030         * modules/unistr/u8-strcmp: New file.
61031         * modules/unistr/u16-strcmp: New file.
61032         * modules/unistr/u32-strcmp: New file.
61033         * lib/unistr/u8-strcmp.c: New file.
61034         * lib/unistr/u16-strcmp.c: New file.
61035         * lib/unistr/u32-strcmp.c: New file.
61036
61037         * modules/unistr/u8-strcpy: New file.
61038         * modules/unistr/u16-strcpy: New file.
61039         * modules/unistr/u32-strcpy: New file.
61040         * lib/unistr/u8-strcpy.c: New file.
61041         * lib/unistr/u16-strcpy.c: New file.
61042         * lib/unistr/u32-strcpy.c: New file.
61043         * lib/unistr/u-strcpy.h: New file.
61044
61045         * modules/unistr/u8-strcspn: New file.
61046         * modules/unistr/u16-strcspn: New file.
61047         * modules/unistr/u32-strcspn: New file.
61048         * lib/unistr/u8-strcspn.c: New file.
61049         * lib/unistr/u16-strcspn.c: New file.
61050         * lib/unistr/u32-strcspn.c: New file.
61051         * lib/unistr/u-strcspn.h: New file.
61052
61053         * modules/unistr/u8-strdup: New file.
61054         * modules/unistr/u16-strdup: New file.
61055         * modules/unistr/u32-strdup: New file.
61056         * lib/unistr/u8-strdup.c: New file.
61057         * lib/unistr/u16-strdup.c: New file.
61058         * lib/unistr/u32-strdup.c: New file.
61059         * lib/unistr/u-strdup.h: New file.
61060
61061         * modules/unistr/u8-strlen: New file.
61062         * modules/unistr/u16-strlen: New file.
61063         * modules/unistr/u32-strlen: New file.
61064         * lib/unistr/u8-strlen.c: New file.
61065         * lib/unistr/u16-strlen.c: New file.
61066         * lib/unistr/u32-strlen.c: New file.
61067         * lib/unistr/u-strlen.h: New file.
61068
61069         * modules/unistr/u8-strmblen: New file.
61070         * modules/unistr/u16-strmblen: New file.
61071         * modules/unistr/u32-strmblen: New file.
61072         * lib/unistr/u8-strmblen.c: New file.
61073         * lib/unistr/u16-strmblen.c: New file.
61074         * lib/unistr/u32-strmblen.c: New file.
61075
61076         * modules/unistr/u8-strmbtouc: New file.
61077         * modules/unistr/u16-strmbtouc: New file.
61078         * modules/unistr/u32-strmbtouc: New file.
61079         * lib/unistr/u8-strmbtouc.c: New file.
61080         * lib/unistr/u16-strmbtouc.c: New file.
61081         * lib/unistr/u32-strmbtouc.c: New file.
61082
61083         * modules/unistr/u8-strncat: New file.
61084         * modules/unistr/u16-strncat: New file.
61085         * modules/unistr/u32-strncat: New file.
61086         * lib/unistr/u8-strncat.c: New file.
61087         * lib/unistr/u16-strncat.c: New file.
61088         * lib/unistr/u32-strncat.c: New file.
61089         * lib/unistr/u-strncat.h: New file.
61090
61091         * modules/unistr/u8-strncmp: New file.
61092         * modules/unistr/u16-strncmp: New file.
61093         * modules/unistr/u32-strncmp: New file.
61094         * lib/unistr/u8-strncmp.c: New file.
61095         * lib/unistr/u16-strncmp.c: New file.
61096         * lib/unistr/u32-strncmp.c: New file.
61097
61098         * modules/unistr/u8-strncpy: New file.
61099         * modules/unistr/u16-strncpy: New file.
61100         * modules/unistr/u32-strncpy: New file.
61101         * lib/unistr/u8-strncpy.c: New file.
61102         * lib/unistr/u16-strncpy.c: New file.
61103         * lib/unistr/u32-strncpy.c: New file.
61104         * lib/unistr/u-strncpy.h: New file.
61105
61106         * modules/unistr/u8-strnlen: New file.
61107         * modules/unistr/u16-strnlen: New file.
61108         * modules/unistr/u32-strnlen: New file.
61109         * lib/unistr/u8-strnlen.c: New file.
61110         * lib/unistr/u16-strnlen.c: New file.
61111         * lib/unistr/u32-strnlen.c: New file.
61112         * lib/unistr/u-strnlen.h: New file.
61113
61114         * modules/unistr/u8-strpbrk: New file.
61115         * modules/unistr/u16-strpbrk: New file.
61116         * modules/unistr/u32-strpbrk: New file.
61117         * lib/unistr/u8-strpbrk.c: New file.
61118         * lib/unistr/u16-strpbrk.c: New file.
61119         * lib/unistr/u32-strpbrk.c: New file.
61120         * lib/unistr/u-strpbrk.h: New file.
61121
61122         * modules/unistr/u8-strrchr: New file.
61123         * modules/unistr/u16-strrchr: New file.
61124         * modules/unistr/u32-strrchr: New file.
61125         * lib/unistr/u8-strrchr.c: New file.
61126         * lib/unistr/u16-strrchr.c: New file.
61127         * lib/unistr/u32-strrchr.c: New file.
61128
61129         * modules/unistr/u8-strspn: New file.
61130         * modules/unistr/u16-strspn: New file.
61131         * modules/unistr/u32-strspn: New file.
61132         * lib/unistr/u8-strspn.c: New file.
61133         * lib/unistr/u16-strspn.c: New file.
61134         * lib/unistr/u32-strspn.c: New file.
61135         * lib/unistr/u-strspn.h: New file.
61136
61137         * modules/unistr/u8-strstr: New file.
61138         * modules/unistr/u16-strstr: New file.
61139         * modules/unistr/u32-strstr: New file.
61140         * lib/unistr/u8-strstr.c: New file.
61141         * lib/unistr/u16-strstr.c: New file.
61142         * lib/unistr/u32-strstr.c: New file.
61143         * lib/unistr/u-strstr.h: New file.
61144
61145         * modules/unistr/u8-strtok: New file.
61146         * modules/unistr/u16-strtok: New file.
61147         * modules/unistr/u32-strtok: New file.
61148         * lib/unistr/u8-strtok.c: New file.
61149         * lib/unistr/u16-strtok.c: New file.
61150         * lib/unistr/u32-strtok.c: New file.
61151         * lib/unistr/u-strtok.h: New file.
61152
61153         * modules/unistr/u8-uctomb: New file.
61154         * modules/unistr/u16-uctomb: New file.
61155         * modules/unistr/u32-uctomb: New file.
61156         * lib/unistr/u8-uctomb.c: New file.
61157         * lib/unistr/u16-uctomb.c: New file.
61158         * lib/unistr/u32-uctomb.c: New file.
61159
61160         * MODULES.html.sh (Unicode string functions): Add the new modules.
61161
61162 2007-01-08  Bruno Haible  <bruno@clisp.org>
61163
61164         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
61165         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
61166         subdirectories.
61167
61168 2007-01-08  Karl Berry  <karl@gnu.org>
61169
61170         * doc/error.texi: mention that main() fns must set program_name
61171         when progname is used.
61172
61173 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
61174
61175         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
61176         WCTYPE_H is empty, for the benefit of builds from non-distclean
61177         directories.  Problem reported by Eric Blake in
61178         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
61179
61180 2007-01-08  Bruno Haible  <bruno@clisp.org>
61181
61182         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
61183         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
61184         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
61185         PROVIDE_CANONICALIZE_FILENAME_MODE.
61186         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
61187
61188 2007-01-08  Bruno Haible  <bruno@clisp.org>
61189
61190         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
61191         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
61192         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
61193         * lib/fts.c: Likewise.
61194         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
61195
61196 2006-12-25  Bruno Haible  <bruno@clisp.org>
61197
61198         * modules/utf8-ucs4-safe: New file.
61199         * lib/utf8-ucs4-safe.h: New file.
61200         * lib/unistr/utf8-ucs4-safe.c: New file.
61201
61202         * modules/utf16-ucs4-safe: New file.
61203         * lib/utf16-ucs4-safe.h: New file.
61204         * lib/unistr/utf16-ucs4-safe.c: New file.
61205
61206         * MODULES.html.sh (Unicode string functions): Add the new modules.
61207
61208 2007-01-08  Bruno Haible  <bruno@clisp.org>
61209
61210         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
61211         (Depends-on): Add unitypes.
61212         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61213         (u8_mbtouc_aux): Move out to separate file.
61214         (u8_mbtouc): Use ucs4_t, uint8_t types.
61215         * lib/unistr/utf8-ucs4.c: New file.
61216
61217         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
61218         (Depends-on): Add unitypes.
61219         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61220         (u16_mbtouc_aux): Move out to separate file.
61221         (u16_mbtouc): Use ucs4_t, uint16_t types.
61222         * lib/unistr/utf16-ucs4.c: New file.
61223
61224         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
61225         (Depends-on): Add unitypes.
61226         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
61227         (u8_uctomb_aux): Move out to separate file.
61228         (u8_uctomb): Use ucs4_t, uint8_t types.
61229         * lib/unistr/ucs4-utf8.c: New file.
61230
61231         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
61232         (Depends-on): Add unitypes.
61233         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
61234         (u16_uctomb_aux): Move out to separate file.
61235         (u16_uctomb): Use ucs4_t, uint16_t types.
61236         * lib/unistr/ucs4-utf16.c: New file.
61237
61238 2006-12-25  Bruno Haible  <bruno@clisp.org>
61239
61240         * modules/unitypes: New file.
61241         * lib/unitypes.h: New file.
61242         * MODULES.html.sh (func_all_modules): New section "Unicode string
61243         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
61244         this section. Add unitypes.
61245
61246 2007-01-08  Bruno Haible  <bruno@clisp.org>
61247
61248         Avoid variable names that conflict with those from libtool.
61249         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
61250         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
61251         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
61252         library_names_spec to acl_library_names_spec, hardcode_* to
61253         acl_hardcode_*.
61254         Reported by Ralf Wildenhues.
61255
61256 2007-01-08  Bruno Haible  <bruno@clisp.org>
61257
61258         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
61259         definition.
61260         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
61261         definition.
61262         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
61263         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
61264         definition.
61265         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
61266         definition.
61267         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
61268         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
61269         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
61270         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
61271         definition.
61272         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
61273         definition.
61274         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
61275         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
61276         GC_USE_<algorithm>.
61277         * lib/gc-libgcrypt.c: Likewise.
61278         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
61279         * modules/gc-arctwo (configure.ac): Likewise.
61280         * modules/gc-des (configure.ac): Likewise.
61281         * modules/gc-hmac-md5 (configure.ac): Likewise.
61282         * modules/gc-hmac-sha1 (configure.ac): Likewise.
61283         * modules/gc-md2 (configure.ac): Likewise.
61284         * modules/gc-md4 (configure.ac): Likewise.
61285         * modules/gc-md5 (configure.ac): Likewise.
61286         * modules/gc-random (configure.ac): Likewise.
61287         * modules/gc-rijndael (configure.ac): Likewise.
61288         * modules/gc-sha1 (configure.ac): Likewise.
61289
61290 2007-01-08  Bruno Haible  <bruno@clisp.org>
61291
61292         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
61293         macro definition.
61294         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
61295         definition.
61296         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
61297         definition.
61298         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
61299         * modules/fcntl-safer (configure.ac): Likewise.
61300         * modules/fopen-safer (configure.ac): Likewise.
61301         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
61302         GNULIB_FWRITEERROR macro definition.
61303
61304 2007-01-08  Bruno Haible  <bruno@clisp.org>
61305
61306         * m4/gnulib-common.m4: New file.
61307         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
61308         (func_get_filelist): Add m4/gnulib-common.m4.
61309
61310 2007-01-08  Bruno Haible  <bruno@clisp.org>
61311
61312         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
61313         command.
61314
61315 2007-01-08  Jim Meyering  <jim@meyering.net>
61316
61317         Use a more robust test for a "can't happen" condition.
61318         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
61319         narrowed the st_size value.  Presuming the "can't happen" condition
61320         is true, that narrowing could conceivably convert an invalid st_size
61321         value into a valid one.  Instead, use a change based on Matthew
61322         Woehlke's original patch.
61323
61324         Slight readability improvement: use an assert-like macro
61325         in place of literal "abort ()" uses.
61326         * lib/fts.c (fts_assert): Define.
61327         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
61328         Use this macro instead of a bare 'abort'.
61329
61330 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
61331
61332         Don't worry about using IRIX 5.3's wctype.h broken definitions;
61333         simply work around them.
61334         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
61335         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
61336         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
61337         declaring.
61338         Don't bother to define as macros, since the standard doesn't require it.
61339         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
61340         longer worry about IRIX 5.3.
61341         (HAVE_WCTYPE_CTMP_BUG): Remove.
61342
61343 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61344
61345         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
61346         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
61347         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61348         Problems reported by Georg Schwarz for IRIX 5.3.
61349
61350         * gnulib-tool (autoconf_minversion): Take the maximum version number
61351         found, not the minimum.  Problem reported by James Youngman.
61352
61353 2007-01-03  Karl Berry  <karl@gnu.org>
61354
61355         * doc/error.texi: new file, explaining interaction with progname.
61356         * doc/gnulib.texi: include it.  Update copyright.
61357
61358 2007-01-03  Simon Josefsson  <simon@josefsson.org>
61359
61360         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
61361         AC_CANONICAL_HOST, to improve autobuild outputs.
61362
61363 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
61364             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61365
61366         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
61367         sockets, server sockets, and other file descriptors.  Count errors
61368         to compute the return value.  Reorder the code a bit to be easier
61369         to follow.  Don't set event bits that were not requested (except
61370         POLLERR and POLLHUP).
61371
61372 2007-01-01  Bruno Haible  <bruno@clisp.org>
61373
61374         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
61375
61376 2007-01-03  Jim Meyering  <jim@meyering.net>
61377
61378         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
61379
61380 2007-01-02  Bruno Haible  <bruno@clisp.org>
61381
61382         * modules/settime (Include): Require timespec.h.
61383         * modules/nanosleep (Include): Likewise.
61384
61385 2007-01-01  Bruno Haible  <bruno@clisp.org>
61386
61387         * gnulib-tool (func_emit_copyright_notice): Bump year.
61388         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
61389
61390 2007-01-01  Bruno Haible  <bruno@clisp.org>
61391
61392         Improve support for OpenBSD.
61393         * build-aux/config.rpath (libname_spec): Export.
61394         (library_names_spec): New variable. Export.
61395         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
61396         library_names_spec from the config.rpath output. Locate shared library
61397         through the name pattern in library_names_spec.
61398
61399 2007-01-01  Eric Blake  <ebb9@byu.net>
61400
61401         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
61402
61403 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
61404
61405         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
61406         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
61407         assume the C locale, and avoid an "eval" that could cause trouble.
61408         Problem with SORT reported by Bob Proulx.
61409
61410         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
61411         Define.  Trivial patch from Henning Nielsen Lund, originally
61412         sent to bug-grep@gnu.org today.
61413
61414 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61415
61416         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
61417         struct stat.  Problem reported by Henning Nielsen Lund.
61418         * lib/acl.c: Include acl.h first, to check interface.  Don't
61419         bother to include sys/types.h and sys/stat.h again.
61420
61421 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61422
61423         Import the following change from libc; problem reported by
61424         Sven Verdoolaege.
61425
61426         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
61427
61428         [BZ #1373]
61429         * lib/argp.h: Remove __NTH for __argp_usage inline function.
61430
61431 2006-12-28  Jim Meyering  <jim@meyering.net>
61432
61433         * build-aux/announce-gen: Do not assume that the package
61434         builds any of tar.gz, tar.bz2, and .xdelta files.
61435         Suggestion from Simon Josefsson.
61436
61437 2006-12-28  Simon Josefsson  <simon@josefsson.org>
61438
61439         * modules/announce-gen: New file.
61440
61441 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61442
61443         * lib/mbchar.h: Just include <wctype.h>; the wctype module
61444         handles its gotchas now.
61445         * lib/mbswidth.c: Likewise.
61446         * lib/wcwidth.h: Likewise.
61447         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
61448         and iswcntrl; the wctype module does this stuff now.
61449         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61450         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61451         * modules/mbchar (Depends-on): Add wctype.
61452         * modules/mbswidth (Depends-on): Likewise.
61453         * modules/wcwidth (Depends-on): Likewise.
61454
61455 2006-12-27  Eric Blake  <ebb9@byu.net>
61456
61457         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
61458         module uses more than what <wctype.h> is required to provide.
61459
61460 2006-12-26  Eric Blake  <ebb9@byu.net>
61461
61462         * gnulib-tool (sed_extract_prog): Avoid space-tab.
61463
61464 2006-12-26  Eric Blake  <ebb9@byu.net>
61465
61466         * modules/absolute-header: New module.
61467         * modules/fcntl (Depends-on): Depend on it.
61468         * modules/inttypes (Depends-on): Likewise.
61469         * modules/stdint (Depends-on): Likewise.
61470         * modules/sys_stat (Depends-on): Likewise.
61471         * modules/wctype (Depends-on): Likewise.
61472         * MODULES.html.sh (Support for building libraries and
61473         executables): Document it.
61474
61475 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61476
61477         * gnulib-tool (SED): Remove, undoing previous change.
61478         The problem was that it broke coreutils on Solaris, because
61479         "sed --posix" leaked into a makefile.
61480         (sed): New alias, if 'alias' and GNU sed.
61481
61482 2006-12-24  Jim Meyering  <jim@meyering.net>
61483
61484         Work around an fchownat bug in glibc-2.4:
61485         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
61486         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
61487         in spite of the -P option.
61488         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
61489         New macros.
61490         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
61491         * modules/openat (Files): Add lib/fchownat.c.
61492         * lib/openat.c (fchownat): Don't define here.  Move to...
61493         * lib/fchownat.c: ...this new file.
61494
61495 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61496
61497         Fix bug reported by Bruno Haible in
61498         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
61499         where quotearg.c didn't compile on Mac OS X 10.2 because it
61500         lacks <wchar.h> and wint_t.
61501         * lib/wctype_.h (__wctype_wint_t): New type.
61502         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
61503         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
61504         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
61505         Arg is now of type __wctype_wint_t, not wint_t.
61506         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
61507         substitute HAVE_WINT_T.
61508         * modules/wctype (Files): Add m4/wint_t.m4.
61509         (wctype.h): Substitute HAVE_WINT_T.
61510
61511 2006-12-23  Bruno Haible  <bruno@clisp.org>
61512
61513         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
61514
61515 2006-12-23  Bruno Haible  <bruno@clisp.org>
61516
61517         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
61518         S_ISLNK.
61519         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
61520         mingw.
61521
61522 2006-12-22  Bruno Haible  <bruno@clisp.org>
61523
61524         * lib/copy-file.c: Include acl.h.
61525         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
61526         Close the file descriptors only after being done with copy_acl.
61527         * modules/copy-file (Depends-on): Add acl.
61528
61529 2006-12-22  Bruno Haible  <bruno@clisp.org>
61530
61531         * gnulib-tool (SED): New variable.
61532         Use $SED instead of sed everywhere.
61533
61534 2006-12-22  Bruno Haible  <bruno@clisp.org>
61535
61536         * modules/no-c++: New file.
61537         * m4/no-c++.m4: New file.
61538         * MODULES.html.sh (Support for building libraries and executables):
61539         Add no-c++.
61540
61541 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61542
61543         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61544         Include <limits.h>, and use its INT_MAX to rewrite the
61545         j loop so that it does not overflow 'int'.  Problem reported by
61546         Ralf Wildenhues in
61547         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
61548         Play it safe by shifting left by 1 rather than multiplying by 2,
61549         as GCC is less likely to optimize this away when the value
61550         is signed (when it assumes overflow leads to undefined behavior).
61551         Also, don't assume time_t uses two's complement.
61552
61553 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
61554
61555         * MODULES.html.sh: New module wctype.
61556         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
61557         * lib/fnmatch.c: Don't bother to include <wchar.h> before
61558         <wctype.h>, since the new wctype module should fix this.
61559         * lib/quotearg.c: Include <wctype.h> unconditionally, since
61560         the wctype module should arrange for it.
61561         * lib/regex_internal.h: Likewise.
61562         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
61563         since the wctype module should handle this now.
61564         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
61565         * modules/fnmatch (Depends-on): Add wctype.
61566         * modules/quotearg (Depends-on): Likewise.
61567         * modules/regex (Depends-on): Likewise.
61568
61569 2006-12-19  Bruno Haible  <bruno@clisp.org>
61570
61571         * lib/strdup.h [C++]: Wrap definitions in extern "C".
61572         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
61573
61574 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61575
61576         * modules/savewd (Depends-on): Fix dependency on fcntl.
61577
61578 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61579
61580         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
61581         conforms to C99, rather than relying on the user's environment
61582         setting of STDINT_H.
61583
61584 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61585         and Eric Blake  <ebb9@byu.net>
61586
61587         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
61588         This is more consistent with the other defines here.
61589         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
61590         Port to z/OS.  Problem reported by Paul Gilmartin.
61591         Change local vars to use gl_ prefix rather than ac_.
61592         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
61593         with other defines.
61594         * modules/double-slash-root: New module.
61595         * modules/dirname (Files): Remove m4/double-slash-root.m4.
61596         (Depends-on): Add double-slash-root.
61597         * MODULES.html.sh (File system functions): Mention new module.
61598
61599 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
61600
61601         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
61602         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
61603         This is for the benefit of gzip, which doesn't do i18n.
61604
61605 2006-12-12  Jim Meyering  <jim@meyering.net>
61606
61607         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
61608         Reported by Andreas Schwab <schwab@suse.de>.
61609
61610 2006-12-12  Bruno Haible  <bruno@clisp.org>
61611
61612         Merge these changes.
61613         2006-09-05  Bruno Haible  <bruno@clisp.org>
61614         * lib/iconvme.c (iconv_string): No need to save and restore errno when
61615         iconv_alloc succeeded.
61616         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
61617         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
61618         test for " && dest " at the end - dest is always != NULL there. Call
61619         iconv with 4xNULL arguments initially, to reset the state. Call iconv
61620         with 2xNULL arguments, also to flush the state storage. Handle the
61621         IRIX iconv behaviour. Realloc the final result, to throw away unused
61622         memory.
61623
61624 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
61625
61626         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
61627         and fchmodat unconditionally, since glibc 2.4 has them.
61628         Problem reported by Arkadiusz Miskiewicz.
61629
61630 2006-12-10  Bruno Haible  <bruno@clisp.org>
61631
61632         * gnulib-tool (func_import): Show the include files only for those
61633         modules that are copied and specified.
61634         Reported by Karl Berry.
61635
61636 2006-12-08  Jim Meyering  <jim@meyering.net>
61637
61638         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
61639         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
61640
61641         * build-aux/announce-gen: Add two new options, both optional:
61642         --bootstrap-tools=TOOL_LIST
61643               a comma-separated list of tools, e.g.,
61644               autoconf,automake,bison,gnulib
61645         --gnulib-snapshot-date=DATE
61646               if gnulib is in the bootstrap tool list,
61647               then report this as the snapshot date.
61648               If not specified, use the current date/time.
61649               If you specify a date here, be sure it's UTC.
61650
61651 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61652
61653         * tests/test-argp-2.sh: Fix test to match actual output.
61654         (func_compare): Fix sed script to be portable.
61655
61656 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
61657
61658         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
61659         workaround for this case.  It is not autoconfigured now; offhand
61660         it's hard to see how to autoconfigure it.
61661
61662 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61663
61664         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
61665         a directory that is about to be chowned.  Such a directory's
61666         initial file permissions should permit the owner only and this
61667         should not be changed until after the chown, since the group and
61668         other bits would be incorrect if they granted permission before
61669         the chown.
61670
61671         Fix porting problem for iswctype reported by Georg Schwarz in:
61672         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
61673         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
61674         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
61675         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
61676         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61677
61678 2006-12-03  Jim Meyering  <jim@meyering.net>
61679
61680         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
61681         p->fts_statp may not yet be defined.
61682         (fts_read): Instead, set it in the caller, once p->fts_statp is
61683         sure to be defined, and corresponds to a top-level directory.
61684         This bug made du -x fail.  Here's the coreutils test case:
61685         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
61686         Reported by Mike Frysinger.
61687
61688 2006-12-01  Jim Meyering  <jim@meyering.net>
61689
61690         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
61691         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
61692         Reported by Simon Josefsson.
61693
61694 2006-11-30  Jim Meyering  <jim@meyering.net>
61695
61696         * m4/warning.m4: Use the all-permissive copyright notice
61697         recommended by RMS (rather than LGPL).
61698         * m4/vararrays.m4: Likewise.
61699         * m4/flexmember.m4: Likewise.
61700
61701 2006-11-29  Bruno Haible  <bruno@clisp.org>
61702
61703         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61704         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
61705         using +=.
61706         Reported by Simon Josefsson <simon@josefsson.org>.
61707
61708 2006-11-28  James Youngman <jay@gnu.org>
61709
61710         * README: Advise users that they might find the bug-gnulib@gnu.org
61711         and autotools-announce@gnu.org mailing lists useful.
61712
61713 2006-11-28  Bruno Haible  <bruno@clisp.org>
61714
61715         * m4/ptrdiff_max.m4: Remove file.
61716
61717 2006-11-21  Bruno Haible  <bruno@clisp.org>
61718
61719         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
61720         _AC_COMPUTE_INT.
61721         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61722         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
61723         _AC_COMPUTE_INT.
61724         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61725         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
61726         _AC_COMPUTE_INT.
61727         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61728
61729 2006-11-28  Jim Meyering  <jim@meyering.net>
61730
61731         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
61732         warning from "gcc -Wshadow" about shadowing the builtin.
61733
61734 2006-11-27  Bruno Haible  <bruno@clisp.org>
61735
61736         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
61737         _AC_COMPUTE_INT.
61738         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61739
61740 2006-11-27  Bruno Haible  <bruno@clisp.org>
61741             Paul Eggert  <eggert@cs.ucla.edu>
61742
61743         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
61744
61745 2006-11-26  Bruno Haible  <bruno@clisp.org>
61746
61747         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61748         noinst_LTLIBRARIES.
61749
61750 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
61751             Bruno Haible  <bruno@clisp.org>
61752
61753         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
61754         if compiling with "gcc -ansi".
61755
61756 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
61757
61758         Fix some incompatibilities with gcc -ansi -pedantic.
61759         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
61760         if compiling pedantically with GCC, unless it's C99 or later.
61761         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
61762         it mishandles gcc -ansi -pedantic as well.
61763         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
61764         if gcc -pedantic.
61765         * lib/regexec.c (check_node_accept_bytes): Don't use auto
61766         initializers for struct if -pedantic, unless it's C99 or later.
61767
61768 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
61769
61770         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
61771         Don't close an fd more than once. Identical atimes indicate
61772         success, not failure.
61773
61774 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
61775
61776         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
61777
61778 2006-11-23  Jim Meyering  <jim@meyering.net>
61779
61780         * build-aux/announce-gen: New file.  From coreutils.
61781
61782 2006-11-22  Jim Meyering  <jim@meyering.net>
61783
61784         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
61785         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
61786         (fts_read): Use a temporary to narrow the overused st_size member
61787         before using it in a switch statement.  Reported by Matthew Woehlke.
61788
61789         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
61790         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
61791
61792 2006-11-20  Bruno Haible  <bruno@clisp.org>
61793
61794         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
61795         changequote instead of pairs of brackets.
61796         Reported by Andreas Schwab <schwab@suse.de>.
61797
61798 2006-11-21  Jim Meyering  <jim@meyering.net>
61799
61800         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
61801         so as to remain compatible with older compilers.
61802         Patch from Michael Deutschmann.
61803
61804 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61805
61806         * MODULES.html.sh (File system functions): Add openat.
61807
61808         * lib/openat.h (rpl_fstatat): New macro, if
61809         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
61810         (fstatat): Define to rpl_fstatat under the same conditions,
61811         unless COMPILING_FSTATAT.
61812         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
61813         seems to have the bug.
61814         * lib/fstatat.c: New file.
61815         * modules/openat (Files): Add it.
61816
61817 2006-11-20  Bruno Haible  <bruno@clisp.org>
61818
61819         * Makefile: New file.
61820
61821 2006-11-20  Jim Meyering  <jim@meyering.net>
61822
61823         The beginnings of syntax-related checks for gnulib.
61824         * lib/Makefile: New file.
61825         * lib/t-idcache: New script.  Ensure that the two halves of
61826         idcache.c stay in sync.
61827
61828         * lib/idcache.c: Adjust comments in user- and group- portions to
61829         be more accurate, and to be consistent with one another.
61830
61831 2006-11-20  Jim Meyering  <jim@meyering.net>
61832
61833         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
61834         continue using the flexible array member (thus, this module performs
61835         half as many malloc calls), with the addition that...
61836         (getgroup, getuser): Consistently record a non-match via an empty
61837         "name" string, and map an empty string match to a NULL return value.
61838         * modules/idcache (Depends-on): Re-add flexmember.
61839
61840         * lib/idcache.c (getuser): Remove all uses of the register keyword.
61841         (getuidbyname, getgroup, getgidbyname): Likewise.
61842
61843         Use cleaner syntax: NULL rather than 0.
61844         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
61845
61846 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61847
61848         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
61849         It mishandled the case where the group was missing.
61850         Problem reported by Greg Schafer.
61851         * modules/idcache: Likewise.
61852
61853 2006-11-18  Jim Meyering  <jim@meyering.net>
61854
61855         * check-module (%exempt_header): Add exception for some
61856         conditionally-included headers.
61857
61858         * modules/i-ring (Depends-on): Add verify.
61859         (License): Change to LGPL.
61860
61861 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61862
61863         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
61864         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
61865         and inttostr.h.  Use snprintf rather than uinttostr, so that
61866         LGPLed code doesn't depend on GPLed.
61867
61868 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61869
61870         * modules/inline (License): Change from GPL to LGPL.
61871
61872 2006-11-17  Jim Meyering  <jim@meyering.net>
61873
61874         * modules/d-type (License): Switch to LGPL.
61875
61876 2006-11-15  Bruno Haible  <bruno@clisp.org>
61877
61878         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
61879
61880 2006-11-15  Eric Blake  <ebb9@byu.net>
61881
61882         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
61883         the module dependency.
61884
61885 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61886             Bruno Haible  <bruno@clisp.org>
61887
61888         * gnulib-tool (func_create_testdir): Add license consistency check.
61889
61890 2006-11-15  Eric Blake  <ebb9@byu.net>
61891
61892         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
61893         random "(cached)" in configure output.
61894
61895 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61896
61897         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
61898         test for conforming inttypes.h is both announced and cached.
61899
61900         * MODULES.html.sh (seen_modules, seen_files): New variables.
61901         (func_module): Rewrite to use a few less gnulib-tool and sed
61902         invocations.  Avoid a couple of quadratic algorithms for ...
61903         (missed_modules, missed_files): ... these, with ...
61904         (func_append, func_tmpdir): ... these new functions, from
61905         gnulib-tool.  Analogously, install traps for cleanup.
61906
61907         * tests/test-gc.c (main): Remove unused variables.
61908         * tests/test-read-file.c: Include stdlib.h, for 'free'.
61909
61910 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
61911
61912         * modules/inttostr (License): Change to LGPL.
61913
61914 2006-11-14  Eric Blake  <ebb9@byu.net>
61915
61916         * modules/tempname (License): Change to LGPL.
61917
61918 2006-11-14  Eric Blake  <ebb9@byu.net>
61919
61920         * doc/functions.texi (Function Portability): *printf functions on
61921         Cygwin now understand all POSIX size specifiers.
61922
61923 2006-11-14  Bruno Haible  <bruno@clisp.org>
61924
61925         * modules/c-ctype (License): Change to LGPL.
61926
61927 2006-11-12  Bruno Haible  <bruno@clisp.org>
61928
61929         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
61930         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
61931         for GNOME libraries, for which the include files are installed in
61932         subdirectories of $prefix/include.
61933
61934 2006-11-12  Bruno Haible  <bruno@clisp.org>
61935
61936         * m4/lib-link.m4: Require at least autoconf-2.54.
61937         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
61938         name to underscores for the --with option.
61939
61940 2006-11-13  Bruno Haible  <bruno@clisp.org>
61941
61942         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
61943         the tests directory.
61944         Reported by Ralf Wildenhues.
61945
61946 2006-11-13  Bruno Haible  <bruno@clisp.org>
61947
61948         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
61949         (func_emit_initmacro_end): Undo the override here.
61950         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
61951         Works around the famous automake error in coreutils.
61952
61953 2006-11-13  Eric Blake  <ebb9@byu.net>
61954
61955         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
61956         element, not its node.
61957
61958 2006-11-12  Bruno Haible  <bruno@clisp.org>
61959
61960         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
61961         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
61962
61963 2006-11-12  Bruno Haible  <bruno@clisp.org>
61964
61965         * gnulib-tool: New option --local-symlink.
61966         (func_usage): Document it.
61967         (lsymbolic): New variable.
61968         (func_import, func_create_testdir): If --symlink was not specified,
61969         test whether --local-symlink was specified and the file comes from
61970         the local_gnulib_dir.
61971
61972 2006-11-12  Bruno Haible  <bruno@clisp.org>
61973
61974         * gnulib-tool (func_ln): New function.
61975         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
61976
61977 2006-11-12  Bruno Haible  <bruno@clisp.org>
61978
61979         Finish support for source files in subdirectories.
61980         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
61981         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
61982         AUTOMAKE_OPTIONS.
61983         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
61984
61985 2006-11-12  Bruno Haible  <bruno@clisp.org>
61986
61987         * gnulib-tool (func_get_automake_snippet): Synthesize also an
61988         EXTRA_lib_SOURCES augmentation.
61989         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
61990
61991 2006-11-12  Jim Meyering  <jim@meyering.net>
61992
61993         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
61994         file descriptors.  This also averts a failure on systems with
61995         native openat support when a traversed directory lacks "x" access.
61996         * lib/fts_.h: Include "i-ring.h"
61997         (struct FTS) [fts_fd_ring]: New member.
61998         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
61999         (FCHDIR): Add parentheses.
62000         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
62001         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
62002         When descending, rather than simply closing the previous
62003         fts_cwd_fd value, push that file descriptor onto the ring.
62004         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
62005         (fts_open): Initialize the new fd_ring member.
62006         (fts_close): Clear the ring.
62007         (fts_safe_changedir): When possible, use our new fd_ring to skip
62008         the diropen and fstat and dev/ino comparison that would normally
62009         accompany a virtual `chdir ("..")'.
62010
62011         * modules/fts (Depends-on): Add i-ring.
62012         * modules/i-ring: New module.
62013         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
62014         * m4/i-ring.m4: New file.
62015
62016 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62017
62018         * gnulib-tool (func_create_testdir): Fix replacement of
62019         `build-aux' in configure.ac.  Run autotools in gltests
62020         subdirectory.
62021         (func_create_testdir, func_create_megatestdir, test): There is
62022         no need for '--force' in most autotool invocations in a new
62023         tree.  Actually fail the whole test if any of the tools, or the
62024         configure or make stages fail.
62025
62026         Sync from Automake.
62027         * build-aux/gnupload: Revert last change.  Add pointer to upload
62028         instructions of the GNU Maintenance Instructions.
62029         Suggestion by Karl Berry.
62030
62031 2006-11-10  Jim Meyering  <jim@meyering.net>
62032
62033         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
62034
62035 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62036
62037         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
62038         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
62039         (bind_textdomain_codeset) [! ENABLE_NLS]:
62040         Evaluate all the arguments.  That way, callers get compatible behavior
62041         if the arguments have side effects.  Also, it avoids some GCC
62042         diagnostics in some cases; Joel E. Denny reported problems when Bison
62043         was configured with --enable-gcc-warnigs.
62044
62045 2006-11-10  Jim Meyering  <jim@meyering.net>
62046
62047         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
62048         relevant options in CFLAGS (like -O, -fno-inline) are taken into
62049         account.
62050
62051 2006-11-10  Jim Meyering  <jim@meyering.net>
62052
62053         * modules/inline: New file/module.
62054         * modules/xalloc (Files): Remove m4/inline.m4.
62055         (Depends-on): Add inline, instead.
62056         * modules/oset: Likewise.
62057         * modules/list: Likewise.
62058
62059 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62060
62061         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
62062         Problem reported by Matthew Woehlke.
62063
62064 2006-11-09  Bruno Haible  <bruno@clisp.org>
62065
62066         * lib/tempname.c (gen_tempname): Remove variant that invokes
62067         __gen_tempname.
62068         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
62069         __gen_tempname.
62070
62071 2006-11-08  Bruno Haible  <bruno@clisp.org>
62072
62073         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
62074         to 'yes' instead of 'cross-compiling'.
62075
62076 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
62077
62078         * lib/quotearg.h (quotearg_free): New decl.
62079         * lib/quotearg.c (quotearg_free): New function.
62080         (slot0, nslots, slotvec0, slotvec):
62081         Now file-scope so that quotearg_free can get at them.
62082
62083 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62084
62085         Sync from Automake.
62086         * build-aux/gnupload: Add missing 'gnu' to example URL.
62087         Report by Karl Berry.
62088
62089 2006-11-08  Bruno Haible  <bruno@clisp.org>
62090
62091         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
62092         Suggested by Paul Eggert.
62093
62094 2006-11-08  Jim Meyering  <jim@meyering.net>
62095
62096         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
62097         It's already included if !_LIBC.
62098         (fts_safe_changedir): Add a comment.
62099
62100 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62101
62102         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
62103         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
62104         Matthew Woehlke.
62105
62106         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
62107         definitions up, to avoid colliding with change below.
62108         (static_inline) [HAVE_INLINE]: New macro.
62109         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
62110         Provide extern decls when !HAVE_INLINE.  Do not define unless
62111         static_inline is defined, either by us or by xmalloc.c.  Use
62112         static_inline rather than static inline.
62113         (XCALLOC): Optimize sizeof(T) = 1 case.
62114         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
62115
62116 2006-11-07  Bruno Haible  <bruno@clisp.org>
62117
62118         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
62119         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
62120         AC_C_INLINE.
62121         * modules/xalloc (Files): Add m4/inline.m4.
62122
62123 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62124
62125         * README: Fix typo.
62126         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
62127         (Miscellanous Notes): ...from this.
62128
62129 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62130
62131         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
62132         Mention that offsetof should be used instead of sizeof.
62133         From Bruno Haible.
62134
62135 2006-11-07  Bruno Haible  <bruno@clisp.org>
62136
62137         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
62138
62139 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62140
62141         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62142         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
62143         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62144         (gl_tree_add_before, gl_tree_add_after):
62145         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
62146         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
62147         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62148         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
62149         (gl_linked_add_after, gl_linked_add_at): Likewise.
62150         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
62151         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62152         (gl_tree_add_before, gl_tree_add_after): Likewise.
62153         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
62154         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
62155         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
62156
62157 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62158
62159         * lib/gl_oset.h: Use C comment style, not C++ comment style.
62160
62161 2006-11-06  Bruno Haible  <bruno@clisp.org>
62162
62163         * m4/inline.m4: New file.
62164         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
62165         * modules/list (Files): Add m4/inline.m4.
62166         * modules/oset (Files): Likewise.
62167
62168 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62169
62170         * lib/idcache.c: Include <stddef.h>, for offsetof.
62171         (struct userid.name): Change from char * to a flexible array member.
62172         All uses changed.
62173         * modules/idcache (Depends-on): Add flexmember.
62174
62175         * MODULES.html.sh (Core language properties): New module flexmember.
62176         * modules/flexmember, m4/flexmember.m4: New files.
62177
62178         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
62179         inline functions that are identical with the old xnmalloc_inline,
62180         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
62181         that we can avoid some unnecessary integer multiplications and
62182         divisions in the common case where the element size is known at
62183         compile time.
62184         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
62185         needed.
62186         (xnboundedmalloc): Remove.
62187         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
62188         arguments, for consistency with rest of this header.
62189         (xcharalloc): Rewrite using XNMALLOC.
62190         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
62191         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
62192         versions have been moved to lib/xalloc.h and renamed to be the
62193         non-*_inline versions.
62194         (xmalloc, xrealloc): Implement without reference to the xnmalloc
62195         and xnrealloc functions, since those functions are now inline and
62196         now call us.
62197         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
62198         renaming described above.
62199         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
62200         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
62201         captures the dependency in AC_C_INLINE.
62202
62203         New module canonicalize-lgpl, proposed by Charles Wilson in
62204         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
62205         with a few small changes afterwards.
62206         * MODULES.html.sh (File system functions): New module
62207         canonicalize-lgpl.
62208         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
62209         and canonicalize_file_name.
62210         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
62211         * modules/canonicalize-lgpl: New files.
62212
62213 2006-11-05  Bruno Haible  <bruno@clisp.org>
62214
62215         * gnulib-tool (func_import, func_create_testdir): Create directories
62216         also for files in subdirectories of lib/.
62217
62218 2006-11-05  Bruno Haible  <bruno@clisp.org>
62219
62220         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
62221         ANSI C compliant.
62222
62223 2006-11-03  Bruno Haible  <bruno@clisp.org>
62224
62225         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62226         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
62227         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
62228         (xnboundedmalloc): New inline function.
62229         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
62230         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
62231         xmalloc.
62232         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
62233         xmalloc.
62234         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
62235         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
62236         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
62237         xmalloc.
62238         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62239         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
62240         xmalloc.
62241         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
62242         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62243         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
62244         xmalloc.
62245         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62246         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
62247         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62248         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
62249         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
62250         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
62251         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
62252
62253 2006-11-03  Bruno Haible  <bruno@clisp.org>
62254
62255         * lib/c-ctype.h [C++]: Define functions without name mangling.
62256         * lib/fwriteerror.h [C++]: Likewise.
62257         * lib/gcd.h [C++]: Likewise.
62258         * lib/linebreak.h [C++]: Likewise.
62259
62260 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
62261
62262         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
62263         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
62264         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
62265         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62266         Check for functions and headers just once.
62267         Check for declaration of canonicalize_file_name.
62268         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
62269
62270 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62271
62272         * gnulib-tool (func_import): Fix typo in actioncmd.
62273
62274 2006-11-02  Bruno Haible  <bruno@clisp.org>
62275
62276         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
62277         newline sequence in the Makefile.am snippet as a space, like "make"
62278         does.
62279         Reported by Roger Persson <perrog@gmail.com>.
62280
62281 2006-11-01  Bruno Haible  <bruno@clisp.org>
62282
62283         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
62284         already declared in <string.h>.
62285         * lib/strcase.h (strncasecmp): Don't declare it if yes.
62286
62287 2006-11-01  Bruno Haible  <bruno@clisp.org>
62288
62289         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
62290         * lib/strcase.h: Include <string.h>.
62291         (strcasecmp): Define to rpl_strcasecmp here.
62292
62293 2006-11-01  Bruno Haible  <bruno@clisp.org>
62294
62295         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
62296
62297 2006-11-01  Eric Blake  <ebb9@byu.net>
62298
62299         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
62300
62301         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
62302
62303 2006-10-29  Bruno Haible  <bruno@clisp.org>
62304
62305         Make it compile in C++ mode.
62306         * lib/full-write.c (full_rw): Add a cast.
62307
62308 2006-11-01  Bruno Haible  <bruno@clisp.org>
62309
62310         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
62311         be POSIX compliant.
62312         Reported by Roger Persson <perrog@gmail.com>.
62313
62314 2006-11-01  Eric Blake  <ebb9@byu.net>
62315
62316         * lib/getopt_.h: Fix comments.
62317
62318 2006-10-31  Eric Blake  <ebb9@byu.net>
62319
62320         * modules/tmpdir (Depends-on): Add sys_stat.
62321         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
62322         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
62323         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
62324         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
62325         tempname.
62326
62327 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
62328
62329         Avoid some C++ diagnostics reported by Bruno Haible.
62330         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
62331         xmalloc.
62332         (quotearg_alloc): Use xcharalloc rather than xmalloc.
62333         (struct slotvec): Move to top level.
62334         (quotearg_n_options): Rewrite to avoid xmalloc.
62335         * lib/xalloc.h (xcharalloc): New function.
62336         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
62337         [defined __cplusplus]: Add function template that provides result
62338         type propagation.  This part of the change is from Bruno Haible.
62339
62340 2006-10-29  Bruno Haible  <bruno@clisp.org>
62341
62342         Make it compile in C++ mode.
62343         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
62344         * lib/strnlen1.c (strnlen1): Cast memchr result.
62345         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
62346         * lib/clean-temp.c (string_equals, string_hash): Add casts.
62347         (create_temp_dir): Rename local variable 'template'.
62348         (compile_csharp_using_sscli): Add cast.
62349         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
62350         * lib/findprog.c (find_in_path): Likewise.
62351         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
62352         * lib/wait-process.c (register_slave_subprocess): Likewise.
62353
62354 2006-10-22  Bruno Haible  <bruno@clisp.org>
62355
62356         * modules/tsearch: New file.
62357         * lib/tsearch.h: New file.
62358         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
62359         * m4/tsearch.m4: New file.
62360         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
62361
62362 2006-10-29  Eric Blake  <ebb9@byu.net>
62363
62364         * lib/arcfour.c: Assume config.h.
62365         * lib/arctwo.c: Likewise.
62366         * lib/base64.c: Likewise.
62367         * lib/check-version.c: Likewise.
62368         * lib/crc.c: Likewise.
62369         * lib/des.c: Likewise.
62370         * lib/gc-gnulib.c: Likewise.
62371         * lib/gc-libgcrypt.c: Likewise.
62372         * lib/gc-pbkdf2-sha1.c: Likewise.
62373         * lib/getaddrinfo.c: Likewise.
62374         * lib/getdelim.c: Likewise.
62375         * lib/getline.c: Likewise.
62376         * lib/hmac-md5.c: Likewise.
62377         * lib/hmac-sha1.c: Likewise.
62378         * lib/iconvme.c: Likewise.
62379         * lib/md2.c: Likewise.
62380         * lib/md4.c: Likewise.
62381         * lib/memxor.c: Likewise.
62382         * lib/read-file.c: Likewise.
62383         * lib/readline.c: Likewise.
62384         * lib/rijndael-alg-fst.c: Likewise.
62385         * lib/rijndael-api-fst.c: Likewise.
62386         * lib/xgetdomainname.c: Likewise.
62387
62388 2006-10-28  Eric Blake  <ebb9@byu.net>
62389
62390         * lib/xstrndup.c: Assume config.h.
62391
62392 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62393
62394         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
62395         stat-macros.h is now for our own macros, whereas stat_h is for
62396         macros in the <sys/stat.h> name space.
62397         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
62398         (STAT_MACROS_H): Remove.
62399         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
62400         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
62401         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
62402         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
62403         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
62404         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
62405         Move these macros to ...
62406         * lib/stat_.h: here.  Don't include stat-macros.h.
62407         * lib/canonicalize.c: Don't include stat-macros.h.
62408         * lib/chown.c: Likewise.
62409         * lib/euidaccess.c: Likewise.
62410         * lib/file-type.c: Likewise.
62411         * lib/filemode.c: Likewise.
62412         * lib/glob.c: Likewise.
62413         * lib/isapipe.c: Likewise.
62414         * lib/lchown.c: Likewise.
62415         * lib/lstat.c: Likewise.
62416         * lib/mkdir-p.c: Likewise.
62417         * lib/rmdir.c: Likewise.
62418         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
62419         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
62420         unless mkdir isn't declared, to speed up 'configure'.
62421         Always create sys/stat.h, since it's unlikely any real sys/stat.h
62422         would define all the S_* symbols.
62423         * modules/canonicalize (Depends-on):
62424         Depend on sys_stat, not stat-macros.
62425         * modules/chown: Likewise.
62426         * modules/euidaccess: Likewise.
62427         * modules/filemode: Likewise.
62428         * modules/file-type: Likewise.
62429         * modules/glob: Likewise.
62430         * modules/isapipe: Likewise.
62431         * modules/lchown: Likewise.
62432         * modules/lstat: Likewise.
62433         * modules/mkancesdirs: Likewise.
62434         * modules/rmdir: Likewise.
62435         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
62436         * modules/modechange: Likewise.
62437         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
62438         (configure.ac): Remove gl_STAT_MACROS.
62439         * modules/sys_stat (Depends-on): Remove stat-macros.
62440
62441 2006-10-27  Bruno Haible  <bruno@clisp.org>
62442
62443         * m4/signed.m4: Remove file.
62444         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
62445         invocation.
62446         * modules/vasnprintf (Files): Remove m4/signed.m4.
62447
62448 2006-10-27  Bruno Haible  <bruno@clisp.org>
62449
62450         Update to GNU gettext 0.16.
62451         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
62452         m4/inttypes-h.m4, m4/signed.m4.
62453         * m4/gettext.m4: Update to GNU gettext 0.16.
62454         * m4/intl.m4: New file, from GNU gettext.
62455         * m4/intldir.m4: New file, from GNU gettext.
62456         * config/srclist.txt: Update
62457
62458 2006-10-27  Eric Blake  <ebb9@byu.net>
62459
62460         * MODULES.html.sh: Document tempname.
62461         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
62462         dependencies.
62463         (Files): Move lib/tempname.c...
62464         * modules/tempname: ...to this new module.
62465         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
62466         (gl_PREREQ_TEMPNAME): Move...
62467         * m4/tempname.m4: ...to this new file.
62468         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
62469         * modules/sys_stat (Depends-on): Add stat-macros.
62470         * lib/stat_.h (includes): Pick up stat macros.
62471         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
62472         if stat macros are broken.
62473         * lib/tempname.c (includes): No need to include "stat-macros.h".
62474         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
62475         (direxists, __path_search) [!_LIBC]: Don't compile these in
62476         gnulib; the tmpdir module covers that.
62477         * lib/tempname.h: New file.
62478
62479 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
62480
62481         * COPYING: Explain how gnulib-tool converts licence headers.
62482         Almost all wording by Eric Blake.
62483
62484 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
62485
62486         * lib/mbchar.h (is_basic_table): Make read-only.
62487         * lib/mbchar.c (is_basic_table): Likewise.
62488         Reported by John Darrington.
62489
62490 2006-10-25  Bruno Haible  <bruno@clisp.org>
62491
62492         * lib/progname.h (set_program_name): Undefine before defining.
62493
62494 2006-10-25  Bruno Haible  <bruno@clisp.org>
62495
62496         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
62497         false for non-gcc C++ compilers.
62498         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
62499
62500 2006-10-24  Bruno Haible  <bruno@clisp.org>
62501
62502         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
62503         iconv implementations like Irix iconv.
62504
62505 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62506
62507         * modules/vararrays: New file.
62508         * m4/vararrays.m4: New file, taken from diffutils.
62509         * MODULES.html.sh: New module vararrays.
62510
62511 2006-10-24  Karl Berry  <karl@gnu.org>
62512
62513         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
62514         Don't call GNU Unix.
62515
62516 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62517
62518         * users.txt: Add Libtool.
62519
62520         Sync from Libtool:
62521
62522         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62523
62524         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
62525         to gnulib's policy of including config.h unconditionally.
62526
62527 2006-10-24  Bruno Haible  <bruno@clisp.org>
62528
62529         * modules/wcwidth (Files): Add m4/wint_t.m4.
62530         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
62531         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
62532
62533 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62534
62535         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
62536         to pacify GCC with some -W flags enabled.  Problem reported by
62537         Bruno Haible.
62538
62539 2006-10-24  Jim Meyering  <jim@meyering.net>
62540
62541         * MODULES.html.sh: Remove uinttostr.  It's not a module.
62542         Reported by Karl Berry.
62543
62544 2006-10-23  Bruno Haible  <bruno@clisp.org>
62545
62546         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
62547
62548 2006-10-24  Bruno Haible  <bruno@clisp.org>
62549
62550         * lib/gl_list.h: Use C comment style, not C++ comment style.
62551
62552 2006-10-23  Eric Blake  <ebb9@byu.net>
62553
62554         * lib/getaddrinfo.c (includes): Add missing include.
62555
62556 2006-10-23  Bruno Haible  <bruno@clisp.org>
62557             Paul Eggert  <eggert@cs.ucla.edu>
62558
62559         Ability to rename obstack_free.
62560         * lib/obstack.h (__obstack_free): New macro. Declare instead of
62561         obstack_free.
62562         (obstack_free): Invoke the __obstack_free macro.
62563         * lib/obstack.c (obstack_free): Use __obstack_free macro.
62564
62565 2006-10-23  Bruno Haible  <bruno@clisp.org>
62566             Paul Eggert  <eggert@cs.ucla.edu>
62567
62568         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
62569         __argc, __argv from the declaration. (They are defined as macros on
62570         mingw.)
62571
62572 2006-10-22  Bruno Haible  <bruno@clisp.org>
62573
62574         * doc/gnulib-intro.texi: New file.
62575         * doc/gnulib.texi: Include it.
62576
62577 2006-10-21  Bruno Haible  <bruno@clisp.org>
62578
62579         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
62580         "Introduction", "Miscellanous Notes", "Particular Modules".
62581
62582 2006-10-21  Bruno Haible  <bruno@clisp.org>
62583
62584         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62585         Change mostlyclean-local rule to avoid sh syntax error from bash
62586         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
62587
62588 2006-10-23  Jim Meyering  <jim@meyering.net>
62589
62590         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
62591         in place of snprintf.
62592
62593         * modules/inttostr (Files): Add lib/uinttostr.c.
62594         * lib/uinttostr.c (inttostr): New file/function.
62595         * lib/inttostr.h (uinttostr): Declare.
62596         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
62597         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62598         Add uinttostr.
62599         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
62600
62601 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62602
62603         * lib/canonicalize.c (ELOOP): Define if not already defined.
62604         Problem reported by Bruno Haible in
62605         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
62606
62607 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62608
62609         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
62610         Problem reported by Perry Smith and Ville Laurikari.
62611
62612         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
62613         uses.
62614
62615 2006-10-19  Bruno Haible  <bruno@clisp.org>
62616
62617         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
62618         for mingw.
62619
62620 2006-10-19  Bruno Haible  <bruno@clisp.org>
62621
62622         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
62623         Needed for mingw.
62624
62625 2006-10-19  Bruno Haible  <bruno@clisp.org>
62626
62627         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
62628
62629 2006-10-19  Bruno Haible  <bruno@clisp.org>
62630
62631         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
62632         it.
62633
62634 2006-10-19  Bruno Haible  <bruno@clisp.org>
62635
62636         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
62637         invocation.
62638
62639 2006-10-19  Bruno Haible  <bruno@clisp.org>
62640
62641         * gnulib-tool (func_create_testdir): Don't include ftruncate and
62642         mountlist by default.
62643
62644 2006-10-16  Bruno Haible  <bruno@clisp.org>
62645
62646         * lib/c-strstr.c: Include c-strstr.h.
62647
62648 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62649
62650         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
62651         in a slash.
62652
62653 2006-10-18  Bruno Haible  <bruno@clisp.org>
62654
62655         * lib/lock.h [C++]: Wrap definitions in extern "C".
62656
62657 2006-10-18  Bruno Haible  <bruno@clisp.org>
62658
62659         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
62660         gl_LIBOBJS list.
62661
62662 2006-10-18  Bruno Haible  <bruno@clisp.org>
62663
62664         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
62665
62666 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
62667
62668         * lib/xstrtol.h: Include gettext.h.
62669         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
62670         Problem reported by Eric Blake.
62671         * modules/xstrtol (Depends-on): Add gettext-h.
62672
62673 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
62674
62675         * lib/strftime.c (advance): New macro.
62676         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
62677         incomplete type, so you can't add 0 to it.  Problem and patch
62678         reported by Eelco Dolstra for dietlibc.
62679
62680 2006-10-18  Jim Meyering  <jim@meyering.net>
62681
62682         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
62683         type for a local, and rename it: s/up/user_proc/.
62684
62685 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62686
62687         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
62688         READ_UTMP_USER_PROCESS.
62689         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
62690
62691 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62692
62693         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
62694         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
62695
62696 2006-10-17  Eric Blake  <ebb9@byu.net>
62697
62698         * lib/sigprocmask.c (sigprocmask): Fix typo.
62699
62700         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
62701
62702         * modules/clean-temp (Makefile.am): Don't add to make output...
62703         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
62704         config.h.
62705
62706 2006-10-17  Bruno Haible  <bruno@clisp.org>
62707
62708         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
62709         differently if DEFAULT_TEXT_DOMAIN is set.
62710
62711 2006-10-16  Bruno Haible  <bruno@clisp.org>
62712
62713         * lib/clean-temp.c: Include fwriteerror.h.
62714
62715 2006-10-16  Bruno Haible  <bruno@clisp.org>
62716
62717         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
62718
62719 2006-10-16  Bruno Haible  <bruno@clisp.org>
62720
62721         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
62722         * lib/sigprocmask.h: Include <sys/types.h>.
62723         (sigset_t): Use the system's definition if present.
62724
62725 2006-10-17  Eric Blake  <ebb9@byu.net>
62726
62727         * lib/xvasprintf.c (includes): Assume config.h.
62728         * lib/xasprintf.c (includes): Likewise.
62729
62730 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62731
62732         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
62733         at least as wide as intmax_t.
62734
62735 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
62736
62737         (Imported from Automake.)
62738         * build-aux/gnupload: Update to version 1.1 of directive file.
62739
62740 2006-10-16  Eric Blake  <ebb9@byu.net>
62741
62742         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
62743         match Automake 1.10a.
62744
62745 2006-10-14  Bruno Haible  <bruno@clisp.org>
62746
62747         * modules/sigprocmask: New file.
62748         * lib/sigprocmask.h: New file.
62749         * lib/sigprocmask.c: New file.
62750         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
62751         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
62752         request sigprocmask.o.
62753         (gl_PREREQ_SIGPROCMASK): New macro.
62754         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
62755         (Depends-on): Add sigprocmask.
62756         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
62757         gt_SIGNALBLOCKING. Test for 'raise' only once.
62758         * lib/fatal-signal.c: Include sigprocmask.h.
62759         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
62760         unblock_fatal_signals): Define always.
62761         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62762         sigprocmask.
62763
62764 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62765
62766         Sync from Automake.
62767         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
62768         which incorrectly sets the mode of an existing destination
62769         directory.  In some cases the unpatched install-sh could do the
62770         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
62771         system.  We hope this is rare in practice, but it's clearly worth
62772         fixing.  Problem reported by Alex Unleashed in
62773         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
62774         Also, don't bother to check for -m bugs unless we're using -m;
62775         suggested by Stepan Kasal.
62776
62777 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62778
62779         Sync from Automake.
62780         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
62781         `-c' flag, so they appear at the same position as in %FASTDEP%
62782         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
62783         which ignores unknown options only after the first non-option.
62784         Bug report against M4 by Nelson H. F. Beebe.
62785
62786 2006-10-13  Jim Meyering  <jim@meyering.net>
62787
62788         Fix a bug in yesterday's change.
62789         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
62790         p->fts_statp->st_dev would be used uninitialized.
62791         Ensures that we always call fts_stat on the very first entry.
62792         Miklos Szeredi reported that find -xdev stopped working.
62793
62794 2006-10-12  Bruno Haible  <bruno@clisp.org>
62795
62796         * gnulib-tool (func_get_automake_snippet): Append an automatically
62797         computed EXTRA_DIST augmentation.
62798         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
62799         * modules/alloca-opt (Makefile.am): Likewise.
62800         * modules/allocsa (Makefile.am): Likewise.
62801         * modules/arcfour (Makefile.am): Likewise.
62802         * modules/arctwo (Makefile.am): Likewise.
62803         * modules/argmatch (Makefile.am): Likewise.
62804         * modules/argz (Makefile.am): Likewise.
62805         * modules/atexit (Makefile.am): Likewise.
62806         * modules/backupfile (Makefile.am): Likewise.
62807         * modules/byteswap (Makefile.am): Likewise.
62808         * modules/c-strtod (Makefile.am): Likewise.
62809         * modules/c-strtold (Makefile.am): Likewise.
62810         * modules/calloc (Makefile.am): Likewise.
62811         * modules/canon-host (Makefile.am): Likewise.
62812         * modules/canonicalize (Makefile.am): Likewise.
62813         * modules/chdir-long (Makefile.am): Likewise.
62814         * modules/chdir-safer (Makefile.am): Likewise.
62815         * modules/check-version (Makefile.am): Likewise.
62816         * modules/chown (Makefile.am): Likewise.
62817         * modules/cloexec (Makefile.am): Likewise.
62818         * modules/close-stream (Makefile.am): Likewise.
62819         * modules/closeout (Makefile.am): Likewise.
62820         * modules/crc (Makefile.am): Likewise.
62821         * modules/csharpexec (Makefile.am): Likewise.
62822         * modules/cycle-check (Makefile.am): Likewise.
62823         * modules/des (Makefile.am): Likewise.
62824         * modules/dev-ino (Makefile.am): Likewise.
62825         * modules/dirfd (Makefile.am): Likewise.
62826         * modules/dirname (Makefile.am): Likewise.
62827         * modules/dup2 (Makefile.am): Likewise.
62828         * modules/eealloc (Makefile.am): Likewise.
62829         * modules/error (Makefile.am): Likewise.
62830         * modules/euidaccess (Makefile.am): Likewise.
62831         * modules/exclude (Makefile.am): Likewise.
62832         * modules/exitfail (Makefile.am): Likewise.
62833         * modules/fcntl-safer (Makefile.am): Likewise.
62834         * modules/fcntl (Makefile.am): Likewise.
62835         * modules/file-type (Makefile.am): Likewise.
62836         * modules/fileblocks (Makefile.am): Likewise.
62837         * modules/filemode (Makefile.am): Likewise.
62838         * modules/filenamecat (Makefile.am): Likewise.
62839         * modules/fnmatch (Makefile.am): Likewise.
62840         * modules/fopen-safer (Makefile.am): Likewise.
62841         * modules/fpending (Makefile.am): Likewise.
62842         * modules/fprintftime (Makefile.am): Likewise.
62843         * modules/free (Makefile.am): Likewise.
62844         * modules/fsusage (Makefile.am): Likewise.
62845         * modules/ftruncate (Makefile.am): Likewise.
62846         * modules/fts (Makefile.am): Likewise.
62847         * modules/gc-arcfour (Makefile.am): Likewise.
62848         * modules/gc-des (Makefile.am): Likewise.
62849         * modules/gc-hmac-md5 (Makefile.am): Likewise.
62850         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
62851         * modules/gc-md4 (Makefile.am): Likewise.
62852         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
62853         * modules/gc-sha1 (Makefile.am): Likewise.
62854         * modules/gc (Makefile.am): Likewise.
62855         * modules/getaddrinfo (Makefile.am): Likewise.
62856         * modules/getcwd (Makefile.am): Likewise.
62857         * modules/getdelim (Makefile.am): Likewise.
62858         * modules/getdomainname (Makefile.am): Likewise.
62859         * modules/getgroups (Makefile.am): Likewise.
62860         * modules/gethostname (Makefile.am): Likewise.
62861         * modules/gethrxtime (Makefile.am): Likewise.
62862         * modules/getline (Makefile.am): Likewise.
62863         * modules/getloadavg (Makefile.am): Likewise.
62864         * modules/getlogin_r (Makefile.am): Likewise.
62865         * modules/getndelim2 (Makefile.am): Likewise.
62866         * modules/getopt (Makefile.am): Likewise.
62867         * modules/getpagesize (Makefile.am): Likewise.
62868         * modules/getpass-gnu (Makefile.am): Likewise.
62869         * modules/getpass (Makefile.am): Likewise.
62870         * modules/getsubopt (Makefile.am): Likewise.
62871         * modules/gettime (Makefile.am): Likewise.
62872         * modules/gettimeofday (Makefile.am): Likewise.
62873         * modules/getugroups (Makefile.am): Likewise.
62874         * modules/getusershell (Makefile.am): Likewise.
62875         * modules/glob (Makefile.am): Likewise.
62876         * modules/group-member (Makefile.am): Likewise.
62877         * modules/hard-locale (Makefile.am): Likewise.
62878         * modules/hash (Makefile.am): Likewise.
62879         * modules/hmac-md5 (Makefile.am): Likewise.
62880         * modules/hmac-sha1 (Makefile.am): Likewise.
62881         * modules/human (Makefile.am): Likewise.
62882         * modules/idcache (Makefile.am): Likewise.
62883         * modules/imaxabs (Makefile.am): Likewise.
62884         * modules/imaxdiv (Makefile.am): Likewise.
62885         * modules/inet_ntop (Makefile.am): Likewise.
62886         * modules/inet_pton (Makefile.am): Likewise.
62887         * modules/intprops (Makefile.am): Likewise.
62888         * modules/inttostr (Makefile.am): Likewise.
62889         * modules/inttypes (Makefile.am): Likewise.
62890         * modules/isapipe (Makefile.am): Likewise.
62891         * modules/javaversion (Makefile.am): Likewise.
62892         * modules/lchmod (Makefile.am): Likewise.
62893         * modules/lchown (Makefile.am): Likewise.
62894         * modules/localcharset (Makefile.am): Likewise.
62895         * modules/long-options (Makefile.am): Likewise.
62896         * modules/lstat (Makefile.am): Likewise.
62897         * modules/malloc (Makefile.am): Likewise.
62898         * modules/mathl (Makefile.am): Likewise.
62899         * modules/mbchar (Makefile.am): Likewise.
62900         * modules/md2 (Makefile.am): Likewise.
62901         * modules/md4 (Makefile.am): Likewise.
62902         * modules/md5 (Makefile.am): Likewise.
62903         * modules/memcasecmp (Makefile.am): Likewise.
62904         * modules/memchr (Makefile.am): Likewise.
62905         * modules/memcmp (Makefile.am): Likewise.
62906         * modules/memcoll (Makefile.am): Likewise.
62907         * modules/memcpy (Makefile.am): Likewise.
62908         * modules/memmem (Makefile.am): Likewise.
62909         * modules/memmove (Makefile.am): Likewise.
62910         * modules/mempcpy (Makefile.am): Likewise.
62911         * modules/memrchr (Makefile.am): Likewise.
62912         * modules/memset (Makefile.am): Likewise.
62913         * modules/memxor (Makefile.am): Likewise.
62914         * modules/mkancesdirs (Makefile.am): Likewise.
62915         * modules/mkdir-p (Makefile.am): Likewise.
62916         * modules/mkdir (Makefile.am): Likewise.
62917         * modules/mkdtemp (Makefile.am): Likewise.
62918         * modules/mkstemp (Makefile.am): Likewise.
62919         * modules/mktime (Makefile.am): Likewise.
62920         * modules/modechange (Makefile.am): Likewise.
62921         * modules/mountlist (Makefile.am): Likewise.
62922         * modules/nanosleep (Makefile.am): Likewise.
62923         * modules/obstack (Makefile.am): Likewise.
62924         * modules/openat (Makefile.am): Likewise.
62925         * modules/pagealign_alloc (Makefile.am): Likewise.
62926         * modules/pathmax (Makefile.am): Likewise.
62927         * modules/physmem (Makefile.am): Likewise.
62928         * modules/poll (Makefile.am): Likewise.
62929         * modules/posixtm (Makefile.am): Likewise.
62930         * modules/posixver (Makefile.am): Likewise.
62931         * modules/putenv (Makefile.am): Likewise.
62932         * modules/quote (Makefile.am): Likewise.
62933         * modules/quotearg (Makefile.am): Likewise.
62934         * modules/raise (Makefile.am): Likewise.
62935         * modules/read-file (Makefile.am): Likewise.
62936         * modules/readline (Makefile.am): Likewise.
62937         * modules/readlink (Makefile.am): Likewise.
62938         * modules/readtokens (Makefile.am): Likewise.
62939         * modules/readutmp (Makefile.am): Likewise.
62940         * modules/realloc (Makefile.am): Likewise.
62941         * modules/regex (Makefile.am): Likewise.
62942         * modules/rename-dest-slash (Makefile.am): Likewise.
62943         * modules/rename (Makefile.am): Likewise.
62944         * modules/rijndael (Makefile.am): Likewise.
62945         * modules/rmdir (Makefile.am): Likewise.
62946         * modules/rpmatch (Makefile.am): Likewise.
62947         * modules/safe-read (Makefile.am): Likewise.
62948         * modules/safe-write (Makefile.am): Likewise.
62949         * modules/same-inode (Makefile.am): Likewise.
62950         * modules/same (Makefile.am): Likewise.
62951         * modules/save-cwd (Makefile.am): Likewise.
62952         * modules/savedir (Makefile.am): Likewise.
62953         * modules/setenv (Makefile.am): Likewise.
62954         * modules/settime (Makefile.am): Likewise.
62955         * modules/sha1 (Makefile.am): Likewise.
62956         * modules/sig2str (Makefile.am): Likewise.
62957         * modules/snprintf (Makefile.am): Likewise.
62958         * modules/stat-macros (Makefile.am): Likewise.
62959         * modules/stat-time (Makefile.am): Likewise.
62960         * modules/stdbool (Makefile.am): Likewise.
62961         * modules/stdint (Makefile.am): Likewise.
62962         * modules/stdlib-safer (Makefile.am): Likewise.
62963         * modules/stpcpy (Makefile.am): Likewise.
62964         * modules/stpncpy (Makefile.am): Likewise.
62965         * modules/strcase (Makefile.am): Likewise.
62966         * modules/strcasestr (Makefile.am): Likewise.
62967         * modules/strchrnul (Makefile.am): Likewise.
62968         * modules/strcspn (Makefile.am): Likewise.
62969         * modules/strdup (Makefile.am): Likewise.
62970         * modules/strerror (Makefile.am): Likewise.
62971         * modules/strftime (Makefile.am): Likewise.
62972         * modules/strndup (Makefile.am): Likewise.
62973         * modules/strnlen (Makefile.am): Likewise.
62974         * modules/strpbrk (Makefile.am): Likewise.
62975         * modules/strsep (Makefile.am): Likewise.
62976         * modules/strstr (Makefile.am): Likewise.
62977         * modules/strtod (Makefile.am): Likewise.
62978         * modules/strtoimax (Makefile.am): Likewise.
62979         * modules/strtok_r (Makefile.am): Likewise.
62980         * modules/strtol (Makefile.am): Likewise.
62981         * modules/strtoll (Makefile.am): Likewise.
62982         * modules/strtoul (Makefile.am): Likewise.
62983         * modules/strtoull (Makefile.am): Likewise.
62984         * modules/strtoumax (Makefile.am): Likewise.
62985         * modules/strverscmp (Makefile.am): Likewise.
62986         * modules/sys_socket (Makefile.am): Likewise.
62987         * modules/sys_stat (Makefile.am): Likewise.
62988         * modules/sysexits (Makefile.am): Likewise.
62989         * modules/time_r (Makefile.am): Likewise.
62990         * modules/timegm (Makefile.am): Likewise.
62991         * modules/timespec (Makefile.am): Likewise.
62992         * modules/tmpfile-safer (Makefile.am): Likewise.
62993         * modules/trim (Makefile.am): Likewise.
62994         * modules/unistd-safer (Makefile.am): Likewise.
62995         * modules/unlinkdir (Makefile.am): Likewise.
62996         * modules/unlocked-io (Makefile.am): Likewise.
62997         * modules/userspec (Makefile.am): Likewise.
62998         * modules/utime (Makefile.am): Likewise.
62999         * modules/utimecmp (Makefile.am): Likewise.
63000         * modules/utimens (Makefile.am): Likewise.
63001         * modules/vasnprintf (Makefile.am): Likewise.
63002         * modules/vasprintf (Makefile.am): Likewise.
63003         * modules/vsnprintf (Makefile.am): Likewise.
63004         * modules/xalloc (Makefile.am): Likewise.
63005         * modules/xgetcwd (Makefile.am): Likewise.
63006         * modules/xnanosleep (Makefile.am): Likewise.
63007         * modules/xreadlink (Makefile.am): Likewise.
63008         * modules/xstrtod (Makefile.am): Likewise.
63009         * modules/xstrtol (Makefile.am): Likewise.
63010         * modules/xstrtold (Makefile.am): Likewise.
63011         * modules/yesno (Makefile.am): Likewise.
63012         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
63013
63014 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63015
63016         * modules/error (Makefile.am): Distribute files through
63017         EXTRA_DIST, not lib_SOURCES.
63018
63019 2006-10-12  Eric Blake  <ebb9@byu.net>
63020
63021         * modules/error (Makefile.am): Distribute files in /lib.
63022         * modules/obstack (Makefile.am): Likewise.
63023
63024 2006-10-12  Bruno Haible  <bruno@clisp.org>
63025
63026         * modules/acl (Makefile.am): Distribute all files in lib/ through
63027         EXTRA_DIST.
63028         * modules/arcfour (Makefile.am): Likewise.
63029         * modules/arctwo (Makefile.am): Likewise.
63030         * modules/argmatch (Makefile.am): Likewise.
63031         * modules/argz (Makefile.am): Likewise.
63032         * modules/atexit (Makefile.am): Likewise.
63033         * modules/backupfile (Makefile.am): Likewise.
63034         * modules/c-strtod (Makefile.am): Likewise.
63035         * modules/c-strtold (Makefile.am): Likewise.
63036         * modules/calloc (Makefile.am): Likewise.
63037         * modules/canon-host (Makefile.am): Likewise.
63038         * modules/canonicalize (Makefile.am): Likewise.
63039         * modules/chdir-long (Makefile.am): Likewise.
63040         * modules/chdir-safer (Makefile.am): Likewise.
63041         * modules/check-version (Makefile.am): Likewise.
63042         * modules/chown (Makefile.am): Likewise.
63043         * modules/cloexec (Makefile.am): Likewise.
63044         * modules/close-stream (Makefile.am): Likewise.
63045         * modules/closeout (Makefile.am): Likewise.
63046         * modules/crc (Makefile.am): Likewise.
63047         * modules/cycle-check (Makefile.am): Likewise.
63048         * modules/des (Makefile.am): Likewise.
63049         * modules/dirfd (Makefile.am): Likewise.
63050         * modules/dirname (Makefile.am): Likewise.
63051         * modules/dup2 (Makefile.am): Likewise.
63052         * modules/euidaccess (Makefile.am): Likewise.
63053         * modules/exclude (Makefile.am): Likewise.
63054         * modules/exitfail (Makefile.am): Likewise.
63055         * modules/fcntl-safer (Makefile.am): Likewise.
63056         * modules/file-type (Makefile.am): Likewise.
63057         * modules/fileblocks (Makefile.am): Likewise.
63058         * modules/filemode (Makefile.am): Likewise.
63059         * modules/filenamecat (Makefile.am): Likewise.
63060         * modules/fnmatch (Makefile.am): Likewise.
63061         * modules/fopen-safer (Makefile.am): Likewise.
63062         * modules/fpending (Makefile.am): Likewise.
63063         * modules/fprintftime (Makefile.am): Likewise.
63064         * modules/free (Makefile.am): Likewise.
63065         * modules/fsusage (Makefile.am): Likewise.
63066         * modules/ftruncate (Makefile.am): Likewise.
63067         * modules/fts (Makefile.am): Likewise.
63068         * modules/gc (Makefile.am): Likewise.
63069         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63070         * modules/getaddrinfo (Makefile.am): Likewise.
63071         * modules/getcwd (Makefile.am): Likewise.
63072         * modules/getdelim (Makefile.am): Likewise.
63073         * modules/getdomainname (Makefile.am): Likewise.
63074         * modules/getgroups (Makefile.am): Likewise.
63075         * modules/gethostname (Makefile.am): Likewise.
63076         * modules/gethrxtime (Makefile.am): Likewise.
63077         * modules/getline (Makefile.am): Likewise.
63078         * modules/getloadavg (Makefile.am): Likewise.
63079         * modules/getlogin_r (Makefile.am): Likewise.
63080         * modules/getopt (Makefile.am): Likewise.
63081         * modules/getpass (Makefile.am): Likewise.
63082         * modules/getpass-gnu (Makefile.am): Likewise.
63083         * modules/getsubopt (Makefile.am): Likewise.
63084         * modules/gettime (Makefile.am): Likewise.
63085         * modules/gettimeofday (Makefile.am): Likewise.
63086         * modules/getugroups (Makefile.am): Likewise.
63087         * modules/getusershell (Makefile.am): Likewise.
63088         * modules/glob (Makefile.am): Likewise.
63089         * modules/group-member (Makefile.am): Likewise.
63090         * modules/hard-locale (Makefile.am): Likewise.
63091         * modules/hash (Makefile.am): Likewise.
63092         * modules/hmac-md5 (Makefile.am): Likewise.
63093         * modules/hmac-sha1 (Makefile.am): Likewise.
63094         * modules/human (Makefile.am): Likewise.
63095         * modules/idcache (Makefile.am): Likewise.
63096         * modules/imaxabs (Makefile.am): Likewise.
63097         * modules/imaxdiv (Makefile.am): Likewise.
63098         * modules/inet_ntop (Makefile.am): Likewise.
63099         * modules/inet_pton (Makefile.am): Likewise.
63100         * modules/inttostr (Makefile.am): Likewise.
63101         * modules/isapipe (Makefile.am): Likewise.
63102         * modules/lchown (Makefile.am): Likewise.
63103         * modules/long-options (Makefile.am): Likewise.
63104         * modules/lstat (Makefile.am): Likewise.
63105         * modules/malloc (Makefile.am): Likewise.
63106         * modules/mathl (Makefile.am): Likewise.
63107         * modules/mbchar (Makefile.am): Likewise.
63108         * modules/md2 (Makefile.am): Likewise.
63109         * modules/md4 (Makefile.am): Likewise.
63110         * modules/md5 (Makefile.am): Likewise.
63111         * modules/memcasecmp (Makefile.am): Likewise.
63112         * modules/memchr (Makefile.am): Likewise.
63113         * modules/memcmp (Makefile.am): Likewise.
63114         * modules/memcoll (Makefile.am): Likewise.
63115         * modules/memcpy (Makefile.am): Likewise.
63116         * modules/memmem (Makefile.am): Likewise.
63117         * modules/memmove (Makefile.am): Likewise.
63118         * modules/mempcpy (Makefile.am): Likewise.
63119         * modules/memrchr (Makefile.am): Likewise.
63120         * modules/memset (Makefile.am): Likewise.
63121         * modules/memxor (Makefile.am): Likewise.
63122         * modules/mkancesdirs (Makefile.am): Likewise.
63123         * modules/mkdir (Makefile.am): Likewise.
63124         * modules/mkdir-p (Makefile.am): Likewise.
63125         * modules/mkdtemp (Makefile.am): Likewise.
63126         * modules/mkstemp (Makefile.am): Likewise.
63127         * modules/mktime (Makefile.am): Likewise.
63128         * modules/modechange (Makefile.am): Likewise.
63129         * modules/mountlist (Makefile.am): Likewise.
63130         * modules/nanosleep (Makefile.am): Likewise.
63131         * modules/openat (Makefile.am): Likewise.
63132         * modules/pagealign_alloc (Makefile.am): Likewise.
63133         * modules/physmem (Makefile.am): Likewise.
63134         * modules/poll (Makefile.am): Likewise.
63135         * modules/posixtm (Makefile.am): Likewise.
63136         * modules/posixver (Makefile.am): Likewise.
63137         * modules/putenv (Makefile.am): Likewise.
63138         * modules/quote (Makefile.am): Likewise.
63139         * modules/quotearg (Makefile.am): Likewise.
63140         * modules/raise (Makefile.am): Likewise.
63141         * modules/read-file (Makefile.am): Likewise.
63142         * modules/readline (Makefile.am): Likewise.
63143         * modules/readlink (Makefile.am): Likewise.
63144         * modules/readtokens (Makefile.am): Likewise.
63145         * modules/readutmp (Makefile.am): Likewise.
63146         * modules/realloc (Makefile.am): Likewise.
63147         * modules/regex (Makefile.am): Likewise.
63148         * modules/rename (Makefile.am): Likewise.
63149         * modules/rename-dest-slash (Makefile.am): Likewise.
63150         * modules/rijndael (Makefile.am): Likewise.
63151         * modules/rmdir (Makefile.am): Likewise.
63152         * modules/rpmatch (Makefile.am): Likewise.
63153         * modules/safe-read (Makefile.am): Likewise.
63154         * modules/safe-write (Makefile.am): Likewise.
63155         * modules/same (Makefile.am): Likewise.
63156         * modules/save-cwd (Makefile.am): Likewise.
63157         * modules/savedir (Makefile.am): Likewise.
63158         * modules/setenv (Makefile.am): Likewise.
63159         * modules/settime (Makefile.am): Likewise.
63160         * modules/sha1 (Makefile.am): Likewise.
63161         * modules/sig2str (Makefile.am): Likewise.
63162         * modules/snprintf (Makefile.am): Likewise.
63163         * modules/stdlib-safer (Makefile.am): Likewise.
63164         * modules/stpcpy (Makefile.am): Likewise.
63165         * modules/stpncpy (Makefile.am): Likewise.
63166         * modules/strcase (Makefile.am): Likewise.
63167         * modules/strcasestr (Makefile.am): Likewise.
63168         * modules/strchrnul (Makefile.am): Likewise.
63169         * modules/strcspn (Makefile.am): Likewise.
63170         * modules/strdup (Makefile.am): Likewise.
63171         * modules/strerror (Makefile.am): Likewise.
63172         * modules/strftime (Makefile.am): Likewise.
63173         * modules/strndup (Makefile.am): Likewise.
63174         * modules/strnlen (Makefile.am): Likewise.
63175         * modules/strpbrk (Makefile.am): Likewise.
63176         * modules/strsep (Makefile.am): Likewise.
63177         * modules/strstr (Makefile.am): Likewise.
63178         * modules/strtod (Makefile.am): Likewise.
63179         * modules/strtoimax (Makefile.am): Likewise.
63180         * modules/strtok_r (Makefile.am): Likewise.
63181         * modules/strtol (Makefile.am): Likewise.
63182         * modules/strtoll (Makefile.am): Likewise.
63183         * modules/strtoul (Makefile.am): Likewise.
63184         * modules/strtoull (Makefile.am): Likewise.
63185         * modules/strtoumax (Makefile.am): Likewise.
63186         * modules/strverscmp (Makefile.am): Likewise.
63187         * modules/time_r (Makefile.am): Likewise.
63188         * modules/timegm (Makefile.am): Likewise.
63189         * modules/tmpfile-safer (Makefile.am): Likewise.
63190         * modules/unistd-safer (Makefile.am): Likewise.
63191         * modules/unlinkdir (Makefile.am): Likewise.
63192         * modules/userspec (Makefile.am): Likewise.
63193         * modules/utime (Makefile.am): Likewise.
63194         * modules/utimecmp (Makefile.am): Likewise.
63195         * modules/utimens (Makefile.am): Likewise.
63196         * modules/vasnprintf (Makefile.am): Likewise.
63197         * modules/vasprintf (Makefile.am): Likewise.
63198         * modules/vsnprintf (Makefile.am): Likewise.
63199         * modules/xalloc (Makefile.am): Likewise.
63200         * modules/xgetcwd (Makefile.am): Likewise.
63201         * modules/xnanosleep (Makefile.am): Likewise.
63202         * modules/xreadlink (Makefile.am): Likewise.
63203         * modules/xstrtod (Makefile.am): Likewise.
63204         * modules/xstrtol (Makefile.am): Likewise.
63205         * modules/xstrtold (Makefile.am): Likewise.
63206         * modules/yesno (Makefile.am): Likewise.
63207
63208 2006-10-12  Jim Meyering  <jim@meyering.net>
63209
63210         * m4/getloadavg.m4: Revert the change below.
63211
63212         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
63213         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
63214         fail with a symlink, which is what coreutils' ./bootstrap now
63215         creates by default.
63216
63217 2006-10-12  Bruno Haible  <bruno@clisp.org>
63218
63219         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
63220         mingw.
63221         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
63222         MSVC and mingw explicitly.
63223
63224 2006-10-11  Simon Josefsson  <jas@extundo.com>
63225             Bruno Haible  <bruno@clisp.org>
63226
63227         Add support for multiple gnulib-tool invocations in the scope of a
63228         single configure.ac file.
63229         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
63230         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
63231         with the same contents as the _LIBADD variable.
63232         (func_emit_initmacro_start, func_emit_initmacro_end,
63233         func_emit_initmacro_done): New functions.
63234         (func_import, func_create_testdir): Invoke them. Allow the identifiers
63235         gl_LIBOBJS and gl_LTLIBOBJS.
63236
63237 2006-10-11  Bruno Haible  <bruno@clisp.org>
63238
63239         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
63240         (func_create_testdir): Don't create po/Makefile.am, don't invoke
63241         autoreconf. Instead, invoke autopoint explicitly but move back the
63242         *.m4 files from gnulib.
63243
63244 2006-10-11  Bruno Haible  <bruno@clisp.org>
63245
63246         * gnulib-tool (func_usage): Make module names after --create-testdir
63247         optional.
63248         (func_create_testdir): If no module was specified, use nearly all
63249         modules.
63250
63251 2006-10-12  Jim Meyering  <jim@meyering.net>
63252
63253         Big performance improvement for fts-based tools that use FTS_NOSTAT.
63254         Avoid spurious inode-mismatch problems on non-POSIX file systems.
63255         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
63256         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
63257         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
63258         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
63259         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
63260         (fts_set_stat_required): New function.
63261         (fts_open): Defer the calls to fts_stat, if possible or requested.
63262         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
63263         into fts_stat itself.
63264         (fts_read): Perform any required (deferred) fts_stat call.
63265         (fts_build): Likewise, for the directory we're about to open and read.
63266         In the readdir loop, carefully decide whether each entry will require
63267         an eventual call to fts_stat, using dirent.d_type info if available.
63268         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
63269         a command line argument into this function.  Update all callers.
63270         Map a return value of FTS_DOT to FTS_D for a command line argument.
63271         * modules/fts (Depends-on): Add d-type.  Alphabetize.
63272         Thanks to Miklos Szeredi for his tenacity and for the initial
63273         bug report about "find" failing on a FUSE-based file system.
63274
63275         * lib/fts.c (fts_open): Use consistent indentation.
63276
63277 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63278
63279         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
63280         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
63281         reported by Jim Meyering.  All uses of cache variables renamed
63282         to match Autoconf's.
63283         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
63284         the other one.
63285
63286         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
63287         Fix misspelling in diagnostic.
63288
63289 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63290
63291         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
63292         defined.  Problem reported by Matthew Woehlke.
63293
63294         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
63295         Add support for Tandem NonStop R series.
63296         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
63297         Use new macro.
63298
63299         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
63300         (has_trailing_slash): Omit size arg; all callers changed.
63301         Omit 'inline', since it doesn't help performance and we'd
63302         need to configure it.
63303         Don't count //, ///, etc. as having a trailing slash.
63304         As a side effect, this removes a C99ism reported by Matthew Woehlke.
63305         (rpl_rename_dest_slash): On failure, use rename's errno rather
63306         than (in some cases) an incorrect or junk errno.
63307         Simplify code by removing need to compute length; this does
63308         cause it to make two passes instead of one over the file name,
63309         but it's worth it.
63310
63311         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
63312         change, since Autoconf's version may no longer be appropriate now
63313         that we are using CVS Autoconf's version.  Add support for Tandem.
63314
63315 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63316             Bruno Haible  <bruno@clisp.org>
63317
63318         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
63319         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
63320         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
63321         gl_AC_TYPE_LONG_LONG.
63322
63323         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
63324         instead of HAVE_LONG_LONG.
63325         * lib/printf-args.c (printf_fetchargs): Likewise.
63326         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63327         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63328         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
63329         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
63330         gl_AC_TYPE_LONG_LONG.
63331
63332 2006-10-11  Bruno Haible  <bruno@clisp.org>
63333
63334         * m4/longlong.m4: Add comments.
63335         * m4/ulonglong.m4: Likewise.
63336
63337 2006-10-10  Bruno Haible  <bruno@clisp.org>
63338
63339         Make it possible to #define stpcpy, strdup to aliases.
63340         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
63341         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
63342
63343 2006-10-10  Bruno Haible  <bruno@clisp.org>
63344
63345         Make it possible to #define gcd to an alias.
63346         * lib/gcd.c: Include config.h.
63347
63348 2006-10-10  Bruno Haible  <bruno@clisp.org>
63349
63350         Make it possible to #define c_isascii to an alias.
63351         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
63352         defined. Undefine the macros before defining them, to avoid gcc
63353         warnings.
63354         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
63355         define NO_C_CTYPE_MACROS early.
63356
63357 2006-10-10  Bruno Haible  <bruno@clisp.org>
63358
63359         Make it possible to #define set_program_name to an alias.
63360         * lib/progname.c: Don't undefine set_program_name; instead, undefine
63361         ENABLE_RELOCATABLE early.
63362
63363 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63364
63365         Port to Tandem NSK OSS, which has 64-bit signed int but at most
63366         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
63367         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
63368         More generally, don't assume that 64-bit signed int is available
63369         if unsigned int is, and vice versa.
63370         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
63371         unsigned symbols, not on their signed counterparts.
63372         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
63373         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
63374         (UINT64_C, UINTMAX_C):
63375         Likewise.
63376         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
63377         unsigned counterparts.
63378         (Have_long_long, Unsigned): New macros.
63379         (Int): Renamed from INT.
63380         (strtoimax): Use the new macros.
63381         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
63382         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
63383         * modules/inttypes (inttypes.h): Substitute
63384         HAVE_UNSIGNED_LONG_LONG_INT.
63385         * modules/stdint (stdint.h): Likewise.
63386         (Files): Add m4/ulonglong.m4.
63387
63388 2006-10-10  Bruno Haible  <bruno@clisp.org>
63389
63390         Fix a gcc -Wshadow warning.
63391         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
63392         to 'bucket'.
63393         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
63394         gl_linked_indexof_from_to): Likewise.
63395         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
63396         Likewise.
63397         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
63398         Likewise.
63399         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
63400         Reported by Eric Blake.
63401
63402 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
63403
63404         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
63405         for NetBSD.  Problem reported by Bruno Haible.
63406
63407 2006-10-09  Jim Meyering  <jim@meyering.net>
63408
63409         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
63410         Patch from Bruno Haible.
63411
63412 2006-10-09  Jim Meyering  <jim@meyering.net>
63413
63414         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
63415         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
63416         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
63417
63418 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63419
63420         Don't include <config.h> twice; this doesn't work in some cases,
63421         e.g., when config.h has "#define intmax_t long long int" and
63422         we include <config.h>, <inttypes.h>, <config.h> in that order.
63423         Problem reported by Matthew Woehlke in:
63424         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
63425         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
63426         * lib/fts-cycle.c: Don't include config.h.
63427         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
63428         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
63429         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
63430         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
63431         inttypes.h.
63432         * lib/xstrtoumax.c: Likewise.
63433         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
63434         __strtol and the like, so that this module is more like its siblings.
63435         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
63436         Remove; no longer needed now that we assume gnulib inttypes.h.
63437
63438 2006-10-08  Bruno Haible  <bruno@clisp.org>
63439
63440         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
63441         option.
63442
63443 2006-10-07  Jim Meyering  <jim@meyering.net>
63444
63445         * modules/inttypes (inttypes.h): Revert what seems to have been
63446         an inadvertent part of today's change: use "|", not "/" in the
63447         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
63448
63449 2006-10-07  Bruno Haible  <bruno@clisp.org>
63450
63451         * modules/sublist: New file.
63452
63453 2006-10-07  Bruno Haible  <bruno@clisp.org>
63454
63455         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
63456         * modules/argz (argz.h): Likewise.
63457         * modules/arpa_inet (arpa/inet.h): Likewise.
63458         * modules/byteswap (byteswap.h): Likewise.
63459         * modules/configmake (configmake.h): Likewise.
63460         * modules/fcntl (fcntl.h): Likewise.
63461         * modules/fnmatch (fnmatch.h): Likewise.
63462         * modules/getopt (getopt.h): Likewise.
63463         * modules/glob (glob.h): Likewise.
63464         * modules/inttypes (inttypes.h): Likewise.
63465         * modules/netinet_in (netinet/in.h): Likewise.
63466         * modules/poll (poll.h): Likewise.
63467         * modules/stdbool (stdbool.h): Likewise.
63468         * modules/stdint (stdint.h): Likewise.
63469         * modules/sys_select (sys/select.h): Likewise.
63470         * modules/sys_socket (sys/socket.h): Likewise.
63471         * modules/sys_stat (sys/stat.h): Likewise.
63472         * modules/sysexits (sysexits.h): Likewise.
63473         * modules/unistd (unistd.h): Likewise.
63474         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63475         Add a "DO NOT EDIT" comment to the generated file.
63476         (func_import): Likewise for gnulib-comp.m4.
63477
63478 2006-10-07  Bruno Haible  <bruno@clisp.org>
63479
63480         * lib/gl_sublist.h: New file.
63481         * lib/gl_sublist.c: New file.
63482
63483 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63484
63485         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
63486         name (relative to the original working directory) and the file
63487         name component (relative to the temporary working directory).  All
63488         callers changed.
63489         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
63490         * lib/mkdir-p.c (make_dir_parents): Likewise.
63491         * lib/mkdir-p.h (make_dir_parents): Likewise.
63492
63493 2006-10-06  Eric Blake  <ebb9@byu.net>
63494
63495         Define several macros for use by the clean-temp module.
63496         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
63497         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
63498         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
63499
63500         * lib/clean-temp.h (close_stream_temp): New declaration.
63501         * lib/clean-temp.c (includes): Pull in headers according to what
63502         other modules are in use.
63503         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
63504
63505 2006-10-06  Bruno Haible  <bruno@clisp.org>
63506
63507         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
63508         instead of fopen, fwriteerror.
63509
63510 2006-10-06  Bruno Haible  <bruno@clisp.org>
63511
63512         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
63513         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
63514         int.
63515         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
63516         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
63517         Return an error indicator.
63518         Suggested by Eric Blake.
63519
63520 2006-10-06  Bruno Haible  <bruno@clisp.org>
63521
63522         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
63523         Reported by Eric Blake.
63524
63525 2006-10-06  Bruno Haible  <bruno@clisp.org>
63526
63527         * modules/closeout (Description): Mention stderr too.
63528
63529 2006-10-06  Bruno Haible  <bruno@clisp.org>
63530         and Paul Eggert  <eggert@cs.ucla.edu>
63531
63532         * lib/closeout.c (close_stdout): Also close stderr.
63533         * lib/closeout.h: Update comment.
63534
63535 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63536
63537         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
63538         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
63539         * lib/dirchownmod.c: Include lchown.h.
63540         * lib/lchown.c: Don't include files that lchown.h now includes.
63541         Don't declare chown, since lchown.h now does that.
63542         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
63543         (lchown): Define to rpl_chown if lchown is declared but
63544         does not exist.  Declare using a prototype if lchown is not
63545         declared.  Add a copyright notice.
63546         * lib/mkstemp.h: Include <unistd.h>.
63547         * lib/openat.c: Include lchown.h.
63548
63549         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
63550         we now test for that separately.
63551         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
63552         rather than O_NOFOLLOW, when testing whether it's possible to
63553         avoid a race condition reliably.
63554         * lib/savewd.c (savewd_chdir): Likewise.
63555
63556         Remove macros that are no longer needed now that stdint.h is
63557         reliable.
63558         * lib/fsusage.c (UINTMAX_MAX): Remove.
63559         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
63560         * lib/utimecmp.c (SIZE_MAX): Remove.
63561
63562         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
63563
63564         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
63565         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
63566         O_NOATIME works.
63567
63568 2006-10-05  Bruno Haible  <bruno@clisp.org>
63569
63570         * lib/gl_list.h (gl_sortedlist_search_from_to,
63571         gl_sortedlist_indexof_from_to): New declarations.
63572         (gl_list_implementation): New fields sortedlist_search_from_to,
63573         sortedlist_indexof_from_to.
63574         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
63575         inline functions.
63576         * lib/gl_list.c (gl_sortedlist_search_from_to,
63577         gl_sortedlist_indexof_from_to): New functions.
63578         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
63579         function.
63580         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
63581         (gl_array_sortedlist_search_from_to): New function.
63582         (gl_array_list_implementation): Update.
63583         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
63584         function.
63585         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
63586         (gl_carray_sortedlist_search_from_to): New function.
63587         (gl_carray_list_implementation): Update.
63588         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
63589         gl_linked_sortedlist_indexof_from_to): New functions.
63590         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63591         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63592         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
63593         gl_tree_sortedlist_indexof_from_to): New functions.
63594         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63595         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63596         Update.
63597         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63598         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
63599         Update.
63600
63601 2006-10-05  Bruno Haible  <bruno@clisp.org>
63602
63603         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
63604         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
63605         (struct gl_list_implementation): Add fields search_from_to,
63606         indexof_from_to. Remove fields search, indexof.
63607         (gl_list_search): Use the search_from_to method.
63608         (gl_list_search_from, gl_list_search_from_to): New functions.
63609         (gl_list_indexof): Use the indexof_from_to method.
63610         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63611         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
63612         (gl_list_search_from, gl_list_search_from_to): New functions.
63613         (gl_list_indexof): Use the indexof_from_to method.
63614         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63615         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
63616         gl_array_indexof. Add start_index, end_index arguments.
63617         (gl_array_search_from_to): Renamed from gl_array_search. Add
63618         start_index, end_index arguments.
63619         (gl_array_remove, gl_array_list_implementation): Update.
63620         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
63621         gl_carray_indexof. Add start_index, end_index arguments.
63622         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
63623         start_index, end_index arguments.
63624         (gl_carray_remove, gl_carray_list_implementation): Update.
63625         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
63626         gl_linked_search. Add start_index, end_index arguments.
63627         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
63628         start_index, end_index arguments.
63629         (gl_linked_remove): Update.
63630         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63631         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63632         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
63633         field to 'size_t'.
63634         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
63635         gl_tree_search. Add start_index, end_index arguments.
63636         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63637         start_index, end_index arguments.
63638         (gl_tree_remove): Update.
63639         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63640         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63641         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
63642         function.
63643         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
63644         gl_tree_search. Add start_index, end_index arguments.
63645         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63646         start_index, end_index arguments.
63647         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63648         Update.
63649         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63650
63651 2006-10-05  Bruno Haible  <bruno@clisp.org>
63652
63653         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
63654
63655         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
63656         fwriteerror_temp): New declarations.
63657         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
63658         (descriptors): New variable.
63659         (cleanup): First, close the descriptors.
63660         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
63661         fclose_temp, fwriteerror_temp): New functions.
63662
63663 2006-10-04  Jim Meyering  <jim@meyering.net>
63664
63665         * lib/fts.c (fts_open): Tiny comment change.
63666
63667 2006-10-04  Bruno Haible  <bruno@clisp.org>
63668
63669         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
63670         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
63671         gl_LOCK_BODY.
63672         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
63673         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
63674         gl_LOCK_EARLY_BODY.
63675         (gl_LOCK): Require gl_LOCK_BODY.
63676
63677 2006-10-04  Bruno Haible  <bruno@clisp.org>
63678
63679         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
63680         (gl_oset_search_atleast): New declaration.
63681         (struct gl_oset_implementation): Add field 'search_atleast'.
63682         (gl_oset_search_atleast): New inline function.
63683         * lib/gl_oset.c (gl_oset_search_atleast): New function.
63684         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
63685         (gl_array_oset_implementation): Update.
63686         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
63687         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
63688         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
63689
63690 2006-10-04  Bruno Haible  <bruno@clisp.org>
63691
63692         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
63693
63694 2006-10-03  Bruno Haible  <bruno@clisp.org>
63695
63696         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
63697         from gl_avltreehash_list_implementation.
63698
63699 2006-10-03  Bruno Haible  <bruno@clisp.org>
63700
63701         * lib/gl_oset.c (gl_oset_add): Fix return type.
63702
63703 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
63704
63705         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
63706
63707 2006-10-02  Eric Blake  <ebb9@byu.net>
63708
63709         * modules/strnlen (Depends-on): Add extensions.
63710
63711 2006-10-02  Eric Blake  <ebb9@byu.net>
63712
63713         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
63714         definition in 2.60+.
63715
63716 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
63717
63718         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
63719         checks.
63720
63721 2006-10-02  Bruno Haible  <bruno@clisp.org>
63722
63723         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
63724         to the AUTOMAKE_OPTIONS.
63725         Reported by Jim Meyering.
63726
63727 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
63728
63729         Work around bug in Solaris 10 /proc file system:
63730         /proc/self/fd/NNN/.. isn't the parent directory of
63731         the directory whose file descriptor is NNN.  This needs to
63732         be worked around at run time, not compile time, since a
63733         program might be built on Solaris 8, where things work, and
63734         run on Solaris 10.
63735         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
63736         to use the following interface instead:
63737         (OPENAT_BUFFER_SIZE): New macro.
63738         (openat_proc_name): New function.
63739         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
63740         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
63741         Likewise.
63742         * lib/openat-proc.c: New file.
63743         * modules/openat (Files): Add lib/openat-proc.c.
63744         (Depends-on): Add same-inode, stdbool.
63745         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
63746
63747 2006-09-29  Bruno Haible  <bruno@clisp.org>
63748
63749         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
63750         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
63751         argument. Set stdout_closed before testing for ferror, not after.
63752         (fwriteerror, fwriteerror_no_ebadf): New functions.
63753
63754 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63755
63756         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
63757
63758 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
63759
63760         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
63761         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
63762
63763 2006-09-28  Jim Meyering  <jim@meyering.net>
63764
63765         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
63766         Include <unistd.h>.
63767
63768 2006-09-28  Bruno Haible  <bruno@clisp.org>
63769
63770         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
63771         * modules/linkedhash-list (Depends-on): Likewise.
63772         * modules/rbtreehash-list (Depends-on): Likewise.
63773
63774 2006-09-28  Bruno Haible  <bruno@clisp.org>
63775
63776         * lib/strndup.h: Simplify the redefinition of strndup.
63777         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
63778         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
63779
63780 2006-09-28  Bruno Haible  <bruno@clisp.org>
63781
63782         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
63783         * lib/gl_linkedhash_list.c: Likewise.
63784         * lib/gl_rbtreehash_list.c: Likewise.
63785
63786 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
63787
63788         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
63789         getaddrinfo.
63790
63791         * lib/__fpending.h: Don't include <stdio_ext.h> unless
63792         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
63793         it causes <stdio_ext.h> to cause a compile-time error.
63794         Problem reported by Nelson H. F. Beebe.
63795         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
63796         of HAVE_DECL___PENDING.
63797
63798         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
63799         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
63800         declaration.
63801
63802 2006-09-27  Jim Meyering  <jim@meyering.net>
63803
63804         This file could end up with a definition for a function
63805         named __strndup, rather than rpl_strndup on a system with
63806         incomplete weak_alias support.
63807         * lib/strndup.c (strndup): Rename from __strndup.
63808         Remove #defines that used to map __strndup to strndup.
63809         Don't use K&R prototypes.
63810         Remove LIBC-related code, since this file is not sync'd with glibc.
63811         * lib/strndup.h: Revamp, accordingly.
63812         * m4/strndup.m4: Modernize.
63813
63814 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
63815
63816         * modules/savewd (Depends-on): Add 'raise'.
63817         * lib/savewd.c: Include <signal.h>, for 'raise'.
63818
63819 2006-09-26  Jim Meyering  <jim@meyering.net>
63820
63821         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
63822         when we detect Darwin 8.7.0's acl_get_file bug.
63823         Rearrange to perform the new (below) run-test while $LIBS
63824         contains any acl-related library.  Set USE_ACL at the end.
63825         (gl_ACL_GET_FILE): New function.
63826
63827 2006-09-26  Eric Blake  <ebb9@byu.net>
63828
63829         * lib/verror.c: Include <config.h> unconditionally.
63830
63831 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
63832
63833         * modules/clock-time (Maintainer): Add self.
63834         * modules/getlogin_r (Depends-on): Add extensions.
63835
63836 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63837
63838         * modules/clock-time: New module.
63839         * modules/nanosleep (Depends-on): Add clock-time.
63840         * modules/gethrxtime (Depends-on): Likewise.
63841         * modules/gettime (Depends-on): Likewise.
63842         * modules/settime (Depends-on): Likewise.
63843
63844         * modules/fts-lgpl: Depend on openat.
63845         * modules/mkancesdirs: Depend on savewd.
63846         * modules/mkdir-p: Likewise.
63847
63848 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63849
63850         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
63851
63852         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
63853         `gl_have_arbitrary_file_name_length_limit' to
63854         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
63855         actually works between configure runs.
63856
63857 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63858             Bruno Haible  <bruno@clisp.org>
63859
63860         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
63861
63862 2006-09-25  Jim Meyering  <jim@meyering.net>
63863
63864         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
63865         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
63866
63867 2006-09-25  Eric Blake  <ebb9@byu.net>
63868
63869         * gnulib-tool (func_import, func_create_testdir): Fix typos in
63870         exec's in 2006-09-18 patch when shuffling fds.
63871
63872 2006-09-25  Bruno Haible  <bruno@clisp.org>
63873
63874         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
63875         Reported by Jim Meyering.
63876
63877 2006-09-24  Jim Meyering  <jim@meyering.net>
63878
63879         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
63880         compare a pointer against a literal "0".  That caused failures with
63881         at least HP-UX's hpcc.
63882
63883 2006-09-22  Simon Josefsson  <jas@extundo.com>
63884
63885         * modules/gc-sha1:
63886         * modules/gc-md4:
63887         * modules/gc-hmac-sha1:
63888         * modules/gc-hmac-md5:
63889         * modules/gc-des:
63890         * modules/gc-arcfour: Distribute more files.
63891
63892 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63893
63894         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
63895         (gl_linked_iterator_from_to): Initialize struct completely.
63896         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
63897         (gl_tree_iterator_from_to): Likewise
63898         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
63899         * lib/gl_array_list.c [lint] (gl_array_iterator)
63900         (gl_array_iterator_from_to): Likewise.
63901         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
63902         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
63903         (gl_carray_iterator_from_to): Likewise.
63904
63905         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
63906         * lib/md4.c (md4_process_block): Remove unused variable.
63907         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
63908         parentheses for clarity.
63909
63910 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63911
63912         * modules/bison-i18n (Depends-on): Add gettext.
63913
63914 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63915
63916         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
63917         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
63918         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
63919         also add missing comma that caused broken test.
63920         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
63921         stdlib.h, for `abort'.
63922         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
63923         variables.
63924         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
63925         include unistd.h if present, for `rmdir'.
63926         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
63927         variables.
63928         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
63929         in the process include standard headers for prototypes.
63930         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
63931         gets declared on GNU/Linux.
63932         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
63933         unistd.h, for `rmdir'.
63934         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
63935
63936         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
63937         always true.
63938         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
63939
63940         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
63941
63942 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63943
63944         * gnulib-tool (func_version): Create output all at once.  This
63945         may help avoid triggering unnecessary SIGPIPEs, and at any
63946         rate it doesn't hurt.
63947
63948 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63949             Bruno Haible  <bruno@clisp.org>
63950
63951         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
63952         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
63953         * m4/signed.m4 (bh_C_SIGNED): Likewise.
63954
63955         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
63956         (gl_FUNC_VASPRINTF): Invoke it.
63957
63958 2006-09-22  Bruno Haible  <bruno@clisp.org>
63959
63960         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
63961         getloadavg.c as first argument.
63962
63963 2006-09-22  Bruno Haible  <bruno@clisp.org>
63964
63965         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
63966         at the beginning of the gl_INIT macro.
63967         * modules/getloadavg (configure.ac): Pass $gl_source_base to
63968         gl_GETLOADAVG.
63969
63970 2006-09-22  Bruno Haible  <bruno@clisp.org>
63971
63972         * gnulib-tool (func_create_megatestdir): Don't include the config-h
63973         module.
63974         Suggested by Ralf Wildenhues.
63975
63976 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
63977
63978         Import this patch from libc:
63979
63980         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
63981
63982         * lib/regex_internal.c (re_string_reconstruct): Handle
63983         offset < pstr->valid_raw_len && pstr->offsets_needed case.
63984         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
63985         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
63986         re_string_context_at.
63987
63988         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
63989         now requires it.
63990         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
63991         gl_REGEX now does it for us.
63992         (gl_REGEX): Add test taken from
63993         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
63994
63995         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
63996         Check that large offsets work.  Modernize Autoconf usages.
63997         Prefer "yes" to mean a good thing rather than a bad.
63998         Don't put "#define mkstemp" in config.h, as this might interfere
63999         with standard system headers that "#define mkstemp mkstemp64".
64000
64001         * modules/mkstemp (Depends-on): Add extensions, so that
64002         mkstemp is visible on some platforms.
64003         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
64004         (Include): Change to "mkstemp.h" from <stdlib.h>.
64005         (Files): Add mkstemp.h.
64006
64007         * lib/mkstemp.h: New file, since some standard headers
64008         #define mkstemp.
64009         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
64010         Include "mkstemp.h".
64011         Make the _LIBC code resemble glibc original more,
64012         e.g., use K&R style.
64013         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
64014         (mkstemp): Remove, since mkstemp.h does this for us.
64015         * lib/stdlib--.h: Include mkstemp.h.
64016
64017         Import this patch from libc:
64018
64019         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64020
64021         * lib/tempname.c (__gen_tempname): Change attempts_min
64022         into a macro.  Use preprocessor to decide how to initialize
64023         attempts [Coverity CID 67].
64024
64025 2006-09-20  Bruno Haible  <bruno@clisp.org>
64026
64027         * lib/mkdtemp.c: Import from libc.
64028         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64029                 * sysdeps/posix/tempname.c (__gen_tempname): Change
64030                 attempts_min into a macro.  Use preprocessor to decide how to
64031                 initialize attempts [Coverity CID 67].
64032         2001-11-27  Paul Eggert  <eggert@twinsun.com>
64033                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
64034                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
64035
64036 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64037
64038         * gnulib-tool (func_exit): New function, to allow to pass the
64039         exit status portably through the trap.  Use everywhere.
64040         (--help, --version): Signal a write error.
64041         (trap): catch SIGPIPE, for write errors.
64042         Exit at the end of the trap, with the correct exit status.
64043
64044 2006-09-19  Karl Berry  <karl@gnu.org>
64045
64046         * doc/gnulib.texi: note about the license texinfo files.
64047
64048 2006-09-19  Eric Blake  <ebb9@byu.net>
64049
64050         * gnulib-tool: Avoid space-tab.
64051
64052 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64053
64054         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
64055         that prevented coreutils 6.1 from building.  Problem reported
64056         by Petter Reinholdtsen.
64057
64058 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64059
64060         * gnulib-tool (avoidlist): Fix typo that broke options like
64061         --avoid=lock that are used by coreutils bootstrap.
64062
64063 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
64064
64065         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
64066         more systematically.
64067
64068 2006-09-18  Jim Meyering  <jim@meyering.net>
64069
64070         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
64071
64072 2006-09-18  Bruno Haible  <bruno@clisp.org>
64073
64074         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
64075
64076 2006-09-18  Bruno Haible  <bruno@clisp.org>
64077
64078         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
64079         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
64080         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
64081         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
64082         * m4/gettext.m4: Require autoconf >= 2.52.
64083         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
64084         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
64085         of gl_cv_header_inttypes_h.
64086
64087 2006-09-18  Bruno Haible  <bruno@clisp.org>
64088
64089         * lib/javaversion.c: Include configmake.h.
64090
64091 2006-09-18  Bruno Haible  <bruno@clisp.org>
64092
64093         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
64094         avoid that the while loops be executed in a subshell.
64095
64096 2006-09-18  Bruno Haible  <bruno@clisp.org>
64097
64098         * MODULES.html.sh (func_module): Break long lines.
64099         Suggested by Bruce Korb <bkorb@gnu.org>.
64100
64101 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64102
64103         Speed up by a factor of 1.12.
64104         * gnulib-tool (nl): New variable.
64105         (func_import): Rewrite include directive extraction to only read each
64106         directive once.
64107
64108 2006-09-17  Bruno Haible  <bruno@clisp.org>
64109
64110         * modules/javaversion (Makefile.am): Remove DEFS setting.
64111         (Depends-on): Add configmake, for PKGDATADIR definition.
64112
64113 2006-09-17  Bruno Haible  <bruno@clisp.org>
64114
64115         * gnulib-tool (func_create_testdir): Rewrite all files at once.
64116
64117 2006-09-17  Bruno Haible  <bruno@clisp.org>
64118
64119         * gnulib-tool (func_append): New function, stolen from libtool.m4.
64120         (func_modules_transitive_closure, func_modules_add_dummy,
64121         func_modules_to_filelist, func_import, func_create_testdir,
64122         func_create_megatestdir, ...): Use it wherever possible.
64123         Suggested by Ralf Wildenhues.
64124
64125 2006-09-16  Karl Berry  <karl@gnu.org>
64126
64127         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
64128         to avoid sectioning errors.
64129         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
64130         [ifinfo]: blank line after @center-ed titles.
64131         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
64132         Spell FSF address consistently with others.
64133         (These changes approved by rms.)
64134
64135 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64136
64137         Speed up by a factor of 1.61.
64138         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
64139         already checked module names again.
64140
64141 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64142
64143         Speed up by a factor of 1.13.
64144         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
64145         for new_files, and the input to func_add_or_update.
64146
64147 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64148
64149         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
64150         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
64151
64152 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64153
64154         * modules/mkancesdirs (Depends-on): Add fcntl.
64155         * modules/savewd: New file.
64156         * MODULES.html.sh (File system functions): Add savewd.
64157
64158         * modules/configmake (Makefile.am): Add support for the
64159         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
64160
64161 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64162
64163         * m4/savewd.m4: New file.
64164
64165 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64166
64167         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
64168         (dirchownmod): New arg FD.  All callers changed.
64169         Use FD rather than opening the directory ourself, as opening is
64170         now the caller's responsibility.
64171         * lib/dirchownmod.h: Likewise.
64172         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
64173         hosts that require <sys/types.h> before <sys/stat.h>.  Include
64174         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
64175         (test_dir): Remove.
64176         (mkancesdirs): Return length of prefix of FILE that has already
64177         been made, or -2 if there is a child doing the work.  Redo
64178         algorithm so that it is O(N) rather than O(N**2).  Optimize away
64179         ".", and treat ".." specially since it might stray back into
64180         already-created areas.  Use a subprocess if necessary.  New arg
64181         WD; all users changed.  MAKE_DIR function should now return 1
64182         if it creates a directory that is not readable.  Return -2 if
64183         a child process is spun off.
64184         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
64185         Adjust signature to match code.
64186         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
64187         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
64188         all users changed.
64189         * lib/savewd.c, lib/savewd.h: New files.
64190
64191 2006-09-15  Jim Meyering  <jim@meyering.net>
64192
64193         * modules/rename-dest-slash: New module.
64194         * MODULES.html.sh (posix_compat): Add it here.
64195
64196         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
64197
64198 2006-09-15  Jim Meyering  <jim@meyering.net>
64199
64200         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
64201         file.
64202
64203         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
64204
64205 2006-09-15  Jim Meyering  <jim@meyering.net>
64206
64207         * lib/rename-dest-slash.c (has_trailing_slash): Use
64208         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
64209         (rpl_rename_dest_slash): Perform the cheaper trailing slash
64210         test before testing whether SRC is a directory.
64211         Suggestions from Bruno Haible.
64212
64213         Avoid a warning about an unused variable.
64214         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
64215         into the #ifdef block where it's used.
64216
64217         * lib/rename-dest-slash.c: New file.
64218
64219 2006-09-14  Bruno Haible  <bruno@clisp.org>
64220
64221         * lib/allocsa.c: Include <config.h> unconditionally.
64222         * lib/asnprintf.c: Likewise.
64223         * lib/asprintf.c: Likewise.
64224         * lib/c-strcasecmp.c: Likewise.
64225         * lib/c-strcasestr.c: Likewise.
64226         * lib/c-strncasecmp.c: Likewise.
64227         * lib/c-strstr.c: Likewise.
64228         * lib/classpath.c: Likewise.
64229         * lib/clean-temp.c: Likewise.
64230         * lib/concatpath.c: Likewise.
64231         * lib/copy-file.c: Likewise.
64232         * lib/csharpcomp.c: Likewise.
64233         * lib/csharpexec.c: Likewise.
64234         * lib/execute.c: Likewise.
64235         * lib/fatal-signal.c: Likewise.
64236         * lib/findprog.c: Likewise.
64237         * lib/fwriteerror.c: Likewise.
64238         * lib/gl_array_list.c: Likewise.
64239         * lib/gl_array_oset.c: Likewise.
64240         * lib/gl_avltree_list.c: Likewise.
64241         * lib/gl_avltree_oset.c: Likewise.
64242         * lib/gl_avltreehash_list.c: Likewise.
64243         * lib/gl_carray_list.c: Likewise.
64244         * lib/gl_linked_list.c: Likewise.
64245         * lib/gl_linkedhash_list.c: Likewise.
64246         * lib/gl_list.c: Likewise.
64247         * lib/gl_oset.c: Likewise.
64248         * lib/gl_rbtree_list.c: Likewise.
64249         * lib/gl_rbtree_oset.c: Likewise.
64250         * lib/gl_rbtreehash_list.c: Likewise.
64251         * lib/imaxabs.c: Likewise.
64252         * lib/imaxdiv.c: Likewise.
64253         * lib/javacomp.c: Likewise.
64254         * lib/javaexec.c: Likewise.
64255         * lib/javaversion.c: Likewise.
64256         * lib/linebreak.c: Likewise.
64257         * lib/localcharset.c: Likewise.
64258         * lib/lock.c: Likewise.
64259         * lib/mbchar.c: Likewise.
64260         * lib/mbswidth.c: Likewise.
64261         * lib/mkdtemp.c: Likewise.
64262         * lib/pipe.c: Likewise.
64263         * lib/printf-args.c: Likewise.
64264         * lib/printf-parse.c: Likewise.
64265         * lib/progname.c: Likewise.
64266         * lib/progreloc.c: Likewise.
64267         * lib/readlink.c: Likewise.
64268         * lib/sh-quote.c: Likewise.
64269         * lib/stpcpy.c: Likewise.
64270         * lib/stpncpy.c: Likewise.
64271         * lib/strcasecmp.c: Likewise.
64272         * lib/strcasestr.c: Likewise.
64273         * lib/strcspn.c: Likewise.
64274         * lib/striconv.c: Likewise.
64275         * lib/strncasecmp.c: Likewise.
64276         * lib/strnlen1.c: Likewise.
64277         * lib/strstr.c: Likewise.
64278         * lib/strtok_r.c: Likewise.
64279         * lib/tls.c: Likewise.
64280         * lib/tmpdir.c: Likewise.
64281         * lib/unicodeio.c: Likewise.
64282         * lib/unsetenv.c: Likewise.
64283         * lib/vasnprintf.c: Likewise.
64284         * lib/vasprintf.c: Likewise.
64285         * lib/wait-process.c: Likewise.
64286         * lib/xallocsa.c: Likewise.
64287         * lib/xsetenv.c: Likewise.
64288         * lib/xstriconv.c: Likewise.
64289
64290 2006-09-13  Simon Josefsson  <jas@extundo.com>
64291
64292         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
64293         that internally, suggested by Ralf Wildenhues
64294         <Ralf.Wildenhues@gmx.de>.
64295
64296 2006-09-13  Simon Josefsson  <jas@extundo.com>
64297
64298         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
64299         @LIBOBJS@.
64300         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64301
64302 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64303
64304         * lib/_fpending.c: Include <config.h> unconditionally, since we no
64305         longer worry about uses that don't define HAVE_CONFIG_H.
64306         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
64307         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
64308         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
64309         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
64310         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
64311         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
64312         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
64313         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
64314         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
64315         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
64316         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
64317         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
64318         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
64319         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
64320         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
64321         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
64322         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
64323         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
64324         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
64325         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
64326         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
64327         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
64328         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
64329         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
64330         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
64331         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
64332         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
64333         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
64334         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
64335         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
64336         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
64337         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
64338         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
64339         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
64340         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
64341         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
64342         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
64343         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
64344         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
64345         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
64346         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
64347         Likewise.
64348
64349 2006-09-13  Eric Blake  <ebb9@byu.net>
64350
64351         * lib/getopt.c: Fix typo in last commit.
64352
64353 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64354
64355         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
64356         dgettext.
64357
64358 2006-09-12  Jim Meyering  <jim@meyering.net>
64359
64360         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
64361         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
64362         Reported by Nelson H. F. Beebe.
64363
64364 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64365
64366         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
64367         program_invocation_name and program_invocation_short_name are
64368         initialized.
64369         * lib/argp-namefrob.h: Move declarations of program_invocation_name
64370         and program_invocation_short_name to argp.h, so they are visible
64371         to user programs.
64372         * lib/argp.h: Likewise
64373
64374 2006-09-10  Bruno Haible  <bruno@clisp.org>
64375
64376         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64377         m4/inttypes_h.m4, m4/uintmax_t.m4.
64378
64379 2006-09-10  Bruno Haible  <bruno@clisp.org>
64380
64381         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
64382         gl_AC_TYPE_UINTMAX_T.
64383
64384 2006-09-10  Bruno Haible  <bruno@clisp.org>
64385
64386         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
64387
64388 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64389
64390         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
64391         convention.  Text proposed by Bruno Haible.
64392         (struct argp_option): Document the use of N_() wrappers.
64393
64394         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
64395         '\v', and translate the two parts separately, instead of feeding
64396         the whole string to gettext.  This allows to exclude
64397         '\v' from the strings visible to the translator by writing doc
64398         strings as N_("..") "\v" N_("..").
64399
64400 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
64401
64402         * config/srclist.txt: Undo latest change; the bug was fixed.
64403
64404 2006-09-09  Bruno Haible  <bruno@clisp.org>
64405
64406         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
64407         assignments if building a library without libtool.
64408         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
64409         in func_emit_lib_Makefile_am.
64410         (func_import): When building a static library libfoo.a, arrange to
64411         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
64412         (func_create_testdir): Likewise.
64413         * modules/gc (configure.ac, Makefile.am): If building statically,
64414         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
64415         * modules/iconvme (configure.ac, Makefile.am): Likewise.
64416         * modules/striconv (configure.ac, Makefile.am): Likewise.
64417         Based on a suggestion by Ralf Wildenhues.
64418
64419 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64420
64421         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64422         Check for unistd.h too, since Autoconf doesn't assume POSIX.
64423         Also:
64424
64425         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64426         Add year_2050_test to catch glibc bug 2821
64427         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64428
64429         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64430         Prefer #ifdef to #if.
64431
64432         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
64433         Return from 'main' instead of calling 'exit'.
64434
64435 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64436
64437         * lib/mktime.c (guess_time_tm): Fix bug where mktime
64438         returned the maximum time_t value rather than (time_t) -1.
64439         Problem originally reported by William Bardwell
64440         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64441
64442         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64443         Moved to here ...
64444         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64445         ... from here.
64446
64447 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64448
64449         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
64450         2821 is fixed.
64451
64452 2006-09-08  Jim Meyering  <jim@meyering.net>
64453
64454         Don't make generated files read-only.  That would bother too many
64455         people.  However, do retain the ability to work when targets are
64456         read-only: remove the destination and temporary files before writing
64457         them (when generated via sed or echo), or by using the -f option for
64458         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
64459         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64460         * modules/byteswap, modules/configmake, modules/fcntl:
64461         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64462         * modules/localcharset, modules/netinet_in, modules/poll:
64463         * modules/stdbool, modules/stdint, modules/sys_select:
64464         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64465
64466 2006-09-08  Jim Meyering  <jim@meyering.net>
64467
64468         Avoid new build failure on FreeBSD 6.0.
64469         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
64470         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
64471         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
64472
64473 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64474
64475         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
64476
64477 2006-09-07  Jim Meyering  <jim@meyering.net>
64478
64479         Fix global typo in last change: use chmod u-w, not chmod u-x.
64480         Spotted by Paul Eggert and Bruce Korb.
64481         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64482         * modules/byteswap, modules/configmake, modules/fcntl:
64483         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64484         * modules/localcharset, modules/netinet_in, modules/poll:
64485         * modules/stdbool, modules/stdint, modules/sys_select:
64486         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64487
64488 2006-09-06  Jim Meyering  <jim@meyering.net>
64489
64490         Make generated files be read-only.
64491         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
64492         Ensure that each generated file is now read-only.
64493         * modules/argz: Likewise.
64494         * modules/arpa_inet: Likewise.
64495         * modules/byteswap: Likewise.
64496         * modules/configmake: Likewise.
64497         * modules/fcntl: Likewise.
64498         * modules/fnmatch: Likewise.
64499         * modules/getopt: Likewise.
64500         * modules/glob: Likewise.
64501         * modules/inttypes: Likewise.
64502         * modules/netinet_in: Likewise.
64503         * modules/poll: Likewise.
64504         * modules/stdbool: Likewise.
64505         * modules/stdint: Likewise.
64506         * modules/sys_select: Likewise.
64507         * modules/sys_socket: Likewise.
64508         * modules/sys_stat: Likewise.
64509         * modules/sysexits: Likewise.
64510         * modules/localcharset: Same as above, but continue using temporary
64511         file named "t-$@" (why different?) rather than the "$@-t" used
64512         everywhere else.
64513
64514         * modules/sysexits (Makefile.am): Replace literal occurrences
64515         of "sysexit.h" more readable, and more consistent, "$@".
64516
64517 2006-09-06  Bruno Haible  <bruno@clisp.org>
64518
64519         * modules/striconv: New file.
64520         * modules/xstriconv: New file.
64521         * MODULES.html.sh (Internationalization functions): Add striconv,
64522         xstriconv.
64523
64524 2006-09-06  Bruno Haible  <bruno@clisp.org>
64525
64526         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
64527         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
64528         not using libtool correctly.
64529
64530 2006-09-06  Bruno Haible  <bruno@clisp.org>
64531
64532         * lib/striconv.h: New file.
64533         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
64534         iconvstring.c.
64535         * lib/xstriconv.h: New file.
64536         * lib/xstriconv.c: New file.
64537
64538 2006-09-06  Bruno Haible  <bruno@clisp.org>
64539
64540         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64541         lib_..._LDFLAGS.
64542
64543 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64544
64545         * lib/argz_.h: Sync from Libtool.
64546
64547         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
64548                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64549
64550         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
64551
64552 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64553
64554         * modules/trim: New file.
64555
64556 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64557
64558         * lib/trim.h: New file.
64559         * lib/trim.c: New file.
64560
64561 2006-09-05  Bruno Haible  <bruno@clisp.org>
64562
64563         * MODULES.html.sh (String handling): Add trim.
64564
64565 2006-09-04  Karl Berry  <karl@gnu.org>
64566
64567         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
64568         until next release.
64569
64570 2006-09-03  Bruno Haible  <bruno@clisp.org>
64571
64572         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
64573         correctly.
64574
64575 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64576
64577         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
64578         not gl_GETLOADAVG.  Omit unneeded semicolons.
64579         Problems reported by Ralf Wildenhues in
64580         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64581         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
64582         at the end, which is the usual gnulib style.
64583
64584         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
64585         of doing all the work ourselves.
64586         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
64587         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
64588
64589 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64590
64591         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
64592         Problem reported by Ralf Wildenhues in
64593         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64594
64595         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
64596         HAVE_STRUCT_STATFS_F_FSTYPENAME.
64597
64598 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64599
64600         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
64601         yesterday's patch by changing test -n to test -z.
64602
64603 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64604
64605         * modules/getloadavg (Files): Add m4/getloadavg.m4.
64606         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
64607         the former is now obsolescent.
64608
64609         * modules/chdir-long (Depends-on): Add fcntl.
64610
64611 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64612
64613         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
64614         obsolescent, and programs should use gnulib instead.
64615         * m4/getloadavg.m4: New file, with contents taken from Autoconf
64616         but with prefixes changed.
64617
64618 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64619
64620         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
64621         or stdbool.h, because they might not exist while configuring.
64622
64623         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
64624         Don't include unistd.h or limits.h; not needed, since chdir-long.h
64625         does that for us.
64626         (O_DIRECTORY): Remove.
64627
64628 2006-08-31  Eric Blake  <ebb9@byu.net>
64629
64630         * gnulib-tool: Don't let emacs change spaces to TAB.
64631
64632 2006-08-31  Bruno Haible  <bruno@clisp.org>
64633
64634         * gnulib-tool: When calling func_import more than once, do it in a
64635         subshell.
64636         Reported by Eric Blake <ebb9@byu.net>.
64637
64638 2006-08-31  Bruno Haible  <bruno@clisp.org>
64639
64640         * gnulib-tool (nl): Remove variable.
64641         (sed_transform_lib_file): Use more robust test for config-h module.
64642         (func_import): Fix typo in 2006-08-25 patch.
64643
64644 2006-08-31  Bruno Haible  <bruno@clisp.org>
64645
64646         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
64647         specified, augment Makefile.am variables instead of assigning them.
64648
64649 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64650
64651         Work around a bug in both the Linux and SunOS 64-bit kernels:
64652         nanosleep mishandles sleeps for longer than 2**31 seconds.
64653         Problem reported by Frank v Waveren in
64654         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64655         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
64656         Check for nanosleep bug.
64657         (LIB_NANOSLEEP): Append clock_gettime library if needed.
64658
64659 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64660
64661         Work around a bug in both the Linux and SunOS 64-bit kernels:
64662         nanosleep mishandles sleeps for longer than 2**31 seconds.
64663         Problem reported by Frank v Waveren in
64664         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64665         * lib/nanosleep.c (BILLION): New constant.
64666         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
64667         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
64668         implementation.
64669
64670 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64671
64672         * modules/nanosleep (Depends-on): Add gettime.
64673
64674 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64675         and Simon Josefsson  <jas@extundo.com>
64676         and Oskar Liljeblad  <oskar@osk.mine.nu>
64677
64678         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
64679         * gnulib-tool (func_import): New license type 'unmodifiable license
64680         text'.
64681         * modules/fdl: Use it.  Longer description.
64682         * module/gpl, module/lgpl: New files.
64683
64684 2006-08-30  Jim Meyering  <jim@meyering.net>
64685
64686         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
64687         shadowing the parameter.
64688
64689 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64690
64691         Sync from Libtool:
64692
64693         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64694
64695         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
64696         sharing with gnulib.  Report by Eric Blake.
64697
64698 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64699
64700         * modules/isapipe: New file.
64701         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
64702
64703 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64704
64705         * modules/configmake (Makefile.am): Add a comment, and omit
64706         the CONFIGMAKE_ prefix from generated macro names.  Suggested
64707         by Bruno Haible.
64708
64709 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64710
64711         * m4/isapipe.m4: New file.
64712
64713 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64714
64715         * lib/isapipe.c, lib/isapipe.h: New files.
64716
64717 2006-08-29  Jim Meyering  <jim@meyering.net>
64718
64719         * modules/configmake (Makefile.am): Make configmake.h depend on
64720         Makefile.  Otherwise, a stale configmake.h could hang around.
64721
64722 2006-08-29  Eric Blake  <ebb9@byu.net>
64723
64724         * lib/error.c (error_at_line, print_errno_message): Match libc, after
64725         resolution of upstream bug 3044.
64726
64727 2006-08-29  Bruno Haible  <bruno@clisp.org>
64728
64729         * modules/localcharset (Depends-on): Add configmake.
64730         (Makefile.am): Remove setting of LIBDIR through DEFS.
64731
64732 2006-08-29  Bruno Haible  <bruno@clisp.org>
64733
64734         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
64735         defined.
64736
64737 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64738
64739         * modules/fcntl: New file.
64740         * modules/chdir-safer (Depends-on): Add fcntl.
64741         * modules/fts: Likewise.
64742         * modules/mkdir-p: Likewise.
64743
64744         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
64745         This undoes the most recent change, since we're now addressing the
64746         problem in a different way.
64747
64748         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
64749         into output, since the output might be called Makefile.am even
64750         if $makefile_name is something different.
64751         (func_import): Use $makefile_am rather than
64752         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
64753         empty.
64754
64755         * modules/inttypes (Files): Add m4/inttypes-h.m4.
64756
64757 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64758
64759         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
64760         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
64761         recent change to stdint.m4, since we're now addressing the problem in a
64762         different way.
64763
64764 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64765
64766         * m4/fcntl_h.m4: New file.
64767
64768 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64769
64770         * lib/fcntl_.h: New file.
64771         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
64772         the fcntl module.
64773         * lib/dirchownmod.c: Likewise.
64774         * lib/fts.c: Likewise.
64775
64776         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
64777         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
64778         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
64779         just before including <inttypes.h>, to avoid circular inclusion.
64780
64781 2006-08-28  Jim Meyering  <jim@meyering.net>
64782
64783         * doc/visibility.texi: Actually read and correct the grammar of the
64784         sentence affected by yesterday's change.
64785
64786 2006-08-28  Eric Blake  <ebb9@byu.net>
64787
64788         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
64789         needs wrapper.
64790
64791 2006-08-28  Eric Blake  <ebb9@byu.net>
64792
64793         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
64794
64795 2006-08-28  Eric Blake  <ebb9@byu.net>
64796
64797         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
64798
64799 2006-08-28  Bruno Haible  <bruno@clisp.org>
64800
64801         * modules/c-strstr: New file, from GNU gettext.
64802         * MODULES.html.sh (String handling): Add c-strstr.
64803
64804 2006-08-28  Bruno Haible  <bruno@clisp.org>
64805
64806         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
64807         macros.
64808         Reported by Eric Blake.
64809
64810 2006-08-28  Bruno Haible  <bruno@clisp.org>
64811
64812         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
64813         (VASNPRINTF): Return a string of length > INT_MAX without failing.
64814         * lib/vasprintf.c: Include errno.h, limits.h.
64815         (EOVERFLOW): New fallback definition.
64816         (vasprintf): Test here whether the string length is > INT_MAX.
64817         * lib/vsnprintf.c: Include errno.h, limits.h.
64818         (EOVERFLOW): New fallback definition.
64819         (vsnprintf): Fix bug when generated string was too long for the buffer.
64820         Test here whether the string length is > INT_MAX.
64821
64822 2006-08-28  Bruno Haible  <bruno@clisp.org>
64823
64824         * lib/inttypes_.h (SCNX*): Remove definitions.
64825         Reported by Eric Blake.
64826
64827 2006-08-28  Bruno Haible  <bruno@clisp.org>
64828
64829         * lib/c-strstr.h: New file, from GNU gettext.
64830         * lib/c-strstr.c: New file, from GNU gettext.
64831
64832 2006-08-28  Bruno Haible  <bruno@clisp.org>
64833
64834         * gnulib-tool: Reorder some statements.
64835
64836 2006-08-28  Bruno Haible  <bruno@clisp.org>
64837
64838         * gnulib-tool: New option --makefile-name.
64839         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
64840         $makefile_name.
64841         (func_import): Write $makefile_name to the cache file, and read it from
64842         there unless explicitly specified. Use $makefile_name as file name
64843         instead of Makefile.am. Adjust the recommendations accordingly.
64844
64845 2006-08-28  Bruno Haible  <bruno@clisp.org>
64846
64847         * gnulib-tool (func_verify_module): Check against misapplying patch.
64848
64849 2006-08-28  Bruno Haible  <bruno@clisp.org>
64850
64851         * gnulib-tool (func_relativize, func_relconcat): New functions.
64852         Give an error if --local-dir is given with --update.
64853         Remove trailing slashes from $local_gnulib_dir.
64854         (func_import): Store the relativized $local_gnulib_dir in
64855         gnulib-cache.m4, and read it from there if not specified explicitly.
64856
64857 2006-08-28  Bruno Haible  <bruno@clisp.org>
64858
64859         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
64860         is the current directory. Respect also $local_gnulib_dir.
64861
64862 2006-08-28  Bruno Haible  <bruno@clisp.org>
64863             Simon Josefsson  <jas@extundo.com>
64864
64865         BeOS portability.
64866         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
64867
64868 2006-08-27  Jim Meyering  <jim@meyering.net>
64869
64870         * doc/visibility.texi: Remove duplicate word: "pointer".
64871
64872 2006-08-26  Bruno Haible  <bruno@clisp.org>
64873
64874         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
64875         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
64876         (Makefile.am): Create inttypes.h from inttypes_.h.
64877         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
64878
64879         * modules/imaxabs: New file.
64880
64881         * modules/imaxdiv: New file.
64882
64883 2006-08-26  Bruno Haible  <bruno@clisp.org>
64884
64885         * m4/inttypes.m4: New file.
64886         * m4/_inttypes_h.m4: Remove file.
64887         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
64888         PRI_MACROS_BROKEN.
64889         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
64890
64891         * m4/imaxabs.m4: New file.
64892
64893         * m4/imaxdiv.m4: New file.
64894
64895 2006-08-26  Bruno Haible  <bruno@clisp.org>
64896
64897         * lib/inttypes_.h: New file.
64898         * lib/inttypes.h: Remove file.
64899         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
64900
64901         * lib/imaxabs.c: New file.
64902
64903         * lib/imaxdiv.c: New file.
64904
64905 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64906
64907         New config-h module, so that "make" output needn't be cluttered
64908         by -DHAVE_CONFIG_H.
64909         * MODULES.html.sh (Support for building libraries and executables):
64910         Add config-h.
64911         * modules/config-h: New file.
64912         * gnulib-tool (nl, sed_transform_lib_file): New vars.
64913         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
64914         the config-h module is used.
64915
64916         New configmake module, so that "make" output needn't be cluttered
64917         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
64918         * MODULES.html.sh (Support for building libraries and executables):
64919         Add configmake.
64920         * modules/configmake: New file.
64921
64922 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64923
64924         * m4/config-h.m4: New file.
64925
64926 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64927
64928         * config/srclist.txt: Add elisp-comp.
64929
64930 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64931
64932         * MODULES.html.sh (Support for building libraries and executables):
64933         Add elisp-comp.
64934         * build-aux/elisp-comp: New file.
64935         * modules/elisp-comp: New file.
64936
64937 2006-08-24  Bruno Haible  <bruno@clisp.org>
64938
64939         * gnulib-tool (func_create_testdir): Use non-default values of
64940         sourcebase and m4base.
64941
64942 2006-08-24  Bruno Haible  <bruno@clisp.org>
64943
64944         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
64945         HTML structure.
64946
64947 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64948
64949         * modules/openat (Depends-on): Add lchown.
64950
64951 2006-08-23  Bruno Haible  <bruno@clisp.org>
64952
64953         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
64954         of gl_LOCK_EARLY instead of gl_LOCK.
64955
64956 2006-08-23  Bruno Haible  <bruno@clisp.org>
64957
64958         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
64959         on OSF/1 to no.
64960         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
64961
64962 2006-08-23  Bruno Haible  <bruno@clisp.org>
64963
64964         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
64965         as unusable.
64966
64967         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
64968         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
64969         (gl_LOCK): New macro.
64970
64971 2006-08-22  Simon Josefsson  <jas@extundo.com>
64972
64973         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
64974         to md5 module.
64975
64976 2006-08-22  Simon Josefsson  <jas@extundo.com>
64977
64978         * MODULES.html.sh: Add "Support for maintaining and release
64979         projects".
64980
64981         * build-aux/gnupload: New file, from coreutils.
64982
64983 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64984
64985         Avoid the need for AC_LIBSOURCES in m4 macros.
64986         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
64987         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
64988         * modules/check-version (EXTRA_DIST): Add check-version.h.
64989         * modules/crc (EXTRA_DIST): Add crc.h.
64990         * modules/des (EXTRA_DIST): Add des.h.
64991         * modules/gc (EXTRA_DIST): Add gc.h.
64992         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
64993         * modules/getline (EXTRA_DIST): Add getline.h.
64994         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
64995         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
64996         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
64997         * modules/md2 (EXTRA_DIST): Add md2.h.
64998         * modules/md4 (EXTRA_DIST): Add md4.h.
64999         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
65000         * modules/read-file (EXTRA_DIST): Add read-file.h.
65001         * modules/readline (EXTRA_DIST): Add readline.h.
65002         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
65003         rijndael-api-fst.h.
65004
65005 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65006
65007         * m4/rijndael.m4 (gl_ARCFOUR):
65008         * m4/arctwo.m4 (gl_ARCTWO):
65009         * m4/check-version.m4 (gl_CHECK_VERSION):
65010         * m4/crc.m4 (gl_CRC):
65011         * m4/des.m4 (gl_DES):
65012         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
65013         * m4/gc.m4 (gl_GC):
65014         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
65015         * m4/getline.m4 (gl_FUNC_GETLINE):
65016         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
65017         * m4/hmac-md5.m4 (gl_HMAC_MD5):
65018         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
65019         * m4/md2.m4 (gl_MD2):
65020         * m4/md4.m4 (gl_MD4):
65021         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
65022         * m4/read-file.m4 (gl_FUNC_READ_FILE):
65023         * m4/readline.m4 (gl_FUNC_READLINE):
65024         * m4/rijndael.m4 (gl_RIJNDAEL):
65025         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65026         to get the necessary .h files and whatnot.
65027
65028 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65029
65030         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
65031         gnulib rather than the other way around.
65032         * config/srclistvars.sh (COREUTILS): Remove.
65033
65034 2006-08-22  Jim Meyering  <jim@meyering.net>
65035
65036         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
65037
65038         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
65039
65040 2006-08-22  Eric Blake  <ebb9@byu.net>
65041
65042         * modules/regexprops-generic: New file.
65043         * MODULES.html.sh (Support for building documentation): List it.
65044
65045 2006-08-22  Eric Blake  <ebb9@byu.net>
65046
65047         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
65048         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65049         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
65050         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65051
65052 2006-08-22  Bruno Haible  <bruno@clisp.org>
65053
65054         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
65055         and lib_LTLIBRARIES like the other lib_* variables.
65056
65057 2006-08-22  Bruno Haible  <bruno@clisp.org>
65058
65059         * build-aux/x-to-1.in: New file, from GNU gettext.
65060
65061 2006-08-22  Bruno Haible  <bruno@clisp.org>
65062
65063         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
65064         <utmpx.h> exists.
65065
65066 2006-08-22  Bruno Haible  <bruno@clisp.org>
65067
65068         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
65069         <utmpx.h> exists.
65070
65071 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65072
65073         BeOS portability.
65074         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
65075         exist.
65076         Problem reported by Bruno Haible.
65077
65078 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65079
65080         Avoid the need for AC_LIBSOURCES in m4 macros.
65081         * modules/acl (EXTRA_DIST): Add acl.h.
65082         * modules/argmatch (Files): Add m4/argmatch.m4.
65083         (configure.ac): Add gl_ARGMATCH.
65084         (EXTRA_DIST): Renamed from lib_SOURCES, for
65085         consistency with the other modules.  Remove argmatch.c.
65086         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
65087         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
65088         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
65089         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
65090         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
65091         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
65092         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
65093         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
65094         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
65095         * modules/closeout (EXTRA_DIST): Add closeout.h.
65096         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
65097         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
65098         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
65099         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
65100         dirname.h; remove basename.c and stripslash.c.
65101         * modules/exclude (EXTRA_DIST): Add exclude.h.
65102         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
65103         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
65104         * modules/file-type (EXTRA_DIST): Add file-type.h.
65105         * modules/filemode (EXTRA_DIST): Add filemode.h.
65106         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
65107         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65108         * modules/fpending (EXTRA_DIST): Add __fpending.h.
65109         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
65110         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
65111         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
65112         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
65113         * modules/getdate (EXTRA_DIST): Add getdate.c.
65114         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
65115         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
65116         * modules/getpass (EXTRA_DIST): Add getpass.h.
65117         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
65118         * modules/group-member (EXTRA_DIST): Add group-member.h.
65119         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
65120         * modules/hash (EXTRA_DIST): Add hash.h.
65121         * modules/human (EXTRA_DIST): Add human.h.
65122         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
65123         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
65124         * modules/lchown (EXTRA_DIST): Add lchown.h.
65125         * modules/long-options (EXTRA_DIST): Add long-options.h.
65126         * modules/lstat (EXTRA_DIST): Add lstat.h.
65127         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
65128         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
65129         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
65130         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
65131         * modules/memxor (EXTRA_DIST): Add memxor.h.
65132         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
65133         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
65134         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
65135         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
65136         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
65137         * modules/physmem (EXTRA_DIST): Add physmem.h.
65138         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
65139         * modules/posixver (EXTRA_DIST): Add posixver.h.
65140         * modules/quote (EXTRA_DIST): Add quote.h.
65141         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
65142         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
65143         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
65144         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
65145         regex_internal.h regexec.c.
65146         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
65147         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
65148         * modules/same (EXTRA_DIST): Add same.h.
65149         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
65150         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
65151         * modules/savedir (EXTRA_DIST): Add savedir.h.
65152         * modules/sha1 (EXTRA_DIST): Add sha1.h.
65153         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
65154         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
65155         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
65156         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
65157         * modules/strdup (EXTRA_DIST): Add strdup.h.
65158         * modules/strftime (EXTRA_DIST): Add strftime.h.
65159         * modules/strndup (EXTRA_DIST): Add strndup.h.
65160         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
65161         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
65162         * modules/time_r (EXTRA_DIST): Add time_r.h.
65163         * modules/timespec (EXTRA_DIST): Add timespec.h.
65164         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65165         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
65166         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
65167         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
65168         * modules/userspec (EXTRA_DIST): Add userspec.h.
65169         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
65170         * modules/utimens (EXTRA_DIST): Add utimens.h.
65171         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
65172         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
65173         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
65174         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
65175         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
65176         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
65177         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
65178         * modules/yesno (EXTRA_DIST): Add yesno.h.
65179
65180 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65181
65182         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
65183
65184         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
65185         * m4/dev-ino.m4, same-inode.m4: Remove.
65186
65187         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
65188         * m4/acl.m4 (AC_FUNC_ACL):
65189         * m4/backupfile.m4 (gl_BACKUPFILE):
65190         * m4/c-strtod.m4 (gl_C99_STRTOLD):
65191         * m4/canon-host.m4 (gl_CANON_HOST):
65192         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65193         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
65194         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
65195         * m4/cloexec.m4 (gl_CLOEXEC):
65196         * m4/close-stream.m4 (gl_CLOSE_STREAM):
65197         * m4/closeout.m4 (gl_CLOSEOUT):
65198         * m4/dirfd.m4 (gl_FUNC_DIRFD):
65199         * m4/dirname.m4 (gl_DIRNAME):
65200         * m4/exclude.m4 (gl_EXCLUDE):
65201         * m4/exitfail.m4 (gl_EXITFAIL):
65202         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
65203         * m4/file-type.m4 (gl_FILE_TYPE):
65204         * m4/filemode.m4 (gl_FILEMODE):
65205         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
65206         * m4/fpending.m4 (gl_FUNC_FPENDING):
65207         * m4/fprintftime.m4 (gl_FPRINTFTIME):
65208         * m4/fts.m4 (gl_FUNC_FTS):
65209         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
65210         * m4/getdate.m4 (gl_GETDATE):
65211         * m4/gethrxtime.m4 (gl_GETHRXTIME):
65212         * m4/getpagesize.m4 (gl_GETPAGESIZE):
65213         * m4/getpass.m4 (gl_FUNC_GETPASS):
65214         * m4/gettime.m4 (gl_GETTIME):
65215         * m4/getugroups.m4 (gl_GETUGROUPS):
65216         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
65217         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
65218         * m4/hard-locale.m4 (gl_HARD_LOCALE):
65219         * m4/hash.m4 (gl_HASH):
65220         * m4/idcache.m4 (gl_IDCACHE):
65221         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
65222         * m4/lchown.m4 (gl_FUNC_LCHOWN):
65223         * m4/long-options.m4 (gl_LONG_OPTIONS):
65224         * m4/lstat.m4 (gl_FUNC_LSTAT):
65225         * m4/md5.m4 (gl_MD5):
65226         * m4/memcasecmp.m4 (gl_MEMCASECMP):
65227         * m4/memcoll.m4 (gl_MEMCOLL):
65228         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
65229         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
65230         * m4/memxor.m4 (gl_MEMXOR):
65231         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
65232         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
65233         * m4/modechange.m4 (gl_MODECHANGE):
65234         * m4/mountlist.m4 (gl_MOUNTLIST):
65235         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65236         * m4/openat.m4 (gl_FUNC_OPENAT):
65237         * m4/pathmax.m4 (gl_PATHMAX):
65238         * m4/physmem.m4 (gl_PHYSMEM):
65239         * m4/posixtm.m4 (gl_POSIXTM):
65240         * m4/posixver.m4 (gl_POSIXVER):
65241         * m4/quote.m4 (gl_QUOTE):
65242         * m4/quotearg.m4 (gl_QUOTEARG):
65243         * m4/readtokens.m4 (gl_READTOKENS):
65244         * m4/readutmp.m4 (gl_READUTMP):
65245         * m4/regex.m4 (gl_REGEX):
65246         * m4/safe-read.m4 (gl_SAFE_READ):
65247         * m4/safe-write.m4 (gl_SAFE_WRITE):
65248         * m4/same.m4 (gl_SAME):
65249         * m4/save-cwd.m4 (gl_SAVE_CWD):
65250         * m4/savedir.m4 (gl_SAVEDIR):
65251         * m4/settime.m4 (gl_SETTIME):
65252         * m4/sha1.m4 (gl_SHA1):
65253         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
65254         * m4/stat-macros.m4 (gl_STAT_MACROS):
65255         * m4/stat-time.m4 (gl_STAT_TIME):
65256         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
65257         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
65258         * m4/strdup.m4 (gl_FUNC_STRDUP):
65259         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
65260         * m4/strndup.m4 (gl_FUNC_STRNDUP):
65261         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
65262         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
65263         * m4/time_r.m4 (gl_TIME_R):
65264         * m4/timespec.m4 (gl_TIMESPEC):
65265         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
65266         * m4/unlinkdir.m4 (gl_UNLINKDIR):
65267         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
65268         * m4/userspec.m4 (gl_USERSPEC):
65269         * m4/utimecmp.m4 (gl_UTIMECMP):
65270         * m4/utimens.m4 (gl_UTIMENS):
65271         * m4/xalloc.m4 (gl_XALLOC):
65272         * m4/xgetcwd.m4 (gl_XGETCWD):
65273         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
65274         * m4/xreadlink.m4 (gl_XREADLINK):
65275         * m4/xstrtod.m4 (gl_XSTRTOD):
65276         * m4/yesno.m4 (gl_YESNO):
65277         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65278         to get the necessary .h files and whatnot.
65279
65280 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
65281             Bruno Haible  <bruno@clisp.org>
65282
65283         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
65284         /bin/sh understanding of '!' conditional negation.
65285
65286 2006-08-21  Jim Meyering  <jim@meyering.net>
65287
65288         * modules/openat (Depends-on): Really alphabetize.
65289
65290         * modules/acl (Depends-on): Add error and quote.
65291
65292         * check-module (find_included_lib_files): Add at-func.c to the
65293         ok-to-include-more-than-once white list.
65294
65295         * modules/openat (Depends-on): Add lstat.  Alphabetize.
65296
65297 2006-08-21  Bruno Haible  <bruno@clisp.org>
65298
65299         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65300         Emit a pkgdata_DATA variable only if some snippets add contents to it.
65301         Reported by Martin Lambers <marlam@marlam.de>.
65302
65303 2006-08-21  Bruno Haible  <bruno@clisp.org>
65304
65305         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
65306         specify an installation location, don't emit a noinst_LIBRARIES or
65307         noinst_LTLIBRARIES assignment.
65308
65309 2006-08-21  Bruno Haible  <bruno@clisp.org>
65310
65311         BeOS portability.
65312         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
65313         BeOS has mbrtowc() but no <wctype.h>.
65314
65315 2006-08-21  Bruno Haible  <bruno@clisp.org>
65316
65317         BeOS portability.
65318         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
65319         exist.
65320
65321 2006-08-21  Bruno Haible  <bruno@clisp.org>
65322
65323         BeOS portability.
65324         * lib/mbchar.h: Include <wctype.h> only if it exists.
65325
65326 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65327
65328         Remove files that are no longer needed by their respective modules.
65329         * m4/obstack.m4: Remove.
65330         * m4/strerror_r.m4: Remove.
65331         * m4/uint32_t.m4: Remove.
65332         * m4/uintptr_t.m4: Remove.
65333         * m4/ullong_max.m4: Remove.
65334         * m4/xstrtoimax.m4: Remove.
65335         * m4/xstrtoumax.m4: Remove.
65336
65337         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
65338         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
65339         dependencies now capture this.
65340
65341         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
65342         Do not use AC_LIBSOURCES, since gnulib modules now do this.
65343         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
65344         * m4/human.m4 (gl_HUMAN): Likewise.
65345         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
65346         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
65347
65348         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
65349
65350         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
65351         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
65352         stdint.
65353         * m4/human.m4 (gl_HUMAN): Likewise.
65354         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
65355         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
65356         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65357         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65358         * m4/xstrtol (gl_XSTRTOL): Likewise.
65359
65360         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
65361         AC_TYPE_LONG_LONG_INT.
65362         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65363         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
65364         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
65365         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65366
65367         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
65368         on stdbool.
65369
65370         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
65371         (gl_PREREQ_XSTRTOUL): Remove.
65372
65373         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
65374
65375         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
65376         mode.
65377
65378 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65379
65380         Add and change modules to make it easier for coreutils to use
65381         gnulib-tool.
65382         * modules/backupfile (Files): Remove m4/d-ino.m4.
65383         (Depends-on): Add d-ino.
65384         * modules/cycle-check (Depends-on): Add stdint.
65385         (lib_SOURCES): Add cycle-check.h.
65386         * modules/d-ino: New module.
65387         * modules/d-type: New module.
65388         * modules/error (Files): Remove m4/strerror_r.m4.
65389         * modules/filemode (Files): Add m4/st_dm_mode.m4.
65390         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65391         m4/inttypes_h.m4, m4/uintmax_t.m4.
65392         (Depends-on): Add stdint.
65393         (lib_SOURCES): Add fsusage.h.
65394         * modules/getcwd (Files): Remove d-ino.m4.
65395         (Depends-on): Add d-ino.
65396         * modules/getndelim2 (Depends-on): Add stdint.
65397         * modules/glob (Files): Remove m4/d-type.m4.
65398         (Depends-on): Add d-type.
65399         * modules/host-os: New module.
65400         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
65401         m4/inttypes_h.m4, m4/uintmax_t.m4.
65402         * Depends-on: Add stdint.
65403         (lib_SOURCES): Add human.h.
65404         * modules/inttostr (Files): Remove m4/intmax_t.m4,
65405         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
65406         m4/uintmax_t.m4, m4/ulonglong.m4.
65407         (Depends-on): Add stdint.
65408         (EXTRA_DIST): Add inttostr.h.
65409         * modules/lchmod: New module.
65410         * modules/link-follow: New module.
65411         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
65412         (Depends-on): Add lchmod.
65413         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
65414         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
65415         (Depends-on): Add stdint.
65416         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
65417         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
65418         (Depends-on): Add stdint.
65419         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
65420         * modules/perl: New module.
65421         * modules/regex (Depends-on): Add stdint.
65422         * modules/rmdir-errno: New module.
65423         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65424         m4/intmax_t.m4.
65425         (Depends-on): Add stdint.
65426         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65427         m4/uintmax_t.m4.
65428         (Depends-on): Add stdint.
65429         * modules/unlink-busy: New module.
65430         * modules/utimecmp (Depends-on): Add stdint.
65431         * modules/uptime: New module.
65432         * modules/winsz-ioctl: New module.
65433         * modules/winsz-termios: New module.
65434         * modules/xnanosleep (Depends-on): Add nanosleep.
65435         * modules/ullong_max: Remove.
65436         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
65437         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
65438         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
65439         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
65440         (Depends-on): Add inttypes.
65441         (lib_SOURCES): Add xstrtol.h.
65442         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
65443         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
65444         * MODULES.html.sh: Move 'assert' into the assert section.
65445         Move 'dummy' into the linking section.
65446         Remove ullong_max.
65447         Add section for compatibility checks for POSIX:2001 functions,
65448         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
65449         winsz-ioctl, and winsz-termios into it.
65450         Add lchmod.
65451         Add top-level Misc section and put host-os, perl, and uptime
65452         into it.
65453
65454 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65455
65456         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
65457         now assume the stdint module.  Do not include inttypes.h.
65458         * lib/fsusage.h: Likewise.
65459         * lib/getndelim2.c: Likewise.
65460         * lib/human.h: Likewise.
65461         * lib/inttostr.h: Likewise.
65462         * lib/obstack.c: Likewise.
65463         * lib/regex_internal.h: Likewise.
65464         * lib/tempname.c: Likewise.
65465         * lib/utimecmp.c: Likewise.
65466         * lib/xstrtol.h: Likewise.
65467
65468         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
65469
65470         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
65471         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
65472         * lib/xtime.h: Likewise.
65473
65474 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65475
65476         * modules/openat (Files): Add lib/fchmodat.c.
65477         Fixes problem reported by Jay Youngman.
65478
65479 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65480
65481         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
65482         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
65483
65484 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
65485             Bruno Haible  <bruno@clisp.org>
65486
65487         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
65488         and is a script that invokes bison. Tighten the code. Add comments.
65489
65490 2006-08-18  Jim Meyering  <jim@meyering.net>
65491
65492         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
65493         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
65494         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
65495         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
65496
65497 2006-08-18  Bruno Haible  <bruno@clisp.org>
65498
65499         * modules/bison-i18n: New file.
65500         * MODULES.html.sh (Internationalization functions): Add it.
65501
65502 2006-08-18  Bruno Haible  <bruno@clisp.org>
65503
65504         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
65505         sys/statvfs.h. When getmntinfo was found, check its declaration and
65506         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
65507
65508 2006-08-18  Bruno Haible  <bruno@clisp.org>
65509
65510         * m4/bison-i18n.m4: New file, from bison.
65511
65512 2006-08-18  Bruno Haible  <bruno@clisp.org>
65513
65514         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
65515         (ME_DUMMY): Treat "kernfs" as a dummy.
65516         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
65517
65518 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65519
65520         Update from coreutils.
65521
65522         2006-08-15  Jim Meyering  <jim@meyering.net>
65523
65524         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
65525
65526         2006-01-17  Jim Meyering  <jim@meyering.net>
65527
65528         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
65529
65530         2006-01-11  Jim Meyering  <jim@meyering.net>
65531
65532         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
65533         Check for the lchmod function.
65534
65535 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65536
65537         Update from coreutils.
65538
65539         * lib/__fpending.h: Add copyright notice.
65540         * lib/fprintftime.h: Likewise.
65541         * lib/savedir.c: Use (C) in copyright notice.
65542         * lib/savedir.h: Likewise.
65543
65544         2006-08-15  Jim Meyering  <jim@meyering.net>
65545
65546         * lib/at-func.c: New file, with the logic of all emulated at-functions.
65547         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
65548         in support of the EXPECTED_ERRNO macro.
65549         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
65550         definitions.  Instead, define the appropriate symbols and include
65551         "at-func.c".
65552         * lib/mkdirat.c (mkdirat): Likewise.
65553         * lib/fchmodat.c (fchmodat): Likewise.
65554         (ENOSYS): Remove definition.
65555         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
65556         it.  Don't include "unistd--.h" -- it wasn't ever used.
65557
65558         2006-01-17  Jim Meyering  <jim@meyering.net>
65559
65560         Rewrite fts.c not to change the current working directory,
65561         by using openat, fstatat, fdopendir, etc..
65562
65563         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
65564         (HAVE_OPENAT_SUPPORT): Define.
65565         [_LIBC] (fchdir): Don't undef or define; no longer used.
65566         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
65567         Now, this `function' always succeeds, and consumes its file descriptor
65568         parameter -- so callers must not close such FDs.  Update callers.
65569         (diropen_fd, opendirat, cwd_advance_fd): New functions.
65570         (diropen): Add parameter, SP.  Adjust all callers.
65571         Implement using diropen_fd, rather than open.
65572         (fts_open): Initialize new member, fts_cwd_fd.
65573         Remove fts_rft-setting code.
65574         (fts_close): Close fts_cwd_fd, if necessary.
65575         (__opendir2): Define in terms of opendir or opendirat,
65576         depending on whether the FST_NOCHDIR flag is set.
65577         (fts_build): Since fts_safe_changedir consumes its FD, and since
65578         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
65579         and close the dup'd file descriptor upon failure.
65580         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
65581         (fts_safe_changedir): Tweak semantics to reflect that this function
65582         now calls cwd_advance_fd and hence consumes its FD argument.
65583         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
65584         [struct FTS] (fts_rft): Remove now-unused member.
65585         [struct FTS] (fts_cycle.state): Improve comment.
65586
65587         * lib/openat.c (openat_needs_fchdir): New function.
65588         * lib/openat.h (openat_needs_fchdir): Declare it.
65589
65590 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65591
65592         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
65593         Problem and fix reported by Pádraig Brady in
65594         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
65595
65596 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65597
65598         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
65599
65600 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65601
65602         * lib/memcoll.c (memcoll): Optimize for the common case where the
65603         arguments are bytewise equal.
65604
65605 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65606
65607         * doc/regexprops-generic.texi: Add a copyright notice.
65608
65609 2006-08-15  Bruno Haible  <bruno@clisp.org>
65610
65611         * modules/tmpdir (License): Change to LGPL.
65612
65613 2006-08-15  Bruno Haible  <bruno@clisp.org>
65614
65615         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
65616         module.
65617
65618 2006-08-14  Simon Josefsson  <jas@extundo.com>
65619
65620         * config/srclist.txt: Add gnupload.
65621
65622 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65623
65624         Change copyright notice from LGPL 2 to GPL 2, since that's the
65625         standard form used in the gnulib repository.
65626         * tests/test-lock.c: Likewise.
65627         * tests/test-stdint.c: Likewise.
65628         * tests/test-tls.c: Likewise.
65629
65630         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
65631         prelude-manager.  User shorter URLs for GNU projects, without '?'.
65632         Add copyright notice.
65633
65634         * check-module: Add copyright notice.  Output a copyright
65635         notice if "--version" is specified.
65636         * modules/COPYING: New file.
65637         * tests/test-getaddrinfo.c: Add copyright notice.
65638         * tests/test-verify.c: Likewise.
65639
65640 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65641
65642         Change copyright notice from LGPL 2 to GPL 2, since that's the
65643         standard form used in the gnulib repository.
65644         * lib/lock.c: LGPL -> GPL.
65645         * lib/lock.h: Likewise.
65646         * lib/strnlen1.c: Likewise.
65647         * lib/strnlen1.h: Likewise.
65648         * lib/tls.c: Likewise.
65649         * lib/tls.h: Likewise.
65650         * lib/tmpdir.c: Likewise.
65651
65652         * lib/TODO: Remove; this belongs only in coreutils.
65653
65654 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65655
65656         Add copyright notices to long-enough files that lack them, since
65657         otherwise the files aren't clearly free.  Use the same notice that
65658         getdate.texi already uses.
65659         * doc/alloca-opt.texi: Add copyright notice.
65660         * doc/alloca.texi: Likewise.
65661         * doc/ctime.texi: Likewise.
65662         * doc/functions.texi: Likewise.
65663         * doc/gcd.texi: Likewise.
65664         * doc/gnulib-tool.texi: Likewise.
65665         * doc/inet_ntoa.texi: Likewise.
65666         * doc/visibility.texi: Likewise.
65667
65668         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
65669         * doc/quote.texi: Add copyright notice.
65670
65671         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
65672         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
65673         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
65674         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
65675         is now obsolete, and give a pointer to the Sun list.
65676         Add copyright notice.
65677
65678 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65679
65680         * config/srclistvars.sh: Add copyright notice.
65681
65682 2006-08-14  Eric Blake  <ebb9@byu.net>
65683
65684         Import the following change from libc:
65685
65686         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
65687
65688         Upstream bug 2997.
65689         * lib/misc/error.c: Add space between program name and message if file
65690         name is missing.
65691
65692 2006-08-12  Karl Berry  <karl@gnu.org>
65693
65694         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
65695         remove, these originate in gnulib now.
65696
65697 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65698
65699         * doc/Makefile (standards.info standards.html standards.dvi):
65700         Also depend on make-stds.texi.
65701
65702 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65703
65704         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
65705         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
65706
65707         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
65708         in wchar_t.  Problem reported by Eric Blake.
65709
65710         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
65711         LEN is smaller than SIZE.  Suggested by Bruno Haible.
65712         Also, help the compiler to keep LEN in a register.
65713
65714 2006-08-11  Eric Blake  <ebb9@byu.net>
65715
65716         * users.txt: Sort.  Add tar.
65717
65718 2006-08-11  Bruno Haible  <bruno@clisp.org>
65719
65720         * users.txt: New file.
65721
65722 2006-08-11  Bruno Haible  <bruno@clisp.org>
65723
65724         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
65725         before <wchar.h>. Needed for OSF/1 and BSD/OS.
65726
65727 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65728
65729         * modules/snprintf (Depends-on): Remove minmax.
65730         (Maintainer): Add self and Bruno.
65731
65732 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65733
65734         * lib/.cppi-disable: Add snprintf.h, socket_.h.
65735         * lib/snprintf.c: Include <errno.h> and <limits.h>.
65736         (EOVERFLOW): Define if the system does not.
65737         Do not include "minmax.h"; it wasn't used.
65738         (snprintf): Don't assume size_t promotes to an unsigned type.
65739         Fix bug when generated string was too long for the buffer: the
65740         buffer's contents are supposed to be the initial prefix of the
65741         output.  Don't assume vasnprintf returns EOVERFLOW if the size
65742         exceeds INT_MAX; do the check ourselves.
65743
65744         Import the following changes from libc:
65745
65746         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
65747
65748         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
65749         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
65750         set wc to the byte which couldn't be converted.
65751         (re_string_reconstruct): Don't clear valid_raw_len before calling
65752         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
65753         tip_context using re_string_context_at.
65754
65755         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
65756
65757         * lib/posix/regex.h: g++ still cannot handled [restrict].
65758
65759         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
65760
65761         * lib/posix/regex.h: Remove special handling for VMS.
65762
65763 2006-08-10  Jim Meyering  <jim@meyering.net>
65764
65765         * modules/same-inode: New module.
65766         * modules/dev-ino: New module.
65767         * modules/cycle-check: Depend on these modules, rather than simply
65768         including their .h files.
65769         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
65770         required via m4/cycle-check.m4.
65771         * modules/same: Depend on new same-inode module, rather than
65772         including same-inode.h.
65773         * modules/chdir-safer: New file.
65774
65775         * modules/chown (Depends-on): Add stat-macros.
65776
65777 2006-08-10  Jim Meyering  <jim@meyering.net>
65778
65779         * m4/cycle-check.m4: New file.
65780         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
65781         * m4/dev-ino.m4, m4/same-inode.m4: New files.
65782
65783 2006-08-10  Eric Blake  <ebb9@byu.net>
65784
65785         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
65786         in from original proposal.
65787
65788 2006-08-10  Eric Blake  <ebb9@byu.net>
65789         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65790
65791         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
65792         namespace.
65793
65794 2006-08-10  Bruno Haible  <bruno@clisp.org>
65795
65796         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
65797         as well.
65798
65799 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65800
65801         Sync from coreutils.
65802
65803         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
65804
65805         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
65806         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
65807
65808 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65809
65810         * modules/restrict: Remove; no longer needed now that we assume
65811         Autoconf 2.59 or later.
65812         * MODULES.html.sh: Remove 'restrict'.
65813         * modules/argp (Depends-on): Remove 'restrict'.
65814         * modules/base64 (Depends-on): Likewise.
65815         * modules/gc (Depends-on): Likewise.
65816         * modules/getaddrinfo (Depends-on): Likewise.
65817         * modules/glob (Depends-on): Likewise.
65818         * modules/inet_ntop (Depends-on): Likewise.
65819         * modules/inet_pton (Depends-on): Likewise.
65820         * modules/memxor (Depends-on): Likewise.
65821         * modules/regex (Depends-on): Likewise.
65822         * modules/strtok_r (Depends-on): Likewise.
65823         * modules/time_r (Depends-on): Likewise.
65824
65825 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65826
65827         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
65828         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
65829         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65830         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
65831         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
65832         * m4/memxor.m4 (gl_MEMXOR): Likewise.
65833         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
65834         gl_C_RESTRICT replaced by AC_C_RESTRICT.
65835
65836         Merge from coreutils.
65837         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
65838         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
65839         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65840         * m4/time_r.m4 (gl_TIME_R): Likewise.
65841
65842 2006-08-09  Karl Berry  <karl@gnu.org>
65843
65844         * config/srclist.txt: no more gettext-tools, per Bruno.
65845
65846 2006-08-08  Eric Blake  <ebb9@byu.net>
65847
65848         * modules/verror: New module.
65849         * MODULES.html.sh: Document it.
65850
65851 2006-08-08  Eric Blake  <ebb9@byu.net>
65852
65853         * lib/verror.h, lib/verror.c: New files.
65854
65855 2006-08-08  Eric Blake  <ebb9@byu.net>
65856
65857         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
65858         verror_at_line output complies with GNU Coding Standards even when
65859         file is NULL.
65860
65861 2006-08-07  Bruno Haible  <bruno@clisp.org>
65862
65863         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
65864         versions of AIX.
65865         Reported by Ralf Wildenhues.
65866
65867 2006-08-07  Bruno Haible  <bruno@clisp.org>
65868
65869         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
65870         in an AC_DEFUN. Needed so that the autoconf snippets can use
65871         AC_REQUIRE.
65872
65873 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65874
65875         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65876         Initialize pkgdata_DATA.
65877         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
65878         overriding it.
65879
65880 2006-08-06  Eric Blake  <ebb9@byu.net>
65881
65882         * lib/error.h: Fold in some upstream changes from glibc.
65883         * lib/error.c: Likewise.
65884
65885 2006-08-04  Bruno Haible  <bruno@clisp.org>
65886
65887         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65888         Make the mostlyclean-local rule depend on mostlyclean-generic.
65889         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
65890
65891 2006-07-31  Bruno Haible  <bruno@clisp.org>
65892
65893         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
65894         <stdlib.h>, <string.h>.
65895
65896 2006-07-30  Bruno Haible  <bruno@clisp.org>
65897
65898         * modules/readlink (License): Change to LGPL.
65899
65900 2006-07-30  Bruno Haible  <bruno@clisp.org>
65901
65902         * modules/javaversion (Makefile.am): Distribute javaversion.java and
65903         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
65904         set PKGDATADIR to point to it.
65905
65906 2006-07-30  Bruno Haible  <bruno@clisp.org>
65907
65908         * modules/csharpexec (configure.ac): Comment out macro invocation.
65909         * modules/javaexec (configure.ac): Likewise.
65910         * modules/javacomp-script (configure.ac): Likewise.
65911
65912         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
65913
65914 2006-07-30  Bruno Haible  <bruno@clisp.org>
65915
65916         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
65917         linked-list.
65918
65919 2006-07-30  Bruno Haible  <bruno@clisp.org>
65920
65921         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
65922
65923 2006-07-30  Bruno Haible  <bruno@clisp.org>
65924
65925         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65926         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
65927         get removed.
65928
65929 2006-07-29  Bruno Haible  <bruno@clisp.org>
65930
65931         Make it possible for gnulib-tool to work with locally modified or
65932         augmented gnulib repositories.
65933         * gnulib-tool (func_usage): Document --local-dir option.
65934         (local_gnulib_dir): New variable.
65935         Handle --local-dir option.
65936         (func_lookup_file): New function.
65937         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
65938         (func_get_description, func_get_filelist, func_get_description,
65939         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
65940         func_get_automake_snippet, func_get_include_directive,
65941         func_get_license, func_get_maintainer): Use func_lookup_file.
65942         (func_import, func_create_testdir): Use func_lookup_file.
65943
65944 2006-07-29  Bruno Haible  <bruno@clisp.org>
65945
65946         * modules/setenv (Depends-on): Add unistd.
65947
65948 2006-07-29  Bruno Haible  <bruno@clisp.org>
65949
65950         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
65951
65952 2006-07-29  Bruno Haible  <bruno@clisp.org>
65953
65954         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
65955
65956 2006-07-29  Bruno Haible  <bruno@clisp.org>
65957
65958         * gnulib-tool (import, update): If there is no Makefile.am, look at
65959         aclocal.m4, instead of bailing out.
65960
65961 2006-07-29  Bruno Haible  <bruno@clisp.org>
65962
65963         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
65964         Categorize the options by when they are useful.
65965
65966 2006-07-29  Bruno Haible  <bruno@clisp.org>
65967
65968         * gnulib-tool (func_usage): Document option --no-libtool.
65969         Handle option --no-libtool.
65970         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
65971         for changed semantics of $libtool variable.
65972         (func_import): Likewise. If libtool is not used, show this through
65973         an option --no-libtool.
65974         (func_create_testdir): Update.
65975
65976 2006-07-29  Bruno Haible  <bruno@clisp.org>
65977
65978         * gnulib-tool (func_import): Extend error message about missing
65979         --doc-base.
65980
65981 2006-07-29  Bruno Haible  <bruno@clisp.org>
65982
65983         * gnulib-tool (func_import): Don't create the $docbase directory if
65984         there is no file to store there.
65985
65986 2006-07-29  Bruno Haible  <bruno@clisp.org>
65987
65988         * gnulib-tool (autoconf_minversion): If a --dir option is given and
65989         relevant, look for configure.ac there, not in the current directory.
65990         Also use a simple search for AC_PREREQ, not "autoconf --trace".
65991
65992 2006-07-29  Bruno Haible  <bruno@clisp.org>
65993
65994         * gnulib-tool (SORT): New variable.
65995         (func_usage): Undocument --assume-autoconf option.
65996         Remove --assume-autoconf option handling.
65997         (autoconf_minversion): Determine from the contents of configure.ac.
65998         (func_import): Remove autoconf_minversion handling.
65999         Suggested by Eric Blake.
66000
66001 2006-07-29  Bruno Haible  <bruno@clisp.org>
66002
66003         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
66004
66005 2006-07-29  Bruno Haible  <bruno@clisp.org>
66006
66007         * config/srclist.txt (*setenv.[ch]): Remove rules.
66008
66009 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66010
66011         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
66012
66013 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66014
66015         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
66016         arpa/inet.h.
66017
66018 2006-07-28  Simon Josefsson  <jas@extundo.com>
66019
66020         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
66021         * modules/inet_pton (Depends-on): Likewise.
66022
66023 2006-07-28  Simon Josefsson  <jas@extundo.com>
66024
66025         * m4/netinet_in_h.m4: New file.
66026
66027 2006-07-28  Simon Josefsson  <jas@extundo.com>
66028
66029         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
66030         #include's.
66031
66032 2006-07-28  Simon Josefsson  <jas@extundo.com>
66033
66034         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
66035         #include's.
66036
66037 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
66038
66039         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
66040         setgid on directories only if they set these bits.
66041         * lib/modechange.h: Remove obsolete comment about masks.
66042
66043 2006-07-28  Eric Blake  <ebb9@byu.net>
66044
66045         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
66046         macro expansion.
66047
66048 2006-07-28  Bruno Haible  <bruno@clisp.org>
66049
66050         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
66051
66052 2006-07-28  Bruno Haible  <bruno@clisp.org>
66053
66054         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
66055
66056 2006-07-28  Bruno Haible  <bruno@clisp.org>
66057
66058         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
66059         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
66060         Define fallbacks.
66061         Avoids link error on FreeBSD 4.x.
66062         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66063
66064         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
66065         encoding.
66066         * lib/mbswidth.c (iswcntrl): Likewise.
66067
66068 2006-07-27  Bruno Haible  <bruno@clisp.org>
66069
66070         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
66071         test.
66072
66073 2006-07-27  Bruno Haible  <bruno@clisp.org>
66074
66075         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
66076         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
66077         defined.
66078
66079 2006-07-26  Eric Blake  <ebb9@byu.net>
66080
66081         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
66082
66083 2006-07-26  Eric Blake  <ebb9@byu.net>
66084
66085         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
66086         like mingw that lack mkstemp.
66087         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
66088         avoid compilation warning on mingw.
66089
66090 2006-07-26  Bruno Haible  <bruno@clisp.org>
66091
66092         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
66093         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
66094         INT_FAST*_MIN, INTPTR_MIN.
66095
66096 2006-07-25  Bruno Haible  <bruno@clisp.org>
66097
66098         * modules/version-etc (Depends-on): Add stdarg.
66099
66100 2006-07-25  Bruno Haible  <bruno@clisp.org>
66101
66102         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
66103         complex commands.
66104
66105 2006-07-25  Bruno Haible  <bruno@clisp.org>
66106
66107         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
66108         defined in <stdarg.h> or config.h.
66109
66110 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66111
66112         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
66113         (gl_STDIO_SAFER): Remove.
66114
66115 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66116
66117         * MODULES.html.sh (File stream based Input/Output):
66118         Add fopen-safer, tmpfile-safer; remove stdio-safer.
66119         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
66120         * modules/fopen-safer, modules/tmpfile-safer: New files.
66121         * modules/stdio-safer: Remove.
66122
66123 2006-07-24  Bruno Haible  <bruno@clisp.org>
66124
66125         * modules/tmpdir: New file.
66126         * MODULES.html.sh (File system functions): Add it.
66127
66128 2006-07-24  Bruno Haible  <bruno@clisp.org>
66129
66130         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
66131         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
66132
66133 2006-07-24  Bruno Haible  <bruno@clisp.org>
66134
66135         * modules/clean-temp: New file.
66136
66137 2006-07-24  Bruno Haible  <bruno@clisp.org>
66138
66139         * m4/tmpdir.m4: New file, from GNU gettext.
66140
66141 2006-07-24  Bruno Haible  <bruno@clisp.org>
66142
66143         * lib/tmpdir.h: New file, from GNU gettext.
66144         * lib/tmpdir.c: New file, from GNU gettext.
66145
66146 2006-07-24  Bruno Haible  <bruno@clisp.org>
66147
66148         * lib/clean-temp.h: New file, from GNU gettext.
66149         * lib/clean-temp.c: New file, from GNU gettext.
66150
66151 2006-07-23  Eric Blake  <ebb9@byu.net>
66152
66153         * modules/stdio-safer (Files): Add tmpfile-safer.c.
66154         (Depends-on): Add binary-io.
66155
66156 2006-07-23  Eric Blake  <ebb9@byu.net>
66157
66158         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
66159
66160 2006-07-23  Eric Blake  <ebb9@byu.net>
66161
66162         * lib/tmpfile-safer.c: New file.
66163         * lib/stdio-safer.h (fopen_safer): Add prototype.
66164         * lib/stdio--.h (tmpfile): Make safer.
66165
66166 2006-07-23  Bruno Haible  <bruno@clisp.org>
66167
66168         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
66169         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
66170         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
66171         gl_linked_remove_at): Use it.
66172
66173 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66174         and Simon Josefsson <jas@extundo.com>
66175
66176         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
66177
66178         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
66179
66180 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66181
66182         * modules/close-stream: New file.
66183         * modules/closeout (Description): Make it clear that it exits
66184         with a diagnostic on error.
66185         (Depends-on): Add close-stream.  Remove fpending, stdbool.
66186         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
66187
66188 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66189
66190         * m4/close-stream.m4: New file.
66191
66192 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66193
66194         * lib/close-stream.c, lib/close-stream.h: New files.
66195
66196 2006-07-22  Bruno Haible  <bruno@clisp.org>
66197
66198         Merge from GNU gettext 0.15.
66199
66200         2006-05-01  Bruno Haible  <bruno@clisp.org>
66201
66202                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
66203
66204         2006-07-22  Bruno Haible  <bruno@clisp.org>
66205
66206                 * modules/javaversion: New file.
66207                 * MODULES.html.sh (Java): Add javaversion.
66208
66209         2006-03-12  Bruno Haible  <bruno@clisp.org>
66210
66211                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
66212
66213         2005-12-04  Bruno Haible  <bruno@clisp.org>
66214
66215                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
66216                 (untested).
66217
66218         2006-06-21  Bruno Haible  <bruno@clisp.org>
66219
66220                 Avoid warnings from recent versions of mcs.
66221                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
66222                 -o, -L, -r any more. Use options documented since mcs-1.0
66223                 instead. Similarly for -g.
66224
66225         2005-12-04  Bruno Haible  <bruno@clisp.org>
66226
66227                 * build-aux/csharpcomp.sh.in: Suffix for resources is
66228                 .resources, not .resource.
66229
66230         2005-07-09  Bruno Haible  <bruno@clisp.org>
66231
66232                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
66233                 add a .dll suffix.
66234                 Reported by Mark Junker <mjscod@gmx.de>.
66235
66236         2006-07-22  Bruno Haible  <bruno@clisp.org>
66237
66238                 * modules/gettext: Upgrade to gettext-0.15.
66239                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
66240                 m4/visibility.m4.
66241                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
66242
66243 2006-07-22  Bruno Haible  <bruno@clisp.org>
66244
66245         Merge from GNU gettext 0.15.
66246
66247         2006-03-25  Bruno Haible  <bruno@clisp.org>
66248
66249                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
66250
66251         2006-07-21  Bruno Haible  <bruno@clisp.org>
66252
66253                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
66254                 "1.1".
66255
66256         2006-05-09  Bruno Haible  <bruno@clisp.org>
66257
66258                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
66259                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
66260                 for the conftestver execution.
66261
66262         2006-05-01  Bruno Haible  <bruno@clisp.org>
66263
66264                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
66265                 optional target-version argument. Verify that the compiler
66266                 groks source of the specified source-version, or add -source
66267                 option as necessary. Verify that the compiler produces
66268                 bytecode in the specified target-version, or add -target and
66269                 -source options as necessary. Make the result of the test
66270                 available as variable CONF_JAVAC. Also log error output in
66271                 config.log.
66272
66273         2006-03-11  Bruno Haible  <bruno@clisp.org>
66274
66275                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
66276
66277         2006-05-09  Bruno Haible  <bruno@clisp.org>
66278
66279                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
66280                 CLASSPATH_SEPARATOR to a semicolon.
66281
66282         2006-03-12  Bruno Haible  <bruno@clisp.org>
66283
66284                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
66285                 available as variable CONF_JAVA, for subsequent autoconf
66286                 tests. Also log error output in config.log.
66287
66288         2006-07-19  Bruno Haible  <bruno@clisp.org>
66289
66290                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
66291                 that getline works on glibc2 systems. Needed to avoid trouble
66292                 in relocatable.c.
66293                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
66294
66295         2005-12-04  Bruno Haible  <bruno@clisp.org>
66296
66297                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
66298                 launcher (untested).
66299
66300         2005-12-04  Bruno Haible  <bruno@clisp.org>
66301
66302                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
66303
66304         2006-07-22  Bruno Haible  <bruno@clisp.org>
66305
66306                 * gettext.m4: Update from GNU gettext-0.15.
66307                 * nls.m4: Likewise.
66308                 * po.m4: Likewise.
66309                 * inttypes-pri.m4: Likewise.
66310                 * inttypes-h.m4: Renamed from inttypes.m4.
66311                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
66312
66313 2006-07-22  Bruno Haible  <bruno@clisp.org>
66314
66315         Merge from GNU gettext 0.15.
66316
66317         2005-07-05  Bruno Haible  <bruno@clisp.org>
66318
66319                 * printf-args.c (printf_fetchargs): Work around broken
66320                 definition of wint_t on mingw.
66321
66322         2005-02-12  Bruno Haible  <bruno@clisp.org>
66323
66324                 * xallocsa.h: Add extern "C" for C++.
66325
66326         2006-05-17  Bruno Haible  <bruno@clisp.org>
66327
66328                 Cygwin portability.
66329                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
66330
66331         2006-04-30  Bruno Haible  <bruno@clisp.org>
66332
66333                 * progreloc.c: Include <mach-o/dyld.h> if available.
66334                 (find_executable): Use _NSGetExecutablePath when possible.
66335
66336         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66337
66338                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
66339                 function.
66340
66341         2005-12-29  Bruno Haible  <bruno@clisp.org>
66342
66343                 * progreloc.c (set_program_name_and_installdir): Fix
66344                 compilation error.
66345
66346         2005-12-04  Bruno Haible  <bruno@clisp.org>
66347
66348                 Cygwin portability.
66349                 * progreloc.c: Include <windows.h> also on Cygwin.
66350                 (find_executable): Add support for Cygwin.
66351                 (set_program_name_and_installdir): Handle also platforms with
66352                 nonempty EXEEXT.
66353
66354         2006-07-11  Bruno Haible  <bruno@clisp.org>
66355
66356                 * javacomp.c: Fix a comment.
66357                 Reported by Jim Meyering.
66358
66359         2006-04-30  Bruno Haible  <bruno@clisp.org>
66360
66361                 * javacomp.h (compile_java_class): Add source_version,
66362                 target_version arguments.
66363                 * javacomp.c: Rewritten to choose only a compiler that
66364                 respects the specified source_version and target_version.
66365
66366         2006-06-27  Bruno Haible  <bruno@clisp.org>
66367
66368                 Assume correct S_ISDIR macro.
66369                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
66370
66371         2006-07-22  Bruno Haible  <bruno@clisp.org>
66372
66373                 * javaversion.h: New file, from GNU gettext.
66374                 * javaversion.c: New file, from GNU gettext.
66375                 * javaversion.java: New file, from GNU gettext.
66376                 * javaversion.class: New file, from GNU gettext.
66377
66378         2006-05-17  Bruno Haible  <bruno@clisp.org>
66379
66380                 Cygwin portability.
66381                 * javaexec.c (execute_java_class): Test for jview program
66382                 also on Cygwin.
66383
66384         2006-04-09  Bruno Haible  <bruno@clisp.org>
66385
66386                 * fatal-signal.c: Don't include string.h.
66387                 (at_fatal_signal): Use a copying loop instead of memcpy.
66388
66389         2005-12-04  Bruno Haible  <bruno@clisp.org>
66390
66391                 * csharpexec.c: Add support for 'clix' launcher (untested).
66392                 (execute_csharp_using_sscli): New function.
66393                 (execute_csharp_program): Call it.
66394
66395         2006-06-21  Bruno Haible  <bruno@clisp.org>
66396
66397                 Avoid warnings from recent versions of mcs.
66398                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
66399                 -o, -L, -r any more. Use options documented since mcs-1.0
66400                 instead. Similarly for -g.
66401
66402         2005-07-09  Bruno Haible  <bruno@clisp.org>
66403
66404                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
66405                 add a .dll suffix.
66406                 Reported by Mark Junker <mjscod@gmx.de>.
66407
66408         2006-06-17  Bruno Haible  <bruno@clisp.org>
66409
66410                 * config.charset: Update for NetBSD 3.0.
66411
66412         2006-05-17  Bruno Haible  <bruno@clisp.org>
66413
66414                 Cygwin portability.
66415                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
66416
66417         2006-05-16  Bruno Haible  <bruno@clisp.org>
66418
66419                 * localcharset.c [CYGWIN]: Include <windows.h>.
66420                 (get_charset_aliases): For Cygwin, return the same CPxxx
66421                 aliases list as under WIN32.
66422                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
66423                 the environment variables. Fall back to GetACP().
66424
66425         2006-04-05  Bruno Haible  <bruno@clisp.org>
66426
66427                 * config.charset: Update Juan Manuel Guerrero's address.
66428
66429         2005-02-12  Bruno Haible  <bruno@clisp.org>
66430
66431                 * allocsa.h: Add extern "C" for C++.
66432
66433         2005-02-10  Bruno Haible  <bruno@clisp.org>
66434
66435                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
66436                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
66437
66438         2006-07-22  Bruno Haible  <bruno@clisp.org>
66439
66440                 * gettext.h: Update to GNU gettext-0.15.
66441
66442 2006-07-22  Bruno Haible  <bruno@clisp.org>
66443
66444         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
66445         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
66446         lib-prefix.m4, longdouble.m4, ssize_t.m4.
66447
66448 2006-07-21  Eric Blake  <ebb9@byu.net>
66449
66450         * modules/stdlib-safer: New file.
66451         * MODULES.html.sh (File stream based Input/Output): Add
66452         stdlib-safer.
66453
66454 2006-07-21  Eric Blake  <ebb9@byu.net>
66455
66456         * lib/stdlib-safer.h: New file from coreutils, required by
66457         stdlib--.h.
66458
66459 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
66460
66461         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
66462
66463 2006-07-20  Bruno Haible  <bruno@clisp.org>
66464
66465         * gnulib-tool: Recognize new option --assume-autoconf.
66466         (autoconf_minversion): New variable.
66467         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
66468
66469 2006-07-20  Bruno Haible  <bruno@clisp.org>
66470
66471         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
66472
66473 2006-07-19  Derek R. Price  <derek@ximbiot.com>
66474
66475         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
66476         Reindent and repaginate.
66477
66478 2006-07-19  Derek Price  <derek@ximbiot.com>
66479
66480         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
66481         Correct grammar.
66482
66483 2006-07-17  Bruno Haible  <bruno@clisp.org>
66484
66485         * modules/list: New file.
66486         * modules/array-list: New file.
66487         * modules/carray-list, modules/carray-list-tests: New files.
66488         * modules/linked-list, modules/linked-list-tests: New files.
66489         * modules/avltree-list, modules/avltree-list-tests: New files.
66490         * modules/rbtree-list, modules/rbtree-list-tests: New files.
66491         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
66492         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
66493         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
66494         * modules/oset: New file.
66495         * modules/array-oset: New file.
66496         * modules/avltree-oset, modules/avltree-oset-tests: New files.
66497         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
66498         * tests/test-carray_list.c: New file.
66499         * tests/test-linked_list.c: New file.
66500         * tests/test-avltree_list.c: New file.
66501         * tests/test-rbtree_list.c: New file.
66502         * tests/test-linkedhash_list.c: New file.
66503         * tests/test-avltreehash_list.c: New file.
66504         * tests/test-rbtreehash_list.c: New file.
66505         * tests/test-avltree_oset.c: New file.
66506         * tests/test-rbtree_oset.c: New file.
66507         * MODULES.html.sh (Container data structures): New section.
66508
66509 2006-07-17  Bruno Haible  <bruno@clisp.org>
66510
66511         * m4/gl_list.m4: New file.
66512
66513 2006-07-17  Bruno Haible  <bruno@clisp.org>
66514
66515         * lib/gl_list.h: New file.
66516         * lib/gl_list.c: New file.
66517         * lib/gl_array_list.h: New file.
66518         * lib/gl_array_list.c: New file.
66519         * lib/gl_carray_list.h: New file.
66520         * lib/gl_carray_list.c: New file.
66521         * lib/gl_linked_list.h: New file.
66522         * lib/gl_linked_list.c: New file.
66523         * lib/gl_anylinked_list1.h: New file.
66524         * lib/gl_anylinked_list2.h: New file.
66525         * lib/gl_avltree_list.h: New file.
66526         * lib/gl_avltree_list.c: New file.
66527         * lib/gl_anyavltree_list1.h: New file.
66528         * lib/gl_anyavltree_list2.h: New file.
66529         * lib/gl_rbtree_list.h: New file.
66530         * lib/gl_rbtree_list.c: New file.
66531         * lib/gl_anyrbtree_list1.h: New file.
66532         * lib/gl_anyrbtree_list2.h: New file.
66533         * lib/gl_anytree_list1.h: New file.
66534         * lib/gl_anytree_list2.h: New file.
66535         * lib/gl_linkedhash_list.h: New file.
66536         * lib/gl_linkedhash_list.c: New file.
66537         * lib/gl_anyhash_list1.h: New file.
66538         * lib/gl_anyhash_list2.h: New file.
66539         * lib/gl_avltreehash_list.h: New file.
66540         * lib/gl_avltreehash_list.c: New file.
66541         * lib/gl_rbtreehash_list.h: New file.
66542         * lib/gl_rbtreehash_list.c: New file.
66543         * lib/gl_anytreehash_list1.h: New file.
66544         * lib/gl_anytreehash_list2.h: New file.
66545
66546         * lib/gl_oset.h: New file.
66547         * lib/gl_oset.c: New file.
66548         * lib/gl_array_oset.h: New file.
66549         * lib/gl_array_oset.c: New file.
66550         * lib/gl_avltree_oset.h: New file.
66551         * lib/gl_avltree_oset.c: New file.
66552         * lib/gl_rbtree_oset.h: New file.
66553         * lib/gl_rbtree_oset.c: New file.
66554         * lib/gl_anytree_oset.h: New file.
66555
66556 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66557
66558         * m4/mkancesdirs.m4: New file.
66559         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
66560         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
66561         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
66562         it.
66563
66564 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66565
66566         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
66567         * lib/mkancesdirs.h: New files.
66568         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
66569         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
66570         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
66571         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
66572         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
66573         callers changed.  Revamp internals significantly, by not
66574         attempting to create directories that are temporarily more
66575         permissive than the final results.  Do not attempt to use
66576         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
66577         This removes some race conditions, fixes some bugs, and simplifies
66578         things.  Use new dirchownmod function to do owner and mode changes.
66579         * lib/mkdir-p.h: Likewise.
66580         * lib/modechange.c (octal_to_mode): New function.
66581         (struct mode_change): New member mentioned.
66582         (make_node_op_equals): New arg mentioned.  All callers changed.
66583         (mode_compile): Keep track of which mode bits the user has explicitly
66584         mentioned.
66585         (mode_adjust): New arg DIR, so that we implement the X op correctly.
66586         New arg PMODE_BITS, to keep track of which mode bits the user
66587         mentioned; it treats S_ISUID and S_ISGID speciall.
66588         All callers changed.
66589         * lib/modechange.h: Likewise.
66590
66591 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66592
66593         * MODULES.html.sh: Add mkancestors.
66594         * modules/mkancesdirs: New module.
66595         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
66596         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
66597         The chdir-safer and afs files are now orphans; I'll remove them
66598         unless someone speaks up.
66599         Add lib/dirchownmod.c, lib/dirchownmod.h.
66600         (Depends-on): Remove alloca, chown, save-cwd, dirname.
66601         Add lchown, mkancesdirs.
66602         (Maintainer): Add self.
66603
66604 2006-07-15  Karl Berry  <karl@gnu.org>
66605
66606         * gnulib-tool: help message wording/arrangement.
66607
66608 2006-07-14  Simon Josefsson  <jas@extundo.com>
66609
66610         * doc/gnulib.texi (Libtool and Windows): New section.
66611
66612 2006-07-12  Simon Josefsson  <jas@extundo.com>
66613
66614         * modules/gendocs (License): Fix license, approved by Karl.
66615
66616 2006-07-12  Eric Blake  <ebb9@byu.net>
66617
66618         * MODULES.html.sh: Add gendocs.
66619
66620 2006-07-11  Eric Blake  <ebb9@byu.net>
66621
66622         * modules/fdl: New module, to install doc/fdl.texi.
66623         * MODULES.html.sh: Add new section for documentation modules.
66624         * gnulib-tool: Avoid space-tab.
66625         (--doc-base): New option, to manage files from doc.
66626
66627 2006-07-11  Eric Blake  <ebb9@byu.net>
66628
66629         * m4/absolute-header.m4: Fix comments to match recent change.
66630
66631 2006-07-11  Eric Blake  <ebb9@byu.net>
66632
66633         * gnulib-tool: List --doc-base before --tests-base.
66634
66635 2006-07-11  Derek R. Price  <derek@ximbiot.com>
66636
66637         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
66638
66639 2006-07-11  Bruno Haible  <bruno@clisp.org>
66640
66641         * README: Mention where to put documentation.
66642
66643 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66644
66645         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
66646
66647 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66648
66649         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
66650         to stdint.m4.
66651
66652 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66653
66654         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
66655         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
66656         "no/such/file/stdint.h" when there is no such file, so that
66657         the resulting C code can be parsed by dodgy compilers.
66658         Problems reported by Bob Proulx.
66659
66660 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66661
66662         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
66663         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66664         macros into the GNU _D_EXACT_NAMLEN.
66665         * lib/savedir.c:  Likewise.
66666         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
66667
66668 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66669         and Paul Eggert  <eggert@cs.ucla.edu>
66670
66671         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
66672         * m4/savedir.m4:
66673         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66674         macros into the GNU _D_EXACT_NAMLEN.
66675
66676 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66677
66678         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
66679         around the absolute name, to work around a problem with the HP-UX
66680         11.23 native C compiler, reported by Bob Proulx.
66681
66682 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66683
66684         * doc/maintain.texi, make-stds.texi: Sync from
66685         <http://savannah.gnu.org/projects/gnustandards>.
66686
66687 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66688
66689         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
66690
66691 2006-07-09  Jim Meyering  <jim@meyering.net>
66692
66693         * m4/glob.m4: Remove a doubled word in a comment.
66694
66695 2006-07-09  Jim Meyering  <jim@meyering.net>
66696
66697         * lib/argp-pv.c: Remove a doubled word in a comment.
66698         * lib/check-version.c (check_version): Likewise.
66699         * lib/javacomp.c (compile_java_class): Likewise.
66700
66701 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66702
66703         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
66704         for the benefit of people using Autoconf 2.60.  If you want to
66705         support older Autoconf versions you can copy m4/onceonly_2_57.m4
66706         (or m4/onceonly.m4, if pre-2.57) manually.
66707
66708 2006-07-08  Jim Meyering  <jim@meyering.net>
66709
66710         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
66711         comment.
66712         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
66713         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
66714         comment.
66715
66716 2006-07-08  Jim Meyering  <jim@meyering.net>
66717
66718         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
66719
66720 2006-07-07  Simon Josefsson  <jas@extundo.com>
66721
66722         * tests/test-crc.c: Change expected crc value, the test vector
66723         were probably computed using the old broken crc.c?
66724
66725 2006-07-06  Simon Josefsson  <jas@extundo.com>
66726
66727         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
66728         now the canonical place for the M4 file).
66729
66730         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
66731         from the sys_socket dependency now.
66732
66733         * modules/inet_pton (Files): Ditto.
66734
66735         * modules/inet_ntop (Files): Ditto.
66736
66737 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66738
66739         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
66740         not gl_PREREQ_GETUSERSHELL.
66741
66742 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66743
66744         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
66745         with only one argument, for Autoconf 2.60.
66746         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
66747         expand to nothing, so add a shell command to avoid syntax error.
66748         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66749
66750 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66751
66752         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
66753
66754 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66755
66756         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
66757         no longer needed.  Check for isblank decl.
66758         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
66759         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
66760         of existence.
66761
66762 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66763
66764         * lib/getloadavg.c: Use __VMS, not VMS.
66765         * lib/getopt.c: Likewise.
66766         * lib/getpagesize.h: Likewise.
66767         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
66768         and probably does not work.
66769
66770 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66771
66772         * lib/.cppi-disable: Add wcwidth.
66773         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
66774         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
66775         (ISGRAPH): Remove.  All uses changed to isgraph.
66776         (FOLD) [!defined _LIBC]: Remove special case.
66777         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
66778         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
66779         HAVE_ISBLANK.
66780         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
66781         case.
66782
66783 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
66784
66785         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
66786         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
66787         brackets.  Other minor changes to suppress some compiler
66788         warnings.
66789
66790 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66791         and Paul Eggert  <eggert@cs.ucla.edu>
66792
66793         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
66794         of invoking obsolescent AC_HEADER_DIRENT macro.
66795         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
66796         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
66797         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
66798         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
66799         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
66800         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66801         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
66802         * m4/readdir.m4: Remove; no longer needed.
66803
66804 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66805         and Paul Eggert  <eggert@cs.ucla.edu>
66806
66807         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
66808         Don't worry about this obsolete case any more.
66809         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
66810         directories.
66811         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
66812         worry about this obsolete case any more.
66813         * lib/fts.c: Likewise.
66814         * lib/getcwd.c: Likewise.
66815         * lib/glob.h: Likewise.
66816         * lib/savedir.c: Likewise.
66817
66818 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66819
66820         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
66821         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
66822         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
66823         needed.
66824         All uses removed.
66825         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66826         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
66827         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
66828         needed.
66829         * m4/getdate.m4 (gl_GETDATE): Likewise.
66830         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
66831         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
66832         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
66833         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66834         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
66835         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66836         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
66837         needed.
66838
66839 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66840
66841         * lib/memcasecmp.c: Include <limits.h>.
66842         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
66843         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
66844         Don't assume isdigit succeeds only on '0' through '9'.
66845
66846 2006-07-05  Eric Blake  <ebb9@byu.net>
66847
66848         * modules/getaddrinfo (Depends-on): Add snprintf.
66849
66850 2006-07-05  Eric Blake  <ebb9@byu.net>
66851
66852         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
66853         to avoid 'header present but could not be compiled' on cygwin.
66854
66855 2006-07-05  Eric Blake  <ebb9@byu.net>
66856
66857         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
66858         missing from netdb.h.
66859         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
66860
66861 2006-07-05  Derek R. Price  <derek@ximbiot.com>
66862
66863         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
66864         no longer needed.
66865         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
66866         * m4/getdate.m4 (gl_GETDATE): Likewise.
66867         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
66868         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
66869         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
66870         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66871         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66872
66873 2006-07-05  Derek R. Price  <derek@ximbiot.com>
66874
66875         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
66876         All uses of is_space replaced by isspace.
66877         * lib/exit.h: Don't talk about STDC_HEADERS.
66878         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
66879         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
66880         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
66881         replaced by isprint etc.
66882         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
66883         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
66884         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
66885         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
66886         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
66887         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
66888
66889 2006-07-05  Bruno Haible  <bruno@clisp.org>
66890
66891         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
66892         the function exists, before testing against AIX.
66893         Reported by Martin Lambers <marlam@marlam.de>.
66894
66895 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
66896
66897         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
66898         From Mark D. Baushke.
66899
66900 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
66901
66902         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
66903         to the absolute name, not just one, to bypass Sun C 5.8's
66904         "warning: #include of /usr/include/... may be non-portable".
66905
66906 2006-07-04  Eric Blake  <ebb9@byu.net>
66907
66908         * modules/dirname-tests: New test module.
66909         * tests/test-dirname.c: New file, replacing dirname.c
66910         TEST_DIRNAME section that was recently deleted.
66911
66912 2006-07-04  Bruno Haible  <bruno@clisp.org>
66913
66914         Assume ANSI C header files and <ctype.h> functions.
66915         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
66916         (mbsnwidth): Use isprint, iscntrl instead.
66917
66918 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66919
66920         Merge from coreutils.
66921         * MODULES.html.sh: Add xstrtold.
66922         * modules/xstrtold: New file.
66923         * modules/cycle-check (Files): Add lib/same-inode.h.
66924         * modules/dirname (Files): Add m4/double-slash-root.m4.
66925         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
66926         * modules/mkdir-p (Files): Add lib/same-inode.h.
66927         * modules/same (Files): Add lib/same-inode.h.
66928
66929 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66930
66931         * m4/absolute-header.m4: Renamed from full-header-path.m4.
66932         This is to keep the terminology clean; POSIX talks about
66933         "absolute pathnames", not "full pathnames", but the GNU
66934         Coding Standards say to use "path" for something else;
66935         so use "absolute" to keep both sides happy.
66936         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
66937         Set gl_absolute_header, not gl_full_header_path.
66938         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
66939         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
66940         All uses changed.
66941
66942         Merge from coreutils.
66943
66944         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
66945
66946         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
66947         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
66948         want to require the building of c-strtod.o.
66949         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
66950         needs -lm directly.
66951         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
66952
66953         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
66954
66955         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
66956         --as-needed option if available.  Problem reported by Albert Chin in
66957         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
66958         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
66959         cc merely issues a bunch of annoying warnings for --as-needed
66960         (this problem was reported by Bob Proulx).  Also, try linking with
66961         -lm to detect a bug in binutils 2.16 (this problem was reported
66962         by Ralf Wildenhues).
66963
66964         2006-06-18  Jim Meyering  <jim@meyering.net>
66965
66966         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
66967         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
66968         macro.
66969         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
66970         also check for glibc-2.4's abort-inducing bug.
66971
66972         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
66973         Low-probability clean-up should be to use rmdir to get rid of
66974         the just-created directory, not unlink.
66975
66976         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
66977         configure fail, and request a bug report to inform us about it.
66978         Add a comment that, barring reports to the contrary, in 2007 we'll
66979         assume ftruncate is universally available.
66980
66981         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
66982
66983         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
66984
66985         2006-03-12  Jim Meyering  <jim@meyering.net>
66986
66987         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
66988         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
66989         * m4/same.m4 (gl_SAME): Likewise.
66990         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
66991
66992         2006-03-11  Eric Blake  <ebb9@byu.net>
66993
66994         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
66995         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
66996         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
66997         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
66998
66999 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67000
67001         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
67002         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
67003         reported by Mark D. Baushke, one in
67004         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
67005
67006         Merge from coreutils.
67007
67008         * lib/.cppi-disable: Add stdint_.h.
67009         * lib/.cvsignore: Add stdint.h.
67010
67011         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67012
67013         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
67014         both double and long double versions.
67015         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
67016         * lib/xstrtold.c: New file.
67017         * lib/xstrtod.h (xstrtold): New decl.
67018
67019         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67020
67021         * lib/filemode.c (setst): Remove.
67022         (strmode): Rewrite to avoid setst.  This makes the code shorter,
67023         (arguably) clearer, and the generated code is a bit smaller on my
67024         Debian GNU/Linux stable x86 host.
67025
67026         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67027
67028         * lib/filemode.c: Include "filemode.h" first, to test the interface.
67029         Assume that filemode.h includes sys/types.h and sys/stat.h.
67030         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
67031         (ftypelet): Reorder to put common cases first, for efficiency.
67032         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
67033         to do 'M'.
67034         (strmode): Renamed from mode_string, and now stores 12 bytes instead
67035         of 10, for compatibility with FreeBSD.  All callers changed.
67036         (filemodestring): Now stores 12 bytes instead of 10, and sets file
67037         types that can't be deduced solely from st_mode.  First arg is now a
67038         const pointer.
67039         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
67040         (strmode): Renamed from mode_string.
67041         (filemodestring): New decl.
67042         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
67043         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
67044         needed.
67045         (S_ISPORT, S_ISWHT): New macros, if not already defined.
67046
67047         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67048
67049         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
67050         fsusage.h now does that.  Include fsusage.h first, to test interface.
67051         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
67052         at most one method (the old code could have generated decls that
67053         didn't conform to C89, not that this was ever exercised).
67054         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
67055
67056         2006-03-19  Jim Meyering  <jim@meyering.net>
67057
67058         Work even in a chroot where d_ino values for entries in "/"
67059         don't match the stat.st_ino values for the same names.
67060         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
67061         number, iterate through all entries again, using lstat instead.
67062         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
67063         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
67064
67065         * lib/getcwd.c (__getcwd): Clarify a comment.
67066         Use memcpy in place of a call to strcpy.
67067
67068         2006-03-12  Jim Meyering  <jim@meyering.net>
67069
67070         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
67071         matches that of the current directory (which we're about to chdir ".."
67072         out of), then save the dev-ino of the parent, instead.
67073
67074         * lib/same-inode.h (SAME_INODE): New file/macro.
67075         * lib/chdir-safer.c (SAME_INODE): Remove definition.
67076         Include "same-inode.h", instead.
67077         * lib/same.c: Likewise.
67078         * lib/cycle-check.h: Include "same-inode.h".
67079         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
67080         * lib/cycle-check.c (SAME_INODE): Remove definition.
67081         * lib/root-dev-ino.h: Include "same-inode.h".
67082
67083         2006-03-11  Eric Blake  <ebb9@byu.net>
67084
67085         * lib/same.c (same_name): s/base_name/last_component/
67086         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
67087         * lib/filenamecat.c (file_name_concat): Likewise.
67088
67089         2006-03-11  Eric Blake  <ebb9@byu.net>,
67090                     Paul Eggert  <eggert@cs.ucla.edu>
67091
67092         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
67093         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
67094         drive prefix.
67095         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
67096         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
67097         (last_component): New method.
67098         * lib/dirname.c (dir_len): Determine when drive letters need a
67099         subsequent slash.  Preserve // when it is special.
67100         (dir_name): Don't append dot when drive letter is absolute.
67101         [TEST_DIRNAME]: Move into a full-blown gnulib test.
67102         * lib/basename.c (base_name): New semantics - malloc the result.
67103         Preserve // when it is special.  Preserve relative files that look
67104         like drive letters.
67105         (base_len): Preserve // when it is special.
67106         (last_component): New method, similar to old base_name semantics.
67107         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
67108         base_name.  Strip redundant slashes from ///.
67109
67110 2006-07-03  Jim Meyering  <jim@meyering.net>
67111
67112         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
67113         macro is used before the first cycle_check call.
67114
67115 2006-07-03  Eric Blake  <ebb9@byu.net>
67116
67117         * modules/dirname (Depends-on): Add xstrndup.
67118
67119 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67120
67121         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
67122         test cases, so that config.log is a bit easier to follow.
67123
67124 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67125
67126         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
67127         both are 64 bits, since this seems to be the tradition, and this
67128         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
67129         we ever run into a host that prefers long long to long in this
67130         case, we'll need another configure-time test.  Problem reported by
67131         Jim Meyering.
67132
67133 2006-07-02  Eric Blake  <ebb9@byu.net>
67134
67135         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
67136
67137 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67138
67139         * modules/inttypes (Depends-on): No longer depends on stdint.
67140         * modules/stdint (Description): Say more about assumptions.
67141         Say that the fast types might differ.  Say macros are used.
67142         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
67143         (Makefile.am): Revise list of substituted symbols to match
67144         new stdint.m4.
67145         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
67146         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
67147         * tests/test-stdint.c (verify_same_types)
67148         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
67149         the code conforms to C99/C89.
67150         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
67151         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
67152
67153 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67154
67155         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
67156         but fix a bug, by requiring at least 64 bits.
67157         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
67158         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
67159         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
67160         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67161
67162         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
67163         changes.  Make 2.59 a prerequisite.  Check and substitute for
67164         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
67165         inttypes.h.  Do not use special include files; just use the
67166         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
67167         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
67168         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
67169         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
67170         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
67171         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
67172         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
67173         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
67174         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
67175         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
67176         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
67177         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
67178         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
67179         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
67180         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
67181         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
67182         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
67183         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
67184         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
67185         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
67186         WINT_MAX.  Check for C99 conformance more strictly, by detecting
67187         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
67188         not check for things that C99 does not require, e.g., int8_t.  If
67189         a test isn't needed unless <stdint.h> isn't working, and is
67190         unlikely to be needed for any other reason, then don't do it
67191         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
67192         size_t, since we assume C89 freestanding at least.  Do not check
67193         for sig_atomic_t, wchar_t, or wint_t, since the code now does
67194         the right thing even if the types are not defined.  Instead use:
67195         (gl_STDINT_TYPE_PROPERTIES): New macro.
67196         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
67197         testing whether <sys/types.h> clashes, as Autoconf does this for
67198         us now.  All uses removed.
67199         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
67200         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
67201         (gl_CHECK_TYPE_SAME):
67202         Remove; no longer needed.
67203         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
67204         exists, since we'll return 0 anyway in that case.
67205         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
67206
67207 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67208
67209         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
67210         possible collision with system files.
67211         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
67212         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
67213         WCHAR_MIN and WCHAR_MAX in this case.
67214         (<stddef.h>): Do not include; no longer needed.
67215         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
67216         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
67217         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
67218         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
67219         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
67220         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
67221         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
67222         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
67223         !defined(__c99))]: Include in this case too, since it's harmless
67224         now.
67225         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
67226         dangerous to do so.
67227         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
67228         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
67229         (_STDINT_MIN, _STDINT_MAX): New macros.
67230         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
67231         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
67232         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
67233         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
67234         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
67235         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
67236         macros, not typedefs; this simplifies things quite a bit.
67237         Use long int for all types narrower than int64_t.
67238         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
67239         Define in terms of long long int or int64_t or long int,
67240         not int64_t or int32_t.  This saves some compile-time testing.
67241         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
67242         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
67243         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
67244         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
67245         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
67246         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
67247         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
67248         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
67249         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
67250         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
67251         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67252         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67253         undef any previous version and define our own version, for
67254         simplicity and consistency with the new macros for types.
67255         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67256         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67257         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
67258         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
67259         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
67260         @WINT_T_SUFFIX@ to keep things simple here.
67261         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
67262         Simplify by assuming typical 8/16/32/64 host, since we're
67263         already doing that elsewhere anyway.
67264         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
67265         and assume long long int is 64 bits if available.  This
67266         speeds up 'configure'.
67267
67268 2006-07-01  Eric Blake  <ebb9@byu.net>
67269
67270         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
67271         Reported by Andreas Buening.
67272
67273 2006-07-01  Eric Blake  <ebb9@byu.net>
67274
67275         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
67276
67277 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67278
67279         * lib/getaddrinfo.c: fixed typo
67280
67281 2006-06-29  Jim Meyering  <jim@meyering.net>
67282
67283         * modules/strftime (Maintainer): Add my name, since with the
67284         FPRINTFTIME changes strftime.c has forked from glibc.
67285
67286 2006-06-29  Eric Blake  <ebb9@byu.net>
67287
67288         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
67289
67290 2006-06-29  Eric Blake  <ebb9@byu.net>
67291
67292         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
67293
67294 2006-06-29  Eric Blake  <ebb9@byu.net>
67295
67296         * lib/stat_.h: New file.
67297
67298 2006-06-29  Eric Blake  <ebb9@byu.net>
67299
67300         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
67301         unused static function.
67302
67303 2006-06-29  Eric Blake  <ebb9@byu.net>
67304
67305         * doc/functions.texi (Function Portability): Document missing lstat
67306         on mingw.
67307
67308 2006-06-29  Eric Blake  <ebb9@byu.net>
67309
67310         * MODULES.html.sh: Add sys_stat.
67311         * modules/sys_stat: New module.
67312         * modules/mkstemp (Depends-on): Add sys_stat.
67313
67314 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67315
67316         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
67317
67318 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67319
67320         * m4/c-bs-a.m4: Removed.
67321
67322 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67323
67324         * lib/strftime.c: Assume strftime() exists.
67325
67326 2006-06-29  Derek Price  <derek@ximbiot.com>
67327
67328         * modules/c-bs-a: Removed - \a is C89.
67329         * MODULES.html.sh: Remove c-bs-a.
67330
67331 2006-06-29  Bruno Haible  <bruno@clisp.org>
67332
67333         * modules/wcwidth (License): Change to LGPL.
67334
67335 2006-06-28  Simon Josefsson  <jas@extundo.com>
67336
67337         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
67338         on _WIN32.
67339
67340         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
67341         getnameinfo.
67342
67343 2006-06-28  Simon Josefsson  <jas@extundo.com>
67344
67345         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
67346
67347 2006-06-28  Simon Josefsson  <jas@extundo.com>
67348
67349         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
67350         functions there.  It will succeed on Windows XP, but on Windows
67351         2000 and (presumably) earlier, it will fail, and use the internal
67352         re-implementation.
67353         (use_win32_p): New function.
67354         (getaddrinfo): Use strtoul on servname, to support numeric ports.
67355         Support AI_NUMERICSERV to disable getservbyname.
67356         (getnameinfo): New function, only supports
67357         NI_NUMERICHOST|NI_NUMERICSERV for now.
67358
67359         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
67360         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
67361         getnameinfo.
67362
67363 2006-06-28  Eric Blake  <ebb9@byu.net>
67364
67365         * modules/wcwidth: New file.
67366         * modules/mbchar (Depends-on): Add wcwidth.
67367         * modules/mbswidth (Depends-on): Add wcwidth.
67368         * MODULES.html.sh: Add wcwidth.
67369
67370 2006-06-28  Eric Blake  <ebb9@byu.net>
67371
67372         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
67373         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
67374
67375 2006-06-28  Eric Blake  <ebb9@byu.net>
67376
67377         * lib/xvasprintf.h: Fix comments.
67378
67379 2006-06-28  Eric Blake  <ebb9@byu.net>
67380
67381         * lib/mbchar.h (wcwidth): Include wcwidth.h.
67382         * lib/mbswidth.c (wcwidth): Move from here...
67383         * lib/wcwidth.h: ...to this new file.
67384
67385 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67386
67387         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
67388
67389         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
67390         it's obsolete.
67391         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
67392
67393 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67394
67395         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
67396         Autoconf 2.60 says this stuff was obsolete.
67397
67398 2006-06-28  Bruno Haible  <bruno@clisp.org>
67399
67400         * modules/wcwidth (Files): Add m4/wchar_t.m4.
67401
67402 2006-06-28  Bruno Haible  <bruno@clisp.org>
67403
67404         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
67405         gt_TYPE_WCHAR_T.
67406
67407 2006-06-28  Bruno Haible  <bruno@clisp.org>
67408
67409         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
67410         declaration for wcwidth.
67411         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
67412
67413 2006-06-28  Bruno Haible  <bruno@clisp.org>
67414
67415         * lib/mkdtemp.c [MINGW]: Include <io.h>.
67416         (mkdir): Define using _mkdir.
67417
67418 2006-06-28  Bruno Haible  <bruno@clisp.org>
67419
67420         * lib/getaddrinfo.h: Fix POSIX URL.
67421         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
67422         _WIN32.
67423         (use_win32_p): Make static.
67424         (getaddrinfo): Reject service name if it is empty or does not consist
67425         solely of decimal digits, or if its value is > 65535.
67426         (getnameinfo): Remove useless casts.
67427
67428 2006-06-27  Simon Josefsson  <jas@extundo.com>
67429
67430         * modules/sys_select: New file, suggested by Bruno Haible, Paul
67431         Eggert and Martin Lambers.
67432
67433 2006-06-27  Simon Josefsson  <jas@extundo.com>
67434
67435         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
67436         Eggert and Martin Lambers.
67437
67438 2006-06-27  Bruno Haible  <bruno@clisp.org>
67439
67440         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
67441         result to 0, not to empty.
67442         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
67443
67444 2006-06-27  Bruno Haible  <bruno@clisp.org>
67445
67446         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
67447
67448 2006-06-26  Simon Josefsson  <jas@extundo.com>
67449
67450         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
67451         present.
67452
67453 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
67454
67455         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
67456         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
67457         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
67458
67459 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
67460
67461         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
67462
67463 2006-06-26  Bruno Haible  <bruno@clisp.org>
67464
67465         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
67466
67467 2006-06-26  Bruno Haible  <bruno@clisp.org>
67468
67469         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
67470
67471 2006-06-26  Bruno Haible  <bruno@clisp.org>
67472
67473         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
67474         SGI C compiler in pre-C99 mode.
67475         Suggested by Mark D. Baushke and Larry Jones.
67476
67477 2006-06-26  Bruno Haible  <bruno@clisp.org>
67478
67479         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
67480         WCHAR_MAX.
67481         Reported by Mark D. Baushke and Larry Jones.
67482
67483 2006-06-26  Bruno Haible  <bruno@clisp.org>
67484
67485         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
67486         in pre-C99 mode.
67487         Suggested by Mark D. Baushke and Larry Jones.
67488
67489 2006-06-23  Simon Josefsson  <jas@extundo.com>
67490             Bruno Haible  <bruno@clisp.org>
67491
67492         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
67493         Emit mostlyclean-local rule.
67494         (func_emit_tests_Makefile_am): Likewise.
67495         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
67496
67497 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
67498
67499         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
67500
67501 2006-06-23  Bruno Haible  <bruno@clisp.org>
67502
67503         * tests/test-stdint.c: Update to match ISO C 99 Technical
67504         Corrigendum 1.
67505
67506 2006-06-23  Bruno Haible  <bruno@clisp.org>
67507
67508         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
67509
67510 2006-06-23  Bruno Haible  <bruno@clisp.org>
67511
67512         * lib/stdint_.h: Treat IRIX like OpenBSD.
67513
67514 2006-06-23  Bruno Haible  <bruno@clisp.org>
67515
67516         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
67517         ISO C 99 Technical Corrigendum 1.
67518
67519 2006-06-22  Simon Josefsson  <jas@extundo.com>
67520
67521         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
67522         MinGW.
67523
67524 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67525
67526         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
67527         needed.  Some compiler complained about some of them.  Problem reported
67528         by Larry Jones in
67529         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
67530
67531 2006-06-21  Simon Josefsson  <jas@extundo.com>
67532
67533         * tests/test-getaddrinfo.c: New file.
67534
67535         * modules/getaddrinfo-tests: New file.
67536
67537         * MODULES.html.sh: Add inet_pton.
67538
67539         * modules/inet_pton: New file.
67540
67541 2006-06-21  Simon Josefsson  <jas@extundo.com>
67542
67543         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
67544         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
67545         of using the (limited) gnulib implementation on Windows XP.
67546
67547         * m4/inet_pton.m4: New file.
67548
67549 2006-06-21  Simon Josefsson  <jas@extundo.com>
67550
67551         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
67552         variable.
67553
67554         * lib/socket_.h: Don't define WINVER.
67555
67556         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
67557         slightly modified to work in gnulib.
67558
67559 2006-06-21  Simon Josefsson  <jas@extundo.com>
67560
67561         * doc/gnulib.texi (Windows sockets): Add.
67562
67563 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67564
67565         * lib/read-file.c (fread_file): Start with buffer allocation of
67566         0 bytes rather than 1 byte; this simplifies the code.
67567         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
67568         code to free buffer and save/restore errno.
67569         (internal_read_file): Remove unused local.
67570
67571 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67572
67573         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
67574         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
67575         Problem reported by Denis Excoffier in
67576         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
67577
67578 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67579
67580         * modules/sys_socket, modules/socklen: Include sys/types since
67581         FreeBSD 4.x's sys/socket.h needs it.
67582
67583 2006-06-19  Simon Josefsson  <jas@extundo.com>
67584
67585         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
67586
67587 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67588
67589         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
67590
67591 2006-06-19  Bruno Haible  <bruno@clisp.org>
67592
67593         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
67594         and FULL_PATH_INTTYPES_H in angle brackets.
67595         Reported by Mark D. Baushke <mdb@gnu.org>.
67596
67597 2006-06-17  Eric Blake  <ebb9@byu.net>
67598
67599         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
67600         errno.
67601
67602 2006-06-17  Bruno Haible  <bruno@clisp.org>
67603
67604         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
67605         <sys/inttypes.h>.
67606
67607 2006-06-17  Bruno Haible  <bruno@clisp.org>
67608
67609         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
67610         whether errno is declared. Assume <errno.h> declares errno.
67611
67612 2006-06-17  Bruno Haible  <bruno@clisp.org>
67613
67614         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
67615
67616 2006-06-17  Bruno Haible  <bruno@clisp.org>
67617
67618         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
67619         problem on Solaris 2.5.1.
67620
67621 2006-06-16  Eric Blake  <ebb9@byu.net>
67622
67623         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
67624         * lib/unicodeio.c [!defined errno]: Likewise.
67625         * lib/strtol.c [!defined errno]: Likewise.
67626         * lib/strtod.c [!defined errno]: Likewise.
67627
67628 2006-06-15  Eric Blake  <ebb9@byu.net>
67629
67630         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
67631
67632 2006-06-15  Eric Blake  <ebb9@byu.net>
67633
67634         * config/srclist.txt (ssize_t.m4): Lose sync.
67635
67636 2006-06-15  Bruno Haible  <bruno@clisp.org>
67637
67638         * modules/stdint (Files): Include m4/full-header-path.m4,
67639         m4/size_max.m4, m4/wchar_t.m4.
67640         (Makefile.am): Many more substitutions.
67641         * modules/stdint-tests: New file.
67642         * tests/test-stdint.c: New file.
67643
67644 2006-06-15  Bruno Haible  <bruno@clisp.org>
67645
67646         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
67647         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
67648         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
67649         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
67650         gl_CHECK_TYPE_SAME): New macros.
67651
67652 2006-06-15  Bruno Haible  <bruno@clisp.org>
67653
67654         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
67655
67656 2006-06-15  Bruno Haible  <bruno@clisp.org>
67657
67658         * lib/stdint_.h: Rewritten to be fully auto-configured.
67659         Fixes bug on HP-UX/IA64.
67660
67661 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
67662
67663         * lib/getdate.y (__attribute__): Don't define if already defined.
67664         Problem reported by Larry Jones.
67665         * lib/utimens.c (__attribute__): Likewise.
67666
67667 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
67668
67669         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
67670         reported by Andreas Schwab.
67671
67672 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67673             Bruno Haible  <bruno@clisp.org>
67674
67675         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
67676         check for the declaration of strnlen and a run test that exposes the
67677         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
67678         rpl_strndup.
67679
67680 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67681             Bruno Haible  <bruno@clisp.org>
67682
67683         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
67684
67685 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67686
67687         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
67688         compile test, for Tru64 4.0D.
67689
67690 2006-05-28  Karl Berry  <karl@gnu.org>
67691
67692         * config/srclist.txt (printf-args.c): lose sync.
67693
67694 2006-05-26  Martin Lambers  <marlam@marlam.de>
67695
67696         * lib/getpass.c: Updates the test for the native W32 API, and adds
67697         missing includes, thus fixing compilation warnings.
67698
67699 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67700
67701         * lib/exclude.c (exclude_fnmatch): New function.
67702         (excluded_file_name): Call exclude_fnmatch.
67703         * lib/exclude.h (excluded_file_name): New prototype
67704
67705 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
67706
67707         * lib/tempname.c (small_open, large_open): New macros.
67708         (__open, __open64) [!_LIBC]: Remove.
67709         (__gen_tempname): Use small_open and large_open instead of __open
67710         and __open64.  This fixes a portability bug on HP-UX 11.11i
67711         reported by Simon Wing-Tang in
67712         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
67713
67714 2006-05-24  Bruno Haible  <bruno@clisp.org>
67715
67716         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
67717         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
67718         Reported by Thorsten Maerz <torte@netztorte.de> via
67719         Aaron Stone <aaron@serendipity.cx>.
67720
67721 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67722
67723         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
67724         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
67725         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
67726         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
67727         not really conditional on the cache.
67728         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
67729
67730 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67731
67732         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
67733         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
67734         (my_usleep): Don't mishandle maximum value.
67735
67736 2006-05-19  Jim Meyering  <jim@meyering.net>
67737
67738         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
67739
67740 2006-05-17  Bruno Haible  <bruno@clisp.org>
67741
67742         Cygwin portability.
67743         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
67744
67745 2006-05-17  Bruno Haible  <bruno@clisp.org>
67746
67747         * lib/stdint_.h: Fix recognition of Cygwin.
67748
67749 2006-05-15  Bruno Haible  <bruno@clisp.org>
67750
67751         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
67752         on libtool patch by Ralf Wildenhues.
67753
67754 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67755
67756         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
67757         test for C99 conformance; (bool) 0.5 is an integer constant
67758         expression, but (bool) -0.5 is not.  Problem reported by Fedor
67759         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
67760
67761 2006-05-11  Simon Josefsson  <jas@extundo.com>
67762
67763         * m4/xvasprintf.m4: Fix obvious typo.
67764
67765 2006-05-11  Jim Meyering  <jim@meyering.net>
67766
67767         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
67768         James Lemley.
67769
67770 2006-05-10  Simon Josefsson  <jas@extundo.com>
67771
67772         * lib/md4.c: Typo fix, update copyright years.
67773         (K1, K2): Don't use L because it turn computations into 64-bit on
67774         64-bit platforms.
67775
67776 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
67777
67778         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
67779         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
67780         unwanted sign propagation, e.g., on hosts with 64-bit int.
67781         There still are some problems with reeelly weird theoretical hosts
67782         (e.g., 33-bit int) but it's not worth worrying about now.
67783         * lib/sha1.c (rol): Likewise.
67784         (K1, K2, K3, K4): Remove unnecessary L suffix.
67785
67786 2006-05-10  Bruno Haible  <bruno@clisp.org>
67787
67788         * lib/des.c: Cast to avoid warnings.
67789
67790 2006-05-09  Bruno Haible  <bruno@clisp.org>
67791
67792         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
67793         (Depends-on): Depend also on xsize, stdarg.
67794         (configure.ac): Add gl_XVASPRINTF.
67795
67796 2006-05-09  Bruno Haible  <bruno@clisp.org>
67797
67798         * m4/xvasprintf.m4: New file.
67799
67800 2006-05-09  Bruno Haible  <bruno@clisp.org>
67801
67802         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
67803         (EOVERFLOW): Define fallback value.
67804         (xstrcat): New function.
67805         (xvasprintf): Recognize the special case of a string concatenation.
67806
67807 2006-05-08  Eric Blake  <ebb9@byu.net>
67808
67809         * gnulib-tool (func_version): Base copyright year on CVS date.
67810         (func_emit_copyright_notice): New function.
67811         (func_emit_lib_Makefile_am): Use it.
67812         (func_emit_tests_Makefile_am): Likewise.
67813         (func_import): Likewise.
67814
67815 2006-05-08  Bruno Haible  <bruno@clisp.org>
67816
67817         * modules/stdarg: New file.
67818         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
67819
67820 2006-05-08  Bruno Haible  <bruno@clisp.org>
67821
67822         * m4/stdarg.m4: New file, from GNU gettext.
67823
67824 2006-05-08  Bruno Haible  <bruno@clisp.org>
67825
67826         * config/srclist.txt (build-aux/config.rpath): different from latest
67827         release.
67828
67829 2006-05-08  Bruno Haible  <bruno@clisp.org>
67830
67831         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
67832
67833 2006-05-05  Jim Meyering  <jim@meyering.net>
67834
67835         * m4/warning.m4: New file, derived from bison's file by the same name.
67836
67837 2006-05-03  Bruno Haible  <bruno@clisp.org>
67838
67839         * lib/stdint_.h: Shorter URL.
67840         * lib/inttypes.h: Likewise.
67841
67842 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67843
67844         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
67845
67846 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67847
67848         * lib/verify.h: Document the internals better.  Most of this change
67849         was written by Bruno Haible.
67850
67851 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67852
67853         * doc/verify.texi: New file, partly based on a proposal by
67854         Bruno Haible.
67855
67856 2006-05-02  Bruno Haible  <bruno@clisp.org>
67857
67858         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
67859         test from here...
67860         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
67861
67862 2006-04-29  Bruno Haible  <bruno@clisp.org>
67863
67864         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
67865         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
67866
67867 2006-04-29  Bruno Haible  <bruno@clisp.org>
67868
67869         * gnulib-tool: Make --update option actually work.
67870
67871 2006-04-29  Bruno Haible  <bruno@clisp.org>
67872
67873         * doc/gcd.texi: New file.
67874         * doc/gnulib.texi: Include it.
67875
67876 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
67877
67878         * lib/getdate.y (get_date): When adding relative date, start with the
67879         initial time, not with the result of the first mktime call.
67880
67881 2006-04-25  Bruno Haible  <bruno@clisp.org>
67882
67883         * gnulib-tool (func_import): Output the include directives in three
67884         blocks, sorted separately.
67885         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67886
67887 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
67888
67889         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
67890         to define main with arguments, for C++.  Reported by Eric Blake.
67891         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
67892         Prefer 'int main ()' to 'int main (void)', for C++.
67893         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
67894         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
67895         for 'main', for C99 and C++.
67896
67897 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
67898
67899         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
67900         Don't assume that exit status -1 is valid.
67901         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67902         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
67903         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
67904         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
67905         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
67906         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
67907         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
67908         functions can be used without declaring them, or that you can
67909         exit with status -1.
67910         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
67911
67912 2006-04-24  Karl Berry  <karl@gnu.org>
67913
67914         * config/srclist.txt (longdouble.m4): sync lost.
67915
67916 2006-04-24  Eric Blake  <ebb9@byu.net>
67917
67918         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
67919
67920 2006-04-24  Bruno Haible  <bruno@clisp.org>
67921
67922         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
67923         poll() implementation in AIX.
67924         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67925
67926 2006-04-24  Bruno Haible  <bruno@clisp.org>
67927
67928         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
67929         assigned exactly once.
67930
67931 2006-04-23  Claudio Fontana  <claudio@gnu.org>
67932             Bruno Haible  <bruno@clisp.org>
67933
67934         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
67935         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
67936         for AM_CPPFLAGS.
67937
67938 2006-04-23  Bruno Haible  <bruno@clisp.org>
67939
67940         * modules/copy-file: Depend on unistd.
67941         * modules/execute: Likewise.
67942         * modules/fatal-signal: Likewise.
67943         * modules/findprog: Likewise.
67944         * modules/mkdtemp : Likewise.
67945         * modules/pipe: Likewise.
67946         * modules/wait-process: Likewise.
67947
67948 2006-04-23  Bruno Haible  <bruno@clisp.org>
67949
67950         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
67951         condition was already detected.
67952         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67953
67954 2006-04-23  Bruno Haible  <bruno@clisp.org>
67955
67956         * lib/copy-file.c: Include <unistd.h> unconditionally.
67957         * lib/execute.c: Likewise.
67958         * lib/fatal-signal.c: Likewise.
67959         * lib/findprog.c: Likewise.
67960         * lib/mkdtemp.c: Likewise.
67961         * lib/pipe.h: Likewise.
67962         * lib/pipe.c: Likewise.
67963         * lib/wait-process.h: Likewise.
67964
67965 2006-04-23  Bruno Haible  <bruno@clisp.org>
67966
67967         * gnulib-tool (func_usage): Fix --import description. Document
67968         --update.
67969         (func_import): Create temporary file in a temporary directory, if
67970         --dry-run is specified. Silence errors from 'grep' when there are no
67971         m4 files in $m4dir.
67972         (func_create_testdir): Silence errors from 'grep' when there are no
67973         m4 files in $m4dir.
67974         Reported by Karl Berry <karl@freefriends.org>.
67975
67976 2006-04-20  Bruno Haible  <bruno@clisp.org>
67977
67978         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
67979         one argument, so that the code will be portable to Autoconf 2.60.
67980         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
67981         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67982         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
67983
67984 2006-04-19  Derek Price  <derek@ximbiot.com>
67985             Eric Blake  <ebb9@byu.net>
67986
67987         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
67988         rather than "/full/path.h".  Update comment to match.  Shorten &
67989         generalize m4_translit call via AS_TR_CPP.
67990
67991 2006-04-19  Derek Price  <derek@ximbiot.com>
67992             Eric Blake  <ebb9@byu.net>
67993
67994         * lib/inttypes.h: Correct grammar in comment.
67995
67996 2006-04-18  Derek Price  <derek@ximbiot.com>
67997             Paul Eggert  <eggert@cs.ucla.edu>
67998
67999         * modules/inttypes: New file.
68000         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
68001
68002 2006-04-18  Derek Price  <derek@ximbiot.com>
68003             Paul Eggert  <eggert@cs.ucla.edu>
68004
68005         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
68006         New files.
68007
68008 2006-04-18  Derek Price  <derek@ximbiot.com>
68009             Paul Eggert  <eggert@cs.ucla.edu>
68010
68011         * lib/inttypes.h: New file.
68012         * lib/strtoimax.c: Assume <inttypes.h>.
68013
68014 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
68015
68016         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
68017         isn't mounted.  Problem reported by Kir Kolyshkin.
68018
68019 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68020
68021         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
68022         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
68023         Derek R. Price.
68024         * lib/regex.h (RE_DUP_MAX): Update comment to match current
68025         implementation.
68026
68027 2006-04-12  Eric Blake  <ebb9@byu.net>
68028
68029         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
68030         is now done automatically by the corresponding Autoconf macro.
68031
68032 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
68033
68034         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
68035         time_r.h.
68036
68037 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68038
68039         Merge regex changes from libc, removing some of our
68040         POSIX-conformance changes that were rejected and redoing them in a
68041         less-intrusive way.
68042
68043         * lib/regcomp.c (re_compile_internal, init_dfa):
68044         Length arg is now size_t, not Idx.  All uses changed.
68045         (peek_token): Forward decl now says internal_function.
68046         (__re_error_msgid, __re_error_msgid_idx):
68047         Now static rather than extern with attribute_hidden.
68048         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
68049         For some reason libc prefers K&R style defns for external functions.
68050         (regerror) [!defined _LIBC]: Likewise.
68051         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
68052         (seek_collating_symbol_entry, lookup_collation_sequence_value):
68053         (build_range_exp, build_collating_symbol):
68054         Use K&R-style defn.
68055         (re_compile_fastmap): Use '\0' to memset, not 0.
68056         (utf8_sb_map): Make the calculations more obvious.
68057         (init_dfa, parse_bracket_exp, build_charclass_op):
68058         Call calloc and cast result, as glibc does.
68059         (init_word_char, fetch_token, peek_token, peek_token_bracket):
68060         (build_range_exp, build_collating_symbol):
68061         Now internal functions.
68062
68063         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
68064
68065         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
68066         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
68067         Don't depend on VMS; depend on __VMS instead, for POSIX
68068         namespace cleanness.
68069         (regoff_t): Define to ssize_t, not long int.
68070
68071         Remove the REG_ macros named below.  Instead, make the old names
68072         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
68073         __USE_GNU_REGEX.
68074         (REG_BACKSLASH_ESCAPE_IN_LISTS):
68075         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
68076         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
68077         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
68078         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
68079         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
68080         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
68081         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
68082         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
68083         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
68084         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
68085         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
68086         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
68087         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
68088         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
68089         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
68090         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
68091         (REG_NREGS):
68092         Remove.  All uses replaced by the old RE_* names.
68093         (RE_BACKSLASH_ESCAPE_IN_LISTS):
68094         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
68095         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
68096         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
68097         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
68098         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
68099         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
68100         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
68101         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
68102         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
68103         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
68104         Don't bother having these macros be independent of each others'
68105         values, since they no longer exist in the POSIX name space.
68106
68107         Rename the following member names back to their old names,
68108         unless !__USE_GNU_REGEX.  All uses changed back.
68109         (buffer): Renamed from re_buffer.
68110         (allocated): Renamed from re_allocated.
68111         (used): Renamed from re_used.
68112         (syntax): Renamed from re_syntax.
68113         (fastmap): Renamed from re_fastmap.
68114         (translate): Renamed from re_translate.
68115         (can_be_null): Renamed from re_can_be_null.
68116         (regs_allocated): Renamed from re_regs_allocated.
68117         (fastmap_accurate): Renamed from re_fastmap_accurate.
68118         (no_sub): Renamed from re_no_sub.
68119         (not_bol): Renamed from re_not_bol.
68120         (not_eol): Renamed from re_not_eol.
68121         (newline_anchor): Renamed from re_newline_anchor.
68122         (num_regs): Renamed from rm_num_regs.
68123         (start): Renamed from rm_start.
68124         (end): Renamed from rm_end.
68125
68126         (free_state): Move up a bit.
68127
68128         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
68129         #define to be empty.
68130         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
68131         when that is what is intended.
68132         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
68133         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
68134         (MAX): New macro.
68135         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
68136         All uses changed back to re_malloc, etc.  It's now the caller's
68137         responsibility to check for overflow; all callers changed.
68138         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
68139         (re_x2nrealloc): Remove.
68140         (free_state): Remove decl.
68141
68142         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
68143         (re_set_registers, re_exec):
68144         Use K&R-style defn.
68145
68146         2006-01-31  Roland McGrath  <roland@redhat.com>
68147
68148         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
68149         Reported by Mike Frysinger <vapier@gentoo.org>.
68150
68151         2006-01-15  Andreas Jaeger  <aj@suse.de>
68152
68153         [BZ #1950]
68154         * lib/regex_internal.c (re_string_reconstruct): Adjust for
68155         build_wcs_upper_buffer change.
68156         (build_wcs_upper_buffer): Change return type.
68157
68158         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
68159
68160         * lib/regex_internal.h: Include <stdint.h> if available.
68161
68162         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
68163
68164         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
68165
68166         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68167
68168         * lib/regcomp.c: Adjust for changed secondary hash function.
68169
68170         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
68171
68172         * lib/regex.h: Pretty printing.
68173         Clean up namespace a bit.
68174
68175         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
68176
68177         * lib/regexec.c (update_cur_sifted_state, check_arrival,
68178         check_arrival_add_next_nodes): Avoid using uninitialized variable.
68179
68180         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68181                     Ulrich Drepper  <drepper@redhat.com>
68182
68183         [BZ #1302]
68184         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
68185         changed.
68186         (bitset_word_t): Renamed from bitset_word.  All uses changed.
68187
68188         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
68189
68190         [BZ #281]
68191         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
68192         * lib/regcomp.c: Remove unnecessary uses of
68193         unsigned RE_TRANSLATE_TYPE.
68194         * lib/regex_internal.h: Likewise.
68195         * lib/regex_internal.c: Likewise.
68196         * lib/regexec.c: Likewise.
68197         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
68198
68199         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
68200
68201         * lib/regexec.c (find_recover_state): Remove unnecessary
68202         initialization.
68203         (transit_state_bkref): Make DFA a const pointer.
68204         (get_subexp): Likewise.
68205         (check_arrival): Likewise.
68206         (update_cur_sifted_state): Likewise.
68207         (re_search_internal): Likewise.
68208         (prune_impossible_nodes): Likewise.
68209         (acquire_init_state_context): Likewise.
68210         (proceed_next_node): Likewise.
68211         (set_regs): Likewise.
68212         (free_fail_stack_return): Likewise.
68213         (check_arrival_expand_ecl): Mark DFA parameter as const.
68214         (check_arrival_expand_ecl_sub): Likewise.
68215         (check_subexp_limits): Likewise.
68216         (sub_epsilon_src_nodes):  Likewise.
68217         (add_epsilon_src_nodes):  Likewise.
68218         (merge_state_array): Likewise.
68219         (update_regs): Likewise.
68220         (build_trtable): Likewise.
68221         (sift_states_backward): Mark MCTX parameter as const.
68222         (build_sifted_states): Likewise.
68223         (update_cur_sifted_state): Likewise.
68224         (sift_states_mkref): Likewise.
68225         (check_arrival_expand_ecl): Mark eclosure as const.
68226         (check_dst_limits_calc_pos_1): Likewise.
68227         * lib/regex_internal.h (re_match_context_t): Make dfa a const
68228         pointer.
68229
68230         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
68231
68232         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
68233         (transit_state_sb): Likewise.
68234         (transit_state_mb): Likewise.
68235         (sift_states_iter_mb): Likewise.
68236         (check_arrival_add_next_nodes): Likewise.
68237         (check_node_accept_bytes): Change first parameter to pointer-to-const.
68238         [_LIBC] (re_search_2_stub): Use mempcpy.
68239
68240         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
68241         mbrtowc for very simple UTF-8 case.
68242
68243         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
68244         a pointer-to-const.
68245         (re_acquire_state_context): Likewise.
68246         * lib/regex_internal.h: Adjust prototypes.
68247
68248         * lib/regex.c: Prevent using C++ compilers.
68249
68250         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
68251         (re_acquire_state_context): Likewise.
68252
68253 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68254
68255         * modules/regex (Depends-on): Add ssize_t.
68256
68257 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68258
68259         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
68260         translation table.
68261
68262 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68263
68264         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
68265
68266 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
68267             Bruno Haible  <bruno@clisp.org>
68268
68269         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
68270         <sys/types.h> and <inttypes.h>.
68271
68272 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68273
68274         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
68275         `__error_t_defined', so argp.h will not typedef the former.
68276
68277 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68278
68279         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
68280         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
68281         glibc names.  Even if glibc is changed to conform to POSIX, the
68282         traditional names will be available anyway, since regex depends on
68283         the extensions module.  Also, fix a longstanding typo in the
68284         implementation of Spencer ERE test #75 from grep 2.3.  Problems
68285         reported by Emanuele Giaquinta.  Also, change sense of cached
68286         variable, so that the message makes sense.
68287
68288 2006-03-24  Simon Josefsson  <jas@extundo.com>
68289
68290         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
68291         including some doc fixes.
68292         (base64_encode_alloc): Fix +1 bug on allocation failures.
68293
68294 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68295
68296         * lib/base64.c (base64_encode): Do not read past end of array with
68297         unsanitized input on systems with CHAR_BIT > 8.
68298
68299 2006-03-24  Eric Blake  <ebb9@byu.net>
68300
68301         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
68302
68303 2006-03-22  Karl Berry  <karl@gnu.org>
68304
68305         * config/srclist.txt (*setenv.[ch]): get from coreutils.
68306         * config/srclistvars.sh (COREUTILS): new var.
68307
68308 2006-03-17  Jim Meyering  <jim@meyering.net>
68309
68310         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
68311         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
68312
68313 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68314
68315         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
68316         no longer needs it.  Instead, check that regoff_t is as least
68317         as wide as ptrdiff_t.
68318
68319         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
68320         so that our regex.h stays compatible with the installed regex.
68321         This is helpful for installers who configure --without-included-regex.
68322         Problem reported by Emanuele Giaquinta.
68323
68324 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68325
68326         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
68327         Typedef to long int, not to off_, as POSIX will likely change
68328         in that direction.
68329
68330 2006-03-15  Eric Blake  <ebb9@byu.net>
68331
68332         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
68333
68334 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68335
68336         * lib/argp-help.c (validate_uparams): Fix typo
68337         * lib/argp-parse.c (argp_default_options): Consistently begin help
68338         messages with a lowercase letter.
68339
68340 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
68341
68342         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
68343         overrun buffers and shouldn't be used (much as gets shouldn't be
68344         used).
68345         * lib/time_r.c (asctime_r, ctime_r): Likewise.
68346
68347 2006-03-08  Simon Josefsson  <jas@extundo.com>
68348
68349         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
68350         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68351
68352 2006-03-08  Simon Josefsson  <jas@extundo.com>
68353
68354         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
68355         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68356
68357 2006-03-08  Simon Josefsson  <jas@extundo.com>
68358
68359         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
68360         signal that configure disabled the device.
68361
68362 2006-03-08  Simon Josefsson  <jas@extundo.com>
68363
68364         * build-aux/maint.mk: Fix refresh-po, to handle no translated
68365         languages.
68366
68367 2006-03-07  Simon Josefsson  <jas@extundo.com>
68368
68369         * modules/getopt (Depends-on): Add unistd.
68370
68371         * modules/unistd: New file.
68372
68373 2006-03-07  Simon Josefsson  <jas@extundo.com>
68374
68375         * modules/gc-random: New file.
68376
68377 2006-03-07  Simon Josefsson  <jas@extundo.com>
68378
68379         * m4/unistd_h.m4: New file.
68380
68381 2006-03-07  Simon Josefsson  <jas@extundo.com>
68382
68383         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
68384         test to be side-effect free by storing the result in the cache
68385         variable gl_cv_lib_readline, and moving the assignment of
68386         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
68387         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68388
68389 2006-03-07  Simon Josefsson  <jas@extundo.com>
68390
68391         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
68392         error on missing devices (the functions will return an error).
68393
68394         * m4/gc.m4: Move random stuff to gc-random.m4
68395
68396 2006-03-07  Simon Josefsson  <jas@extundo.com>
68397
68398         * lib/unistd_.h: New file.
68399
68400 2006-03-07  Simon Josefsson  <jas@extundo.com>
68401
68402         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
68403
68404 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68405
68406         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
68407         Problem reported by Juan Manuel Guerrero.
68408
68409 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68410
68411         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
68412         the unistd module.
68413         * lib/getlogin_r.c: Likewise.
68414         * lib/getlogin_r.h: Likewise.
68415         * lib/glob.c: Likewise.
68416         * lib/pagealign_alloc.c: Likewise.
68417         * lib/unistd_.h: Remove; no longer needed.
68418
68419 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68420
68421         * MODULES.html.sh (Support for systems lacking POSIX:2001):
68422         Add unistd.
68423         * modules/c-stack (Depends-on): Add unistd.
68424         * modules/getlogin_r: Likewise.
68425         * modules/glob: Likewise.
68426         * modules/pagealign_alloc: Likewise.
68427         * modules/unistd (Files): Remove lib/unistd_.h.
68428         (EXTRA_DIST): Remove.
68429         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
68430         need unistd_.h.
68431         (MOSTLYCLEANFILES): Remove unistd.h-t.
68432
68433 2006-03-03  Simon Josefsson  <jas@extundo.com>
68434
68435         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
68436
68437 2006-03-03  Simon Josefsson  <jas@extundo.com>
68438
68439         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
68440         libidn and bison.
68441
68442 2006-03-03  Simon Josefsson  <jas@extundo.com>
68443
68444         * build-aux/maint.mk: Add indent target.
68445
68446 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
68447
68448         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
68449         our replacement poll.h in any case, to avoid a differing
68450         declaration from a system header.  Seen on AIX.
68451
68452 2006-03-01  Simon Josefsson  <jas@extundo.com>
68453
68454         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
68455         <kasal@ucw.cz>.
68456
68457 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68458
68459         * modules/gettime (Depends-on): Add extensions module.
68460         * modules/nanosleep (Depends-on): Likewise.
68461         * modules/settime (Depends-on): Likewise.
68462
68463 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68464
68465         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
68466         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
68467         pedantically.
68468         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68469         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
68470
68471         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
68472         not "==".  Reported by Ralf Wildenhues.
68473
68474 2006-03-01  Karl Berry  <karl@gnu.org>
68475
68476         * doc/Copyright/request-*: new files, synced from gnuorg.
68477
68478 2006-03-01  Karl Berry  <karl@gnu.org>
68479
68480         * config/srclist.txt (Copyright/*): new entries.
68481
68482 2006-02-28  Simon Josefsson  <jas@extundo.com>
68483
68484         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
68485
68486 2006-02-27  Simon Josefsson  <jas@extundo.com>
68487
68488         * lib/base64.h: Indent #define's.  From Jim Meyering
68489         <jim@meyering.net>.
68490
68491 2006-02-27  Jim Meyering  <jim@meyering.net>
68492
68493         Revert the change of 2006-02-24, so these files can continue
68494         to be sync'd from gettext.
68495         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
68496         of `config.h'.
68497
68498 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68499
68500         * modules/intprops: New file.
68501         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68502         Add intprops.
68503         * modules/getloadavg (Files): Remove lib/intprops.h.
68504         (Depends-on): Add intprops.
68505         * modules/human: Likewise.
68506         * modules/inttostr: Likewise.
68507         * modules/openat: Likewise.
68508         * modules/sig2str: Likewise.
68509         * modules/userspec: Likewise.
68510         * modules/utimecmp: Likewise.
68511         * modules/xnanosleep: Likewise.
68512         * modules/xstrtol: Likewise.
68513
68514 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
68515
68516         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
68517         * modules/lock-tests (TESTS): Use $(EXEEXT).
68518         * modules/tls-tests: Likewise.
68519         * modules/argp-tests: Likewise.
68520         (check_PROGRAMS): New var, replacing...
68521         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
68522
68523 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68524
68525         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
68526         `config.h'.
68527
68528 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68529
68530         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
68531
68532 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68533
68534         Sync from coreutils.
68535         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
68536         gl_CHDIR_SAFER.
68537
68538 2006-02-22  Jim Meyering  <jim@meyering.net>
68539
68540         Sync from coreutils.
68541         * m4/chdir-safer.m4: New file.
68542
68543 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68544
68545         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
68546         AT_FDCWD exceeds INT_MAX.
68547         * lib/openat.h (AT_FDCWD): Likewise.
68548
68549 2006-02-17  Eric Blake  <address@hidden>
68550
68551         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
68552
68553 2006-02-16  Simon Josefsson  <jas@extundo.com>
68554
68555         * modules/getaddrinfo (Depends-on): Add sys_socket.
68556
68557 2006-02-15  Simon Josefsson  <jas@extundo.com>
68558
68559         * build-aux/maint.mk: Add dsyntax-check rule.
68560
68561 2006-02-15  Eric Blake  <ebb9@byu.net>
68562
68563         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
68564         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
68565         'present but cannot compile' warnings on cygwin.
68566         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
68567         use ws2tcpip.h if sys/socket.h works.
68568         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
68569         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
68570
68571 2006-02-14  Simon Josefsson  <jas@extundo.com>
68572
68573         * modules/maintainer-makefile (Files): Rename.
68574
68575         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
68576         and (the local) Makefile.cfg to maint-cfg.mk.
68577
68578         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
68579         to the latter.
68580
68581         * modules/maintainer-makefile: New module.
68582
68583         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
68584         severaly stripped to make it possible to build it up from scratch
68585         with reliable tests.
68586
68587         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
68588         fixes to permit overriding the default actions when configure and
68589         makefile are not available.
68590
68591 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68592
68593         Sync from coreutils.
68594         * modules/lstat (Depends-on): Don't depend on xalloc.
68595         (License): Change from GPL to LGPL, since this is now simply a
68596         replacement for a libc function.
68597
68598 2006-02-14  Jim Meyering  <jim@meyering.net>
68599
68600         Sync from coreutils.
68601
68602         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
68603         failure on deficient systems, and simplify gnulib lgpl dependencies.
68604         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
68605         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
68606
68607         * lib/xalloc-die.c: Remove unused definition of N_.
68608
68609 2006-02-14  Jim Meyering  <jim@meyering.net>
68610
68611         Sync from coreutils.
68612         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
68613         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
68614         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
68615         double-quote uses of that variable, to accommodate the rare case in
68616         which getmntent is available in none of the libraries checked.  This
68617         happens at least on FreeBSD 5.0.
68618
68619 2006-02-13  Simon Josefsson  <jas@extundo.com>
68620
68621         * gnulib-tool (Usage): Fix --import, from
68622         karl@freefriends.org (Karl Berry).
68623
68624 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68625
68626         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
68627
68628 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
68629
68630         * lib/argp-namefrob.h: Restore changes accidentally lost during the
68631         "autoupdate" on 2005-12-12.
68632
68633 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68634
68635         * modules/closeout (Depends-on): Remove atexit.
68636
68637 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68638
68639         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
68640         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
68641
68642 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68643
68644         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
68645         __EXTENSIONS__ if this causes compilation to fail.  Problem
68646         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
68647         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
68648
68649 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
68650
68651         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
68652         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
68653         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
68654         All uses changed.
68655
68656 2006-01-26  Simon Josefsson  <jas@extundo.com>
68657
68658         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
68659         prototype is visible on mingw32.
68660
68661         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
68662         for mingw32.
68663
68664         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
68665         mingw32).
68666
68667 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68668
68669         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
68670         attempt to open for write; this always fails, at least on POSIX
68671         hosts.  This reinstates the 2006-01-09 change, which was
68672         inadvertently removed.
68673
68674 2006-01-26  Bruno Haible  <bruno@clisp.org>
68675
68676         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
68677         Reported by Paul Eggert.
68678
68679 2006-01-26  Bruno Haible  <bruno@clisp.org>
68680             Paul Eggert  <eggert@cs.ucla.edu>
68681
68682         * lib/stdbool_.h (_Bool)
68683         [(! (defined __cplusplus || defined __BEOS__)
68684           && !defined __GNUC__
68685           && !(defined __HP_cc || defined __xlc__
68686                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
68687                || defined __sgi))]:
68688         #define to signed char in these cases too; this simplifies
68689         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
68690         etc., separately) and makes it more conservative.
68691
68692 2006-01-25  Simon Josefsson  <jas@extundo.com>
68693
68694         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
68695         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
68696         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
68697
68698 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68699
68700         * lib/argp-namefrob.h: Bugfix. Remove stray #
68701
68702 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
68703
68704         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
68705         so that we test the test.
68706         Check for yet another HP-UX cc bug involving *bool |= bool.
68707
68708 2006-01-25  Karl Berry  <karl@gnu.org>
68709
68710         * config/srclist.txt (vasnprintf.c): sync lost.
68711
68712 2006-01-25  Jim Meyering  <jim@meyering.net>
68713
68714         Sync from the stable (b5) branch of coreutils:
68715
68716         * lib/fts.c (fts_children): Don't let close() clobber errno from
68717         failed fchdir().
68718
68719         * lib/fts.c (fts_stat): When following a symlink-to-directory,
68720         don't necessarily interpret stat-fails+lstat-succeeds as indicating
68721         a dangling symlink.  That can also happen at least for ELOOP.
68722         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
68723         FYI, this bug predates the inclusion of fts.c in coreutils.
68724
68725         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
68726         in their own block, so pre-c99 compilers don't object.
68727
68728         Avoid the double-free (first in fts_read, second in fts_close) that
68729         would occur when an `active' directory is made inaccessible (e.g.,
68730         via chmod a-x) during a traversal.
68731         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68732         before returning.  Reproduce this failure by
68733         mkdir -p a/b; cd a; chmod a-x . b
68734         Reported by Stavros Passas.
68735
68736 2006-01-25  Jim Meyering  <jim@meyering.net>
68737
68738         * lib/fileblocks.c: Remove more useless parentheses.
68739         * lib/readutmp.h: Likewise.
68740
68741 2006-01-25  Bruno Haible  <bruno@clisp.org>
68742
68743         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
68744         warnings.
68745         Reported by Paul Eggert.
68746
68747 2006-01-25  Bruno Haible  <bruno@clisp.org>
68748
68749         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
68750         rid of a trap command. For Solaris sh.
68751         Reported by Mark D. Baushke <mdb@gnu.org>.
68752
68753 2006-01-24  Simon Josefsson  <jas@extundo.com>
68754
68755         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
68756         Bruno.
68757
68758 2006-01-24  Karl Berry  <karl@gnu.org>
68759
68760         * config/srclist.txt (argp-namefrob.h): sync lost.
68761
68762 2006-01-24  Jim Meyering  <jim@meyering.net>
68763
68764         * modules/openat (Files): Add lib/intprops.h.
68765         From Mark D. Baushke.
68766
68767 2006-01-24  Jim Meyering  <jim@meyering.net>
68768
68769         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
68770         Reported by Mark D. Baushke.
68771
68772 2006-01-24  Jim Meyering  <jim@meyering.net>
68773
68774         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
68775
68776 2006-01-24  Bruno Haible  <bruno@clisp.org>
68777
68778         * modules/strnlen (Maintainer): Change from glibc to all.
68779
68780 2006-01-24  Bruno Haible  <bruno@clisp.org>
68781
68782         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
68783         Patch by Paul Eggert.
68784
68785 2006-01-24  Bruno Haible  <bruno@clisp.org>
68786
68787         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
68788         already has it.
68789         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
68790         2005-11-26.
68791
68792         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
68793         'signed char' to avoid problems with the built-in _Bool type.
68794         Reported by Paul Eggert on 2005-11-26.
68795
68796 2006-01-24  Bruno Haible  <bruno@clisp.org>
68797
68798         * gnulib-tool (func_import): Avoid constructing complicated sed
68799         expressions inside backquote.
68800         Report and solution by Mark D. Baushke <mdb@gnu.org>.
68801
68802 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
68803
68804         These changes imported from libc.
68805         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
68806         test and two separate function calls.
68807         * lib/strndup.c (__strndup): Add libc_hidden_def.
68808
68809 2006-01-23  Simon Josefsson  <jas@extundo.com>
68810
68811         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
68812         Remove the test_*_SOURCES variable: automake infers it by default.
68813         * modules/tls-tests: Likewise.
68814
68815 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68816
68817         Work around porting bugs reported by Dieter in
68818         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
68819         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
68820         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
68821         Include "getopt.h" first, to check interface.
68822         (getenv): Declare only if defined HAVE_DECL_GETENV &&
68823         !HAVE_DECL_GETENV.
68824         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
68825         (__strndup): Revert to K&R-style function dfns, the glibc style.
68826         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
68827         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
68828         Include strnlen.h first, to get prototype properly.
68829         (strnlen): Renamed from __strnlen.
68830         Remove weak alias.
68831
68832 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68833
68834         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
68835
68836 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68837
68838         * config/srclist.txt: Adjust to reflect glibc reorganization.
68839         This affects only comments.
68840
68841 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68842
68843          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
68844          Reported by Bruce Korb <bkorb@gnu.org>.
68845
68846 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
68847
68848         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
68849         to pacify gcc -Wswitch-default.
68850
68851 2006-01-22  Bruno Haible  <bruno@clisp.org>
68852
68853         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
68854         temporary buffer for sprintf, take into account the precision also
68855         for 'd', 'i', 'u', 'o', 'x', 'X'.
68856
68857 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
68858
68859         * modules/argp-tests: New module
68860         * tests/test-argp.c: New file
68861         * tests/test-argp-2.sh: New file
68862
68863 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
68864
68865         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
68866         (__argp_base_name): Removed
68867         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
68868         typo.
68869         (__argp_base_name): Provide macro definition or extern declaration
68870         depending on the configuration
68871
68872 2006-01-20  Simon Josefsson  <jas@extundo.com>
68873
68874         * modules/inet_ntop (Depends-on): Depend on sys_socket.
68875
68876 2006-01-20  Simon Josefsson  <jas@extundo.com>
68877
68878         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
68879
68880 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68881
68882         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
68883         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
68884         Suggested by Bruno Haible.
68885
68886 2006-01-20  Karl Berry  <karl@gnu.org>
68887
68888         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
68889         until changes propagate, I guess.
68890
68891 2006-01-19  Simon Josefsson  <jas@extundo.com>
68892
68893         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
68894
68895 2006-01-19  Simon Josefsson  <jas@extundo.com>
68896
68897         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
68898
68899 2006-01-19  Simon Josefsson  <jas@extundo.com>
68900
68901         * gnulib-tool: Set check_PROGRAMS.
68902
68903         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
68904         modules/des-tests, modules/gc-arcfour-tests,
68905         modules/gc-arctwo-tests, modules/gc-des-tests,
68906         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
68907         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
68908         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
68909         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
68910         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
68911         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
68912         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
68913         test_*_SOURCES.
68914
68915 2006-01-18  Simon Josefsson  <jas@extundo.com>
68916
68917         * modules/socklen (Depends-on): Depend on sys_socket.
68918
68919 2006-01-18  Simon Josefsson  <jas@extundo.com>
68920
68921         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
68922         modules/des-tests, modules/gc-arcfour-tests,
68923         modules/gc-arctwo-tests, modules/gc-des-tests,
68924         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
68925         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
68926         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
68927         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
68928         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
68929         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
68930         $(EXEEXT) to automake TESTS variable, for mingw32.
68931
68932 2006-01-17  Simon Josefsson  <jas@extundo.com>
68933
68934         * modules/socklen (Include): Need sys/socket.h.
68935
68936 2006-01-17  Bruno Haible  <bruno@clisp.org>
68937
68938         * modules/ssize_t (Include): Add <sys/types.h>.
68939
68940 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
68941
68942         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
68943         it's not portable and it doesn't work with cross-compiles.
68944         Problem reported by Bruno Haible.  Fix missing-$ typo in
68945         'test "gl_cv_ignore_unused_libraries" ...' that prevented
68946         -zignore from being used with Sun's C compiler.
68947
68948 2006-01-12  Simon Josefsson  <jas@extundo.com>
68949
68950         * lib/base64.c: Fix warning, reported by Bruno Haible
68951         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
68952
68953 2006-01-12  Bruno Haible  <bruno@clisp.org>
68954
68955         * modules/ldd: New file.
68956         * build-aux/ldd.sh.in: New file.
68957         * MODULES.html.sh (Support for building libraries and executables): Add
68958         ldd.
68959
68960 2006-01-12  Bruno Haible  <bruno@clisp.org>
68961
68962         * m4/ldd.m4: New file.
68963
68964 2006-01-12  Bruno Haible  <bruno@clisp.org>
68965
68966         * gnulib-tool (func_import, func_create_testdir): Don't go into an
68967         endless loop while replacing $auxdir with build-aux.
68968
68969 2006-01-11  Simon Josefsson  <jas@extundo.com>
68970
68971         * lib/stdint_.h (SIZE_MAX): Add missing (.
68972
68973 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
68974
68975         Sync from coreutils.
68976         * lib/md5.c: Fix commentary typos.
68977         (alignof, UNALIGNED_P): No need for a GCC-specific version.
68978         * lib/md5.h (__attribute__): Remove; unused.
68979         * lib/sha1.c: Fix commentary to match md5 better.
68980         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
68981         so that we don't need to worry about alignment.  All uses changed.
68982         This merges the 2005-10-28 md5 change into sha1.
68983
68984 2006-01-11  Jim Meyering  <jim@meyering.net>
68985
68986         Sync from coreutils.
68987         * lib/md5.c (OP): Fix spacing.
68988
68989 2006-01-11  Bruno Haible  <bruno@clisp.org>
68990
68991         Ensure automatic ordering between gl_LOCK and gl_ARGP.
68992         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
68993         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
68994
68995 2006-01-11  Bruno Haible  <bruno@clisp.org>
68996
68997         Ensure automatic ordering between gl_LOCK and gl_ARGP.
68998         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
68999         the "early" section as well.
69000
69001 2006-01-11  Bruno Haible  <bruno@clisp.org>
69002
69003         Avoid "ar: no archive members specified" error on MacOS X.
69004         * gnulib-tool (func_modules_add_dummy): New function.
69005         (func_import, func_create_testdir): Invoke it.
69006
69007 2006-01-11  Bruno Haible  <bruno@clisp.org>
69008
69009         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
69010         with $auxdir in AC_CONFIG_FILES statements.
69011
69012 2006-01-11  Bruno Haible  <bruno@clisp.org>
69013
69014         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69015         Initialize also noinst_HEADERS to empty.
69016
69017 2006-01-11  Bruno Haible  <bruno@clisp.org>
69018
69019         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
69020         variables.
69021         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
69022         autoreconf.
69023
69024 2006-01-11  Bruno Haible  <bruno@clisp.org>
69025
69026         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
69027         overridable by the user.
69028         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69029
69030 2006-01-10  Simon Josefsson  <jas@extundo.com>
69031
69032         * modules/sys_socket: New file.
69033
69034 2006-01-10  Simon Josefsson  <jas@extundo.com>
69035
69036         * m4/sys_socket_h.m4: New file.
69037
69038 2006-01-10  Simon Josefsson  <jas@extundo.com>
69039
69040         * lib/socket_.h: New file.
69041
69042 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69043
69044         * modules/readutmp (Maintainer): Add myself.
69045
69046 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69047
69048         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
69049         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
69050         People who are still concerned with buggy memcmp implementations
69051         can invoke gl_FUNC_MEMCMP themselves.
69052
69053 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69054
69055         * lib/regex_internal.h (BITSET_WORD_BITS):
69056         Work around a bug in 64-bit PGC (before version 6.1-2), where the
69057         preprocessor mishandles large unsigned values as if they were signed.
69058         Problem reported by Claudio Fontana in
69059         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
69060
69061 2006-01-10  Jim Meyering  <jim@meyering.net>
69062
69063         Avoid the double-free (first in fts_read, second in fts_close) that
69064         would occur when an `active' directory is made inaccessible (e.g.,
69065         via chmod a-x) during a traversal.
69066         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69067         before returning.  Reproduce this failure by
69068         mkdir -p a/b; cd a; chmod a-x . b
69069         Reported by Stavros Passas.
69070
69071         Sync from coreutils.
69072         * lib/sha1.c: Tweak grammar in a comment.
69073
69074 2006-01-10  Jim Meyering  <jim@meyering.net>
69075
69076         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
69077         Patch by Joerg Sonnenberger.
69078
69079 2006-01-10  Bruno Haible  <bruno@clisp.org>
69080
69081         * modules/readutmp: Depend on module free.
69082         * modules/strtok_r: Depend on module restrict.
69083
69084 2006-01-10  Bruno Haible  <bruno@clisp.org>
69085
69086         * modules/gettext (configure.ac): Add an invocation of
69087         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
69088
69089 2006-01-10  Bruno Haible  <bruno@clisp.org>
69090
69091         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
69092         Reported by Werner Lemberg <wl@gnu.org>.
69093
69094 2006-01-10  Bruno Haible  <bruno@clisp.org>
69095
69096         * lib/localcharset.c: Update from GNU gettext.
69097
69098 2006-01-10  Bruno Haible  <bruno@clisp.org>
69099
69100         * lib/argp.h (__const): Remove macro. Use const instead.
69101         * lib/argp-fmtstream.h (__const): Likewise.
69102         * lib/glob_.h (__const): Remove macro.
69103         * lib/glob-libc.h: Use const instead of __const.
69104
69105 2006-01-10  Bruno Haible  <bruno@clisp.org>
69106
69107         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
69108         variable.
69109         Needed to avoid an automake error regarding the 'gettext' module.
69110
69111 2006-01-09  Simon Josefsson  <jas@extundo.com>
69112
69113         * modules/inet_ntop (Depends-on): Add restrict.
69114
69115 2006-01-09  Simon Josefsson  <jas@extundo.com>
69116
69117         * modules/gc-rijndael-tests (License): Put under LGPL.
69118
69119         * modules/gc-des-tests (License): Likewise.
69120
69121         * modules/gc-arcfour-tests (License): Likewise.
69122
69123         * modules/gc-arctwo-tests (License): Likewise.
69124
69125         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
69126
69127         * modules/gc-hmac-sha1-tests (Files): Likewise.
69128
69129         * modules/gc-hmac-md5-tests (License): Likewise.
69130
69131         * modules/gc-sha1-tests (License): Likewise.
69132
69133         * modules/gc-md5-tests (License): Likewise.
69134
69135         * modules/gc-md4-tests (License): Likewise.
69136
69137         * modules/gc-md2-tests (License): Likewise.
69138
69139         * modules/gc-tests (License): Likewise.
69140
69141         * modules/des-tests (License): Likewise.
69142
69143         * modules/md4-tests (License): Likewise.
69144
69145         * modules/md2-tests (License): Likewise.
69146
69147 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69148
69149         Sync from coreutils:
69150
69151         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
69152         * modules/lib-ignore: New file.
69153         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
69154         chdir-safer.m4, lchmod.m4.
69155         * modules/openat: Add mkdirat.c, openat-priv.h.
69156
69157 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69158
69159         Sync from coreutils.
69160         * m4/lib-ignore.m4: New file.
69161         * m4/lchmod.m4: New file.
69162
69163 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69164
69165         Sync from coreutils.
69166         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
69167         for write access: POSIX says that must fail.
69168         * lib/fts.c (diropen): Likewise.
69169         * lib/save-cwd.c (save_cwd): Likewise.
69170         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
69171         well, for minor improvements on hosts that lack O_DIRECTORY.
69172         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
69173         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
69174         Fall back on chown if open failed with EACCES.
69175
69176         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
69177         Report an error at compile-time if only a 1-second nominal clock
69178         resolution is found.
69179
69180         * lib/lchmod.h: New file.
69181         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
69182         (make_dir_parents): Use lchown rather than chown, and
69183         lchmod rather than chmod.
69184
69185         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
69186         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
69187         "proc" reported by n0dalus.
69188
69189         * lib/mountlist.c: Include <limits.h>.
69190         (dev_from_mount_options)
69191         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
69192         New function.  It no longer assumes "dev=" has the System V meaning
69193         on Linux (since it doesn't).  It also parses "dev=" more carefully.
69194         (read_file_system_list)
69195         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
69196         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
69197         dev= in that case.
69198
69199         * lib/posixtm.h (PDS_PRE_2000): New macro.
69200         * lib/posixtm.c (year): Arg is now syntax_bits rather than
69201         allow_century.  All usages changed.  Reject dates outside the range
69202         1969-1999 if PDS_PRE_2000 is used.
69203
69204 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69205
69206         Sync from coreutils.
69207         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
69208         (Time of day items): Mention the possibility of leap seconds.
69209         Problem reported by Dr. David Alan Gilbert.
69210
69211 2006-01-09  Jim Meyering  <jim@meyering.net>
69212
69213         Sync from coreutils.
69214
69215         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
69216
69217         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
69218
69219         * lib/modechange.c (mode_compile): Reject an invalid mode string
69220         that starts with an octal digit.  From Andreas Gruenbacher.
69221
69222         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
69223         and dup to open_safer and dup_safer, respectively.
69224         (openat_permissive): Fix typo in comment.
69225
69226         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
69227         "gettext.h"; either no longer needed or are guaranteed by openat.h.
69228         (_): Remove; no longer needed.
69229         (openat): Renamed from rpl_openat; no need for rpl_openat
69230         since openat.h renames openat for us.
69231         Replace most of the body with a call to openat_permissive,
69232         to avoid duplicate code.
69233         Port to (probably hypothetical) environments were mode_t is
69234         wider than int.
69235         (openat_permissive): Require mode arg, so that we can check
69236         types better.  Put it just after flags.  Change cwd failure
69237         indicator from pointer-to-bool to pointer-to-errno-value.
69238         All callers changed.
69239         Invoke openat_save_fail and/or openat_restore_fail if
69240         cwd_errno is null, so that openat can call us.
69241         (openat_permissive, fdopendir, fstatat, unlinkat):
69242         Simplify errno handling to avoid some duplicate code,
69243         as it's OK to set errno on success.
69244         * lib/openat.h: Revamp code so that function macros depend on
69245         __OPENAT_PREFIX only, not also on AT_FDCWD.
69246         (openat_ro): Remove.  Caller changed to use openat_permissive.
69247         (openat_permissive): Now a macro, if not a function.
69248         (openat_restore_fail, openat_save_fail): Now always functions,
69249         since mkdirat needs them even if __OPENAT_PREFIX is defined.
69250
69251         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
69252         and openat.c.
69253         * lib/mkdirat.c: Include openat-priv.h.
69254         Remove definitions of macros defined therein.
69255         * lib/openat.c: Likewise.
69256
69257         * lib/mkdirat.c (mkdirat): New file and function.
69258         * lib/openat.h (mkdirat): Declare.
69259
69260         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
69261
69262         * lib/openat.h (openat_permissive): Declare.
69263         (openat_ro): Define.
69264
69265         * lib/openat.c (EXPECTED_ERRNO): New macro.
69266         (openat_permissive): New function -- used in remove.c rewrite.
69267         (all functions): Set errno just before returning, only if there
69268         was an actual failure.
69269         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
69270
69271         Emulate openat-family functions using Linux's procfs, if possible.
69272         Idea and some code based on Ulrich Drepper's glibc changes.
69273
69274         * lib/openat.c: (BUILD_PROC_NAME): New macro.
69275         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
69276         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
69277         before falling back on save_cwd and restore_cwd.
69278         (fdopendir, fstatat, unlinkat): Likewise.
69279
69280         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
69281         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
69282
69283         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
69284         as second argument to va_arg.  Otherwise, some versions of gcc
69285         warn that `if this code is reached, the program will abort'.
69286
69287 2006-01-09  Jim Meyering  <jim@meyering.net>
69288
69289         Sync from coreutils.
69290         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
69291         Require openat-priv.h.
69292
69293 2006-01-09  Bruno Haible  <bruno@clisp.org>
69294
69295         * modules/strnlen (Include): Use strnlen.h.
69296
69297 2006-01-09  Bruno Haible  <bruno@clisp.org>
69298
69299         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
69300
69301 2006-01-09  Bruno Haible  <bruno@clisp.org>
69302
69303         * lib/sysexit_.h (EX_OK): New macro.
69304         Suggested by Martin Lambers <marlam@marlam.de>.
69305
69306 2006-01-09  Bruno Haible  <bruno@clisp.org>
69307
69308         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
69309         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
69310
69311 2006-01-09  Bruno Haible  <bruno@clisp.org>
69312
69313         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
69314         numbers.
69315
69316 2006-01-09  Bruno Haible  <bruno@clisp.org>
69317
69318         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
69319         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
69320         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
69321         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
69322
69323 2006-01-09  Bruno Haible  <bruno@clisp.org>
69324
69325         * build-aux/javacomp.sh.in: New file, moved from lib/.
69326         * modules/javacomp-script (Files): Update.
69327         (configure.ac): Add AC_CONFIG_FILES invocation.
69328         (EXTRA_DIST): Remove variable.
69329
69330         * build-aux/javaexec.sh.in: New file, moved from lib/.
69331         * modules/javaexec (Files): Update.
69332         (configure.ac): Add AC_CONFIG_FILES invocation.
69333         (EXTRA_DIST): Remove javaexec.sh.in.
69334
69335         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
69336         * modules/csharpcomp-script (Files): Update.
69337         (configure.ac): Add AC_CONFIG_FILES invocation.
69338         (EXTRA_DIST): Remove variable.
69339
69340         * build-aux/csharpexec.sh.in: New file, moved from lib/.
69341         * modules/csharpexec (Files): Update.
69342         (configure.ac): Add AC_CONFIG_FILES invocation.
69343         (EXTRA_DIST): Remove csharpexec.sh.in.
69344
69345 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69346
69347         Sync from coreutils.
69348
69349         Add POSIX ACL support
69350         * lib/acl.h (copy_acl, set_acl): Add declarations.
69351         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
69352         systems other than Linux.
69353         (chmod_or_fchmod): New function: use fchmod when possible,
69354         and chmod otherwise.
69355         (file_has_acl): Add a POSIX ACL implementation, with a
69356         Linux-specific subcase.
69357         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
69358         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
69359         acls are unsupported.
69360         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
69361         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
69362         are unsupported.
69363
69364 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69365
69366         Sync from coreutils.
69367         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
69368
69369 2006-01-07  Bruno Haible  <bruno@clisp.org>
69370
69371         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
69372         gl_EARLY.
69373
69374 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69375
69376         * lib/strftime.c (tzname): Don't declare if it is already #defined.
69377         Problem reported for Mingw by Mark Junker.
69378
69379 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69380
69381         * README: Gnulib normally doesn't generate a tarball.
69382
69383 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
69384
69385         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
69386         long int, not int, for nanosecond counts, so that people who are
69387         used to POSIX struct timespec won't be surprised.  Reported by Jim
69388         Meyering.
69389
69390 2005-12-28  Bruno Haible  <bruno@clisp.org>
69391
69392         * build-aux/config.rpath: Update from GNU gettext.
69393
69394 2005-12-16  Jim Meyering  <jim@meyering.net>
69395
69396         * modules/fprintftime: New module.
69397         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
69398
69399 2005-12-16  Jim Meyering  <jim@meyering.net>
69400
69401         * m4/fprintftime.m4: New file.
69402
69403 2005-12-16  Jim Meyering  <jim@meyering.net>
69404
69405         * lib/fprintftime.c, lib/fprintftime.h: New files.
69406
69407 2005-12-15  Simon Josefsson  <jas@extundo.com>
69408
69409         * modules/socklen (configure.ac): Fix M4 macro name, to align with
69410         new m4/socklen.m4.
69411
69412 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69413
69414         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
69415         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
69416
69417 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69418
69419         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
69420         * lib/argp-help.c (fill_in_uparams): Check if the constructed
69421         struct uparams is valid. Fall back to the default values if it is
69422         not.
69423
69424 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69425
69426         * modules/argp (Files): Add argp-pin.c
69427         (Depends-on): dirname
69428         (lib_SOURCES): Add argp-pin.c
69429
69430 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69431
69432         * m4/argp.m4:  Check if program_invocation_name and
69433         program_invocation_short_name are declared and define appropriate
69434         macros if they are not.
69435
69436 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69437
69438         * lib/argp-help.c (__argp_base_name): New function
69439         (__argp_short_program_name): Rewrite using __argp_base_name
69440         * lib/argp-namefrob.h: Define program_invocation_name and
69441         program_invocation_short_name if requested
69442         (__argp_base_name): Add prototype
69443         * lib/argp-parse.c (argp_def): Use gettext wrappers
69444         (argp_default_parser): Use __argp_base_name
69445         * lib/argp-pin.c: New file. Defines program_invocation_name and
69446         program_invocation_short_name on systems that lack them.
69447
69448 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69449
69450         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
69451         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69452         porting problem reported by Georg Schwarz in
69453         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69454
69455 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69456
69457         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
69458         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69459         porting problem reported by Georg Schwarz in
69460         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69461
69462 2005-12-05  Bruno Haible  <bruno@clisp.org>
69463
69464         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
69465         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
69466         Reported by Mark Junker <mjscod@gmx.de>.
69467
69468 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
69469
69470         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
69471         Use implementation from Albert Chin, with some
69472         comments/corrections by Stepan Kasal and myself.
69473
69474 2005-12-02  Bruno Haible  <bruno@clisp.org>
69475
69476         * gnulib-tool (func_import): Accept GPLed build tool modules when
69477         --lgpl is given.
69478         * modules/csharpcomp-script: New file.
69479         * modules/csharpcomp: Depend on it.
69480         * modules/javacomp-script: New file.
69481         * modules/javacomp: Depend on it.
69482         Suggested by Simon Josefsson.
69483
69484 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
69485
69486         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
69487         statement, to work around an HP-UX 10.20 compiler bug reported by
69488         Peter O'Gorman.
69489
69490 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69491
69492         * modules/savedir (Depends-on): Add openat.
69493
69494 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69495
69496         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
69497         (uintmax_t) [defined uintmax_t]: Do not declare.
69498         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
69499         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
69500         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
69501         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
69502         sake of portability to weird hosts that C allows (though we don't
69503         know of any practical examples).
69504
69505         * lib/savedir.h (fdsavedir): New decl.
69506         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
69507         contains most of the former guts of savedir.
69508         (savedir): Use savedirstream.
69509         Include "openat.h".
69510
69511 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69512
69513         * modules/obstack (Files): Add m4/ulonglong.m4.
69514         Problem reported by Davide Angelocola.
69515
69516 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
69517
69518         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
69519         coreutils no longer futzes with rounding modes.
69520
69521 2005-11-14  Jim Meyering  <jim@meyering.net>
69522
69523         * lib/mkstemp-safer.c: Include <config.h>, required for possible
69524         replacement of mkstemp.
69525
69526 2005-11-10  Simon Josefsson  <jas@extundo.com>
69527
69528         * lib/readline.c: Remove EOL.
69529
69530 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69531
69532         * modules/gethrxtime (Depends-on): Add gettime.
69533
69534 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69535
69536         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
69537         or gettimeofday; no longer needed.
69538
69539 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69540
69541         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
69542         time business.
69543         (gethrxtime) [! (HAVE_NANOUPTIME
69544         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
69545         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
69546         our own approximation.
69547
69548 2005-11-08  Eric Blake  <ebb9@byu.net>
69549
69550         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69551
69552 2005-11-08  Eric Blake  <ebb9@byu.net>
69553
69554         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69555
69556 2005-11-04  Bruno Haible  <bruno@clisp.org>
69557
69558         * gnulib-tool: Implement --update mode.
69559
69560 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69561
69562         Fix porting problem reported by Theodoros V. Kalamatianos.
69563         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
69564         Don't assume that futimes failing means we must fail.
69565
69566 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69567
69568         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
69569         variables to suggest the intended function of the PATH_MAX check.
69570
69571 2005-10-30  Kean Johnston  <jkj@sco.com>
69572
69573         Trivial changes to support SCO systems.
69574         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
69575         as PATH_MAX.
69576         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
69577         where __ptr is null when no I/O is pending.
69578
69579 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69580
69581         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
69582         leave errno alone.  Problem reported by Dmitry V. Levin.
69583
69584 2005-10-28  Simon Josefsson  <jas@extundo.com>
69585
69586         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
69587         Test more.
69588
69589         * tests/test-gc-md2.c, tests/test-md2.c: New files.
69590
69591         * modules/md2, modules/md2-tests: New files.
69592
69593 2005-10-28  Simon Josefsson  <jas@extundo.com>
69594
69595         * m4/inet_ntop.m4: More tests.
69596
69597         * m4/gc-md2.m4, md2.m4: New file.
69598
69599 2005-10-28  Simon Josefsson  <jas@extundo.com>
69600
69601         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
69602         "restrict" keywords, as per POSIX.  Protect the function
69603         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
69604         Don't use K&R prototypes.  Check the sprintf return values.
69605         Re-define EAFNOSUPPORT if not present.  Indent.
69606
69607         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
69608         suggested by Bruno Haible <bruno@clisp.org>.
69609
69610         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
69611
69612         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
69613
69614         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
69615         libgcrypt).
69616
69617         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
69618
69619         * lib/md2.h, lib/md2.c: New files.
69620
69621 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
69622
69623         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
69624         errno alone.  Problem reported by Frederic Jolliton.
69625
69626 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
69627
69628         * modules/verify (License): Change from GPL to LGPL.  This is a
69629         tiny module and there are apparently near-equivalents that are
69630         under the BSD license.
69631
69632 2005-10-24  Simon Josefsson  <jas@extundo.com>
69633
69634         * modules/sha1: Relicense to LGPL.
69635
69636 2005-10-24  Simon Josefsson  <jas@extundo.com>
69637
69638         * lib/md4.h: Shrink buffer size, now that we changed the type.
69639
69640 2005-10-23  Simon Josefsson  <jas@extundo.com>
69641
69642         * gnulib-tool (func_import): Fix --tests-base.
69643
69644 2005-10-22  Simon Josefsson  <jas@extundo.com>
69645
69646         * modules/arcfour (Depends-on): Need stdint.
69647
69648 2005-10-22  Simon Josefsson  <jas@extundo.com>
69649
69650         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
69651         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
69652
69653 2005-10-22  Simon Josefsson  <jas@extundo.com>
69654
69655         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
69656         suggested by Bruno Haible <bruno@clisp.org>.
69657
69658 2005-10-22  Simon Josefsson  <jas@extundo.com>
69659
69660         * lib/crc.h: Include stddef.h, for size_t.
69661
69662 2005-10-22  Simon Josefsson  <jas@extundo.com>
69663
69664         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
69665         arcfour_context struct (simplify test vector testing in GNU
69666         Shishi).
69667
69668 2005-10-21  Simon Josefsson  <jas@extundo.com>
69669
69670         * modules/des, modules/des-tests: New files.
69671
69672         * modules/gc-des, modules/gc-des-tests: New files.
69673
69674         * tests/test-des.c, tests/test-gc-des.c: New file.
69675
69676 2005-10-21  Simon Josefsson  <jas@extundo.com>
69677
69678         * modules/arctwo, modules/arctwo-tests: New files.
69679
69680         * tests/test-arctwo.c: New file.
69681
69682         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
69683
69684         * tests/test-gc-arctwo.c: New file.
69685
69686 2005-10-21  Simon Josefsson  <jas@extundo.com>
69687
69688         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
69689         Bruno Haible <bruno@clisp.org>.
69690
69691         * m4/gc-des.m4: New file.
69692
69693 2005-10-21  Simon Josefsson  <jas@extundo.com>
69694
69695         * m4/arctwo.m4: New file.
69696
69697         * m4/gc-arctwo.m4: New file.
69698
69699 2005-10-21  Simon Josefsson  <jas@extundo.com>
69700
69701         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
69702         block.
69703
69704 2005-10-21  Simon Josefsson  <jas@extundo.com>
69705
69706         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
69707         <bruno@clisp.org>.
69708
69709         * lib/hmac-sha1.c (hmac_sha1): Likewise.
69710
69711         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
69712         Bruno Haible <bruno@clisp.org>.
69713
69714         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
69715         <bruno@clisp.org>.
69716
69717 2005-10-21  Simon Josefsson  <jas@extundo.com>
69718
69719         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
69720
69721 2005-10-21  Simon Josefsson  <jas@extundo.com>
69722
69723         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
69724
69725 2005-10-21  Simon Josefsson  <jas@extundo.com>
69726
69727         * lib/des.h, lib/des.c: New files.
69728
69729         * lib/gc-gnulib.c: Support DES.c
69730
69731 2005-10-21  Simon Josefsson  <jas@extundo.com>
69732
69733         * lib/arctwo.h, lib/arctwo.c: New files.
69734
69735         * lib/gc-gnulib.c: Support ARCTWO.
69736
69737 2005-10-21  Simon Josefsson  <jas@extundo.com>
69738
69739         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
69740         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69741
69742 2005-10-21  Simon Josefsson  <jas@extundo.com>
69743
69744         * gnulib-tool (func_import, func_create_testdir): Define automake
69745         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
69746         Makefile.am snippet),
69747         suggested by Bruno Haible <bruno@clisp.org>.
69748
69749         * modules/gc (Makefile.am): Use it.
69750
69751 2005-10-21  Bruno Haible  <bruno@clisp.org>
69752
69753         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
69754         patch.
69755
69756 2005-10-19  Simon Josefsson  <jas@extundo.com>
69757
69758         * tests/test-gc-rijndael.c: New file.
69759
69760         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
69761
69762 2005-10-19  Simon Josefsson  <jas@extundo.com>
69763
69764         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
69765         interface too.
69766
69767 2005-10-19  Simon Josefsson  <jas@extundo.com>
69768
69769         * tests/test-gc-arcfour.c: New file.
69770
69771         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
69772
69773 2005-10-19  Simon Josefsson  <jas@extundo.com>
69774
69775         * modules/gc-md4, modules/gc-md4-tests: New file.
69776
69777         * tests/test-gc-md4.c: New file.
69778
69779 2005-10-19  Simon Josefsson  <jas@extundo.com>
69780
69781         * m4/gc-md4.m4: New file.
69782
69783 2005-10-19  Simon Josefsson  <jas@extundo.com>
69784
69785         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
69786         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
69787         <kasal@ucw.cz>.
69788
69789 2005-10-19  Simon Josefsson  <jas@extundo.com>
69790
69791         * m4/gc-arcfour.m4: New file.
69792
69793         * m4/gc-rijndael.m4: New file.
69794
69795 2005-10-19  Simon Josefsson  <jas@extundo.com>
69796
69797         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
69798
69799 2005-10-19  Simon Josefsson  <jas@extundo.com>
69800
69801         * lib/gc-gnulib.c: Support ARCFOUR.
69802
69803 2005-10-19  Simon Josefsson  <jas@extundo.com>
69804
69805         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
69806         support.
69807
69808         * lib/gc.h: Add ECB enum type.
69809
69810         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
69811
69812 2005-10-18  Simon Josefsson  <jas@extundo.com>
69813
69814         * tests/test-md5.c: New file.
69815
69816         * modules/md5-tests: New file.
69817
69818 2005-10-18  Simon Josefsson  <jas@extundo.com>
69819
69820         * tests/test-md4.c: New file.
69821
69822         * modules/md4, modules/md4-tests: New files.
69823
69824 2005-10-18  Simon Josefsson  <jas@extundo.com>
69825
69826         * m4/md4.m4: New file.
69827
69828 2005-10-18  Simon Josefsson  <jas@extundo.com>
69829
69830         * lib/md4.h, lib/md4.c: New files, based on md5.?.
69831
69832 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
69833
69834         * gnulib-tool (func_create_testdir): Omit the second check whether
69835         BUILT_SOURCES in nonempty.
69836
69837 2005-10-17  Simon Josefsson  <jas@extundo.com>
69838
69839         * tests/test-rijndael.c: New file.
69840
69841 2005-10-17  Simon Josefsson  <jas@extundo.com>
69842
69843         * modules/sha1: Depend on stdint instead of md5.
69844
69845         * modules/md5: Depend on stdint, remove uint32_t.
69846
69847 2005-10-17  Simon Josefsson  <jas@extundo.com>
69848
69849         * modules/gc-sha1-tests: New file.
69850
69851         * tests/test-gc-sha1.c: New file.
69852
69853 2005-10-17  Simon Josefsson  <jas@extundo.com>
69854
69855         * m4/md5.m4: Remove call to uint32_t.m4.
69856
69857 2005-10-17  Simon Josefsson  <jas@extundo.com>
69858
69859         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
69860
69861         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
69862         md5.h.
69863
69864         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
69865
69866         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
69867
69868 2005-10-17  Simon Josefsson  <jas@extundo.com>
69869
69870         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
69871
69872 2005-10-17  Simon Josefsson  <jas@extundo.com>
69873
69874         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
69875
69876 2005-10-17  Simon Josefsson  <jas@extundo.com>
69877
69878         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
69879
69880         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
69881
69882 2005-10-17  Bruno Haible  <bruno@clisp.org>
69883
69884         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
69885         that it can also be used in a test.
69886
69887 2005-10-16  Bruno Haible  <bruno@clisp.org>
69888
69889         * gnulib-tool (func_emit_tests_Makefile_am): Also define
69890         TESTS_ENVIRONMENT, so that individual tests can augment it.
69891
69892         * gnulib-tool (func_create_testdir): Use an intermediate target for
69893         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
69894         macros, like $(ALLOCA_H), which cannot be passed through the command
69895         line.
69896
69897 2005-10-15  Simon Josefsson  <jas@extundo.com>
69898
69899         * modules/rijndael-tests: New file.
69900
69901         * modules/rijndael: New file.
69902
69903 2005-10-15  Simon Josefsson  <jas@extundo.com>
69904
69905         * m4/rijndael.m4: New file.
69906
69907 2005-10-15  Simon Josefsson  <jas@extundo.com>
69908
69909         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
69910
69911         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
69912
69913 2005-10-14  Simon Josefsson  <jas@extundo.com>
69914
69915         * tests/test-arcfour.c: New file.
69916
69917         * modules/arcfour, modules/arcfour-tests: New files.
69918
69919 2005-10-14  Simon Josefsson  <jas@extundo.com>
69920
69921         * m4/arcfour.m4: New file.
69922
69923 2005-10-14  Simon Josefsson  <jas@extundo.com>
69924
69925         * lib/arcfour.h, lib/arcfour.c: New files.
69926
69927 2005-10-14  Roland McGrath  <roland@redhat.com>
69928
69929         Import from libc.  [BZ #1331]
69930         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
69931         macro argument.
69932         Reported by Matej Vela <vela@debian.org>.
69933
69934 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69935
69936         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
69937         include <wchar.h>; no longer needed.
69938
69939 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69940
69941         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
69942
69943 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
69944         and  Ulrich Drepper  <drepper@redhat.com>
69945
69946         Import from libc.
69947         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
69948         instead of inline stream orientation test and two separate
69949         function calls.  Pay no attention to USE_IN_LIBIO.
69950
69951 2005-10-13  Simon Josefsson  <jas@extundo.com>
69952
69953         * modules/gc-hmac-md5-tests: New file.
69954
69955         * tests/test-gc-hmac-sha1.c: New file.
69956
69957         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
69958
69959         * modules/gc-hmac-md5-tests: New file.
69960
69961         * tests/test-gc-md5.c: New file.
69962
69963         * modules/gc-md5-tests: New file.
69964
69965 2005-10-13  Simon Josefsson  <jas@extundo.com>
69966
69967         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
69968         Move memory allocation outside of loop.
69969
69970 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
69971
69972         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
69973         intermediate directory is in a read-only file system.  Problem
69974         reported by Eric Blake.
69975
69976 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
69977
69978         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
69979
69980 2005-10-12  Simon Josefsson  <jas@extundo.com>
69981
69982         * tests/test-hmac-sha1.c: New file.
69983
69984         * modules/hmac-sha1-tests: New file.
69985
69986         * modules/hmac-sha1: New file.
69987
69988 2005-10-12  Simon Josefsson  <jas@extundo.com>
69989
69990         * modules/gc-sha1: New file.
69991
69992 2005-10-12  Simon Josefsson  <jas@extundo.com>
69993
69994         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
69995
69996         * tests/test-gc-pbkdf2-sha1.c: New file.
69997
69998 2005-10-12  Simon Josefsson  <jas@extundo.com>
69999
70000         * modules/gc-md5, modules/gc-hmac-md5: New files.
70001
70002         * modules/gc (Files): Remove md5, memxor and hmac files.
70003
70004 2005-10-12  Simon Josefsson  <jas@extundo.com>
70005
70006         * m4/gc-pbkdf2-sha1.m4: New file.
70007
70008         * m4/gc-hmac-sha1.m4: New file.
70009
70010         * m4/gc-sha1: New file.
70011
70012         * m4/hmac-sha1.m4: New file.
70013
70014 2005-10-12  Simon Josefsson  <jas@extundo.com>
70015
70016         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
70017
70018         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
70019
70020 2005-10-12  Simon Josefsson  <jas@extundo.com>
70021
70022         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
70023         suggested by Bruno Haible <bruno@clisp.org>.
70024
70025 2005-10-12  Simon Josefsson  <jas@extundo.com>
70026
70027         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
70028
70029 2005-10-12  Simon Josefsson  <jas@extundo.com>
70030
70031         * lib/gc-pbkdf2-sha1.c: New file.
70032
70033         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
70034
70035 2005-10-12  Simon Josefsson  <jas@extundo.com>
70036
70037         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
70038
70039         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
70040
70041 2005-10-12  Simon Josefsson  <jas@extundo.com>
70042
70043         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
70044         GC_USE_HMAC_MD5, respectively.
70045
70046         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
70047         (gc_md5): Fix typo.
70048
70049         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
70050
70051         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
70052
70053         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
70054
70055 2005-10-12  Bruno Haible  <bruno@clisp.org>
70056
70057         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
70058         Reported by Stepan Kasal <kasal@ucw.cz>.
70059
70060 2005-10-11  Simon Josefsson  <jas@extundo.com>
70061
70062         * tests/test-crc.c: New file.
70063
70064         * modules/crc, modules/crc-tests: New files.
70065
70066 2005-10-11  Simon Josefsson  <jas@extundo.com>
70067
70068         * m4/crc.m4: New file.
70069
70070 2005-10-11  Simon Josefsson  <jas@extundo.com>
70071
70072         * lib/gc.h: Add gc_hash and gc_hash_buffer.
70073
70074         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
70075
70076         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
70077
70078 2005-10-11  Simon Josefsson  <jas@extundo.com>
70079
70080         * lib/crc.h, lib/crc.c: New files.
70081
70082         * lib/gc.h (gc_hash_buffer): Add doc.
70083
70084 2005-10-11  Bruno Haible  <bruno@clisp.org>
70085
70086         * modules/c-strcasestr: New file.
70087         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
70088
70089 2005-10-11  Bruno Haible  <bruno@clisp.org>
70090
70091         * modules/c-strcase: New file.
70092         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
70093
70094 2005-10-11  Bruno Haible  <bruno@clisp.org>
70095
70096         * lib/strcasecmp.c: Include limits.h.
70097         (strcasecmp): Avoid integer overflow on exotic platforms.
70098         * lib/strncasecmp.c: Include limits.h.
70099         (strncasecmp): Avoid integer overflow on exotic platforms.
70100         Reported by Paul Eggert.
70101
70102 2005-10-11  Bruno Haible  <bruno@clisp.org>
70103
70104         * lib/c-strcasestr.h: New file, from GNU gettext.
70105         * lib/c-strcasestr.c: New file, from GNU gettext.
70106
70107 2005-10-11  Bruno Haible  <bruno@clisp.org>
70108
70109         * lib/c-strcase.h: New file, from GNU gettext.
70110         * lib/c-strcasecmp.c: New file, from GNU gettext.
70111         * lib/c-strncasecmp.c: New file, from GNU gettext.
70112
70113 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70114
70115         * modules/mempcpy (License): GPL -> LGPL.
70116         * modules/strchrnul (License): Likewise.
70117         * modules/sysexits (License): Likewise.
70118
70119 2005-10-08  Simon Josefsson  <jas@extundo.com>
70120
70121         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
70122
70123 2005-10-07  Simon Josefsson  <jas@extundo.com>
70124
70125         * m4/memxor.m4: Remove gl_C_RESTRICT call.
70126
70127 2005-10-06  Simon Josefsson  <jas@extundo.com>
70128
70129         * tests/test-hmac-md5.c: New file.
70130
70131         * modules/hmac-md5-tests: New file.
70132
70133         * modules/hmac-md5: New file.
70134
70135 2005-10-06  Simon Josefsson  <jas@extundo.com>
70136
70137         * m4/hmac-md5.m4: New file.
70138
70139         * m4/memxor.m4: Require gl_C_RESTRICT.
70140
70141 2005-10-06  Simon Josefsson  <jas@extundo.com>
70142
70143         * lib/memxor.c (memxor): Avoid casts and warnings.
70144
70145 2005-10-06  Simon Josefsson  <jas@extundo.com>
70146
70147         * lib/hmac-md5.c: New file.
70148
70149         * lib/hmac.h: New file.
70150
70151 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70152
70153         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
70154         promotes to int, not unsigned int, to catch the AIX 5.3
70155         compiler bug.
70156
70157 2005-10-05  Simon Josefsson  <jas@extundo.com>
70158
70159         * modules/memxor: New file.
70160
70161         * modules/iconv (Files): Move config.rpath to havelib, it is used
70162         there.
70163
70164         * modules/havelib (Files): Add config.rpath.
70165
70166 2005-10-05  Simon Josefsson  <jas@extundo.com>
70167
70168         * m4/memxor.m4: New file.
70169
70170 2005-10-05  Simon Josefsson  <jas@extundo.com>
70171
70172         * lib/memxor.c (memxor): Fix compiler error.
70173
70174         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
70175         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
70176
70177         * lib/memxor.h, lib/memxor.c: New files.
70178
70179         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
70180         we assume all systems have it, suggested by Jim Meyering
70181         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
70182         any systems lack sys/socket.h; mingw32 is known to lack it, but we
70183         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
70184         same reasons.
70185
70186 2005-10-05  Simon Josefsson  <jas@extundo.com>
70187
70188         * config/srclist.txt: Add glibc bug 1423 for md5.h.
70189
70190 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70191
70192         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
70193         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
70194         needed, since the source code now assumes these .h files.
70195
70196 2005-10-05  Derek Price  <derek@ximbiot.com>
70197
70198         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
70199
70200 2005-10-05  Bruno Haible  <bruno@clisp.org>
70201
70202         * modules/stdint (License): Change to LGPL.
70203
70204 2005-10-04  Simon Josefsson  <jas@extundo.com>
70205
70206         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
70207         D. Baushke" <mdb@gnu.org>.
70208
70209 2005-10-04  Bruno Haible  <bruno@clisp.org>
70210
70211         * lib/verify.h (verify_true): Provide alternative definition for C++.
70212
70213 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
70214
70215         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
70216         (SSIZE_MAX): New macro, if not already defined.
70217         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
70218         than 2 GiB.
70219
70220 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70221
70222         Sync from coreutils.
70223         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
70224         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
70225         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
70226         ULLONG_MAX doesn't work with 2.7.2.1.
70227
70228 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70229
70230         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
70231         From Ben Pfaff.
70232
70233         * modules/exclude (Depends-on): Depend on verify.
70234         * modules/strtoimax (Depends-on): Likewise.
70235         * modules/utimecmp (Depends-on): Likewise.
70236
70237 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70238
70239         * lib/exclude.c: Include verify.h.
70240         (verify): Remove.  All callers changed to use verify.h's version.
70241         * lib/strtoimax.c: Likewise.
70242         * lib/utimecmp.c: Likewis.e
70243
70244         Sync from coreutils.
70245         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
70246         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
70247         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
70248         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
70249         bother returning ENOSYS if settimeofday or stime fails; just let
70250         them return whatever errno they want to return.
70251         * lib/utimens.c: Include unistd.h, for dup2.
70252         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
70253         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
70254
70255 2005-10-02  Jim Meyering  <jim@meyering.net>
70256
70257         Sync from coreutils.
70258         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
70259         from glibc-2.2.5 that fails for read-only files.
70260
70261 2005-10-02  Jim Meyering  <jim@meyering.net>
70262
70263         Sync from coreutils.
70264         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
70265         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
70266         `#if HAVE_CONFIG_H'.
70267         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
70268         Remove AT_FDCWD test.
70269         Do not consume the fd unless successful.
70270         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
70271         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
70272         block, so that we don't even try to compile it if settimeofday is
70273         available.  This works around a compilation failure on OSF1 V5.1,
70274         due to stime requiring a `long int*' while tv_sec is `int'.
70275
70276 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
70277
70278         Sync from coreutils.
70279         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
70280         against `yes', rather than just testing for nonempty.
70281
70282 2005-10-01  Simon Josefsson  <jas@extundo.com>
70283
70284         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
70285         and Darwin.
70286
70287         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
70288         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
70289         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
70290         freeaddrinfo and gai_strerror are declared by the POSIX headers.
70291         Check if struct addrinfo is declared.
70292
70293 2005-10-01  Simon Josefsson  <jas@extundo.com>
70294
70295         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
70296         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
70297         AI_* and EAI_* definitions.  Protect function declarations.
70298
70299 2005-10-01  Jim Meyering  <jim@meyering.net>
70300
70301         Sync from coreutils.
70302
70303         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
70304         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
70305         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
70306         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70307         in the inet and nsl libraries.  Required on Solaris 5.7.
70308
70309 2005-10-01  Jim Meyering  <jim@meyering.net>
70310
70311         Sync from coreutils.
70312         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70313         in the inet and nsl libraries.  Required on Solaris 5.7.
70314
70315 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
70316
70317         * lib/getdelim.c (getdelim): Remove unused variables.
70318
70319 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70320
70321         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
70322         so that the code works even with ancient cpp.  Portability problem
70323         with GCC 2.7.2.1 reported by Thomas M.Ott.
70324
70325 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70326
70327         * modules/regex (Depends-on): Add strcase.
70328
70329         * modules/gethostname (Licence): Change from GPL to LGPL, since
70330         gethostname.c is a trivial implementation of a standard library
70331         function.
70332         * modules/poll (License): Change from GPL to LGPL, since it's
70333         derived from LGPL code.
70334
70335 2005-09-27  Jim Meyering  <jim@meyering.net>
70336
70337         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
70338         HAVE_CONFIG_H.
70339
70340         * lib/intprops.h (signed_type_or_expr__): Define.
70341         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
70342         for unsigned types.
70343
70344 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70345
70346         * lib/verify.h (verify_expr): Remove, replacing with:
70347         (verify_true): New macro that returns true instead of void.
70348         (verify_type__): Remove.
70349         (verify): Use verify_true rather than verify_type__.
70350
70351 2005-09-26  Bruno Haible  <bruno@clisp.org>
70352
70353         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
70354         is necessary.
70355         (lib_SOURCES): Remove mbchar.c.
70356         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
70357         (Files): Add m4/mbrtowc.m4.
70358         * modules/mbiter: Likewise.
70359         * modules/mbuiter: Likewise.
70360
70361 2005-09-26  Bruno Haible  <bruno@clisp.org>
70362
70363         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
70364         compile mbchar.c if they are not both present.
70365         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
70366         * m4/mbiter.m4 (gl_MBITER): Likewise.
70367         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
70368         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
70369         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
70370
70371 2005-09-25  Jim Meyering  <jim@meyering.net>
70372
70373         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
70374         also uses socklen_t.
70375
70376 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
70377
70378         * lib/utimens.c (ENOSYS): Define if not already defined.
70379         (futimens): Support having a null PATH if the file descriptor
70380         is nonnegative.
70381
70382         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
70383         Remove.
70384         (__attribute): Define to empty unless GCC 3.1 or later.
70385         This works around a core dump on OpenBSD 3.4, which has GCC
70386         2.95.3, which dumps core when given __attribute__(()).  It also
70387         simplifies other tests, since we really don't want to bother with
70388         worrying about which ancient version of GCC supported what.
70389         Original problem reported by Yoann Vandoorselaere, with part of
70390         the fix suggested by Derek Price.
70391
70392 2005-09-24  Jim Meyering  <jim@meyering.net>
70393
70394         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
70395         so we can once again use a positive bitfield width of 1 -- now we
70396         don't have to explain why we were using a bitfield width of 2.
70397
70398 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70399
70400         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
70401         and similarly for the other external symbols.  Problem reported
70402         by James Gallager.
70403
70404         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
70405         bug reported by Jim Meyering.
70406
70407         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
70408         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
70409         not needed, since socklen is a prerequisite module.
70410
70411 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70412
70413         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
70414         Problem reported by Eric Blake.
70415         (getaddrinfo): Initialize se so that it's not garbage.
70416         Redo internal storage allocation so that it doesn't make unportable
70417         assumptions about alignment.
70418         Fix a memory leak.
70419
70420         * lib/utimens.c (futimens): Use futimesat if available.
70421         Prefer it to futimes since it doesn't have the futimes bug.
70422
70423         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
70424         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
70425         Instead, declare a function that returns a pointer to an array,
70426         and use verify_type__ to declare the size of the array.
70427         Problem and germ of a solution reported by Bruno Haible.
70428         (verify_type__): Use 2, not 1, for bitfield size, to avoid
70429         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
70430
70431 2005-09-23  Jim Meyering  <jim@meyering.net>
70432
70433         Sync from coreutils.
70434         Correct build failure (socklen_t not defined) on at least
70435         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
70436         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
70437
70438 2005-09-23  Jim Meyering  <jim@meyering.net>
70439
70440         * modules/getaddrinfo (Depends-on): Add socklen.
70441
70442 2005-09-23  Bruno Haible  <bruno@clisp.org>
70443
70444         * tests/test-verify.c: New file.
70445
70446 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70447
70448         Sync from coreutils.
70449
70450         * modules/argmatch (Depends-on): Add verify.
70451         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
70452         unistd-safer.
70453         * modules/save-cwd (Depends-on): Likewise.
70454
70455         * modules/openat (Files): Add lib/openat-die.c.
70456         (Depends-on): Remove error, exitfail.
70457         Add dirname.
70458
70459         * modules/verify: New file.
70460         * MODULES.html.sh (Diagnostics <assert.h>): New section,
70461         with "verify" module.
70462
70463 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70464
70465         Sync from coreutils.
70466
70467         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
70468         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
70469         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
70470         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
70471         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
70472         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
70473         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
70474         Don't bother checking for string.h, stdlib.h, unistd.h.
70475         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
70476         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
70477         module's job.
70478         * m4/jm-macros.m4 (gl_MACROS): Likewise.
70479         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
70480
70481         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
70482         (gl_GETDATE): Use it.
70483
70484         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
70485
70486 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70487
70488         Sync from coreutils.
70489
70490         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
70491         stat-time.h.
70492         * lib/argmatch.h: Include verify.h
70493         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
70494         (ARGMATCH_ASSERT): Remove; unused.
70495         * lib/canonicalize.c: Assume STDC_HEADERS.
70496         * lib/exclude.c: Include "strcase.h".
70497         * lib/regex_internal.h [!defined _LIBC]: Likewise.
70498         * lib/getusershell.c: Include stdio--.h rather than stdio.h
70499         and stdio-safer.h.
70500         (getusershell): Call fopen, not fopen_safer.
70501         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
70502         Do not include unistd-safer.h.
70503         (save_cwd): Don't call fd_safer; no longer needed
70504         now that we include fcntl--.h.
70505
70506         * lib/getdate.y (relative_time): New type.
70507         (RELATIVE_TIME_0): New constant.
70508         (parser_control): Use relative_time instead of doing it ourselves.
70509         (%union): Add new relative_time rel member.
70510         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
70511         Now typeless.
70512         (relunit, relunit_snumber): Now of type rel.
70513         (zone, rel, relunit, get_date): Adjust to above changes.
70514
70515         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
70516         Do not include unistd-safer.h.
70517         (getloadavg): Don't call fd_safer; no longer needed
70518         now that we include fcntl--.h.
70519
70520         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
70521         (make_dir_parents): Treat ENOSYS like EEXIST.
70522
70523         Improve quality of diagnostics on restore_cwd failure.
70524         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
70525         (make_dir_parents): Last arg is now int * (for errno), not bool *.
70526         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
70527         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
70528         each time through the loop.  Do not diagnose restore_cwd failure;
70529         that is the caller's job (and perhaps the caller does not care).
70530
70531         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
70532         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
70533         If the file already exists but is not a directory, don't bother
70534         to try to make its parents.
70535         Close potential file descriptor leak if we can't chdir("/") (!).
70536         Don't always return true if chdir($PWD) fails; return true only
70537         if the requested action was done successfully (except for the
70538         chdir($PWD)).
70539         Don't log final directory unless we actually made it.
70540         Refactor to avoid duplicate code to fix up permissions.
70541         Don't attempt to fix up parent permissions if chdir($PWD) fails.
70542
70543         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
70544         to make it a bit faster and (I hope) clearer.
70545         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
70546         Fix bug in formats like %2N.
70547
70548         * lib/verify.h: New file.
70549
70550 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70551
70552         Sync from coreutils.
70553         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
70554
70555 2005-09-22  Jim Meyering  <jim@meyering.net>
70556
70557         Sync from coreutils.
70558
70559         * m4/lstat.m4 (gl_FUNC_LSTAT):
70560         Use AC_LIBSOURCES to require lstat.c and lstat.h.
70561         Remove obsolete comment.
70562         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
70563         * m4/xstrtod.m4: Likewise.
70564
70565         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
70566
70567 2005-09-22  Jim Meyering  <jim@meyering.net>
70568
70569         Sync from coreutils.
70570
70571         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
70572
70573         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
70574         the .tm_year member, since otherwise gcc-4.0 would now warn about
70575         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
70576
70577         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
70578         order to avoid an unsuppressible warning from gcc on 64-bit systems.
70579
70580         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
70581         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
70582         when run in a time zone for which daylight savings time is in effect
70583         for the starting date.
70584
70585         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
70586         stop us from restricting permissions of just-created absolute-named
70587         directories.
70588         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
70589         to restore initial working directory.
70590         * lib/mkdir-p.c (make_dir_parents): New parameter:
70591         different_working_dir, to tell caller if/when we change the working
70592         directory and are unable to return to the initial one.
70593         * lib/mkdir-p.h (make_dir_parents): Update prototype.
70594         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
70595         `return false'.  This fixes a bug introduced on 2004-07-30.
70596
70597         * lib/openat.c (fdopendir): Be sure to close the supplied
70598         file descriptor before returning.  This makes our replacement
70599         implementation a little closer to Solaris's, where fdopendir
70600         ties the file descriptor to the returned DIR* pointer.
70601         * lib/openat.c (unlinkat): New function.
70602         * lib/openat.h (unlinkat): Add prototype.
70603         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
70604         (openat_restore_fail): Rename from openat_restore_die.
70605         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
70606
70607         Provide an alternative to exiting immediately upon save_cwd or
70608         restore_cwd failure.  Now, an application can arrange e.g.,
70609         to perform a longjump in that case.
70610         * lib/openat.c: Include dirname.h.
70611         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
70612         (rpl_openat, fdopendir, fstatat): Call openat_save_die
70613         and openat_restore_die rather than calling error directly.
70614         Don't include "error.h" or "exitfail.h"; they're no longer needed.
70615
70616         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
70617         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
70618         define.
70619
70620         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
70621         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
70622                             int utc, int nanoseconds);
70623         Background:
70624         date should not have to allocate a megabyte of virtual memory to
70625         handle a format argument like +%1048575T.  When implemented with
70626         strftime, it must allocate such a buffer, use strftime to fill it
70627         in, print it, then free it.
70628         With fprintftime, it simply prints everything and exits.
70629         With no need for memory allocation, that's one fewer way to fail.
70630         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
70631         optional field width, not before, so we accept %9:z, not %:9z.
70632         (my_strftime): Be sure to use L_('x') for literals.
70633
70634         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
70635         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
70636         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
70637         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
70638         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
70639         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
70640         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
70641         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
70642         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
70643         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
70644         * lib/xgethostname.c, lib/xreadlink.c:
70645         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
70646
70647         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
70648         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
70649         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
70650         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70651         and don't include <sys/file.h>).
70652
70653 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
70654
70655         Sync from coreutils.
70656
70657         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
70658         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
70659         [!LDAV_DONE]: Avoid unused variable warning.
70660
70661 2005-09-21  Bruno Haible  <bruno@clisp.org>
70662
70663         * lib/unicodeio.h (unicode_to_mb): New declaration.
70664
70665 2005-09-20  Derek Price  <derek@ximbiot.com>
70666
70667         * lib/getaddrinfo.c: Don't include <netdb.h> included from
70668         getaddrinfo.h.
70669
70670 2005-09-20  Bruno Haible  <bruno@clisp.org>
70671
70672         * gnulib-tool: Remove trailing slashes from the values specified for
70673         --source-base, --m4-base, --tests-base, --aux-dir.
70674         Suggested by Simon Josefsson <jas@extundo.com>.
70675
70676 2005-09-20  Bruno Haible  <bruno@clisp.org>
70677
70678         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
70679         func_modules_to_filelist, func_import, func_create_testdir): Make all
70680         sorting results locale-independent, so that gnulib-cache.m4 doesn't
70681         change when gnulib-tool is invoked in a different locale.
70682
70683 2005-09-19  Simon Josefsson  <jas@extundo.com>
70684
70685         * m4/socklen.m4: Fix typo.
70686
70687 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70688
70689         Use a consistent style for including <config.h>.
70690         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
70691         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
70692         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
70693         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
70694         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
70695         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
70696         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
70697         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
70698         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
70699         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
70700         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
70701         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
70702         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
70703         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
70704         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
70705         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
70706         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
70707         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
70708         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
70709         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
70710         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
70711         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
70712         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
70713         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
70714         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
70715         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
70716         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
70717         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
70718         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
70719         lib/xstrtoumax.c, lib/yesno.c:
70720         Standardize inclusion of config.h.
70721         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
70722         lib/inttostr.h:  Removed inclusion of config.h from header files.
70723         * lib/inttostr.c:  Adjusted in-tree users.
70724         * lib/timespec.h: Remove superfluous warning to include config.h.
70725         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
70726         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
70727         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
70728         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
70729         config.h with HAVE_CONFIG_H.
70730
70731 2005-09-19  Jim Meyering  <jim@meyering.net>
70732
70733         * modules/pathmax (License): Change to LGPL.
70734
70735 2005-09-19  Derek Price  <derek@ximbiot.com>
70736
70737         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
70738
70739 2005-09-19  Bruno Haible  <bruno@clisp.org>
70740
70741         * gnulib-tool (import): Provide default for --tests-base.
70742
70743 2005-09-19  Bruno Haible  <bruno@clisp.org>
70744
70745         * doc/quote.texi: New file, extracted from gnulib.texi.
70746         * doc/ctime.texi: New file, extracted from gnulib.texi.
70747         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
70748         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
70749         * doc/gnulib.texi: Include them.
70750
70751 2005-09-18  Bruno Haible  <bruno@clisp.org>
70752
70753         Portability fix.
70754         * gnulib-tool (func_readlink): New function.
70755         (func_ln_if_changed): Use it.
70756
70757 2005-09-18  Bruno Haible  <bruno@clisp.org>
70758
70759         * gnulib-tool: Support --with-tests also with --import.
70760         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
70761         (func_import): Use variables $testsbase and $inctests. Emit a
70762         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
70763         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
70764         SUBDIRS += $testsdir.
70765         (func_create_testdir): Update.
70766
70767 2005-09-18  Bruno Haible  <bruno@clisp.org>
70768
70769         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
70770         instead of $dry_run.
70771         (func_cp_if_changed, func_mv_if_changed): Remove functions.
70772         (func_ln_if_changed): Don't handle dry-run here.
70773         (func_import): In dry-run mode, detect more precisely which actions
70774         would be performed, and don't use "...ing" verbs.
70775
70776 2005-09-18  Bruno Haible  <bruno@clisp.org>
70777
70778         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
70779         (func_import): Use join on two temporary files instead of three nested
70780         loops, in order to determine which files are new or old.
70781
70782 2005-09-18  Bruno Haible  <bruno@clisp.org>
70783
70784         * gnulib-tool (func_import): Comment out code that spits out the
70785         new files with --dry-run.
70786
70787 2005-09-18  Bruno Haible  <bruno@clisp.org>
70788
70789         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
70790
70791 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70792
70793         * lib/stat-time.h: New file.
70794         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
70795         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
70796         in a different way.
70797         (timespec_cmp): New function.
70798         * lib/utimecmp.c: Include stat-time.h.
70799         (SYSCALL_RESOLUTION): Depend on whether various struct stat
70800         members exist, not on the obsolescent ST_MTIM_NSEC.
70801         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
70802
70803 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70804
70805         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
70806
70807 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70808
70809         * MODULES.html.sh (File system functions): Add stat-time.
70810         * modules/stat-time: New file.
70811         * modules/timespec (Files): Remove m4/st_mtim.m4; this
70812         is now done in a different way, by the stat-time module.
70813         * modules/utimecmp (Depends-on): Add stat-time.
70814
70815 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70816
70817         * m4/st_mtim.m4: Remove.  Superseded by...
70818         * m4/stat-time.m4: New file.
70819         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
70820         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
70821
70822 2005-09-15  Derek Price  <derek@ximbiot.com>
70823
70824         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
70825
70826 2005-09-15  Derek Price  <derek@ximbiot.com>
70827
70828         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
70829         * lib/regex_internal.c: Ditto, using this...
70830         (__GNUC_PREREQ): ...new macro.
70831         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
70832         using...
70833         (__GNUC_PREREQ): ...this new macro.
70834
70835         * lib/strstr.h: Include string.h. Define strstr as a macro here.
70836
70837 2005-09-15  Derek Price  <derek@ximbiot.com>
70838             Paul Eggert  <eggert@cs.ucla.edu>
70839
70840         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
70841         changes, consolidating in...
70842         * lib/regex_internal.h: ...this file.
70843
70844 2005-09-13  Jim Meyering  <jim@meyering.net>
70845
70846         * lib/canon-host.c: Filter through gnu indent and reword comments
70847         slightly.
70848         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
70849
70850 2005-09-13  Derek Price  <derek@ximbiot.com>
70851
70852         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
70853         failure.
70854         Reported by Jim Meyering  <jim@meyering.net>.
70855
70856 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70857
70858         * lib/base64.c: Typo.
70859         (base64_encode): Put b64str in initialized data section.
70860
70861 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
70862
70863         Merge glibc and coreutils changes into gnulib, plus a few
70864         extra fixes.
70865         * lib/md5.c: Use #error rather than a string.
70866         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
70867         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
70868         (__attribute__): Define to empty for non recent-GCC.
70869         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
70870         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
70871         Renamed from their non-__ counterparts, with new macros replacing
70872         them if not _LIBC.  Add __THROW attribute.
70873         (rol): Remove.
70874         (struct md5_ctx): Align buffer if using GCC.
70875         * lib/sha1.h (struct sha1_ctx): Likewise.
70876         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
70877         The old name was backwards.
70878         (NOTSWAP): Remove; not used.
70879         (rol): New macro, moved here from md5.h.
70880         (sha1_process_block): Remove a FIXME that doesn't make sense.
70881
70882 2005-09-12  Derek Price  <derek@ximbiot.com>
70883
70884         Return usable errors from canon-host.
70885         * lib/canon-host.h: New file.
70886         * lib/canon-host.c (canon_host): Wrap...
70887         (canon_host_r): ...this new function, which now relies exclusively on
70888         getaddrinfo.
70889         (ch_strerror): New function.
70890         (last_cherror): New global.
70891         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
70892         interface.
70893         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
70894         void *.
70895         (freeaddrinfo): Free ai->ai_canonname when set.
70896
70897 2005-09-12  Derek Price  <derek@ximbiot.com>
70898
70899         Make canon-host require getaddrinfo.
70900         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
70901         AC_LIBSOURCE canon-host.h.  Call...
70902         (gl_PREREQ_CANON_HOST): ...this new function, which requires
70903         gl_GETADDRINFO.
70904         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
70905
70906 2005-09-12  Derek Price  <derek@ximbiot.com>
70907
70908         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
70909         LGPL.
70910         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
70911
70912 2005-09-12  Derek Price  <derek@ximbiot.com>
70913
70914         * lib/gai_strerror.c: Include config.h when available.  Include
70915         getaddrinfo.h before other headers to test interface.
70916         Reported by Larry Jones <lawrence.jones@ugs.com>.
70917
70918 2005-09-12  Derek Price  <derek@ximbiot.com>
70919             Paul Eggert  <eggert@cs.ucla.edu>
70920
70921         * modules/glob (Files): Add glob-libc.h.
70922
70923 2005-09-12  Derek Price  <derek@ximbiot.com>
70924             Paul Eggert  <eggert@cs.ucla.edu>
70925
70926         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
70927         glob_.h, glob-libc.h.
70928         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
70929
70930 2005-09-12  Derek Price  <derek@ximbiot.com>
70931             Paul Eggert  <eggert@cs.ucla.edu>
70932
70933         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
70934         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
70935         protecting things that should be done only in gnulib contexts.
70936         * lib/glob_.h: New file, containing only the glob things needed for
70937         gnulib.
70938         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
70939         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
70940         (glob, globfree, glob_pattern_p): Now defined simply in terms of
70941         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
70942         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
70943         and to respect the namespace rules better.
70944
70945 2005-09-08  Simon Josefsson  <jas@extundo.com>
70946
70947         * modules/socklen: New file.
70948
70949 2005-09-08  Simon Josefsson  <jas@extundo.com>
70950
70951         * m4/socklen.m4: New file.
70952
70953 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70954
70955         * modules/utimens (Files): Add m4/utimbuf.m4, since
70956         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
70957         Reported by Sergey Poznyakoff.
70958
70959 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70960
70961         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
70962         definitions, since that's the preferred style in glibc.
70963         Fix a minor spacing issue, and update copyright notice to match
70964         glibc's.
70965
70966 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70967
70968         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
70969
70970 2005-09-06  Simon Josefsson  <jas@extundo.com>
70971
70972         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
70973         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
70974
70975 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70976
70977         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
70978         warning.
70979
70980 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70981
70982         * config/srclist.txt: Add glibc bug 1302.
70983
70984 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
70985
70986         Change bitset word type from unsigned int to unsigned long int,
70987         as this has better performance on typical 64-bit hosts.
70988         Port bitset code to hosts with unusual word sizes.
70989         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
70990         (build_collating_symbol):
70991         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
70992         argument is a bitset.  This is merely a style issue, but it makes
70993         it clearer that an entire array is expected.
70994         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
70995         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
70996         Port to the case where bitset_word is not the same as unsigned int.
70997         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
70998         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
70999         Likewise.
71000         * lib/regexec.c (check_dst_limits_calc_pos_1,
71001         check_subexp_matching_top):
71002         (build_trtable, group_nodes_into_DFAstates):
71003         Likewise.
71004         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
71005         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
71006         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
71007         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
71008         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
71009         * lib/regcomp.c (optimize_subexps, lower_subexp):
71010         Work even if bitset_word has holes in its bitwise representation.
71011         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
71012         * lib/regexec.c (check_dst_limits_calc_pos_1,
71013         check_subexp_matching_top):
71014         Likewise.
71015         * lib/regex_internal.c (re_string_reconstruct):
71016         Don't assume UCHAR_MAX == 255.
71017         * lib/regex_internal.h (bitset_set_all): Likewise.
71018         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
71019         All uses changed.
71020         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
71021         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
71022         All uses changed.
71023         (BITSET_WORD_MAX): New macro.
71024         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
71025         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
71026         (bitset_empty, bitset_copy):
71027         Prefer sizeof (bitset) to multiplying it out ourselves.
71028         (bitset_not_merge): Remove; unused.
71029         (bitset_contain): Return bool, not unsigned int with one bit on.
71030         All callers changed.
71031         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
71032         alignment than re_node_set; do this by defining a new internal
71033         type struct dests_alloc and using it to allocate memory.
71034
71035 2005-09-05  Bruno Haible  <bruno@clisp.org>
71036
71037         * gnulib-tool (func_import): Fix comparison in handling of symbolic
71038         links.
71039
71040 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
71041
71042         * modules/size_max (Makefile.am): Add size_max.h
71043
71044 2005-09-04  Derek Price  <derek@ximbiot.com>
71045
71046         * gnulib-tool (func_import): Fix reversed $symbolic logic.
71047
71048 2005-09-03  Simon Josefsson  <jas@extundo.com>
71049
71050         * gnulib-tool: Fix typo.
71051
71052 2005-09-03  Simon Josefsson  <jas@extundo.com>
71053
71054         * config/srclist.txt: Add glibc bug 1293.
71055
71056 2005-09-03  Derek Price  <derek@ximbiot.com>
71057
71058         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
71059         From Larry Jones <lawrence.jones@ugs.com>.
71060
71061 2005-09-02  Simon Josefsson  <jas@extundo.com>
71062
71063         * modules/socklen: New file.
71064
71065 2005-09-02  Simon Josefsson  <jas@extundo.com>
71066
71067         * modules/havelib: New module.
71068
71069         * modules/gettext, modules/iconv, modules/lock, modules/readline:
71070         Use havelib.
71071
71072 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71073
71074         Check for arithmetic overflow when calculating sizes, to prevent
71075         some buffer-overflow issues.  These patches are conservative, in the
71076         sense that when I couldn't determine whether an overflow was possible,
71077         I inserted a run-time check.
71078         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
71079         macros.
71080         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
71081         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
71082         (re_xnrealloc, re_x2nrealloc): New inline functions.
71083         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
71084         parse_bracket_exp):
71085         (build_equiv_class, build_charclass): Check for arithmetic overflow
71086         in size expression calculations.
71087         * lib/regex_internal.c (re_string_realloc_buffers):
71088         (build_wcs_upper_buffer, re_node_set_add_intersect):
71089         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
71090         (re_dfa_add_node, register_state): Likewise.
71091         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
71092         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
71093         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
71094         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
71095
71096 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71097
71098         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71099         m4/ulonglong.m4.  Problem reported by Martin Lambers.
71100
71101 2005-09-02  Bruno Haible  <bruno@clisp.org>
71102
71103         Support for lib vs. lib64 distinction on biarch platforms.
71104         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
71105         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
71106         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
71107
71108 2005-09-02  Bruno Haible  <bruno@clisp.org>
71109
71110         * gnulib-tool (import): In the other first-use case, provide defaults
71111         as well.
71112
71113 2005-09-02  Bruno Haible  <bruno@clisp.org>
71114
71115         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
71116         patches not yet found in the latest gettext release.
71117
71118 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71119
71120         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
71121         to avoid a collision with bits/local_lim.h in glibc.
71122         All uses changed.  Problem reported by Dmitry V. Levin in
71123         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
71124
71125         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
71126         bugs in int versus size_t comparisons.
71127         (re_string_context_at): Fix bug where the code assumed that
71128         Idx is signed.
71129
71130         Use bool where appropriate.
71131         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
71132         All callers changed.
71133         (calc_eclosure_iter): Likewise, for ROOT arg.
71134         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
71135         (build_charclass_op): Likewise, for NON_MATCH arg.
71136         * lib/regex_internal.c (re_string_allocate, re_string_construct):
71137         (re_string_construct_common): Likewise, for ICASE arg.
71138         * lib/regexec.c (re_search_2_stub, re_search_stub):
71139         Likewise, for RET_LEN arg.
71140         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
71141         (set_regs): Likewise, for FL_BACKTRACK arg.
71142         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
71143         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
71144         (calc_eclosure_iter, parse_bracket_exp):
71145         Use bool for internal variables that are booleans.
71146         * lib/regexec.c (re_search_internal, check_matching,
71147         proceed_next_node):
71148         (set_regs, build_sifted_states, sift_states_bkref):
71149         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
71150         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71151         (find_collation_sequence_value):
71152         Likewise.
71153         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
71154         (re_node_set_compare):
71155         Return bool, not int. All callers changed.
71156         * lib/regexec.c (check_halt_node_context, check_dst_limits):
71157         (build_trtable, check_node_accept): Likewise.
71158         * lib/regex_internal.h: Include stdbool.h.
71159
71160         Fix bugs uncovered when converting to bool.
71161         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
71162         failure instead of charging ahead blindly.
71163         * lib/regex_internal.c (register_state): Likewise.
71164         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
71165         for freeing internal storage.
71166         (group_nodes_into_DFA_states): Use unsigned int, not int, for
71167         bitset pieces used as boolean, to avoid undefined behavior
71168         on hosts that do int overflow checking.
71169
71170 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71171
71172         * config/srclist.txt: Add glibc bugs 1285-1287.
71173
71174 2005-09-01  Jim Meyering  <jim@meyering.net>
71175
71176         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
71177         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
71178         Require gl_STAT_MACROS, too.
71179
71180 2005-09-01  Bruno Haible  <bruno@clisp.org>
71181
71182         * gnulib-tool (import): In the first-use case, provide defaults.
71183
71184 2005-09-01  Bruno Haible  <bruno@clisp.org>
71185
71186         * gnulib-tool (func_import): Remove the .tmp files.
71187
71188 2005-09-01  Bruno Haible  <bruno@clisp.org>
71189
71190         * gnulib-tool (func_import): Fix handling of symbolic links.
71191
71192 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71193
71194         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
71195         old glibc regex code mishandles strings longer than 2**31 bytes.
71196         This patch fixes this when the regex code is used in gnulib
71197         (i.e., outside glibc).
71198
71199         This patch should not affect the use of the regex code inside
71200         glibc.  No doubt this problem also needs to be handled for glibc
71201         as well, but the result will be an incompatible change to the
71202         glibc ABI, and the old ABI will have to be supported too.  That
71203         can be the the subject for another patch.
71204
71205         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
71206         governing whether the rest of this patch is active.  By default,
71207         the macro is disabled and the patch has no effect.
71208         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
71209         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
71210         (struct re_pattern_buffer, re_search, re_search_2, re_match):
71211         (re_match_2, re_set_registers): Use the new types.
71212         * lib/regex_internal.h (Idx, re_hashval_t): New types.
71213         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
71214         New macros.
71215         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
71216         (re_string_context_at, bin_tree_t, re_dfastate_t):
71217         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
71218         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
71219         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
71220         (re_string_char_size_at, re_string_wchar_at):
71221         (re_string_elem_size_at):
71222         Use the new types and macros to port to 64-bit hosts.
71223         Use unsigned types for internal values, so that the code
71224         mostly works even for arrays larger than SSIZE_MAX.
71225         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
71226         (search_duplicated_node, calc_eclosure_iter, fetch_number):
71227         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
71228         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
71229         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
71230         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
71231         (calc_inveclosure, parse_dup_op, build_range_exp):
71232         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
71233         (fetch_number, create_token_tree, mark_opt_subexp):
71234         Likewise.
71235         * lib/regex_internal.c (re_string_construct_common,
71236         create_ci_newstate):
71237         (create_cd_newstate, re_string_allocate, re_string_construct):
71238         (re_string_realloc_buffers, build_wcs_upper_buffer):
71239         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71240         (re_string_reconstruct, re_string_peek_byte_case):
71241         (re_string_fetch_byte_case, re_string_context_at):
71242         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71243         (re_node_set_init_copy, re_node_set_add_intersect):
71244         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71245         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71246         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71247         (re_acquire_state, re_acquire_state_context, register_state):
71248         Likewise.
71249         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
71250         search_cur_bkref_entry):
71251         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
71252         (re_search_internal, re_search_2_stub, re_search_stub)
71253         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
71254         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
71255         (update_cur_sifted_state, check_dst_limits):
71256         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71257         (check_subexp_limits, sift_states_bkref, merge_state_array):
71258         (check_subexp_matching_top, get_subexp, get_subexp_sub):
71259         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
71260         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71261         (expand_bkref_cache, check_node_accept_bytes):
71262         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
71263         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
71264         (acquire_init_state_context, check_halt_node_context):
71265         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
71266         (sift_states_backward, clean_state_log_if_needed):
71267         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
71268         (find_recover_state, transit_state_sb, transit_state_mb):
71269         (transit_state_bkref, build_trtable, match_ctx_clean):
71270         Likewise.
71271         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
71272         to work around an assumption that REG_MISSING is negative.
71273
71274         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
71275         (seek_collating_symbol_entry) [defined _LIBC]:
71276         (lookup_collation_sequence_value) [defined _LIBC]:
71277         (build_range_exp, build_collating_symbol) [defined _LIBC]:
71278         Use prototypes rather than old-style function definitions.
71279         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
71280         (transit_state_sb) [0]:
71281         (find_collation_sequence_value) [defined _LIBC]: Likewise.
71282
71283         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
71284         rm_eo.
71285
71286         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
71287         (optimize_subexps, lower_subexp):
71288         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
71289         since the signed shift might overflow.  Use 1u<<31 instead.
71290         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71291         Likewise.
71292         * lib/regexec.c (check_dst_limits_calc_pos_1,
71293         check_subexp_matching_top): Likewise.
71294
71295         * lib/regcomp.c (optimize_subexps, lower_subexp):
71296         Use CHAR_BIT rather than 8, for clarity.
71297         * lib/regexec.c (check_dst_limits_calc_pos_1):
71298         (check_subexp_matching_top): Likewise.
71299         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
71300         have to worry about portability issues when shifting it left.
71301         Remove no-longer-needed test for table_size > 0.
71302         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
71303         in a word, as the resulting behavior is undefined.
71304         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
71305         in one case, a <= should have been an <, and in another case the
71306         whole test was missing.
71307         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
71308         the standard name CHAR_BIT.
71309         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
71310         this is not true on one's complement and signed-magnitude hosts.
71311
71312         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
71313         next_last_offset.
71314         (struct re_dfa_t): Remove unused member states_alloc.
71315         * lib/regcomp.c (init_dfa): Don't initialize unused members.
71316
71317 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71318
71319         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
71320         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
71321         and large-file glibc and in 32-bit large-file Solaris.
71322
71323 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71324
71325         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
71326         lengths fit in regoff_t; this isn't true if regoff_t is the same
71327         width as size_t.
71328         * lib/regex.c (re_search_internal): 5th arg is LAST_START
71329         (= START + RANGE) instead of RANGE.  This avoids overflow
71330         problems when regoff_t is the same width as size_t.
71331         All callers changed.
71332         (re_search_2_stub): Check for overflow when adding the
71333         sizes of the two strings.
71334         (re_search_stub): Check for overflow when adding START
71335         to RANGE; if it occurs, substitute the extreme value.
71336
71337 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71338
71339         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
71340
71341 2005-08-31  Jim Meyering  <jim@meyering.net>
71342
71343         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
71344         a pointer-to-const.
71345         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
71346         (register_state): Likewise.
71347         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
71348         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71349         (group_nodes_into_DFAstates): Likewise.
71350
71351 2005-08-31  Jim Meyering  <jim@meyering.net>
71352
71353         * check-module: Add a FIXME comment.
71354
71355 2005-08-31  Eric Blake  <ebb9@byu.net>
71356
71357         * modules/unistd-safer (Files): Add unistd--.h.
71358         * modules/stdio-safer (Files): Add stdio--.h.
71359
71360 2005-08-31  Derek Price  <derek@ximbiot.com>
71361
71362         * lib/getdelim.c (getdelim): Return EOF on EOF.
71363         Reported by Larry Jones <lawrence.jones@ugs.com>.
71364
71365 2005-08-31  Bruno Haible  <bruno@clisp.org>
71366
71367         Avoid unnecessary diffs in the generated lib/Makefile.am.
71368         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
71369         the generated files.
71370         (func_import): Don't set cmd.
71371
71372 2005-08-31  Bruno Haible  <bruno@clisp.org>
71373
71374         * lib/strstr.c: Include <stddef.h>, for NULL.
71375         * lib/strcasestr.c: Likewise.
71376         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71377
71378 2005-08-31  Bruno Haible  <bruno@clisp.org>
71379
71380         * gnulib-tool: New option --macro-prefix.
71381         (func_import): Use macro_prefix.
71382         (import): Handle option --macro-prefix.
71383
71384 2005-08-31  Bruno Haible  <bruno@clisp.org>
71385
71386         * gnulib-tool (import): Rename most ac_* variables to cached_*.
71387         Also use new variables cached_lgpl, cached_libtool.
71388
71389 2005-08-31  Bruno Haible  <bruno@clisp.org>
71390
71391         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
71392         always instantiating them.
71393
71394 2005-08-31  Bruno Haible  <bruno@clisp.org>
71395
71396         * gnulib-tool (func_import): Read the previous cached settings
71397         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
71398         earlier added by gnulib but are now dropped. Warn when a gnulib file
71399         overwrites a non-gnulib file.
71400
71401 2005-08-31  Bruno Haible  <bruno@clisp.org>
71402
71403         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
71404         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
71405         projects that don't keep autogenerated files in CVS. Put into
71406         actioncmd only the specified modules, not the transitive closure.
71407
71408 2005-08-31  Bruno Haible  <bruno@clisp.org>
71409
71410         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
71411         Create directories that shall be filled.
71412         (import): Don't look for gl_* macros in configure.ac. Recurse across
71413         all directories containing a gnulib-cache.m4 files, if meaningful.
71414
71415 2005-08-31  Bruno Haible  <bruno@clisp.org>
71416
71417         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
71418         (import): Set seen_libtool when we see gl_LIBTOOL.
71419
71420 2005-08-31  Bruno Haible  <bruno@clisp.org>
71421
71422         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
71423         declaration macro definitions from generated gnulib.m4.
71424
71425 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
71426
71427         * lib/iconvme.h: Add prototype for iconv_alloc.
71428
71429 2005-08-29  Simon Josefsson  <jas@extundo.com>
71430
71431         * lib/iconvme.c: Fix errno.
71432
71433 2005-08-29  Bruno Haible  <bruno@clisp.org>
71434
71435         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
71436         that it works when the directory contains spaces.
71437
71438 2005-08-29  Bruno Haible  <bruno@clisp.org>
71439
71440         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
71441
71442 2005-08-29  Bruno Haible  <bruno@clisp.org>
71443
71444         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
71445         Emit more advice.
71446
71447 2005-08-29  Bruno Haible  <bruno@clisp.org>
71448         and Stepan Kasal  <kasal@ucw.cz>
71449
71450         * check-module: If more parameters are given, check each of them
71451         separately; add more exceptions, as noted by Jim Meyering.
71452         (check_module): New procedure.
71453         (%exempt_header): Now contains all exceptions.
71454
71455 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
71456
71457         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
71458
71459 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71460
71461         * lib/iconvme.c: Split iconv_string into iconv_alloc.
71462
71463 2005-08-28  Bruno Haible  <bruno@clisp.org>
71464
71465         * m4/gnulib-tool.m4: New file.
71466
71467 2005-08-27  Jim Meyering  <jim@meyering.net>
71468
71469         * modules/unistd-safer (Files): Add pipe-safer.c.
71470         * modules/fcntl-safer (Files): Add creat-safer.c.
71471
71472 2005-08-27  Jim Meyering  <jim@meyering.net>
71473
71474         * m4/stdlib-safer.m4: New file.  From coreutils.
71475         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
71476         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
71477         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
71478         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
71479         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
71480
71481 2005-08-27  Jim Meyering  <jim@meyering.net>
71482
71483         * lib/fopen-safer.c: Merge minor changes from coreutils.
71484         * lib/dup-safer.c: Likewise.
71485         * lib/fd-safer.c: Likewise.
71486
71487         Merge from coreutils.
71488         * lib/stdio--.h: New file.
71489         * lib/stdlib--.h: New file.
71490         * lib/mkstemp-safer.c: New file.
71491
71492         GNU tar needs these.
71493         * lib/pipe-safer.c: New file.
71494         * lib/creat-safer.c: New file.
71495         * lib/fcntl--.h (creat): Define to creat_safer.
71496         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
71497         * lib/unistd--.h (pipe): Define to pipe_safer.
71498         * lib/unistd-safer.h: Declare pipe_safer.
71499
71500 2005-08-26  Simon Josefsson  <jas@extundo.com>
71501
71502         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
71503         Haible <bruno@clisp.org>.
71504
71505 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
71506
71507         * lib/regex_internal.h: Remove all references to
71508         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
71509         or better.
71510         (bitset_not, bitset_merge, bitset_not_merge):
71511         (bitset_mask, re_string_allocate, re_string_construct):
71512         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
71513         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
71514         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
71515         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
71516         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71517         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71518         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
71519         (re_acquire_state_context):
71520         Remove unnecessary forward decls.
71521         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
71522         Put __attribute at function definition,
71523         now that the function decl has been removed.
71524         * lib/regex_internal.c (re_string_peek_byte_case):
71525         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
71526         Likewise.
71527
71528 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
71529
71530         * m4/regex.m4: Add AC_PREREQ(2.50).
71531         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
71532
71533 2005-08-25  Simon Josefsson  <jas@extundo.com>
71534
71535         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
71536         __fsetlocking.
71537
71538 2005-08-25  Simon Josefsson  <jas@extundo.com>
71539
71540         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
71541         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
71542         GLIBC specific code.
71543
71544 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71545
71546         Make regex safe for g++.  This fixes one real bug (an "err"
71547         that should have been "*err").  g++ problem reported by
71548         Sam Steingold.
71549         * lib/regex_internal.h (re_calloc): New macro, consistent with
71550         re_malloc etc.  All callers of calloc changed to use re_calloc.
71551         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
71552         not int.  All callers changed.
71553         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
71554         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
71555         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
71556         (find_recover_state): Change "err" to "*err"; this fixes what
71557         appears to be a real bug.
71558         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
71559         versus int.
71560
71561 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71562
71563         * modules/regex (Depends-on): Add malloc, since the code
71564         assumes that !malloc(0) means failure.
71565
71566 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71567
71568         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
71569
71570         alloca modernization/simplification for regex.
71571         * lib/regex.c: Remove portability cruft for alloca.  This no longer
71572         needs to be at the start of the file, and can be moved into
71573         regex_internal.h and simplified.
71574         * lib/regex_internal.h: Include <alloca.h>.
71575         (__libc_use_alloca) [!defined _LIBC]: New macro.
71576         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
71577         now works outside glibc.
71578
71579 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71580
71581         * config/srclist.txt: Add glibc bugs 1241, 1245.
71582
71583 2005-08-25  Jim Meyering  <jim@meyering.net>
71584
71585         * lib/open-safer.c: Include <config.h>.
71586         Otherwise, we'd lose LARGEFILE support in any file using
71587         e.g. "fcntl--.h"
71588
71589 2005-08-25  Bruno Haible  <bruno@clisp.org>
71590
71591         * m4/minmax.m4: Require autoconf 2.52.
71592         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
71593         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
71594         alternatives of translit over the alphabet.
71595         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
71596
71597 2005-08-24  Simon Josefsson  <jas@extundo.com>
71598
71599         * tests/test-getpass.c: New file.
71600
71601 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71602
71603         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
71604         for GNU regex features.
71605
71606 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71607
71608         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
71609         * lib/regex.h (regerror): Likewise.
71610
71611         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
71612         requires this.  (The code never needed it.)
71613
71614         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
71615         All uses of recently-renamed identifiers changed to use the new,
71616         POSIX-compliant names.  The code will build and run just fine
71617         without these changes, but it's better to eat our own dog food
71618         and use the standard-conforming names.
71619
71620         * lib/regex.h: Fix a multitude of POSIX name space violations.
71621         These changes have an effect only for programs that define
71622         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
71623         do not change anything for programs compiled in the normal way.
71624         Also, there is no effect on the ABI.
71625
71626         (_REGEX_SOURCE): New macro.
71627         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
71628         defined and _GNU_SOURCE is not; this fixes a name space violation.
71629
71630         Rename the following macros to obey POSIX requirements.
71631         The old names are still visible as macros if _REGEX_SOURCE is defined.
71632         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
71633         RE_BACKSLASH_ESCAPE_IN_LISTS.
71634         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
71635         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
71636         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
71637         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
71638         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
71639         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
71640         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
71641         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
71642         (REG_INTERVALS): renamed from RE_INTERVALS.
71643         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
71644         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
71645         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
71646         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
71647         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
71648         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
71649         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
71650         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
71651         RE_UNMATCHED_RIGHT_PAREN_ORD.
71652         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
71653         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
71654         (REG_DEBUG): renamed from RE_DEBUG.
71655         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
71656         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
71657         unusual, since we can't clash with the POSIX REG_ICASE.
71658         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
71659         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
71660         (REG_NO_SUB): renamed from RE_NO_SUB.
71661         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
71662         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
71663         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
71664         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
71665         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
71666         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
71667         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
71668         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
71669         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
71670         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
71671         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
71672         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
71673         RE_SYNTAX_POSIX_MINIMAL_BASIC.
71674         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
71675         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
71676         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
71677         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
71678         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
71679         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
71680         (REG_FIXED): Renamed from REGS_FIXED.
71681         (REG_NREGS): Renamed from RE_NREGS.
71682
71683         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
71684         of other REG_* macros, since POSIX says the user is allowed to
71685         #undef these macros selectively.
71686
71687         (reg_errcode_t): Update comment stating what other tables need
71688         to be consistent.
71689
71690         Rename the following enum values to obey POSIX requirements.
71691         The old names are still visible as macros.
71692         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
71693         is not defined, since GNU is supposed to be a superset of POSIX as
71694         much as possible, and since we want reg_errcode_t to be a signed
71695         type for implementation consistency.
71696         (_REG_NOERROR): Renamed from REG_NOERROR.
71697         (_REG_NOMATCH): Renamed from REG_NOMATCH.
71698         (_REG_BADPAT): Renamed from REG_BADPAT.
71699         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
71700         (_REG_ECTYPE): Renamed from REG_ECTYPE.
71701         (_REG_EESCAPE): Renamed from REG_EESCAPE.
71702         (_REG_ESUBREG): Renamed from REG_ESUBREG.
71703         (_REG_EBRACK): Renamed from REG_EBRACK.
71704         (_REG_EPAREN): Renamed from REG_EPAREN.
71705         (_REG_EBRACE): Renamed from REG_EBRACE.
71706         (_REG_BADBR): Renamed from REG_BADBR.
71707         (_REG_ERANGE): Renamed from REG_ERANGE.
71708         (_REG_ESPACE): Renamed from REG_ESPACE.
71709         (_REG_BADRPT): Renamed from REG_BADRPT.
71710         (_REG_EEND): Renamed from REG_EEND.
71711         (_REG_ESIZE): Renamed from REG_ESIZE.
71712         (_REG_ERPAREN): Renamed from REG_ERPAREN.
71713         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
71714         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
71715         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
71716         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
71717
71718         (_REG_RE_NAME, _REG_RM_NAME): New macros.
71719         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
71720         changed.  But support the old name if the new one is not defined
71721         and if _REGEX_SOURCE.
71722
71723         Change the following member names in struct re_pattern_buffer.
71724         The old names are still supported if !_REGEX_SOURCE.
71725         The new names are always supported, regardless of _REGEX_SOURCE.
71726         (re_buffer): Renamed from buffer.
71727         (re_allocated): Renamed from allocated.
71728         (re_used): Renamed from used.
71729         (re_syntax): Renamed from syntax.
71730         (re_fastmap): Renamed from fastmap.
71731         (re_translate): Renamed from translate.
71732         (re_can_be_null): Renamed from can_be_null.
71733         (re_regs_allocated): Renamed from regs_allocated.
71734         (re_fastmap_accurate): Renamed from fastmap_accurate.
71735         (re_no_sub): Renamed from no_sub.
71736         (re_not_bol): Renamed from not_bol.
71737         (re_not_eol): Renamed from not_eol.
71738         (re_newline_anchor): Renamed from newline_anchor.
71739
71740         Change the following member names in struct re_registers.
71741         The old names are still supported if !_REGEX_SOURCE.
71742         The new names are always supported, regardless of _REGEX_SOURCE.
71743         (rm_num_regs): Renamed from num_regs.
71744         (rm_start): Renamed from start.
71745         (rm_end): Renamed from end.
71746
71747         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
71748         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
71749         Prepend __ to parameter names.
71750
71751         Undo yesterday's changes.
71752
71753 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71754
71755         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
71756         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
71757         lib/regex.c.
71758
71759 2005-08-24  Jim Meyering  <jim@meyering.net>
71760
71761         Sync from coreutils.
71762         * m4/fcntl-safer.m4: New file.
71763
71764         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
71765         and object files for this module.
71766
71767 2005-08-24  Jim Meyering  <jim@meyering.net>
71768
71769         Sync from coreutils.
71770         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
71771
71772 2005-08-24  Jim Meyering  <jim@meyering.net>
71773
71774         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
71775         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
71776
71777 2005-08-24  Jim Meyering  <jim@meyering.net>
71778
71779         * modules/fcntl-safer: New module.
71780         * modules/fts (Depends-on): Add fcntl-safer.
71781         * MODULES.html.sh (File descriptor based Input/Output):
71782         Add fcntl-safer.
71783
71784 2005-08-24  Bruno Haible  <bruno@clisp.org>
71785
71786         Support for unit test modules.
71787         * modules/README: Mention tests modules.
71788         * modules/TEMPLATE-TESTS: New file.
71789         * gnulib-tool: New options --extract-tests-module, --with-tests and
71790         --tests-base (unused for the moment).
71791         (testsbase, inctests): New variables.
71792         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
71793         (func_verify_module): Exclude TEMPLATE-TESTS.
71794         (func_verify_nontests_module, func_verify_tests_module): New functions.
71795         (func_get_dependencies): Add implicit dependency for tests modules.
71796         (func_get_tests_module): New function.
71797         (func_modules_transitive_closure): When --with-tests was specified,
71798         include the unit tests as well, unless explicitly avoided.
71799         (func_emit_lib_Makefile_am): Ignore the tests modules here.
71800         (func_emit_tests_Makefile_am): New function.
71801         (func_create_testdir): When --with-tests was specified, emit a
71802         tests/ directory.
71803         * MODULES.html.sh (Future developments): Update.
71804
71805 2005-08-24  Bruno Haible  <bruno@clisp.org>
71806
71807         * modules/tls-tests: New file.
71808         * tests/test-tls.c: New file, from GNU gettext.
71809
71810 2005-08-24  Bruno Haible  <bruno@clisp.org>
71811
71812         * modules/lock-tests: New file.
71813         * tests/test-lock.c: New file, from GNU gettext.
71814
71815 2005-08-24  Bruno Haible  <bruno@clisp.org>
71816
71817         * lib/lock.h: Add multiple inclusion guard.
71818         * lib/tls.h: Add multiple inclusion guard.
71819
71820 2005-08-24  Bruno Haible  <bruno@clisp.org>
71821
71822         * gnulib-tool: Add support for the --aux-dir option to
71823         --create-testdir, --create-megatestdir, --test, --megatest.
71824         (func_create_testdir, func_create_megatestdir): Optionally emit a
71825         AC_CONFIG_AUX_DIR directive.
71826         (create-testdir, create-megatestdir, test, megatest): Provide a
71827         default value for $auxdir.
71828
71829 2005-08-24  Bruno Haible  <bruno@clisp.org>
71830
71831         * gnulib-tool (import): Use compound statement instead of subshell
71832         where possible.
71833
71834 2005-08-24  Bruno Haible  <bruno@clisp.org>
71835
71836         * gnulib-tool (import): Change --aux-dir default to "build-aux".
71837
71838 2005-08-24  Bruno Haible  <bruno@clisp.org>
71839
71840         * gnulib-tool (func_version): Update.
71841
71842 2005-08-24  Bruno Haible  <bruno@clisp.org>
71843
71844         * gnulib-tool (func_import, func_create_testdir,
71845         func_create_megatestdir): Quote all autoconf macro arguments.
71846
71847 2005-08-24  Bruno Haible  <bruno@clisp.org>
71848
71849         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
71850         option --force, because --force causes the aclocal.m4 of each
71851         subdirectory to be newer than the corresponding config.h.in.
71852
71853 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71854
71855         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
71856         All contents moved to gl_REGEX.
71857         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
71858         assume that it does.
71859
71860 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71861
71862         * lib/regex.h (REG_NOSYS)
71863         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
71864         Define, since POSIX requires it as of 2001.
71865         (_REG_ENOSYS)
71866         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
71867         New private symbol, used to keep the enum signed in all cases.
71868         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
71869         Youngman in
71870         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
71871
71872         * lib/regex_internal.c (re_string_skip_chars, register_state):
71873         (calc_state_hash):
71874         Remove forward decls; no longer needed now that we use prototypes.
71875         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
71876         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
71877         (clean_state_log_if_needed): Likewise.
71878
71879 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71880
71881         * config/srclist.txt: Add glibc bugs 1231-1233.
71882
71883 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71884
71885         Fix problems reported by Sam Steingold in
71886         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
71887         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
71888         assumed that reg_errcode_t is a signed type, which is not
71889         necessarily true if _XOPEN_SOURCE is not defined.
71890         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
71891         since some compilers warn about it otherwise.
71892
71893 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71894
71895         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
71896         (init_word_char, create_initial_state, duplicate_node_closure):
71897         (fetch_token, peek_token_bracket, build_range_exp):
71898         (build_collating_symbol): Remove forward decls; no longer needed
71899         now that we use prototypes.
71900
71901         * lib/regcomp.c:
71902         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
71903         (re_compile_fastmap_iter, regcomp, regerror, regfree):
71904         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
71905         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
71906         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
71907         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
71908         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
71909         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
71910         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
71911         (build_range_exp, build_collating_symbol, parse_bracket_exp):
71912         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
71913         (build_charclass, build_charclass_op, fetch_number, create_tree):
71914         (create_token_tree, mark_opt_subexp, duplicate_tree):
71915         Use prototypes rather than old-style definitions.
71916
71917         * lib/regex_internal.c:
71918         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
71919         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
71920         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71921         (re_string_reconstruct, re_string_peek_byte_case):
71922         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
71923         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71924         (re_node_set_init_copy, re_node_set_add_intersect):
71925         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71926         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71927         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71928         (re_acquire_state, re_acquire_state_context, register_state):
71929         (create_ci_newstate, create_cd_newstate, free_state):
71930         Likewise.
71931         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
71932         re_search_2):
71933         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
71934         (re_search_internal, prune_impossible_nodes):
71935         (acquire_init_state_context, check_matching, static):
71936         (check_halt_node_context, check_halt_state_context, proceed_next_node):
71937         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
71938         (update_regs, sift_states_backward, build_sifted_states):
71939         (clean_state_log_if_needed, merge_state_array):
71940         (update_cur_sifted_state, add_epsilon_src_nodes):
71941         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
71942         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
71943         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
71944         (find_recover_state, check_subexp_matching_top, transit_state_mb):
71945         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
71946         (check_arrival, check_arrival_add_next_nodes):
71947         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71948         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71949         (check_node_accept_bytes, check_node_accept, extend_buffers):
71950         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
71951         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
71952         (sift_ctx_init):
71953         Likewise.
71954
71955         * lib/regex_internal.h:
71956         (re_string_allocate, re_string_construct, re_string_reconstruct):
71957         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
71958         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
71959         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
71960         (re_string_context_at, re_string_peek_byte_case):
71961         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
71962         is defined, since we now use prototypes always.
71963
71964         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
71965         C89 or better.  All uses removed.
71966
71967 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71968
71969         * config/srclist.txt: Add glibc bugs 1220-1227.
71970
71971 2005-08-20  Jim Meyering  <jim@meyering.net>
71972
71973         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
71974         of unused local, dfa.
71975
71976 2005-08-20  Bruno Haible  <bruno@clisp.org>
71977
71978         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
71979
71980 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71981
71982         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
71983         (re_node_set_insert_last, re_dfa_add_node):
71984         Rename local variables to avoid GCC shadowing warnings.
71985
71986 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71987
71988         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
71989         [defined lint]: Suppress bogus uninitialized-variable warnings.
71990
71991         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
71992         and let the caller return REG_ESPACE if out of space.  This
71993         removes an uninitialied-variable warning with GCC 4.0.1, and also
71994         avoids taking the address of a local variable.  All callers
71995         changed.
71996
71997 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71998
71999         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
72000         $LIBCSRC/posix/regexec.c.
72001         Add glibc bug 1217 for regcomp.c.
72002
72003 2005-08-19  Jim Meyering  <jim@meyering.net>
72004
72005         * lib/regexec.c (proceed_next_node): Redo local variables to
72006         avoid GCC shadowing warnings.
72007
72008 2005-08-18  Bruno Haible  <bruno@clisp.org>
72009
72010         * lib/strstr.c (strstr): Fix return value in multibyte case.
72011         * lib/strcasestr.c (strcasestr): Likewise.
72012
72013 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72014
72015         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
72016
72017 2005-08-17  Jim Meyering  <jim@meyering.net>
72018
72019         Make the %s format (seconds since the epoch) work for a negative
72020         number and when used with a zero-padded field width, e.g. %015s.
72021
72022         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
72023         label so that it precedes the code to set `digits'.  Otherwise,
72024         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
72025         print `00-22'.  Now, it prints `-0022', as it should.
72026
72027 2005-08-17  Bruno Haible  <bruno@clisp.org>
72028
72029         * modules/strstr (Files): Add m4/mbrtowc.m4.
72030         (Depends-on): Add mbuiter.
72031
72032 2005-08-17  Bruno Haible  <bruno@clisp.org>
72033
72034         * modules/strcasestr: New file.
72035         * MODULES.html.sh (String handling, based on ANSI C 89): Add
72036         strcasestr.
72037
72038 2005-08-17  Bruno Haible  <bruno@clisp.org>
72039
72040         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
72041
72042 2005-08-17  Bruno Haible  <bruno@clisp.org>
72043
72044         * modules/mbuiter: New file.
72045         * MODULES.html.sh (Extended multibyte and wide character utilities):
72046         Add mbuiter.
72047
72048 2005-08-17  Bruno Haible  <bruno@clisp.org>
72049
72050         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
72051         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
72052
72053 2005-08-17  Bruno Haible  <bruno@clisp.org>
72054
72055         * m4/strcasestr.m4: New file.
72056
72057 2005-08-17  Bruno Haible  <bruno@clisp.org>
72058
72059         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
72060         * lib/strstr.c: Completely rewritten, with multibyte locale support.
72061
72062 2005-08-17  Bruno Haible  <bruno@clisp.org>
72063
72064         * lib/strcasestr.h: New file.
72065         * lib/strcasestr.c: New file.
72066
72067 2005-08-17  Bruno Haible  <bruno@clisp.org>
72068
72069         * lib/strcasecmp.c: Use mbuiter.h.
72070
72071 2005-08-17  Bruno Haible  <bruno@clisp.org>
72072
72073         * lib/mbuiter.h: New file.
72074
72075 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72076
72077         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
72078         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
72079         and gl_GETOPT are both invoked via different paths (as happens
72080         with GNU tar CVS because it uses both argp and getopt), the former
72081         wins.
72082
72083 2005-08-16  Bruno Haible  <bruno@clisp.org>
72084
72085         * modules/tls: New file.
72086         * MODULES.html.sh (Multithreading): Add tls.
72087
72088 2005-08-16  Bruno Haible  <bruno@clisp.org>
72089
72090         * modules/strnlen1: New file.
72091         * MODULES.html.sh (String handling): Add strnlen1.
72092
72093 2005-08-16  Bruno Haible  <bruno@clisp.org>
72094
72095         * modules/strcase (Files): Add m4/mbrtowc.m4.
72096         (Depends-on): Add strnlen1, mbchar.
72097
72098 2005-08-16  Bruno Haible  <bruno@clisp.org>
72099
72100         * modules/mbiter: New file.
72101         * MODULES.html.sh (Extended multibyte and wide character utilities):
72102         Add mbiter.
72103
72104 2005-08-16  Bruno Haible  <bruno@clisp.org>
72105
72106         * modules/mbfile: New file.
72107         * MODULES.html.sh (Extended multibyte and wide character utilities):
72108         Add mbfile.
72109
72110 2005-08-16  Bruno Haible  <bruno@clisp.org>
72111
72112         * modules/mbchar: New file.
72113         * MODULES.html.sh (Extended multibyte and wide character utilities):
72114         New section.
72115
72116 2005-08-16  Bruno Haible  <bruno@clisp.org>
72117
72118         * m4/tls.m4: New file, from GNU gettext.
72119
72120 2005-08-16  Bruno Haible  <bruno@clisp.org>
72121
72122         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
72123         always.
72124         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
72125
72126 2005-08-16  Bruno Haible  <bruno@clisp.org>
72127
72128         * m4/mbiter.m4: New file.
72129
72130 2005-08-16  Bruno Haible  <bruno@clisp.org>
72131
72132         * m4/mbfile.m4: New file.
72133
72134 2005-08-16  Bruno Haible  <bruno@clisp.org>
72135
72136         * m4/mbchar.m4: New file.
72137
72138 2005-08-16  Bruno Haible  <bruno@clisp.org>
72139
72140         * lib/tls.h: New file, from GNU gettext.
72141         * lib/tls.c: New file, from GNU gettext.
72142
72143 2005-08-16  Bruno Haible  <bruno@clisp.org>
72144
72145         * lib/strnlen1.h: New file.
72146         * lib/strnlen1.c: New file.
72147
72148 2005-08-16  Bruno Haible  <bruno@clisp.org>
72149
72150         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
72151         (mbi_init): Update.
72152         (mbi_avail, mbi_advance): Let the iteration end before the terminating
72153         NUL byte, not after it.
72154
72155 2005-08-16  Bruno Haible  <bruno@clisp.org>
72156
72157         * lib/strcase.h (strcasecmp): Add note in comments.
72158         * lib/strncasecmp.c: Use code from strcasecmp.c.
72159         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
72160         (strcasecmp): Work correctly in multibyte locales.
72161
72162 2005-08-16  Bruno Haible  <bruno@clisp.org>
72163
72164         * lib/mbiter.h: New file.
72165
72166 2005-08-16  Bruno Haible  <bruno@clisp.org>
72167
72168         * lib/mbfile.h: New file.
72169
72170 2005-08-16  Bruno Haible  <bruno@clisp.org>
72171
72172         * lib/mbchar.h: New file.
72173         * lib/mbchar.c: New file.
72174
72175 2005-08-16  Bruno Haible  <bruno@clisp.org>
72176
72177         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
72178         the valid ones. Makes the comparison operations transitive:
72179         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
72180         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
72181
72182 2005-08-15  Simon Josefsson  <jas@extundo.com>
72183
72184         * modules/ssize_t (License): Change to 'unlimited'.
72185
72186         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
72187
72188 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72189
72190         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
72191         Add comments for each pending glibc patch.
72192
72193 2005-08-15  Bruno Haible  <bruno@clisp.org>
72194
72195         * lib/regex.h (__restrict_arr): Don't define to __restrict if
72196         __cplusplus is defined.
72197
72198 2005-08-14  Jim Meyering  <jim@meyering.net>
72199
72200         Sync from coreutils.
72201
72202         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
72203         Use the hash-table-based cycle-detection code not just when
72204         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
72205         Reported by James Youngman in
72206         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
72207         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
72208         FTS_TIGHT_CYCLE_CHECK.
72209         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
72210         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
72211         once again.
72212         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
72213         * lib/fts.c (fd_safer): Remove decl.
72214         Include fcntl--.h rather than unistd-safer.h
72215         (fts_safe_changedir): Don't call fd_safer; no longer needed
72216         now that we include fcntl--.h.
72217
72218 2005-08-12  Simon Josefsson  <jas@extundo.com>
72219
72220         * modules/getndelim2: Use ssize_t module.
72221         * modules/getnline: Likewise.
72222         * modules/safe-read: Likewise.
72223         * modules/xreadlink: Likewise.
72224
72225         * modules/ssize_t: New file.
72226
72227 2005-08-12  Simon Josefsson  <jas@extundo.com>
72228
72229         * m4/readline.m4: Look for termcap, curses or ncurses if required.
72230
72231 2005-08-12  Simon Josefsson  <jas@extundo.com>
72232
72233         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72234         ssize_t.
72235
72236 2005-08-12  Simon Josefsson  <jas@extundo.com>
72237
72238         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
72239         readline, getdelim and check_version.
72240         (Support for systems lacking ISO C 99: Sizes of integer types):
72241         Add size_max.
72242
72243 2005-08-12  Bruno Haible  <bruno@clisp.org>
72244
72245         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
72246
72247 2005-08-11  Simon Josefsson  <jas@extundo.com>
72248
72249         * modules/readline: New file.
72250
72251         * modules/strnlen (Files): Add strnlen.h.
72252
72253 2005-08-11  Simon Josefsson  <jas@extundo.com>
72254
72255         * m4/readline.m4: New file.
72256
72257 2005-08-11  Simon Josefsson  <jas@extundo.com>
72258
72259         * lib/readline.h, readline.c: New file.
72260
72261 2005-08-11  Simon Josefsson  <jas@extundo.com>
72262
72263         * doc/gnulib.texi (Initial import, Finishing touches): Mention
72264         gl_AVOID.
72265
72266 2005-08-11  Bruno Haible  <bruno@clisp.org>
72267
72268         * lib/strnlen.h (strnlen): Change parameter name to match comment.
72269
72270 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
72271
72272         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
72273
72274 2005-08-10  Simon Josefsson  <jas@extundo.com>
72275
72276         * tests/test-iconvme.c: New file.
72277
72278 2005-08-10  Simon Josefsson  <jas@extundo.com>
72279
72280         * m4/strnlen.m4: New file.
72281
72282         * m4/strndup.m4: Don't check for strnlen declaration, done in
72283         strnlen.m4.
72284
72285 2005-08-10  Simon Josefsson  <jas@extundo.com>
72286
72287         * lib/strndup.c: Use strnlen.h.
72288
72289         * lib/strnlen.h: New file.
72290
72291 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72292
72293         * README: Typos.
72294
72295 2005-08-02  Simon Josefsson  <jas@extundo.com>
72296
72297         * modules/readline: New file.
72298
72299 2005-08-02  Simon Josefsson  <jas@extundo.com>
72300
72301         * modules/getdelim: New file.
72302
72303         * modules/getline: Rewrite, don't use getndelim2.
72304
72305 2005-08-02  Simon Josefsson  <jas@extundo.com>
72306
72307         * m4/getline.m4: Separate out getdelim stuff into separate module.
72308
72309         * m4/getdelim.m4: New file.
72310
72311 2005-08-02  Simon Josefsson  <jas@extundo.com>
72312
72313         * lib/getline.h, getline.c: Rewrite.
72314
72315         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
72316
72317 2005-07-31  Bruno Haible  <bruno@clisp.org>
72318
72319         * lib/lock.h (gl_lock_initializer): New macro.
72320         (gl_lock_define_initialized): Use it.
72321         (gl_rwlock_initializer): New macro.
72322         (gl_rwlock_define_initialized): Use it.
72323         (gl_recursive_lock_initializer): New macro.
72324         (gl_recursive_lock_define_initialized): Use it.
72325
72326 2005-07-30  Karl Berry  <karl@gnu.org>
72327
72328         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
72329         Report from Ben Pfaff, regarding getopt.
72330
72331 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
72332
72333         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
72334         normal way.
72335         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
72336         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
72337         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
72338         (gl_GETOPT): Use the new macros.  Most of the implementation
72339         is moved to the new macros.  This is for programs like Emacs
72340         that don't want all the functionality of gl_GETOPT.
72341
72342 2005-07-26  Bruno Haible  <bruno@clisp.org>
72343
72344         * m4/lock.m4: Update from GNU gettext.
72345
72346 2005-07-26  Bruno Haible  <bruno@clisp.org>
72347
72348         * lib/lock.h: Update from GNU gettext.
72349         * lib/lock.c: Update from GNU gettext.
72350
72351 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
72352
72353         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
72354         obsolescent AC_TRY_RUN.  Include the default includes files, for
72355         'exit'.
72356
72357 2005-07-24  Bruno Haible  <bruno@clisp.org>
72358
72359         * modules/visibility: New file.
72360         * MODULES.html.sh (Misc): Add visibility.
72361
72362 2005-07-24  Bruno Haible  <bruno@clisp.org>
72363
72364         * m4/visibility.m4: New file.
72365
72366 2005-07-24  Bruno Haible  <bruno@clisp.org>
72367
72368         * doc/visibility.texi: New file.
72369
72370 2005-07-22  Bruno Haible  <bruno@clisp.org>
72371
72372         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
72373         $(ALLOCA_H), redundant through BUILT_SOURCES.
72374         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
72375         redundant through BUILT_SOURCES.
72376         * modules/byteswap (Makefile.am): Remove explicit dependency on
72377         $(BYTESWAP_H), redundant through BUILT_SOURCES.
72378         * modules/fnmatch (Makefile.am): Remove explicit dependency on
72379         $(FNMATCH_H), redundant through BUILT_SOURCES.
72380         * modules/getopt (Makefile.am): Remove explicit dependency on
72381         $(GETOPT_H), redundant through BUILT_SOURCES.
72382         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
72383         redundant through BUILT_SOURCES.
72384         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
72385         redundant through BUILT_SOURCES.
72386         * modules/stdbool (Makefile.am): Remove explicit dependency on
72387         $(STDBOOL_H), redundant through BUILT_SOURCES.
72388         * modules/stdint (Makefile.am): Remove explicit dependency on
72389         $(STDINT_H), redundant through BUILT_SOURCES.
72390         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
72391         Remove explicit dependency on $(SYSEXITS_H).
72392         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
72393
72394 2005-07-18  Simon Josefsson  <jas@extundo.com>
72395
72396         * lib/check-version.c (check_version): Accept identical versions too.
72397
72398 2005-07-18  Bruno Haible  <bruno@clisp.org>
72399
72400         * modules/lock: New file.
72401         * MODULES.html.sh (Multithreading): New section.
72402
72403 2005-07-18  Bruno Haible  <bruno@clisp.org>
72404
72405         * m4/lock.m4: New file, from GNU gettext.
72406
72407 2005-07-18  Bruno Haible  <bruno@clisp.org>
72408
72409         * lib/lock.h: New file, from GNU gettext.
72410         * lib/lock.c: New file, from GNU gettext.
72411
72412 2005-07-18  Bruno Haible  <bruno@clisp.org>
72413
72414         * lib/lock.h (gl_once_t): New type.
72415         (gl_once_define, gl_once): New macros.
72416         * lib/lock.c (fresh_once): New variable.
72417         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
72418         functions.
72419
72420 2005-07-16  Simon Josefsson  <jas@extundo.com>
72421
72422         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
72423         workaround, suggested by Bruno.
72424
72425 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72426
72427         * modules/xalloc (Depends-on): Add xalloc-die.
72428         * modules/xvasprintf (Depends-on): Add xalloc-die.
72429
72430 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72431
72432         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
72433         with a minor change.
72434
72435 2005-07-15  Bruno Haible  <bruno@clisp.org>
72436
72437         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
72438         When using lib/poll.c, define poll as rpl_poll.
72439
72440 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
72441
72442         * modules/argp (Depends-on): Remove unlocked-io.
72443
72444 2005-07-14  Derek Price  <derek@ximbiot.com>
72445
72446         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
72447         for glob symlink bug.
72448
72449 2005-07-14  Bruno Haible  <bruno@clisp.org>
72450
72451         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
72452         Instead, test for *_unlocked function declarations directly.
72453
72454 2005-07-11  Simon Josefsson  <jas@extundo.com>
72455
72456         * modules/size_max: New file.
72457
72458         * modules/xsize: Depend on size_max module for size_max.m4.
72459
72460 2005-07-11  Simon Josefsson  <jas@extundo.com>
72461
72462         * lib/size_max.h: New file.
72463
72464 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
72465
72466         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
72467         copyright symbol and the year.
72468         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
72469         (version_etc_va): Use parameterized copyright notice.
72470         Reword to conform to the current GNU coding standards.
72471
72472 2005-07-11  Karl Berry  <karl@gnu.org>
72473
72474         * doc/gnulib.texi (Quoting): new node.
72475         (Initial import): more info, from Patrice.
72476
72477 2005-07-11  Bruno Haible  <bruno@clisp.org>
72478
72479         * gnulib-tool (func_usage): Document option --avoid.
72480         (Command line options): Handle --avoid.
72481         (func_acceptable): New function.
72482         (func_modules_transitive_closure): Use it.
72483
72484 2005-07-11  Bruno Haible  <bruno@clisp.org>
72485
72486         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
72487         Reported by Jim Meyering.
72488
72489 2005-07-10  Bruno Haible  <bruno@clisp.org>
72490
72491         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
72492         Needed when size_t is smaller than 'unsigned int'.
72493         Reported by Paul Eggert.
72494
72495 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72496
72497         * modules/argp (Depends-on): Add unlocked-io
72498
72499 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72500
72501         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
72502         block of defines.
72503
72504 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72505
72506         * config/srclist.txt: Comment out regcomp.c, since we have a porting
72507         fix now.
72508
72509 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
72510         and Paul Eggert  <eggert@cs.ucla.edu>
72511
72512         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
72513         in wint_t, not wchar_t.  Remove now-unnecessary cast.
72514
72515 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72516
72517         * modules/regex (Files): Add lib/regex_internal.c,
72518         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
72519         (Depends-on): Add extensions.
72520         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
72521
72522 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72523
72524         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
72525         pathconf.
72526         * m4/same.m4 (gl_SAME): Likewise.
72527         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
72528
72529         * m4/regex.m4: Adjust to new libc regex implementation.
72530         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
72531         all the .c and .h parts of (the new) regex.
72532         Quote the m4 stuff better.
72533         Check for RE_ICASE bug of old gnulib.
72534         Check for REG_STARTEND of recent libc.
72535         Rename local variables from jm_* to gl_*.
72536         Quote operand of "test -f".
72537         Say "recent enough" version of libc, not "version 2".
72538         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
72539         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
72540         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
72541         Remove check for btowc, isascii.
72542         Require AM_LANGINFO_CODESET.
72543
72544 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72545
72546         * lib/regex.c, regex.h: Sync from libc.
72547         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
72548         * lib/regexec.c:
72549         New files, synced from libc, except that regex_internal.h
72550         currently has a small porting fix.
72551
72552 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72553
72554         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
72555         regex_internal.c, regexec.c.
72556         Add regex_internal.h too, but as a comment, since the libc version
72557         is currently broken in gnulib mode.
72558
72559 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72560
72561         Support programs like Emacs that use gnulib but not gettext.
72562         * MODULES.html.sh (Internationalization functions): Add gettext-h.
72563         * modules/gettext-h: New file.
72564         * modules/gettext (Files): Remove lib/gettext.h.
72565         (Depends-on): Add gettext-h.
72566         (Makefile.am): Remove lib_SOURCES.
72567         * modules/argmatch, modules/c-stack, modules/closeout:
72568         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
72569         * modules/execute, modules/file-type, modules/getaddrinfo:
72570         * modules/getopt, modules/human, modules/javacomp:
72571         * modules/javaexec, modules/mkdir-p, modules/obstack:
72572         * modules/openat, modules/pagealign_alloc, modules/pipe:
72573         * modules/quotearg, modules/regex, modules/rpmatch:
72574         * modules/unicodeio, modules/userspec, modules/version-etc:
72575         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
72576         * modules/xsetenv:
72577         Depend on gettext-h, not gettext.
72578
72579 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72580
72581         * gnulib-tool (func_import): Add support for 'public domain' license.
72582         * modules/alloca, modules/atexit, modules/memmove:
72583         Now public domain, not GPL.
72584         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
72585         * modules/realloc, modules/strerror, modules/strtod:
72586         Now LGPL, not GPL.
72587
72588 2005-07-05  Bruno Haible  <bruno@clisp.org>
72589
72590         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
72591         autoconf CVS. Needed for mingw.
72592
72593 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72594
72595         Remove the dependency of the strftime module on the tzset module.
72596         * modules/strftime (Depends-on): Remove dependency on tzset.
72597
72598 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72599
72600         Remove the dependency of the strftime module on the tzset module.
72601         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
72602         gl_FUNC_TZSET_CLOBBER.
72603
72604 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72605
72606         Remove the dependency of the strftime module on the tzset module.
72607         * lib/strftime.c (my_strftime)
72608         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
72609         Copy the input structure, to work around some of the bug with
72610         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
72611         Solaris releases, you should also use the tzset module, but we won't
72612         require it as a dependency any more since we don't want LGPLed code
72613         to depend on GPLed code.
72614
72615 2005-07-02  Jim Meyering  <jim@meyering.net>
72616
72617         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
72618         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
72619         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
72620         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
72621
72622 2005-07-02  Jim Meyering  <jim@meyering.net>
72623
72624         * lib/backupfile.c (backup_args): Change a `0' to NULL.
72625
72626 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72627
72628         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
72629         declares only 'struct timespec;' (!).
72630
72631 2005-07-01  Jim Meyering  <jim@meyering.net>
72632
72633         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
72634         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
72635         * lib/save-cwd.c, tempname.c:
72636         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
72637         and don't include <sys/file.h>).
72638
72639 2005-06-29  Jim Meyering  <jim@meyering.net>
72640
72641         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
72642         type name.  Use the variable name instead.
72643         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
72644         Likewise.
72645
72646 2005-06-28  Simon Josefsson  <jas@extundo.com>
72647
72648         * modules/check-version (Files): Add check-version.m4.
72649
72650 2005-06-28  Simon Josefsson  <jas@extundo.com>
72651
72652         * m4/check-version.m4: New file, suggested by Jim Meyering
72653         <jim@meyering.net>.
72654
72655 2005-06-28  Simon Josefsson  <jas@extundo.com>
72656
72657         * lib/check-version.h, lib/check-version.c: New files.
72658
72659 2005-06-28  Simon Josefsson  <jas@extundo.com>
72660
72661         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
72662         collision with global variable.  Better indentation.  Don't
72663         increment buffer pointer beyond buffer end.  Based on comments
72664         from Paul Eggert <eggert@cs.ucla.edu>.
72665
72666         * lib/base64.h: Indent.
72667
72668 2005-06-28  Simon Josefsson  <jas@extundo.com>
72669
72670         * doc/gnulib.texi (Library version handling): New section.
72671
72672 2005-06-28  Jim Meyering  <jim@meyering.net>
72673
72674         * check-module (find_included_lib_files): Hard-code another
72675         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
72676         but modules/fts-lgpl (correctly) does not list those files.
72677
72678         * modules/canonicalize (Files): Add lib/pathmax.h.
72679
72680 2005-06-25  Simon Josefsson  <jas@extundo.com>
72681
72682         * modules/check-version: New file.
72683
72684 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
72685
72686         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
72687         initializer of struct addrinfo, as an indication that we don't
72688         care how many members the structure has.
72689
72690 2005-06-24  Derek Price  <derek@ximbiot.com>
72691         and Bruno Haible  <bruno@clisp.org>
72692
72693         Remove stat module & update lstat.
72694         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
72695         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72696         * m4/stat.m4: Remove this file.
72697
72698 2005-06-24  Derek Price  <derek@ximbiot.com>
72699         and Bruno Haible  <bruno@clisp.org>
72700
72701         Remove stat module & update lstat.
72702         * lib/stat.c: Remove this file...
72703         (slash_aware_lstat): ...moving this content and its support...
72704         * lib/lstat.c (rpl_lstat): ...into here.
72705         * lib/lstat.h: New file.
72706
72707 2005-06-24  Derek Price  <derek@ximbiot.com>
72708         and Bruno Haible  <bruno@clisp.org>
72709
72710         Remove stat module & update lstat.
72711         * config/srclist.txt (libc sources): Remove stat.
72712
72713 2005-06-24  Derek Price  <derek@ximbiot.com>
72714         and Bruno Haible  <bruno@clisp.org>
72715
72716         Remove stat module & update lstat.
72717         * MODULES.html.sh (stat): Remove.
72718         * MODULES.html: Regenerated.
72719         * modules/lstat (Description): Correct function name.
72720         (Files): Add "lstat.h".
72721         (Depends-on): Remove stat, add xalloc, stat-macros.
72722         * modules/stat: Remove this file.
72723         (Include): Add "lstat.h", remove <sys/stat.h>.
72724
72725 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
72726
72727         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
72728         (ranged_convert): Don't save conversion in a temporary struct.
72729         This causes a warning with GCC 4.0.0, and anyway in the typical
72730         case it's not worth the extra 100 bytes or so of code.
72731         (ranged_convert, __mktime_internal): When calling a function via a
72732         pointer P, use P () rather than (*P) (), as we now assume C89 or
72733         better.
72734
72735 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72736
72737         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
72738         "who -r" failed to give output.  Problem reported by Tim Waugh.
72739
72740         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
72741         (xcalloc): Use it to avoid needless tests.
72742         Problem reported by Jim Meyering.
72743
72744 2005-06-20  Derek Price  <derek@ximbiot.com>
72745
72746         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
72747         unnecessary for Autoconfs > 2.59c.
72748
72749 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72750
72751         * lib/argp.h (__option_is_short): Check upper limit of
72752         __key. Isprint() requires its argument to have the value
72753         of an unsigned char or EOF.
72754
72755 2005-06-16  Jim Meyering  <jim@meyering.net>
72756
72757         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
72758         when either N or S is zero.
72759
72760 2005-06-16  Derek Price  <derek@ximbiot.com>
72761
72762         * m4/bison.m4: Declare YACC & YFLAGS precious.
72763
72764 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
72765
72766         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
72767         multibyte string or pattern, fall back on unibyte matching.
72768         Problem reported by James Youngman.
72769
72770 2005-06-08  Bruno Haible  <bruno@clisp.org>
72771
72772         * modules/csharpcomp: New file.
72773         * MODULES.html.sh (C#): Add csharpcomp.
72774
72775 2005-06-08  Bruno Haible  <bruno@clisp.org>
72776
72777         * m4/csharpcomp.m4: New file, from GNU gettext.
72778
72779 2005-06-08  Bruno Haible  <bruno@clisp.org>
72780
72781         * lib/csharpcomp.h: New file, from GNU gettext.
72782         * lib/csharpcomp.c: New file, from GNU gettext.
72783         * lib/csharpcomp.sh.in: New file, from GNU gettext.
72784
72785 2005-06-08  Bruno Haible  <bruno@clisp.org>
72786
72787         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
72788         warning on mingw.
72789
72790 2005-06-07  Derek Price  <derek@ximbiot.com>
72791
72792         Sync from CVS.
72793         * lib/glob_.h: Indent nested #ifdef.
72794
72795 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72796
72797         Sync from coreutils.
72798         Use "file name" when talking about file names, instead of "filename"
72799         or "path", as per the GNU coding standards.
72800         * lib/mkdir-p.c: Renamed from makepath.c.
72801         (make_dir_parents): Renamed from make_path.  All callers changed.
72802         * lib/mkdir-p.h: Likewise.  All includers changed.
72803         * lib/filenamecat.c: Renamed from path-concat.c.
72804         (file_name_concat): Renamed from path_concat.  All callers changed.
72805         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
72806         * lib/filenamecat.h: Likewise.  All includers changed.
72807         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
72808         in comments or local variable names.
72809         * lib/basename.c: Likewise.
72810         * lib/canonicalize.c, canonicalize.h: Likewise.
72811         * lib/dirname.c, dirname.h: Likewise.
72812         * lib/euidaccess.c: Likewise.
72813         * lib/exclude.c: Likewise
72814         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
72815         * lib/fsusage.c, fsuage.h: Likewise.
72816         * lib/fts.c, fts_.h: Likewise.
72817         * lib/getcwd.c: Likewise.
72818         * lib/getloadavg.c: Likewise.
72819         * lib/mkstemp.c: Likewise.
72820         * lib/mountlist.c, mountlist.h: Likewise.
72821         * lib/openat.c, openat.h: Likewise.
72822         * lib/readlink-stub.c: Likewise.
72823         * lib/readutmp.c, readutmp.h: Likewise.
72824         * lib/rename.c: Likewise.
72825         * lib/rmdir.c: Likewise.
72826         * lib/same.c: Likewise.
72827         * lib/savedir.c: Likewise.
72828         * lib/stripslash.c: Likewise.
72829         * lib/tempname.c: Likewise.
72830         * lib/xreadlink.c: Likewise.
72831         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
72832         All uses changed.
72833         * lib/exclude.h: Likewise.
72834
72835         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
72836         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72837         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
72838         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72839         * lib/pathmax.h: Include <limits.h> unconditionally, since other
72840         files have been getting away with it for years (MORE/BSD 4.3
72841         is extinct now).
72842         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
72843         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72844
72845         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
72846         Define to 256, not 255, as per modern POSIX.
72847
72848 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72849
72850         Sync from coreutils.
72851         Use "file name" when talking about file names, instead of "filename"
72852         or "path", as per the GNU coding standards.
72853         * MODULES.html.sh: mkdir-p renamed from makepath.
72854         filenamecat renamed from path-concat.
72855         * modules/filenamecat: Renamed from modules/path-concat.
72856         (Files): filenamecat.h and filenamecat.c renamed from
72857         path-concat.h and path-concat.c.
72858         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
72859         (Include): filenamecat.h, not path-concat.h.
72860         * modules/mkdir-p: Renamed from modules/makepath.
72861         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
72862         makepath.c.
72863         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
72864         (Include): mkdir-p.h, not makepath.h.
72865
72866 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72867
72868         Sync from coreutils.
72869         * m4/mkdir-p.m4: Renamed from makepath.m4.
72870         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
72871         Rename files from makepath.c to mkdir-p.c, and from
72872         makepath.h to mkdir-p.h.
72873         * m4/filenamecat.m4: Renamed from path-concat.m4.
72874         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
72875         Rename files from path-concat.c to filenamecat.c,
72876         and from path-concat.h to filenamecat.h.
72877         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
72878         "file name" in local variables or comments.
72879         * m4/rename.m4: Likewise.
72880
72881 2005-06-01  Bruno Haible  <bruno@clisp.org>
72882
72883         * modules/csharpexec: New file.
72884         * MODULES.html.sh (C#): New section.
72885
72886 2005-06-01  Bruno Haible  <bruno@clisp.org>
72887
72888         * m4/csharp.m4: New file, from GNU gettext.
72889         * m4/csharpexec.m4: New file, from GNU gettext.
72890
72891 2005-06-01  Bruno Haible  <bruno@clisp.org>
72892
72893         * lib/csharpexec.h: New file, from GNU gettext.
72894         * lib/csharpexec.c: New file, from GNU gettext.
72895         * lib/csharpexec.sh.in: New file, from GNU gettext.
72896
72897 2005-05-31  Derek Price  <derek@ximbiot.com>
72898             Paul Eggert  <eggert@cs.ucla.edu>
72899
72900         Sync from cvs.
72901         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
72902
72903 2005-05-31  Derek Price  <derek@ximbiot.com>
72904             Paul Eggert  <eggert@cs.ucla.edu>
72905
72906         Sync from cvs.
72907         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
72908
72909 2005-05-29  Derek Price  <derek@ximbiot.com>
72910
72911         * config/srclist.txt (glob_.h, glob.c): Add these files.
72912
72913 2005-05-29  Derek Price  <derek@ximbiot.com>
72914
72915         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
72916         * modules/glob: New file.
72917         * modules/getlogin_r: Add link to POSIX spec in description.
72918
72919 2005-05-29  Derek Price  <derek@ximbiot.com>
72920             Paul Eggert  <eggert@cs.ucla.edu>
72921
72922         * m4/glob.m4: New file.
72923
72924 2005-05-29  Derek Price  <derek@ximbiot.com>
72925             Paul Eggert  <eggert@cs.ucla.edu>
72926
72927         * lib/glob_.h, lib/glob.c: New files.
72928
72929 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72930
72931         * modules/fts (Files): Remove m4/inttypes-pri.m4.
72932         * modules/fts-lgpl (Depends-on): Remove gettext.
72933
72934 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72935
72936         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
72937         and don't require gt_INTTYPES_PRI.
72938
72939 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72940
72941         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
72942
72943         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
72944         the configuration hassle isn't worth it.
72945         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
72946         (LONGEST_MODIFIER, PRIuMAX): Remove.
72947
72948 2005-05-27  Bruno Haible  <bruno@clisp.org>
72949
72950         * lib/getlogin_r.h: Remove second include of <stddef.h>.
72951
72952 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
72953
72954         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
72955         _POSIX_PTHREAD_SEMANTICS for Solaris.
72956
72957 2005-05-25  Derek Price  <derek@ximbiot.com>
72958
72959         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
72960
72961 2005-05-25  Derek Price  <derek@ximbiot.com>
72962             Paul Eggert  <eggert@cs.ucla.edu>
72963
72964         * modules/getlogin_r, m4/getlogin_r.m4: New files.
72965         * lib/getlogin_r.c, getlogin_r.h: New files.
72966
72967 2005-05-25  Bruno Haible  <bruno@clisp.org>
72968             Derek Price  <derek@ximbiot.com>
72969
72970         * lib/getlogin_r.h: Simplify API documentation.
72971
72972 2005-05-23  Derek Price  <derek@ximbiot.com>
72973
72974         * modules/minmax (Files): Add m4/minmax.m4.
72975         (configure.ac): Add gl_MINMAX.
72976
72977 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72978
72979         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
72980         so that unistd-safer.h (GPL'ed code) need not be included.
72981
72982 2005-05-22  Bruno Haible  <bruno@clisp.org>
72983
72984         * m4/minmax.m4: New file.
72985         Based on a patch by Derek Price <derek@ximbiot.com>.
72986
72987 2005-05-22  Bruno Haible  <bruno@clisp.org>
72988
72989         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
72990         (INT64_MIN): Fix definition.
72991         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
72992
72993         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
72994         NEED_SIGNED_INT_TYPES.
72995
72996         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
72997         HAVE_SYSTEM_INTTYPES.
72998
72999 2005-05-22  Bruno Haible  <bruno@clisp.org>
73000
73001         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
73002         Also include <sys/param.h> if it defines MIN, MAX.
73003         Based on a patch by Derek Price <derek@ximbiot.com>.
73004
73005 2005-05-21  Jim Meyering  <jim@meyering.net>
73006
73007         * modules/fts (Files): Add m4/inttypes-pri.m4.
73008         (Depends-on): Add lstat and remove gettext.  Alphabetize.
73009
73010 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73011
73012         New fts module.
73013         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
73014         (setup_dir, free_dir): New functions.
73015         (enter_dir, leave_dir): Define trivial
73016         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
73017         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
73018         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
73019         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
73020         Move to fts-cycle.c.
73021         (fts_open): Use setup_dir.
73022         (fts_close): Use free_dir.
73023         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
73024         This adds a label and some gotos, but the alternatives were messier.
73025         Check for memory allocation failure when entering a dir.
73026         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
73027         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
73028         (FTS): New member fts_cycle, that is a union that contains the
73029         old active_dir_ht and cycle_state.  All uses changed to mention
73030         fts_cycle.ht and fts_cycle.state.
73031         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
73032         fts.c, with the following changes:
73033         (setup_dir, free_dir): New functions.
73034         (enter_dir): Now returns bool.  Return true if successful, false
73035         if memory exhausted.  All callers changed.
73036         Do not bother partly cleaning up on
73037         memory allocation failure; that is free_dir's job.
73038         However, free ad if hash_insert fails, to avoid memory leak.
73039         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
73040         fts->fts_options to see which union member to use.
73041
73042 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73043
73044         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
73045         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
73046
73047 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73048
73049         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
73050
73051 2005-05-20  Jim Meyering  <jim@meyering.net>
73052
73053         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
73054         Now a macro, to pacify GCC.
73055
73056 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73057
73058         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
73059         of -1.
73060
73061 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73062
73063         * lib/chown.c (rpl_chown): Return -1 on failure.
73064
73065 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73066
73067         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
73068         Don't check for stddef.h.
73069         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
73070         don't use its results.
73071         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
73072         since we include them unconditionally.  Don't require
73073         AM_STDBOOL_H, since stdbool is a prerequisite.
73074         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
73075         since we assume C89 or better.
73076         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
73077         as we don't use their results.
73078         Don't check for fchdir, memmove, memset, strrchr, as we use
73079         them unconditionally.
73080         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
73081         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
73082
73083 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73084
73085         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
73086         Include <stddef.h> unconditionally, since we assume C89 now.
73087         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
73088         * lib/fts.c: Include fts_.h first, to check interface.
73089         Do not include intprops.h; no longer needed.
73090         Include cycle-check.h and hash.h, since fts_.h no longer does.
73091         Remove unnecessary casts of closedir to void.
73092         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
73093         decide whether to decrement nlinks.
73094         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
73095         (FTS): Use struct hash_table * instead of Hash_table, so that
73096         we no longer need to include hash.h here.
73097
73098 2005-05-18  Jim Meyering  <jim@meyering.net>
73099
73100         * modules/dirfd (License): Change to LGPL.  Most of the code
73101         is already in the public domain.
73102
73103 2005-05-18  Jim Meyering  <jim@meyering.net>
73104
73105         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
73106         Reported by Yoann Vandoorselaere.
73107
73108 2005-05-17  Jim Meyering  <jim@meyering.net>
73109
73110         * m4/fts.m4: New file, from coreutils.
73111
73112 2005-05-17  Jim Meyering  <jim@meyering.net>
73113
73114         * lib/fts.c, lib/fts_.h: New files, from coreutils.
73115
73116 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73117
73118         Sync from coreutils.
73119         * m4/unlinkdir.m4: New file.
73120
73121 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73122
73123         Sync from coreutils.
73124         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
73125         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
73126         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
73127         White space changes only.
73128         * lib/makepath.c (make_path): Port to hosts where leading "//" is
73129         special.
73130         * lib/yesno.c: Include getline.h, not ctype.h.
73131         (yesno): Don't remove leading white space; POSIX doesn't allow it.
73132         Use getline to remove arbitrary restriction on response length.
73133
73134 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73135
73136         * config/srclist-update: Spell out "Street" in FSF postal
73137         mail address; this is the style the FSF seems to prefer.
73138
73139         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
73140         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
73141         this updates FSF postal mail address.
73142
73143         Sync from coreutils.
73144         * modules/unlinkdir: New file.
73145         * modules/yesno (Depends-on): Add getline.
73146         * MODULES.html.sh (File system functions): Add unlinkdir.
73147
73148 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73149
73150         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
73151         lib/strsep.h:
73152         Change the initial comment to refer to GPL, not LGPL.
73153         gnulib-tool will change it to LGPL as needed.
73154
73155         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
73156         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
73157         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
73158         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
73159         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
73160         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
73161         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
73162         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
73163         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
73164         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
73165         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
73166         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
73167         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
73168         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
73169         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
73170         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
73171         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
73172         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
73173         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
73174         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
73175         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
73176         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
73177         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
73178         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
73179         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
73180         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
73181         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
73182         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
73183         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
73184         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
73185         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
73186         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
73187         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
73188         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
73189         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
73190         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
73191         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
73192         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
73193         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
73194         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
73195         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
73196         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
73197         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
73198         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
73199         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
73200         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
73201         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
73202         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
73203         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
73204         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
73205         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73206         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
73207         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
73208         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
73209         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
73210         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
73211         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
73212         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
73213         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
73214         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
73215         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
73216         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
73217         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
73218         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
73219         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
73220         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
73221         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
73222         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
73223         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
73224         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
73225         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
73226         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
73227         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
73228         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
73229         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
73230         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
73231         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
73232         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
73233         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
73234         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
73235         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
73236         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
73237         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
73238         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
73239         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
73240         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
73241         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
73242         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
73243         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
73244         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
73245         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
73246         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
73247         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
73248         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
73249         lib/yesno.c, lib/yesno.h:
73250         Update FSF postal mail address.
73251
73252 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73253
73254         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
73255         tests/test-memmem.c, tests/test-stpncpy.c:
73256         Update FSF postal mail address.
73257
73258 2005-05-13  Bruno Haible  <bruno@clisp.org>
73259
73260         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
73261         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
73262         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
73263         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
73264         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
73265         Add support for 64-bit integers in the MSVC compiler.
73266
73267 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73268
73269         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
73270
73271 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
73272
73273         * gnulib-tool (func_import): Sort and uniquify recommended includes.
73274
73275 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
73276
73277         * doc/getdate.texi (General date syntax): Don't say that date
73278         date --iso-8601=ns generates acceptable dates; it doesn't yet.
73279         Problem reported by Nic Ferrier.
73280
73281 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73282
73283         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
73284         specified in ai_socktype. Fix invalid ai_protocol
73285         check. ai_protocol is usually set to 0 or depending on
73286         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
73287         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
73288         ai_socktype / ai_protocol in the returned addrinfo structure.
73289
73290 2005-05-10  Simon Josefsson  <jas@extundo.com>
73291
73292         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
73293         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73294
73295 2005-05-10  Karl Berry  <karl@gnu.org>
73296
73297         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
73298         (from http://www.gnu.org/licenses).
73299         * doc/COPYING.LIB: also rename to COPYING.LESSER.
73300         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
73301         fdl.texi suffices.
73302
73303 2005-05-10  Karl Berry  <karl@gnu.org>
73304
73305         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
73306         (COPYING.DOC): remove.
73307
73308         * config/srclist-update: new FSF address.
73309
73310 2005-05-10  Derek Price  <derek@ximbiot.com>
73311
73312         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
73313         possible.
73314
73315 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73316             Bruno Haible  <bruno@clisp.org>
73317
73318         * modules/inet_ntop: New file.
73319         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73320         inet_ntop.
73321
73322 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73323             Bruno Haible  <bruno@clisp.org>
73324
73325         * m4/inet_ntop.m4: New file.
73326
73327 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73328             Bruno Haible  <bruno@clisp.org>
73329
73330         * lib/inet_ntop.h: New file.
73331         * lib/inet_ntop.c: New file, from glibc with modifications.
73332
73333 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
73334
73335         * modules/time_r (License): Change to LGPL.
73336         * modules/extensions (License): Change to LGPL.  Actually,
73337         the license is more permissive than that, but currently gnulib-tool
73338         doesn't know how to handle more-permissive licenses.
73339
73340         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
73341         Problem reported by Dave Love.
73342
73343 2005-05-08  Jim Meyering  <jim@meyering.net>
73344
73345         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
73346         blank.
73347
73348 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73349
73350         * modules/argmatch (Depends-on): Add stdbool.
73351         * modules/backupfile (Depends-on): Likewise.
73352         * modules/chdir-long (Depends-on): Likewise.
73353         * modules/closeout (Depends-on): Likewise.
73354         * modules/cycle-check (Depends-on): Likewise.
73355         * modules/dirname (Depends-on): Likewise.
73356         * modules/fnmatch (Depends-on): Likewise.
73357         * modules/fsusage (Depends-on): Likewise.
73358         * modules/fwriteerror (Depends-on): Likewise.
73359         * modules/getcwd (Depends-on): Likewise.
73360         * modules/getloadavg (Depends-on): Likewise.
73361         * modules/hard-locale (Depends-on): Likewise.
73362         * modules/makepath (Depends-on): Likewise.
73363         * modules/mountlist (Depends-on): Likewise.
73364         * modules/nanosleep (Depends-on): Likewise.
73365         * modules/posixtm (Depends-on): Likewise.
73366         * modules/quotearg (Depends-on): Likewise.
73367         * modules/readtokens (Depends-on): Likewise.
73368         * modules/readtokens0 (Depends-on): Likewise.
73369         * modules/readutmp (Depends-on): Likewise.
73370         * modules/save-cwd (Depends-on): Likewise.
73371         * modules/strftime (Depends-on): Likewise.
73372         * modules/userspec (Depends-on): Likewise.
73373         * modules/utimecmp (Depends-on): Likewise.
73374         * modules/xgetcwd (Depends-on): Likewise.
73375         * modules/xnanosleep (Depends-on): Likewise.
73376         * modules/xstrtod (Depends-on): Likewise.
73377         * modules/yesno (Depends-on): Likewise.
73378
73379 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
73380
73381         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
73382         needless checks.
73383
73384 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73385
73386         Merge from coreutils.  Among other things,
73387         add bulletproofing for cases where stdin, stdout, or stderr are closed.
73388         * lib/fd-safer.c: New file.
73389         * lib/fcntl-safer.h, open-safer.c: Remove.
73390         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
73391         * lib/dup-safer.c: Include unistd-safer.h first.
73392         Don't include errno.h.
73393         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
73394         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
73395         * lib/file-type.c: Rely on file-type.h change.
73396         * lib/getloadavg.c: Include unistd-safer.h.
73397         (getloadavg): Use safer open.
73398         * lib/getusershell.c: Include "stdio-safer.h".
73399         (getusershell): Use safer fopen.
73400         * lib/long-options.c (long_options): Use NULL rather than 0.
73401         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
73402         'free'.
73403         * lib/modechange.c: Likewise.
73404         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
73405         (MODE_DONE): New constant.
73406         (struct mode_change): Remove 'next' member.
73407         (make_node_op_equals): New function; like the old one of the
73408         same name, except it allocates an array.
73409         (mode_compile, mode_create_from_ref): Use it.
73410         (mode_compile): Allocate result as an array, not a linked list.
73411         Parse octal string ourself, so that we catch mistakes like "+0".
73412         (mode_adjust): Arg is an array, not a linked list.
73413         * lib/modechange.c: Include stat-macros.h, xalloc.h.
73414         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
73415         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
73416         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
73417         Remove.  This is now stat-macros.h's job.
73418         (talloc): Remove.  All callers replaced by xalloc, so that
73419         our invokers don't have to worry about reporting memory failures.
73420         (make_node_op_equals): Remove.
73421         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73422         New constants.
73423         (struct mode_change): Moved here from modechange.h.
73424         (mode_append_entry): Remove.
73425         (mode_compile): Remove MASKED_OPS arg, since it encouraged
73426         apps to have incorrect behavior.  Use simpler algorithm for head
73427         and tail.  Don't futz with umask; that's now the job of mode_adjust.
73428         Detect more invalid usages rather than having somewhat-random behavior.
73429         Don't insert an "a=" action, as that leads to incorrect behavior.
73430         (mode_compile, mode_create_from_ref): Return NULL on error instead
73431         of an enum, since now there's only one way to have an error.  All
73432         callers changed.
73433         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
73434         at the correct time.  Simplify calculation of "+u" and its ilk.
73435         Don't mishandle "+X".
73436         (mode_free): Remove "register" and localize decls.
73437         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73438         (struct mode_change): Move to modechange.c; callers don't
73439         need to see this stuff.
73440         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
73441         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
73442         (mode_change, mode_adjust): Reflect the new signatures noted above.
73443         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
73444         that might redefine system include files.
73445         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
73446         (my_usleep): Use NULL rather than (void *) 0.
73447         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
73448         Use siginterrupt to specify that system calls should be interrupted.
73449         (rpl_nanosleep): Move initialization of suspended closer to call of
73450         my_usleep.
73451         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
73452         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
73453         (desirable_utmp_entry): New function.
73454         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
73455         using x2nrealloc, to simplify logic.
73456         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
73457         size calculation.  Do not assume utmp file is a regular file.
73458         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
73459         (READ_UTMP_CHECK_PIDS): New constant.
73460         * lib/save-cwd.c: Include unistd-safer.h.
73461         (save_cwd): Use fd_safer.
73462         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
73463         [!_LIBC] Include "stat-macros.h" instead.
73464         * lib/unistd-safer.h (fd_safer): New decl.
73465
73466 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73467
73468         * modules/getloadavg (Depends-on): Add unistd-safer.
73469         * modules/getusershell (Depends-on): Add stdio-safer.
73470         * modules/lstat (Depends-on): Remove xalloc.
73471         * modules/mkstemp (Depends-on): Add stat-macros.
73472         * modules/modechange (Depends-on): Remove xstrtol.
73473         Add stat-macros, xalloc.
73474         * modules/save-cwd (Depends-on): Add unistd-safer.
73475         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
73476         * modules/unistd-safer (Files): Add lib/fd-safer.c
73477         (Makefile.am): Remove lib_SOURCES.
73478
73479         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
73480         Remove fcntl-safer; unistd-safer supersedes it.
73481
73482 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73483
73484         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
73485         AC_HEADER_STAT.
73486         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
73487         (gl_PREREQ_CHOWN): Remove.
73488         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
73489         it.  Don't require AC_HEADER_STAT.
73490         (gl_PREREQ_LSTAT): Remove.
73491         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
73492         Don't require AC_HEADER_STAT.
73493         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
73494         (gl_PREREQ_RMDIR): Remove.
73495         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
73496         mention stat-macros.h or AC_HEADER_STAT, since we'll make
73497         the stat-macros module a prerequisite.
73498         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
73499         * m4/filemode.m4 (gl_FILEMODE): Likewise.
73500         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
73501         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
73502         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
73503         variable names.
73504         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
73505         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
73506         variable prefixes.
73507         * m4/fcntl-safer.m4: Remove.
73508         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
73509         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
73510         Invoke gl_PREREQ_FD_SAFER.
73511         (gl_PREREQ_FD_SAFER): New macro.
73512         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
73513         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
73514         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
73515         Remove duplicate call to AC_LIBOBJ(readutmp).
73516         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
73517
73518         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
73519         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
73520
73521 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73522
73523         * MODULES.html.sh (Misc): Add byteswap.
73524
73525 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73526
73527         * modules/getcwd (Depends-on): Add extensions.
73528         * modules/openat (Depends-on): Likewise.
73529
73530 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73531
73532         * modules/byteswap: New file.
73533
73534 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73535
73536         * m4/byteswap.m4: New file.
73537
73538 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73539
73540         * lib/byteswap_.h: New file.
73541
73542 2005-04-25  Karl Berry  <karl@gnu.org>
73543
73544         * m4/gettext.m4: Update from GNU gettext 0.14.4.
73545
73546 2005-04-25  Albert Chin  <china@thewrittenword.com>
73547
73548         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
73549         Toolkit C bug.
73550
73551 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
73552
73553         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
73554         (func_ln_if_changed): Remove forcibly for no error message
73555         in case file does not exist.
73556
73557 2005-04-19  Simon Josefsson  <jas@extundo.com>
73558
73559         * gnulib-tool (Options): Make --symlink mean --symbolic.
73560
73561 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
73562
73563         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
73564
73565 2005-04-16  Simon Josefsson  <jas@extundo.com>
73566
73567         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
73568
73569 2005-04-15  Simon Josefsson  <jas@extundo.com>
73570
73571         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
73572
73573 2005-04-15  Simon Josefsson  <jas@extundo.com>
73574
73575         * gnulib-tool: Rename --symlink to --symbolic.
73576
73577 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
73578
73579         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
73580         symbolic links to files instead of copying/moving.  Add --aux-dir,
73581         specifying directory relative --dir where auxiliary build tools
73582         are placed.
73583
73584 2005-04-14  Bruno Haible  <bruno@clisp.org>
73585
73586         * modules/allocsa (License): Change to LGPL.
73587         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
73588
73589 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73590
73591         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
73592         that "UTC +1 second" continues to work.  Problem reported
73593         by Dmitry V. Levin.
73594         (relunit_snumber): New rule.
73595         (relunit): Use it.
73596
73597 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73598
73599         * lib/getdate.y (universal_time_zone_table): New constant.
73600         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
73601         universal_time_zone_table.
73602         (lookup_zone): Prefer universal_time_zone_table to
73603         local_time_zone_table, so that "GMT" time stamps are allowed in
73604         London during the summer.  Problem reported by Ian Abbott.
73605
73606 2005-04-12  Jim Meyering  <jim@meyering.net>
73607
73608         * lib/human.c (humblock): Set *options even when returning due to
73609         xstrtoumax conversion failure.  Thanks to a used-uninitialized
73610         warning from gcc-4.
73611
73612 2005-04-09  Jim Meyering  <jim@meyering.net>
73613
73614         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
73615         -Wuninitialized: initialize tm0.tm_year.
73616
73617 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
73618
73619         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
73620         count, since there's no maximum.  All uses changed.
73621         Add member dsts_seen.
73622         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
73623         not being INT_MAX.
73624         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
73625         Use pc_rels_seen to decide whther a date is absolute.
73626
73627         * lib/getdate.y (number): Don't overwrite year.
73628         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
73629         check.
73630
73631 2005-04-02  Simon Josefsson  <jas@extundo.com>
73632
73633         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
73634         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
73635
73636 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
73637
73638         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
73639         where no absolute path name can be longer than PATH_MAX.
73640
73641 2005-03-27  Jim Meyering  <jim@meyering.net>
73642
73643         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
73644
73645 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
73646
73647         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
73648         "one's complement" -> "ones' complement" in comment, as per Knuth.
73649         "value of type" -> "type or expression" in comment.
73650         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
73651
73652 2005-03-26  Jim Meyering  <jim@meyering.net>
73653
73654         Comment nits.
73655         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
73656         Correct typos: s/or/of/.
73657
73658 2005-03-26  Jim Meyering  <jim@meyering.net>
73659
73660         * modules/check-include-files: Move to ../ and rename to...
73661         * check-module: ...this.
73662
73663 2005-03-25  Jim Meyering  <jim@meyering.net>
73664
73665         * modules/xvasprintf (Files): Add xalloc.h.
73666
73667 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
73668
73669         * modules/gettext (Files): config/config.rpath ->
73670         build-aux/config.rpath
73671         * modules/iconv (Files): Likewise.
73672         Problem reported by Oskar Liljeblad.
73673
73674 2005-03-23  Jim Meyering  <jim@meyering.net>
73675
73676         * modules/check-include-files: New script to check for
73677         missing dependencies, multiple includes, etc.
73678
73679         * modules/c-strtold (Depends-on): Add xalloc.
73680         * modules/c-strtod (Depends-on): Add xalloc.
73681         * modules/hash (Depends-on): Add xalloc.
73682         (Files): Remove lib/xalloc.h.
73683
73684         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
73685         * modules/userspec (Files): Add lib/inttostr.h.
73686
73687 2005-03-23  Jim Meyering  <jim@meyering.net>
73688
73689         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
73690
73691 2005-03-22  Jim Meyering  <jim@meyering.net>
73692
73693         * modules/stat-macros: New module.
73694         * modules/canonicalize, modules/euidaccess, modules/file-type,
73695         * modules/filemode, modules/lchown, modules/makepath,
73696         * modules/rmdir, modules/stat: Depend on new stat-macros module
73697         rather than listing lib/stat-macros.h manually.
73698         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
73699
73700 2005-03-22  Jim Meyering  <jim@meyering.net>
73701
73702         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
73703
73704 2005-03-22  Bruno Haible  <bruno@clisp.org>
73705
73706         * config/srclist.txt: Replace target directory 'config' with
73707         'build-aux'.
73708         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
73709         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
73710         ../build-aux/.
73711
73712 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
73713
73714         * modules/chdir-long (Depends-on): Add mempcpy.
73715
73716         * modules/acl, modules/backupfile, modules/c-strtod,
73717         modules/c-strtold, modules/canon-host, modules/canonicalize,
73718         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
73719         modules/exclude, modules/exitfail, modules/file-type,
73720         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
73721         modules/getdate, modules/getline, modules/getpagesize,
73722         modules/getpass, modules/getugroups, modules/group-member,
73723         modules/hard-locale, modules/hash, modules/human, modules/idcache,
73724         modules/inttostr, modules/long-options, modules/makepath,
73725         modules/md5, modules/memcasecmp, modules/memcoll,
73726         modules/modechange, modules/mountlist, modules/path-concat,
73727         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
73728         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
73729         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
73730         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
73731         modules/strftime, modules/strndup, modules/strverscmp,
73732         modules/timespec, modules/unlocked-io, modules/userspec,
73733         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
73734         modules/yesno:
73735         Remove lib_SOURCES line from Makefile.am section, as this is now
73736         done automatically by the corresponding Autoconf macro.
73737
73738 2005-03-21  Jim Meyering  <jim@meyering.net>
73739
73740         Changes imported from coreutils.
73741
73742         * lib/cycle-check.c: Don't include xalloc.h.
73743
73744         * lib/path-concat.c: Don't include assert.h.
73745         (path_concat): Remove assertion that would have triggered
73746         for ABASE starting with more than one slash.
73747         Reported by Andreas Schwab.
73748
73749         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
73750         properly when ABASE is an absolute file name.
73751         Correct the description of this function.
73752         Include <assert.h>.
73753         Add an assertion and a test driver.
73754         This fixes a bug introduced on 2004-07-02.
73755         Andreas Schwab reported the resulting failure of cp --parents:
73756         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
73757
73758 2005-03-21  Jim Meyering  <jim@meyering.net>
73759
73760         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
73761         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
73762
73763 2005-03-21  Jim Meyering  <jim@meyering.net>
73764         and  Paul Eggert  <eggert@cs.ucla.edu>
73765
73766         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
73767         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
73768         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
73769         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
73770         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
73771         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
73772         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
73773         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
73774         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
73775         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
73776         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
73777         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
73778         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
73779         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
73780         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
73781         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
73782         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
73783         for these modules.
73784
73785 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
73786
73787         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
73788         (which shouldn't happen), generate nothing instead of returning 0
73789         immediately, so that nstrftime (NULL, ...) doesn't return 0.
73790
73791 2005-03-16  Bruno Haible  <bruno@clisp.org>
73792
73793         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
73794         HAVE_LONGLONG_64BIT.
73795
73796 2005-03-16  Bruno Haible  <bruno@clisp.org>
73797
73798         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
73799         HAVE_LONGLONG_64BIT.
73800
73801 2005-03-16  Bruno Haible  <bruno@clisp.org>
73802
73803         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
73804         HAVE_LONGLONG_64BIT.
73805
73806 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73807
73808         * lib/strftime.c (my_strftime): Prepend space to format so that we can
73809         reliably distinguish strftime failure from empty output on POSIX
73810         hosts.
73811
73812 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73813
73814         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
73815         (iconv_string): Don't guess a size-zero buffer, as that might cause
73816         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
73817         result would be 'too large', where 'too large' is (heuristically)
73818         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
73819         overflow concerns.  This will prevent some unwanted malloc failures
73820         when the inputs are very large.
73821
73822 2005-03-15  Karl Berry  <karl@gnu.org>
73823
73824         * config/srclist.txt (config.rpath): from gettext.
73825         * config/config.rpath: update.
73826
73827 2005-03-15  Bruno Haible  <bruno@clisp.org>
73828
73829         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
73830         to 'negate'.
73831
73832         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
73833         variable.
73834
73835         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
73836         results.
73837
73838 2005-03-14  Simon Josefsson  <jas@extundo.com>
73839
73840         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
73841         <fx@gnu.org>.
73842
73843 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
73844
73845         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
73846         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
73847         intprops.h.
73848         * lib/strtol.c: Likewise.
73849
73850 2005-03-14  Jim Meyering  <jim@meyering.net>
73851
73852         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
73853         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
73854         to be nonzero so that we (and caller) can detect the difference
73855         between a valid zero-length expansion and an error return, even
73856         when the underlying strftime fails before writing anything into
73857         that location.
73858
73859 2005-03-14  Bruno Haible  <bruno@clisp.org>
73860
73861         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
73862         Update from GNU gettext 0.14.3.
73863
73864 2005-03-10  Jim Meyering  <jim@meyering.net>
73865
73866         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
73867
73868 2005-03-10  Jim Meyering  <jim@meyering.net>
73869
73870         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
73871         so that this module works on systems without fchdir.
73872
73873 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
73874
73875         Factor int-properties macros into a single file, except for
73876         glibc-related files.
73877         * lib/intprops.h: New file.
73878         * lib/getloadavg.c: Include it instead of limits.h.
73879         (INT_STRLEN_BOUND): Remove.
73880         * lib/human.c: Include intprops.h.
73881         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
73882         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
73883         302/1000.
73884         * lib/inttostr.h: Include intprops.h instead of limits.h.
73885         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
73886         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
73887         for consistency with intprops.h.
73888         (time_t_is_integer, twos_complement_arithmetic): Use them.
73889         * lib/sig2str.h: Include <signal.h>, intprops.h.
73890         (INT_STRLEN_BOUND): Remove.
73891         * lib/strftime.c (TYPE_SIGNED): Remove.
73892         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
73893         * lib/strtol.c: Adjust comments to match intprops.h.
73894         * lib/userspec.c: Include intprops.h.
73895         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
73896         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
73897         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
73898         instead of rolling our own expressions.
73899         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
73900
73901         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
73902         instead of int.
73903         (my_strftime): Do not mishandle years close to INT_MAX, by doing
73904         the right thing even if adding 1900 would overflow.  Similarly
73905         for tm_mon + 1 and tm_yday + 1.
73906         Make %Y always equivalent to %C%y, and similarly for %G and %g.
73907         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
73908         (DO_SIGNED_NUMBER): New macro.
73909         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
73910
73911 2005-03-07  Bruno Haible  <bruno@clisp.org>
73912
73913         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
73914
73915 2005-03-07  Bruno Haible  <bruno@clisp.org>
73916
73917         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
73918
73919 2005-03-04  Derek R. Price  <derek@ximbiot.com>
73920
73921         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
73922         (func_import): Only replace files via --import when they have actually
73923         changed.
73924
73925 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73926
73927         * m4/mmap-anon.m4: New file.
73928         * m4/pagealign_alloc.m4: New file.
73929
73930 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73931             Bruno Haible  <bruno@clisp.org>
73932
73933         * modules/pagealign_alloc: New file.
73934         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
73935
73936 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73937             Bruno Haible  <bruno@clisp.org>
73938
73939         * lib/pagealign_alloc.h: New file.
73940         * lib/pagealign_alloc.c: New file.
73941
73942 2005-03-03  Bruno Haible  <bruno@clisp.org>
73943
73944         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
73945         Use an all-permissive copyright notice, recommended by RMS.
73946
73947 2005-03-02  Bruno Haible  <bruno@clisp.org>
73948
73949         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
73950         of AIX, the replacement has to be done only after <string.h> is
73951         included, therefore not in config.h. stpncpy.h does the replacement,
73952         and stpncpy.c uses it.
73953
73954 2005-03-02  Bruno Haible  <bruno@clisp.org>
73955
73956         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
73957         stpncpy.c uses it.
73958
73959 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73960
73961         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
73962         The workaround isn't strictly needed for POSIX conformance, and
73963         it's too much of a pain to configure and maintain.  We'll ask
73964         people to fix their kernels instead.
73965         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
73966         (NANOSLEEP_BUG_WORKAROUND): Remove.
73967         (xnanosleep): Remove the workaround.
73968
73969 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73970
73971         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
73972         Reported by Derek Price.
73973         (Include): Add "timespec.h".
73974
73975         * modules/xnanosleep (Depends-on): Remove gethrxtime.
73976
73977 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73978
73979         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
73980         to detect nanosleep bug.
73981
73982 2005-03-01  Bruno Haible  <bruno@clisp.org>
73983
73984         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
73985
73986 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73987
73988         * modules/gethrxtime: New file.
73989         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
73990         (Depends-on): Add gethrxtime.
73991         (configure.ac): Add gl_XNANOSLEEP.
73992         (Makefile.am): Remove lib_SOURCES line.
73993
73994 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73995
73996         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
73997         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
73998
73999 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74000
74001         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
74002         * lib/timespec.h (gettime): Return void, since it always
74003         succeeds now.  All uses changed.
74004         * lib/gettime.c (gettime): Likewise.
74005         [HAVE_NANOTIME]: Prefer nanotime.
74006         Assume gettimeofday succeeds, as POSIX requires.
74007         Assime time () succeeds, since other code already does.
74008         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
74009         (timespec_subtract): Remove.
74010         (NANOSLEEP_BUG_WORKAROUND): New constant.
74011         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
74012         things considerably.  Use it only on GNU/Linux hosts, since the
74013         workaround shouldn't be needed elsewhere.
74014
74015 2005-02-24  Bruno Haible  <bruno@clisp.org>
74016
74017         * modules/gettext (Files): Add m4/glibc2.m4.
74018
74019 2005-02-24  Bruno Haible  <bruno@clisp.org>
74020
74021         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
74022         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
74023         * m4/progtest.m4:
74024         Update from GNU gettext 0.14.2.
74025         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
74026
74027 2005-02-24  Bruno Haible  <bruno@clisp.org>
74028
74029         * lib/localcharset.c: Update from GNU gettext 0.14.2.
74030         * lib/config.charset: Update from GNU gettext 0.14.2.
74031
74032 2005-02-24  Bruno Haible  <bruno@clisp.org>
74033
74034         * lib/gettext.h: Update from GNU gettext 0.14.2.
74035
74036 2005-02-23  Simon Josefsson  <jas@extundo.com>
74037
74038         * m4/iconvme.m4: New file.
74039
74040 2005-02-23  Jim Meyering  <jim@meyering.net>
74041
74042         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
74043         change.
74044         Thanks to Bruno Haible for catching it.
74045
74046 2005-02-22  Simon Josefsson  <jas@extundo.com>
74047
74048         * modules/iconvme: New file.
74049
74050         * MODULES.html.sh: Add iconvme.
74051
74052 2005-02-22  Simon Josefsson  <jas@extundo.com>
74053
74054         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
74055
74056 2005-02-22  Simon Josefsson  <jas@extundo.com>
74057
74058         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
74059
74060 2005-02-22  Jim Meyering  <jim@meyering.net>
74061
74062         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
74063         s/ifndef/ifdef/.
74064
74065 2005-02-20  Neil Conway  <neilc@samurai.com>
74066
74067         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
74068         returned by OSX/Darwin if the specified buffer is not large
74069         enough for the hostname.
74070
74071 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74072
74073         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
74074         pass it to _help, otherwise the latter coredumps trying to
74075         dereference state.root_argp.
74076
74077 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74078
74079         * modules/chdir-long (Depends-on): Add memrchr.
74080         * modules/memrchr (Files): Add lib/memrchr.h.
74081         (Include): "memrchr.h".
74082
74083 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74084
74085         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
74086
74087 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74088
74089         * lib/memrchr.h: New file.
74090         * lib/chdir-long.c: Include it.
74091         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
74092         Don't bother including stddef.h.
74093
74094 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74095
74096         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
74097         inclusion.
74098         Include <sys/types.h>, for dev_t.
74099         (ME_DUMMY, ME_REMOTE): Move from here....
74100         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
74101         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
74102         Dmitry V. Levin.
74103         Include mountlist.h first, to test the interface.
74104
74105 2005-01-29  Bruno Haible  <bruno@clisp.org>
74106
74107         * lib/progname.c (program_name): Initialize.
74108         Needed when linking statically on MacOS X.
74109
74110 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74111
74112         Sync from coreutils.
74113         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
74114         (Depends-on): Add c-strtod.
74115         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
74116
74117 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74118
74119         Sync from coreutils.
74120         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
74121
74122         Remove files that are specific to coreutils.
74123         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
74124
74125 2005-01-28  Bruno Haible  <bruno@clisp.org>
74126
74127         * modules/javacomp: New file.
74128         * MODULES.html.sh (Java): Add javacomp.
74129
74130 2005-01-28  Bruno Haible  <bruno@clisp.org>
74131
74132         * m4/javacomp.m4: New file, from GNU gettext.
74133
74134 2005-01-28  Bruno Haible  <bruno@clisp.org>
74135
74136         * lib/javacomp.sh.in: New file, from GNU gettext.
74137         * lib/javacomp.h: New file, from GNU gettext.
74138         * lib/javacomp.c: New file, from GNU gettext.
74139
74140 2005-01-26  Simon Josefsson  <jas@extundo.com>
74141
74142         * lib/gai_strerror.c: Use GPL in header.
74143
74144 2005-01-26  Bruno Haible  <bruno@clisp.org>
74145
74146         * modules/javaexec: New file.
74147         * MODULES.html.sh (Java): Add javaexec.
74148
74149 2005-01-26  Bruno Haible  <bruno@clisp.org>
74150
74151         * m4/javaexec.m4: New file, from GNU gettext.
74152
74153 2005-01-26  Bruno Haible  <bruno@clisp.org>
74154
74155         * lib/javaexec.sh.in: New file, from GNU gettext.
74156         * lib/javaexec.h: New file, from GNU gettext.
74157         * lib/javaexec.c: New file, from GNU gettext.
74158
74159 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74160
74161         * modules/lchown (Depends-on): Remove lchown.h
74162
74163 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74164
74165         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
74166         must be defined if the header file was not found, in order
74167         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
74168
74169 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74170
74171         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
74172         initializers for struct pentry_state.
74173         (__argp_error): Check return value of __asprintf
74174         (__argp_failure): Translate error message
74175
74176         * lib/argp-parse.c: Removed braces around the expansion of N_()
74177
74178 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74179
74180         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
74181         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
74182         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
74183         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
74184         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
74185         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
74186         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
74187         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
74188         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
74189         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
74190         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
74191         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
74192         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
74193         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
74194         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
74195         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
74196         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
74197         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
74198         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
74199         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
74200         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
74201         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
74202         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
74203         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
74204         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
74205         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
74206         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
74207         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
74208         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
74209         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
74210         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
74211         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
74212         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
74213         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
74214         xstrtol.m4, xstrtoumax.m4, yesno.m4:
74215         Use an all-permissive copyright notice, recommended by RMS.
74216
74217 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
74218
74219         * modules/chdir-long (Depends-on): Remove mempcpy.
74220
74221 2005-01-21  Jim Meyering  <jim@meyering.net>
74222
74223         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
74224         same value as for Solaris 9.
74225
74226         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
74227         component length.  This included changing the parameter to be
74228         of type `char *' rather than `char const *'.
74229         * lib/chdir-long.h (chdir_long): Update prototype.
74230
74231         * lib/openat.c (fdopendir, fstatat): New functions.
74232         * lib/openat.h: Include headers required for use of DIR and struct
74233         stat.
74234         [AT_SYMLINK_NOFOLLOW]: Define.
74235         (fdopendir, fstatat): Add prototypes.
74236
74237 2005-01-21  Bruno Haible  <bruno@clisp.org>
74238
74239         * modules/classpath: New file.
74240         * MODULES.html.sh (Java): Add classpath.
74241
74242 2005-01-21  Bruno Haible  <bruno@clisp.org>
74243
74244         * lib/classpath.h: New file, from GNU gettext.
74245         * lib/classpath.c: New file, from GNU gettext.
74246
74247 2005-01-20  Simon Josefsson  <jas@extundo.com>
74248
74249         * modules/version-etc-fsf: New file.
74250
74251 2005-01-20  Simon Josefsson  <jas@extundo.com>
74252
74253         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
74254         * lib/version-etc.c: Remove version_etc_copyright.
74255         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
74256         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
74257
74258 2005-01-20  Simon Josefsson  <jas@extundo.com>
74259
74260         * lib/base64.h (isbase64): Add.
74261
74262         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
74263         using a unsigned prototype, don't inline.
74264         (base64_decode): Use it.
74265
74266 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74267
74268         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
74269         it.
74270
74271 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74272
74273         * lib/save-cwd.c (save_cwd): Remove code to support the case
74274         where fchdir is missing or flaky.
74275
74276 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74277
74278         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
74279
74280 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74281
74282         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
74283         AC_LIBSOURCES now does this.
74284         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
74285         with new ullong_max module.
74286
74287 2005-01-19  Bruno Haible  <bruno@clisp.org>
74288
74289         * modules/sh-quote: New file.
74290         * MODULES.html.sh (Executing programs): Add sh-quote.
74291
74292 2005-01-19  Bruno Haible  <bruno@clisp.org>
74293
74294         * lib/sh-quote.h: New file, from GNU gettext.
74295         * lib/sh-quote.c: New file, from GNU gettext.
74296
74297 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74298
74299         Merge from coreutils.
74300         * m4/ullong_max.m4: New file.
74301         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
74302         (gl_MACROS): Assume localeconv exists.
74303
74304 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74305
74306         Merge changes from coreutils, as described below in several
74307         changelogs dated today.
74308
74309         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
74310         (O_DIRECTORY): Remove; not needed here, since "." must be
74311         a directory.  All uses removed.
74312         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
74313         universal on Suns, and we also need to test for IRIX.
74314         Revamp code to use 'if' rather than '#if'.
74315         Avoid unnecessary comparison of cwd->desc to 0.
74316
74317         * lib/utimens.c (futimens): Robustify the previous patch, by checking
74318         for known valid error numbers rather than observed invalid ones.
74319
74320 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74321
74322         * modules/ullong_max: New file.
74323
74324         * modules/chdir-long, modules/openat: New files.
74325         * modules/save-cwd (Depends-on): Depend on chdir-long.
74326         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
74327
74328 2005-01-18  Jim Meyering  <jim@meyering.net>
74329
74330         Merge from coreutils.
74331         * m4/chdir-long.m4, m4/openat.m4: New files.
74332         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
74333         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
74334         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
74335         is sane and DOES follow symlinks.  Besides, testing 20 different
74336         systems found no broken chown implementations.
74337         Prompted by a change in rsync's copy of this macro.
74338         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
74339
74340         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
74341
74342         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
74343         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
74344         NULL-means-set-to-current-time semantics.
74345         Remove temporary file immediately, rather than waiting
74346         for configure's at-exit trap code to do it.
74347
74348 2005-01-18  Jim Meyering  <jim@meyering.net>
74349
74350         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74351
74352         * lib/utimens.c (futimens): Account for the fact that futimes
74353         can also fail with errno == ENOSYS or errno == ENOENT.
74354         Patch from Dmitry V. Levin.
74355
74356         Change the name of the robust chdir function from chdir to chdir_long.
74357         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
74358         (restore_cwd): Use chdir_long, not chdir.
74359         * lib/chdir-long.c: Renamed from chdir.c.
74360         * lib/chdir-long.h: Renamed from chdir.h.
74361         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
74362         Hurd.
74363
74364 2005-01-18  Bruno Haible  <bruno@clisp.org>
74365
74366         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
74367         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
74368         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
74369         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
74370         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
74371         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
74372         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
74373         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
74374         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
74375         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
74376         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
74377         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
74378         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
74379         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
74380         Use an all-permissive copyright notice, recommended by RMS.
74381
74382 2005-01-18  Bob Proulx  <bob@proulx.com>
74383
74384         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
74385         simplify offsetof() macro construct to avoid compile failure with
74386         native HP-UX 11.0 ANSI C compiler.
74387
74388 2005-01-17  Bruno Haible  <bruno@clisp.org>
74389
74390         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
74391         redundant because stpncpy.m4 takes care of it.
74392
74393 2005-01-17  Bruno Haible  <bruno@clisp.org>
74394
74395         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
74396
74397 2005-01-17  Bruno Haible  <bruno@clisp.org>
74398
74399         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
74400         used.
74401
74402 2005-01-17  Bruno Haible  <bruno@clisp.org>
74403
74404         * lib/fwriteerror.h (fwriteerror): Change specification to include
74405         fclose.
74406         * lib/fwriteerror.c: Include <stdbool.h>.
74407         (fwriteerror): At the end, close the file stream. Record whether
74408         stdout was already closed.
74409
74410 2005-01-17  Bruno Haible  <bruno@clisp.org>
74411
74412         * lib/execute.c (environ): Declare if needed.
74413         * lib/pipe.c (environ): Likewise.
74414         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
74415
74416 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74417
74418         * modules/argp: Depend on vsnprintf
74419
74420 2005-01-10  Jim Meyering  <jim@meyering.net>
74421
74422         * modules/closeout (Depends-on): Add atexit.
74423
74424 2005-01-06  Bruno Haible  <bruno@clisp.org>
74425
74426         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
74427
74428 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74429
74430         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
74431         definitions to be after all include files, to avoid collisions.
74432         Problem reported by Bob Proulx.
74433
74434 2005-01-04  Jim Meyering  <jim@meyering.net>
74435
74436         Changes imported from coreutils.
74437         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
74438         as the mkstemp template, use a temporary directory and an
74439         8.3-friendly template to avoid trouble on systems like DJGPP.
74440         Reported by Juan M. Guerrero via Stepan Kasal.
74441         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
74442         close. Remove the temporary directory right away, rather than waiting
74443         for configure's at-exit trap code to do it.
74444         Suggestion from Stepan Kasal.
74445
74446 2005-01-01  Simon Josefsson  <jas@extundo.com>
74447
74448         * gnulib-tool: Print #include directives when --import'ing.
74449
74450 2004-12-28  Simon Josefsson  <jas@extundo.com>
74451
74452         * tests/test-base64.c: Include required header files.  Remove
74453         unused variables.
74454
74455 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74456
74457         * modules/error (Depends-on): Remove gettext.
74458
74459 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74460
74461         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
74462         not needed.  This removes a dependency on the gettext module.
74463         [defined _LIBC]: Do not include <libintl.h>; not needed.
74464
74465 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74466
74467         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
74468         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
74469
74470 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74471
74472         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
74473         HAVE_DECL_STRTOLD.
74474
74475 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74476
74477         * modules/getdate (Depends-on): Remove alloca-opt.
74478
74479 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74480
74481         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
74482
74483 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74484
74485         * lib/argp-parse.c: Include <stddef.h>.
74486         (alignof, alignto): New macros.
74487         (parser_init): Don't assume that void * is aligned sufficiently
74488         for struct option.
74489
74490         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
74491         need to extend the stack.
74492         (YYINITDEPTH): New macro, so that the initial stack isn't overly
74493         large.
74494
74495 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74496
74497         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
74498
74499 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74500
74501         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
74502         (2004-10-24) change.  Apparently this was a false alarm.
74503
74504         * modules/getdate: Depend on alloca-opt, not alloca.
74505
74506 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74507
74508         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
74509         Remove now-obsolete comment about AIX.
74510         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
74511         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
74512         (YYMAXDEPTH): New macro.
74513
74514 2004-12-18  Simon Josefsson  <jas@extundo.com>
74515
74516         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
74517
74518 2004-12-18  Bruno Haible  <bruno@clisp.org>
74519
74520         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
74521
74522 2004-12-18  Bruno Haible  <bruno@clisp.org>
74523
74524         * lib/fatal-signal.c (fatal_signals): Make non-const.
74525         (init_fatal_signals): New function.
74526         (uninstall_handlers, install_handlers): Ignore signals that were set to
74527         SIG_IGN.
74528         (at_fatal_signal): Call init_fatal_signals.
74529         (init_fatal_signal_set): Likewise. Ignore signals that were set to
74530         SIG_IGN.
74531         Reported by Paul Eggert.
74532
74533 2004-12-18  Bruno Haible  <bruno@clisp.org>
74534
74535         * doc/alloca.texi: New file.
74536         * doc/alloca-opt.texi: New file.
74537
74538 2004-12-17  Jim Meyering  <jim@meyering.net>
74539
74540         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
74541         Otherwise, install-sh could exit with improper exit status when
74542         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
74543
74544 2004-12-16  Simon Josefsson  <jas@extundo.com>
74545
74546         * tests/test-base64.c: Add license.
74547
74548 2004-12-15  Stepan Kasal  <address@hidden>
74549
74550         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
74551
74552 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
74553
74554         * modules/getcwd (Files): Add m4/d-ino.m4.
74555         Suggested by Mark D. Baushke.
74556
74557 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74558
74559         * lib/getdate.y (textint): New member "negative".
74560         (time_zone_hhmm): New function.
74561         Expect 14 shift-reduce conflicts, not 13.
74562         (o_colon_minutes): New rule.
74563         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
74564         (yylex): Set the "negative" member of signed numbers.
74565
74566 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74567
74568         * doc/getdate.texi (Time of day items, Time zone items):
74569         Describe new formats +00:00, UTC+00:00.
74570
74571 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74572
74573         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
74574         spurious "-l"s.  Problem reported by Stepan Kasal.
74575
74576 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
74577
74578         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
74579         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
74580
74581 2004-12-04  Simon Josefsson  <jas@extundo.com>
74582
74583         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
74584         Vandoorselaere <yoann@prelude-ids.org>.
74585
74586 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74587
74588         Changes imported from coreutils.
74589         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
74590         exist.
74591         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
74592
74593 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74594
74595         Changes imported from coreutils.
74596         * lib/hard-locale.c: Assume <locale.h> exists.
74597         Include "strdup.h".
74598         (GLIBC_VERSION): New macro.
74599         (hard_locale): Assume setlocale exists.
74600         Rewrite to avoid #ifdef.
74601         Use strdup rather than malloc + strcpy.
74602         * lib/human.c: Assume <locale.h> exists.
74603         (human_readable): Assume localeconv exists.
74604
74605 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74606
74607         * modules/hard-locale (Depends-on): Add strdup.
74608
74609 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74610
74611         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
74612         convert T2, not T.  (Imported from libc.)
74613
74614 2004-11-30  Simon Josefsson  <jas@extundo.com>
74615
74616         * modules/restrict (License): Change to LGPL.
74617
74618 2004-11-30  Simon Josefsson  <jas@extundo.com>
74619
74620         * m4/restrict.m4: Add copyright and copying conditions.
74621
74622 2004-11-30  Simon Josefsson  <jas@extundo.com>
74623
74624         * m4/base64.m4: New file.
74625
74626 2004-11-30  Simon Josefsson  <jas@extundo.com>
74627
74628         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
74629         base64.
74630
74631         * tests/test-base64.c: New file.
74632
74633         * modules/base64: New file.
74634
74635 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74636
74637         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
74638         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
74639
74640         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
74641
74642 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74643
74644         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
74645         (__getcwd.c): Don't restore errno; glibc doesn't.
74646         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
74647         first, falling back to our code only if its results look suspicious.
74648         Ensure that the resulting buffer is only as large as necessary.
74649
74650         * lib/readutmp.c: Include readutmp.h first.
74651         Include <errno.h>, since readutmp.h no longer does that.
74652         * lib/readutmp.h: Don't include <errno.h>,
74653         <sys/param.h>, <time.h>; not needed to establish interface.
74654         (errno): Remove decl.
74655         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
74656         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
74657         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
74658
74659 2004-11-28  Simon Josefsson  <jas@extundo.com>
74660
74661         * lib/base64.h, base64.c: New file.
74662
74663 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74664
74665         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
74666
74667 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74668
74669         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
74670         (Depends-on): Remove pathmax, same.  Add mempcpy.
74671         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
74672         (Makefile.am): Append getcwd.h to lib_SOURCES.
74673         (Include): Add getcwd.h.
74674         (Maintainer): Change from Jim Meyering to "all, glibc",
74675         since getdate now uses intended-for-glibc code.
74676         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
74677         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
74678
74679 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74680
74681         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
74682         HP's ANSI C compiler.
74683         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
74684         Declaring int functions causes warnings on some modern systems and
74685         shouldn't be needed to compile on ancient ones.
74686         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
74687         defined.
74688
74689         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
74690         with the following changes.
74691         (__set_errno): Parenthesize properly.
74692         Include <stdbool.h>.
74693         (MIN, MAX, MATCHING_INO): New macros.
74694         (__getcwd): Define with prototype, not K&R form.
74695         Use heuristics to allocate default buffer on stack if possible.
74696         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
74697         behavior, and to avoid the PATH_MAX limit when computing
74698         ../../../../...
74699         Use MATCHING_INO to compare inode number to file.
74700         Check for arithmetic overflow in size calculations.
74701         Fix bug in reallocation of dot array that caused getcwd to fail
74702         on directories nested deeper than 75.
74703         Be more careful about saving errno on error.
74704         Do not use realloc; use only free+malloc, as this is a bit
74705         more flexible and avoids a needless copy operation.
74706         Do not inspect st_dev and st_ino for symbolic links; POSIX
74707         doesn't specify the latter.
74708         Check for closedir errors.
74709         Avoid needless casts.
74710         Use "#ifdef weak_alias" around weak_alias, to be like other
74711         glibc code.
74712         The following changes to getcwd.c have effect only when used in
74713         gnulib; they have no effect inside glibc proper.
74714         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
74715         as alloca isn't used.
74716         (alloca, __alloca): Likewise.
74717         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
74718         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74719         unconditionally, as gnulib assumes C89 or better.
74720         Do not include <sys/param.h>.
74721         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
74722         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
74723         better.
74724         (NULL) [!defined NULL]: Remove; we assume C89 or better.
74725         Include <dirent.h> in a way that is compatible with modern Autoconf.
74726         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
74727         New macros, if not already defined.
74728         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
74729         Use "_LIBC", not "defined _LIBC", for consistency.
74730         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
74731         a mempcpy module.
74732         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
74733         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
74734         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
74735         credit only to Jim Meyering and adjust the copyright dates.
74736         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
74737         <stdlib.h>, <unistd.h>, "pathmax.h".
74738         Instead, include "xgetcwd.h" (first) and "getcwd.h".
74739         (INITIAL_BUFFER_SIZE): Remove.
74740         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
74741
74742 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74743
74744         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
74745         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
74746         Use the _ONCE methods, for efficiency.
74747         Check for fcntl.h.  In test program, include <errno.h>
74748         and <fcntl.h> if available.  Remove old K&R cruft from
74749         test program.  Check for common errors in GNU/Linux,
74750         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
74751         don't do AC_LIBOBJ, as that's getcwd.m4's job.
74752         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
74753         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
74754         name accordingly.
74755         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
74756         accommodate new getcwd.c.
74757         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
74758         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
74759         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
74760         that's all we need now.
74761
74762 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74763
74764         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
74765         argp-parse.c depends on getopt internals, that means we should
74766         always use our getopt, to be on the safe side.
74767         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
74768         order not to spoil the result of an eventual previous invocation
74769         of gl_GETOPT_SUBSTITUTE.
74770
74771 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74772
74773         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
74774         redefinition warnings. To avoid them, include the defines
74775         in `#if !defined __need_getopt ... #endif'. The only place
74776         where __getopt_argv_const is used is in definitions
74777         of getopt_long and getopt_long_only below, which are as well
74778         protected by `#ifndef __need_getopt'.
74779         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
74780         __need_getopt after including <stdio.h> and <unistd.h> These
74781         headers might have defined it.
74782
74783 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74784
74785         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
74786
74787 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74788
74789         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
74790         (futimens): New function, which uses futimes if available.
74791         (futimens, utimens): Support timespec==NULL, with same semantics
74792         as utime and utimens.
74793         * lib/utimens.h (futimens): New decl.
74794
74795 2004-11-23  Jim Meyering  <jim@meyering.net>
74796
74797         * lib/getopt_.h: Remove trailing blanks.
74798
74799 2004-11-23  Jim Meyering  <jim@meyering.net>
74800
74801         * lib/__fpending.c: Add comment.
74802
74803 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
74804
74805         * modules/canonicalize (Depends-on): Add xreadlink.
74806         Problem reported by James Youngman.
74807
74808 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74809
74810         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
74811         New macros.
74812         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
74813         optopt): Use them instead of invoking ## directly; otherwise, the
74814         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
74815
74816 2004-11-19  Bruno Haible  <bruno@clisp.org>
74817
74818         * lib/strtok_r.c: Move comments from here...
74819         * lib/strtok_r.h: ... to here.
74820
74821 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74822
74823         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
74824         implementations that mishandle size_t overflow.
74825
74826 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74827
74828         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
74829         might fail.  Problem reported by Yoann Vandoorselaere.
74830         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
74831         implementations that mishandle size_t overflow.
74832
74833 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74834
74835         * modules/canon-host (Depends-on): Add strdup.
74836
74837 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74838
74839         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
74840
74841 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74842
74843         * lib/canon-host.c: Include "strdup.h".
74844         (canon_host): Use getaddrinfo if available, so that IPv6 works.
74845         Use strdup instead of malloc/strcpy to duplicate strings.
74846
74847         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
74848         (human_space_before_unit): New constant.
74849         * lib/human.c (human_readable): Support it.
74850
74851         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
74852         (xgetcwd): Set errno correctly when failing.
74853         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
74854         the failure is actually due to a PATH_MAX problem.
74855
74856         Further getopt changes to make it more likely that glibc will
74857         buy the changes back.
74858         * lib/getopt.c (POSIXLY_CORRECT): New constant.
74859         (getopt): Use it, so to preserve glibc semantic
74860         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
74861         when compiling for libc.
74862         * lib/getopt_.h (__getopt_argv_const): Bring it back.
74863         (getopt_long, getopt_long_only): Use it.
74864
74865         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
74866         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
74867         (getopt): Argv is now char * const *, as per standard.
74868         (_getopt_internal_r, _getopt_internal): Argv is now char **,
74869         not char *__getopt_argv_const *.
74870         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
74871         _getopt_long_only_r): Likewise.
74872         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
74873         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
74874         _getopt_long_r, _getopt_long_only_r): Likewise.
74875         * lib/getopt_.h (__getopt_argv_const): Remove.
74876         (getopt): Argv is now char * const *, as per standard.
74877
74878         * lib/getdate.y (tORDINAL): New token.
74879         (day, relunit): Allow it for relative times.
74880         (relative_time_table): Use tORDINAL for ordinals.
74881
74882 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74883
74884         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
74885         Document that "second" isn't allowed as an ordinal number.
74886
74887 2004-11-16  Jim Meyering  <jim@meyering.net>
74888
74889         * modules/closeout (Depends-on): Add fpending.
74890
74891 2004-11-15  Jim Meyering  <jim@meyering.net>
74892
74893         * lib/closeout.c: Include "__fpending.h" once again.
74894         Include <stdbool.h>.
74895         (close_stdout): Don't fail just because stdout was closed initially,
74896         since some programs don't write to stdout in the normal course of
74897         operation (other than --version and --help), and we don't want this
74898         function to make e.g. `touch file >&-' fail.
74899         But do fail if it was closed and someone has tried to write to it.
74900         E.g., `printf foo >&-' must fail.
74901
74902 2004-11-13  Jim Meyering  <jim@meyering.net>
74903
74904         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
74905
74906 2004-11-12  Simon Josefsson  <jas@extundo.com>
74907
74908         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
74909         small doc fix is still pending.
74910
74911 2004-11-11  Simon Josefsson  <jas@extundo.com>
74912
74913         * modules/strtok_r: New file.
74914
74915         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74916         strtok_r.
74917
74918 2004-11-11  Simon Josefsson  <jas@extundo.com>
74919
74920         * m4/strtok_r.m4: New file.
74921
74922         * m4/getopt.m4: Replace opterr.
74923
74924 2004-11-11  Simon Josefsson  <jas@extundo.com>
74925
74926         * lib/strtok_r.h, strtok_r.c: New file.
74927
74928 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
74929
74930         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
74931         of replacing opterr, getopt, etc.  This should handle the
74932         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
74933
74934 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
74935
74936         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
74937         we can stop lying to compilers about the constness of argv when we
74938         are compiled outside glibc.
74939         (getopt, getopt_long, getopt_long_only): Use it.
74940         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
74941         _getopt_internal, getopt): Likewise.
74942         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
74943         _getopt_long_only_r): Likewise.
74944         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
74945         _getopt_long_r, _getopt_long_only_r): Likewise.
74946
74947         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
74948         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
74949         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
74950         the other external symbols.
74951         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
74952         declaration, since the above renaming now works around collisions.
74953
74954 2004-11-11  Jim Meyering  <jim@meyering.net>
74955
74956         * lib/linebreak.c: Remove trailing blanks.
74957         * lib/alloca_.h: Likewise.
74958         * lib/acosl.c: Likewise.
74959         * lib/euidaccess.c: Likewise.
74960         * lib/allocsa.h: Likewise.
74961
74962 2004-11-10  Simon Josefsson  <jas@extundo.com>
74963
74964         * m4/getaddrinfo.m4: New file.
74965
74966 2004-11-10  Simon Josefsson  <jas@extundo.com>
74967
74968         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
74969
74970 2004-11-10  Simon Josefsson  <jas@extundo.com>
74971
74972         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74973         getaddrinfo.
74974
74975         * modules/getaddrinfo: New file.
74976
74977 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74978
74979         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
74980
74981 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74982
74983         * lib/mktime.c (SHR): New macro, which is a portable
74984         substitute for >> that should work even on Crays.
74985         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
74986         Problem reported by Mark D. Baushke in
74987         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
74988         * lib/getdate.y (SHR): Likewise.
74989         (tm_diff): Use it.
74990         * lib/strftime.c (SHR): Likewise.
74991         (tm_diff): Use it.
74992         * lib/quotearg.c (struct quoting_options): Use unsigned int for
74993         quote_these_too, so that right shifts are well defined.  All uses
74994         changed.
74995
74996 2004-11-10  Jim Meyering  <jim@meyering.net>
74997
74998         Ensure that no close failure goes unreported.
74999         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
75000         return early when it seems there's nothing to flush.
75001         Don't include __fpending.h.
75002
75003 2004-11-10  Jim Meyering  <jim@meyering.net>
75004
75005         * modules/closeout (Depends-on): Remove fpending.
75006
75007 2004-11-10  Jim Meyering  <jim@meyering.net>
75008
75009         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
75010
75011 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75012
75013         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
75014         gl_FUNC_STRFTIME.
75015         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
75016         and AC_REQUIRE when possible, to avoid duplicate checks.
75017         Check for <wchar.h>.
75018
75019 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75020
75021         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
75022
75023 2004-11-09  Bruno Haible  <bruno@clisp.org>
75024
75025         * m4/sockpfaf.m4: New file.
75026
75027 2004-11-05  Bruno Haible  <bruno@clisp.org>
75028
75029         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
75030         Reported by Mark D. Baushke <mdb@cvshome.org>.
75031
75032 2004-11-04  Bruno Haible  <bruno@clisp.org>
75033
75034         2004-09-11  Bruno Haible  <bruno@clisp.org>
75035                 * allocsa.valgrind: New file.
75036         2004-02-06  Bruno Haible  <bruno@clisp.org>
75037                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
75038                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
75039                 Reported by Christopher Seip <chris.seip@hp.com>.
75040
75041 2004-11-04  Bruno Haible  <bruno@clisp.org>
75042
75043         * modules/allocsa (Files): Add lib/allocsa.valgrind.
75044         (Makefile.am): Distribute it.
75045
75046 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75047
75048         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
75049         with errno == ERANGE if the buffer is too small.
75050         Problem reported by Mark D. Baushke.
75051
75052 2004-11-03  Albert Chin  <china@thewrittenword.com>
75053             Paul Eggert  <eggert@cs.ucla.edu>
75054
75055         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
75056         equivalent, substitute $ac_type for equivalent type rather than
75057         blindly using uint32_t *always* which won't work if uint32_t is not
75058         available.  Define _UINT32_T to work around typedef of uint32_t if
75059         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
75060         2.5.1.
75061
75062 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75063
75064         * m4/jm-macros.m4: Sync from coreutils.
75065         (gl_MACROS): Check for mbrlen, for pathchk.
75066         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
75067
75068 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75069
75070         * lib/xreadlink.c (MAXSIZE): New macro.
75071         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
75072         size does not exceed MAXSIZE.  Avoid cast.
75073         As suggested by Mark D. Baushke in
75074         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
75075         if readlink fails with buffer size just under MAXSIZE, try again
75076         with MAXSIZE.
75077
75078 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75079
75080         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
75081
75082 2004-11-02  Derek R. Price  <derek@ximbiot.com>
75083         and  Paul Eggert  <eggert@cs.ucla.edu>
75084
75085         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
75086         (get_date): Overparenthesize to avoid GCC warning.
75087
75088 2004-11-02  Bruno Haible  <bruno@clisp.org>
75089
75090         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
75091         returns void.
75092
75093 2004-11-02  Bruno Haible  <bruno@clisp.org>
75094
75095         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
75096         function returns void.
75097
75098 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75099
75100         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
75101         fflush_unlocked, flockfile, funlockfile, funlockfile,
75102         fputs_unlocked, putc_unlocked.
75103
75104 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75105
75106         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75107         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
75108         already declared.
75109
75110 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75111
75112         * modules/getdate (Files): Add doc/getdate.texi.
75113         (Depends-on): Add setenv, xalloc.
75114
75115 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75116
75117         * lib/getdate.y: Add support for TZ="foo" within a date string.
75118         Fix some bugs near time_t boundaries.  Reject dates with
75119         out-of-range components, e.g., "Sept 31".
75120         Include <stdlib.h>, "setenv.h", "xalloc.h".
75121         (ISDIGIT_LOCALE): Remove; unused.
75122         Note that the TZ and time functions used here are not reentrant.
75123         (mktime_ok, get_tz): New functions.
75124         (TZBUFSIZE): New constant.
75125         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
75126         This requires that we sometimes generate our own TZ="XXX..." setting.
75127
75128 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75129
75130         * doc/getdate.texi: New file, from coreutils with modifications for
75131         the new TZ parsing.
75132
75133 2004-10-27  Derek R. Price  <derek@ximbiot.com>
75134
75135         * lib/mktime.c (not_equal_tm): Remove redundant check.
75136
75137 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75138
75139         * modules/regex (lib_SOURCES): Add regex.c.
75140         Reported by James Youngman in
75141         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
75142
75143 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75144
75145         * lib/getdate.y: Use Bison 1.875 features, and some minor
75146         code cleanups.  This change does not affect semantics.
75147         Don't include <stdlib.h>; no longer needed.
75148         Don't include unlocked-io.h; only the "#if TEST" code uses
75149         stdio, and performance isn't crucial there.
75150         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
75151         Bison 1.875 features as described below.
75152         All uses of "PC." replaced by "pc->".
75153         (YYSTYPE): Add a forward declaration.
75154         (yylex, yyerror): Use full prototypes in forward decls.
75155         Use "%pure-parser" rather than obsolescent "%pure_parser".
75156         Use %parse-param and %lex-param instead of obsolescent
75157         YYPARSE_PARAM and YYLEX_PARAM.
75158         (meridian_table, month_and_day_table, time_units_table,
75159         relative_time_table, time_zone_table, military_table,
75160         lookup_zone, lookup_word, get_date):
75161         Use NULL instead of 0 where appropriate.
75162         (to_hour): Avoid abort (), to avoid a dependency on
75163         stdlib.h.
75164         (yyerror, yylex): Now accepts parser_control * arg.
75165         (main) [TEST]: Use '\0' rather than 0 for char.
75166
75167 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75168
75169         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
75170
75171 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75172
75173         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
75174         It's now the caller's responsibility to handle the case where
75175         !HAVE_GETPAGESIZE && !defined getpagesize.
75176
75177         * lib/mktime.c (leapyear): Arg is long int, not int.
75178
75179 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
75180
75181         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
75182
75183 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75184
75185         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
75186         missing.  Problem reported by James Youngman.
75187
75188 2004-10-16  Simon Josefsson  <jas@extundo.com>
75189
75190         * gnulib-tool: Fix comments.  Fix parse problem.
75191         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
75192
75193 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
75194
75195         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
75196         implementation of getopt_long.  Problem reported by Alexander Taler in:
75197         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
75198
75199 2004-10-15  Bruno Haible  <bruno@clisp.org>
75200
75201         * gnulib-tool: Untabify. Initialize supplied_libname.
75202         (func_usage): More homogenous output.
75203         (func_modules_transitive_closure, func_modules_to_filelist,
75204         func_emit_lib_Makefile_am): New functions.
75205         (func_import): New function, extracted from big case statement. Use
75206         func_get_license, func_modules_transitive_closure,
75207         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
75208         opt_lgpl. Don't use test -a, as it's not portable.
75209         (func_create_testdir): Use func_modules_transitive_closure,
75210         func_modules_to_filelist, func_emit_lib_Makefile_am.
75211
75212 2004-10-15  Bruno Haible  <bruno@clisp.org>
75213
75214         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
75215
75216 2004-10-15  Bruno Haible  <bruno@clisp.org>
75217
75218         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
75219         the portions belonging to each module.
75220         Suggested by Derek Robert Price <derek@ximbiot.com>.
75221
75222 2004-10-12  Simon Josefsson  <jas@extundo.com>
75223
75224         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75225         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
75226         to real functions.
75227
75228 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75229
75230         * modules/vsnprintf: New file.
75231
75232 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75233
75234         * m4/vsnprintf.m4: New file.
75235
75236 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75237
75238         * lib/vsnprintf.h: New file.
75239         * lib/vsnprintf.c: New file.
75240
75241 2004-10-11  Bruno Haible  <bruno@clisp.org>
75242
75243         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
75244         vsnprintf.
75245
75246 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75247
75248         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
75249
75250 2004-10-07  Bruno Haible  <bruno@clisp.org>
75251
75252         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
75253         fits into the provided buffer.
75254
75255 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75256
75257         * lib/diacrit.c, diacrit.h: Add GPL notice.
75258
75259         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
75260         notice.
75261         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
75262         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
75263         This avoids a potential constant-folding bug.
75264
75265 2004-10-05  Bruno Haible  <bruno@clisp.org>
75266
75267         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
75268         for the declaration of strsep.
75269
75270 2004-10-05  Bruno Haible  <bruno@clisp.org>
75271
75272         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
75273
75274 2004-10-04  Simon Josefsson  <jas@extundo.com>
75275
75276         * modules/memmem: New file.
75277         * tests/test-memmem.c: New file.
75278         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
75279
75280 2004-10-04  Simon Josefsson  <jas@extundo.com>
75281
75282         * m4/memmem.m4: New file.
75283
75284 2004-10-04  Simon Josefsson  <jas@extundo.com>
75285
75286         * lib/memmem.h: New file.
75287         * lib/memmem.c: New file, taken from glibc.
75288
75289 2004-10-04  Simon Josefsson  <jas@extundo.com>
75290
75291         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
75292         '#ifdef USE_UNLOCKED_IO'.
75293
75294 2004-10-04  Simon Josefsson  <jas@extundo.com>
75295
75296         * config/srclist.txt: Add memmem from glibc.
75297
75298 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75299
75300         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
75301
75302         * modules/argmatch, modules/argp, modules/closeout, modules/error,
75303         modules/exclude, modules/getdate, modules/getline,
75304         modules/getndelim2, modules/getpass, modules/getpass-gnu,
75305         modules/getusershell, modules/linebuffer, modules/md5,
75306         modules/mountlist, modules/posixtm, modules/readtokens,
75307         modules/readutmp, modules/regex, modules/sha1,
75308         modules/version-etc, modules/yesno:
75309         Remove dependency on unlocked-io.
75310
75311 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75312
75313         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
75314
75315         * m4/unlocked-io.m4: Add copyright notice.
75316         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
75317
75318 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75319
75320         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
75321         * lib/xmalloc.c (xmemdup): Likewise.
75322         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
75323         XFREE): Remove these long-obsolescent macros.
75324         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
75325         * lib/xstrdup.c: Remove.
75326
75327         * lib/regex.c (re_comp): Cast gettext return value to char *,
75328         Problem reported by Martin Neitzel via Mark D. Baushke.
75329
75330 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75331
75332         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
75333         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
75334         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
75335         regex.c, sha1.c, version-etc.c, yesno.c:
75336         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
75337         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
75338         the includer's responsibility.
75339
75340         Sync from coreutils.
75341
75342         * lib/modechange.c (mode_compile): Don't decrement a pointer that
75343         points to the start of a string, as the C Standard says the
75344         resulting behavior is undefined.
75345
75346         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
75347         simple -> simple_backups, numbered_existing ->
75348         numbered_existing_backups, numbered -> numbered_backups
75349         to avoid shadowing problems.  All uses changed.
75350         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
75351         * lib/backupfile.c (check_extension, numbered_backup):
75352         Rename locals to avoid shadowing 'basename'.
75353         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
75354         once.
75355
75356         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
75357         * lib/.cvsignore: Add getopt.h.
75358
75359 2004-10-04  Bruno Haible  <bruno@clisp.org>
75360
75361         * modules/README: New file.
75362         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
75363         not a module.
75364
75365 2004-10-02  Jim Meyering  <jim@meyering.net>
75366
75367         * lib/dirfd.h, getpagesize.h: Add copyright notice.
75368
75369 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75370
75371         * modules/strsep: New file.
75372
75373 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75374
75375         * m4/strsep.m4: New file.
75376
75377 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75378
75379         * lib/strsep.h: New file.
75380         * lib/strsep.c: New file.
75381
75382 2004-10-01  Simon Josefsson  <jas@extundo.com>
75383
75384         * lib/snprintf.c (snprintf): Handle size==0.
75385
75386 2004-10-01  Simon Josefsson  <jas@extundo.com>
75387             Bruno Haible  <bruno@clisp.org>
75388
75389         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
75390         (snprintf): Declare 'args'.
75391
75392 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
75393
75394         * lib/snprintf.c: Remove comments as to why each header is needed.
75395
75396 2004-10-01  Bruno Haible  <bruno@clisp.org>
75397
75398         * MODULES.html.sh: Add strsep.
75399
75400 2004-09-30  Simon Josefsson  <jas@extundo.com>
75401
75402         * modules/snprintf: New file.
75403
75404 2004-09-30  Simon Josefsson  <jas@extundo.com>
75405
75406         * m4/snprintf.m4: New file.
75407
75408 2004-09-30  Simon Josefsson  <jas@extundo.com>
75409
75410         * lib/snprintf.h, lib/snprintf.c: New files.
75411
75412 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75413
75414         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
75415         (hol_entry_help): Never translate an empty string.
75416         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
75417         * lib/argp.h (OPTION_NO_TRANS): New option.
75418
75419 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75420
75421         * modules/argp (Maintainer): Replace Simon Josefsson
75422         by Sergey Poznyakoff.
75423
75424 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75425
75426         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
75427         changes merged back into glibc.
75428
75429 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75430
75431         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
75432
75433 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75434
75435         * lib/xvasprintf.c: Include xalloc.h.
75436         (xvasprintf): Use xalloc_die, not xmalloc_die.
75437
75438 2004-09-29  Bruno Haible  <bruno@clisp.org>
75439
75440         * modules/alloca-opt: New file, derived from modules/alloca.
75441         * modules/allocsa: Depend on alloca-opt instead of alloca.
75442         * modules/setenv: Likewise.
75443         * modules/vasnprintf: Likewise.
75444         * MODULES.html.sh: Add alloca-opt.
75445
75446 2004-09-28  Simon Josefsson  <jas@extundo.com>
75447
75448         * gnulib-tool: New parameter --lgpl, to asseert that modules are
75449         LGPL, and to replace license template from GPL to LGPL.
75450
75451 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75452
75453         * modules/dummy: Change license to LGPL.
75454
75455 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75456
75457         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
75458
75459 2004-09-24  Simon Josefsson  <jas@extundo.com>
75460
75461         * modules/minmax (License): Change from GPL to LGPL.
75462
75463 2004-09-23  Simon Josefsson  <jas@extundo.com>
75464
75465         * gnulib-tool (--import): Typo.
75466
75467 2004-09-23  Simon Josefsson  <jas@extundo.com>
75468
75469         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
75470
75471 2004-09-22  Bruno Haible  <bruno@clisp.org>
75472
75473         * modules/*: Add 'License' field.
75474         * gnulib-tool: Accept --extract-license option.
75475         (func_get_license): New function.
75476
75477 2004-09-21  Bruno Haible  <bruno@clisp.org>
75478
75479         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
75480         Reported by Simon Josefsson.
75481
75482 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75483
75484         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
75485         gl_AC_TYPE_LONG_LONG.
75486
75487 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75488
75489         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
75490
75491 2004-09-18  Simon Josefsson  <jas@extundo.com>
75492         and  Paul Eggert  <eggert@cs.ucla.edu>
75493
75494         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
75495         calls with autoreconf.  Define GL_LIB.
75496
75497 2004-09-14  Karl Berry  <karl@gnu.org>
75498
75499         * config/srclist.txt: unsync setenv.c, sigh.
75500
75501 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75502
75503         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
75504         Problem reported by Bruno Haible in:
75505         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
75506
75507 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75508
75509         * config/srclist.txt: Comment out argp-pvh.c.
75510
75511 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
75512
75513         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
75514         in case some system header has #define'd it.  Problem reported by
75515         Soeren D. Schulze in
75516         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
75517
75518 2004-09-09  Karl Berry  <karl@gnu.org>
75519
75520         * regex.[ch]: delete from the root.  These were supposed to be
75521                 synced with emacs cvs, but this has not happened for about
75522                 a year, and anyway nothing else uses emacs regex.[ch].
75523                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
75524                 lib/regex[.ch] is untouched.
75525
75526 2004-09-09  Bruno Haible  <bruno@clisp.org>
75527
75528         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
75529
75530 2004-09-09  Bruno Haible  <bruno@clisp.org>
75531
75532         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
75533         modifications.
75534         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
75535
75536 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75537
75538         * modules/xvasprintf: New file.
75539         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
75540
75541 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75542
75543         * lib/xvasprintf.h: New file.
75544         * lib/xvasprintf.c: New file.
75545         * lib/xasprintf.c: New file.
75546
75547 2004-09-08  Bruno Haible  <bruno@clisp.org>
75548
75549         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
75550
75551 2004-09-08  Bruno Haible  <bruno@clisp.org>
75552
75553         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
75554         length is > INT_MAX.
75555         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
75556         more.
75557
75558 2004-09-08  Bruno Haible  <bruno@clisp.org>
75559
75560         * lib/stdint_.h: New file, taken from GNU clisp.
75561
75562 2004-09-08  Bruno Haible  <bruno@clisp.org>
75563             Oskar Liljeblad  <oskar@osk.mine.nu>
75564
75565         * modules/stdint: New file.
75566         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
75567
75568 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75569
75570         Import from coreutils.
75571         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
75572         strings on unbounded length.  alloca's performance benefits aren't
75573         that important here.
75574         (V_STRDUP): Remove.
75575         (parse_with_separator): New function, with most of the internals
75576         of the old parse_user_spec.  Allow user to omit both user and group,
75577         for compatibility with FreeBSD.
75578         Clone only the user name, not the entire spec.
75579         Do not set *uid, *gid unless entirely successful.
75580         Avoid memory leak in some failing cases.
75581         Fix regression for USER.GROUP reported by Dmitry V. Levin in
75582         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
75583         (parse_user_spec): Rewrite to use parse_with_separator.
75584
75585 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75586
75587         * modules/userspec: Don't depend on alloca.
75588
75589 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75590
75591         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
75592
75593 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75594
75595         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
75596         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
75597         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
75598
75599 2004-08-16  Simon Josefsson  <jas@extundo.com>
75600
75601         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
75602         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
75603         Add --dry-run for --import.
75604         Let user provided command line parameters override configure.ac
75605         settings.
75606
75607 2004-08-12  Simon Josefsson  <jas@extundo.com>
75608
75609         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
75610         as discussed with Paul Eggert in threads rooted at
75611         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
75612         and
75613         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
75614         Before, the test was empty, and relied on ELIDE_CODE in source
75615         code.)
75616         (gl_PREREQ_GETOPT): New macro.
75617         (gl_GETOPT): Use them.
75618
75619 2004-08-12  Simon Josefsson  <jas@extundo.com>
75620
75621         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
75622         * lib/getopt_.h: Renamed from getopt.h.
75623
75624 2004-08-12  Simon Josefsson  <jas@extundo.com>
75625
75626         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
75627         Change default library name from libfoo to libgnu.
75628         Now, if you have a configure.ac that says:
75629                 gl_SOURCE_BASE(gl)
75630                 gl_M4_BASE(gl/m4)
75631                 gl_MODULES(error getopt etcetera)
75632                 gl_INIT
75633         you can import all you need by running:
75634                 ../gnulib/gnulib-tool --import
75635
75636         * modules/getopt (Files): Rename getopt.h to getopt_.h.
75637         (Makefile.am): Rewrite, use logic from argz.
75638         (Include): Use <getopt.h> instead of "getopt.h".
75639
75640 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75641
75642         * modules/argp (Files): Add m4/unlocked-io.m4.
75643         (Depends-on): Add extensions.
75644
75645 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75646
75647         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
75648         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
75649         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
75650         Check for program_invocation_name, program_invocation_short_name,
75651         flockfile, funlockfile, features.h, _getopt_long_only_r.
75652
75653 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75654
75655         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
75656         its complicated substitute.
75657         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
75658         and program_invocation_name.
75659         (__argp_basename) [!_LIBC]: Remove; the only use was
75660         replaced by its body.
75661         (__argp_short_program_name): Change condition from
75662         !defined __argp_short_program_name to
75663         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
75664         to match argp-namefrob.h.
75665         (__argp_failure): Don't assume strerror_r returns char *.
75666         * lib/argp-parse.c (N_): Define unconditionally.
75667         (argp_default_options): Fill out initializers with 0 to avoid
75668         gcc warnings.
75669
75670 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75671
75672         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
75673         getopt1.c.
75674
75675 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75676
75677         Merge from coreutils.
75678
75679         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
75680
75681         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
75682         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
75683
75684 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75685
75686         Merge from coreutils.
75687
75688         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
75689         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
75690         for Reliant Unix 5.43.
75691
75692         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
75693         (union fooround): Use uintmax_t, not long int.
75694         The rest is a merge from libc:
75695         [defined _LIBC]: Include <shlib-compat.h>.
75696         (_obstack) [defined _LIBC]: Remove after 2.3.4.
75697
75698         * lib/settime.c (settime): Recode to avoid warning with
75699         Sun Forte C 6U2.
75700
75701         * lib/strverscmp.c: Convert to UTF-8.
75702
75703 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75704
75705         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75706         m4/uintmax_t.m4.
75707
75708 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75709
75710         * modules/xalloc-die: New file.
75711         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
75712
75713         * modules/md5 (Files): Add m4/uint32_t.m4.
75714         * modules/sha1: Renamed from modules/sha.
75715         (Files):
75716         Rename lib/sha.h to lib/sha1.h.
75717         Rename lib/sha.c to lib/sha1.c.
75718         Rename m4/sha.m4 to m4/sha1.m4.
75719         (lib_SOURCES): Likewise.
75720         (configure.ac): Rename gl_SHA to gl_SHA1.
75721         (Include): sha.h -> sha1.h.
75722
75723 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75724
75725         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
75726         * m4/sha1.m4: Renamed from sha.m4.
75727         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
75728
75729 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75730
75731         * lib/obstack.h (obstack_empty_p):
75732         Don't assume that chunk->contents is suitably aligned.
75733         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
75734         Likewise. Problem reported by Benno in
75735         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
75736
75737         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
75738         readable.  This could be improved further but it'd take some work.
75739
75740 2004-08-08  Simon Josefsson  <jas@extundo.com>
75741
75742         * modules/xgethostname (Depends-on): Remove exit and error (not
75743         used).
75744
75745         * modules/getpass-gnu: Add getpass.h.
75746         (Depends-on): Add stdbool.
75747         * modules/getpass: Add getpass.h.
75748
75749 2004-08-08  Simon Josefsson  <jas@extundo.com>
75750
75751         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
75752         Check getpass declaration.
75753
75754 2004-08-08  Simon Josefsson  <jas@extundo.com>
75755
75756         * lib/xgethostname.c: Don't include error.h (not used).
75757
75758         * lib/getpass.h: Add.
75759         * lib/getpass.c: Include getpass.h first.
75760
75761 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
75762
75763         * lib/xalloc-die.c: New file.
75764         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
75765         All uses removed.
75766         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
75767         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
75768         xalloc-die.c.
75769         (_, N_, xalloc_die): Move to xalloc-die.c.
75770         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
75771         so that we needn't mess with xalloc_msg_memory_exhausted.
75772
75773         * lib/sha1.h: Renamed from sha.h.
75774         (SHA1_H): Renamed from _SHA_H.
75775         (sha1_ctx): Renamed from sha_ctx.
75776         (sha1_init_ctx): Renamed from sha_init_ctx.
75777         (sha1_process_block): Renamed from sha_process_block.
75778         (sha1_process_bytes): Renamed from sha_process_bytes.
75779         (sha1_finish_ctx): Renamed from sha_finish_ctx.
75780         (sha1_read_ctx): Renamed from sha_read_ctx.
75781         (sha1_stream): Renamed from sha_stream.
75782         (sha1_buffer): Renamed from sha_buffer.
75783         * lib/sha1.c: Likewise; renamed from sha.c.
75784         Do not include <sys/types.h>.
75785         Include <stddef.h> rather than <stdlib.h>.
75786
75787 2004-08-08  Bruno Haible  <bruno@clisp.org>
75788
75789         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
75790         FILESYSTEM_PREFIX_LEN.
75791         * lib/progreloc.c: Likewise.
75792         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
75793
75794 2004-08-06  Simon Josefsson  <jas@extundo.com>
75795
75796         * modules/progname (Depends-on): Don't depend on stdbool.
75797
75798 2004-08-06  Simon Josefsson  <jas@extundo.com>
75799
75800         * modules/getsubopt: New file.
75801         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75802         getsubopt.
75803
75804 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75805
75806         More merge from coreutils.
75807
75808         * m4/utimens.m4, m4/utimecmp.m4: New files.
75809         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
75810         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
75811         prereq.m4, sha.m4: Import changes from coreutils.
75812
75813 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75814
75815         More merge from coreutils.
75816         * modules/raise, modules/readtokens0, modules/utimens:
75817         * modules/utimecmp, module/xnanosleep: New files.
75818         * modules/strftime: Add lib/strftime.h.
75819         Change include from <time.h> to "strftime.h".
75820         * modules/yesno: Add lib/yesno.h.
75821         * modules/backupfile: Remove lib/addext.c.
75822         * modules/euidaccess: Add stat-macros.h.
75823         * modules/canonicalize, modules/euidaccess,
75824         modules/filemode, modules/lchown, modules/makepath,
75825         modules/rmdir, modules/stat: Likewise.
75826
75827 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75828
75829         Merge from tar.
75830         * lib/argp-help.c (make_hol, hol_append): Don't assume that
75831         SIZE_MAX is a valid preprocessor constant.
75832         (__argp_basename): Change from "#ifndef _LIBC"
75833         to "#ifndef __argp_short_program_name", so that
75834         we don't compile these functions for tar.
75835
75836         More merges from coreutils.
75837         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
75838         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
75839         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
75840         * lib/addext.c: Remove; no longer needed.
75841         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
75842         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
75843         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
75844         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
75845         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
75846         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
75847         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
75848         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
75849         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
75850         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
75851         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
75852         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
75853         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
75854         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
75855         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
75856         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
75857         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
75858         Import changes from coreutils.
75859
75860 2004-08-05  Simon Josefsson  <jas@extundo.com>
75861
75862         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
75863
75864 2004-08-05  Simon Josefsson  <jas@extundo.com>
75865
75866         * m4/getsubopt.m4: New file.
75867
75868 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75869
75870         Merge from coreutils.
75871
75872         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
75873         * m4/getcwd-path-max.m4: New files.
75874
75875         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
75876         FILESYSTEM_PREFIX_LEN ->
75877         FILE_SYSTEM_PREFIX_LEN.
75878         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
75879         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
75880         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
75881         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
75882
75883         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
75884         prerequisite modules now handle the DOS stuff.
75885         Don't check for unistd.h.
75886
75887 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75888
75889         Merge from coreutils.
75890
75891         * lib/.gdb-history: Remove; this doesn't belong here.
75892
75893         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
75894         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
75895         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
75896         * lib/getcwd.c: New files.
75897
75898         * lib/dirname.h: Include <stdbool.h>.
75899         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
75900         for consistency with POSIX terminology.  All uses changed.
75901         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
75902         (strip_trailing_slashes): Use bool for booleans.
75903         * lib/stripslash.c (strip_trailing_slashes): Likewise.
75904
75905         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
75906         sometimes returns a positive errno value even when it succeeds.
75907         (print_errno_message) [!LIBC]: Fall back on strerror if
75908         __strerror_r fails.
75909
75910         * lib/path-concat.c (mempcpy): Don't define if a system header defines
75911         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
75912         (longest_relative_suffix): New function.
75913         (path_concat): Use it.  Assume first argument is not NULL.
75914         Port to DOS.  Omit redundant separators.
75915         Report an error instead of returning NULL.
75916         Use mempcpy instead of memcpy.
75917         (xpath_concat): Remove: not declared or used.
75918
75919         * lib/same.h: Include <stdbool.h>
75920         (same_name): Return bool, not int.
75921         * lib/same.c (same_name): Likewise.
75922         (errno): Don't declare; we assume C89 or better now.
75923
75924         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
75925         if not already defined.
75926
75927         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
75928         * lib/dup-safer.c (errno): Likewise.
75929
75930 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75931
75932         Merge from coreutils.
75933         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
75934         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
75935         * modules/path-concat: Don't depend on strdup.
75936
75937 2004-08-03  Simon Josefsson  <jas@extundo.com>
75938
75939         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
75940         * lib/progname.h: Don't include stdbool.h.
75941
75942 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75943
75944         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
75945         * MODULES.html.sh (func_all_modules): Remove fatal.
75946
75947 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75948
75949         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
75950
75951 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75952
75953         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
75954         working.
75955
75956 2004-08-02  Simon Josefsson  <jas@extundo.com>
75957
75958         * lib/getsubopt.h: New file, with comments from Bruno Haible.
75959         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
75960         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
75961
75962 2004-08-01  Simon Josefsson  <jas@extundo.com>
75963
75964         * lib/xgetdomainname.c: Include stdlib.h, for free().
75965
75966 2004-07-19  Bruno Haible  <bruno@clisp.org>
75967
75968         * MODULES.html.sh (func_all_modules): Add dummy.
75969
75970 2004-07-16  Simon Josefsson  <jas@extundo.com>
75971
75972         * modules/dummy: New file.
75973
75974 2004-07-16  Simon Josefsson  <jas@extundo.com>
75975
75976         * lib/dummy.c: New file.
75977
75978 2004-07-16  Bruno Haible  <bruno@clisp.org>
75979
75980         * lib/backupfile.h: Add extern "C" for C++.
75981         * lib/closeout.h: Likewise.
75982         * lib/copy-file.h: Likewise.
75983         * lib/findprog.h: Likewise.
75984         * lib/full-write.h: Likewise.
75985         * lib/pathname.h: Likewise.
75986         * lib/progname.h: Likewise.
75987         * lib/stpcpy.h: Likewise.
75988         * lib/stpncpy.h: Likewise.
75989         * lib/strcase.h: Likewise.
75990         * lib/strstr.h: Likewise.
75991         * lib/xalloc.h: Likewise.
75992
75993         * lib/mbswidth.h: Add extern "C" for C++.
75994         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
75995
75996 2004-07-13  Robert Millan  <robertmh@gnu.org>
75997
75998         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
75999
76000 2004-07-09  Simon Josefsson  <jas@extundo.com>
76001
76002         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
76003         failed without this.)
76004
76005 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76006
76007         * modules/chown (Files): Add lib/fchown-stub.c, since
76008         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
76009
76010 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76011
76012         * lib/fchown-stub.c: New file.
76013
76014 2004-06-24  Jim Meyering  <jim@meyering.net>
76015
76016         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
76017
76018 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76019
76020         * modules/argz: Omit "#include".
76021
76022         * MODULES.html.sh (func_all_modules): Add calloc, to match
76023         2004-06-01 addition of calloc module.
76024
76025 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76026
76027         * m4/argz.m4: New file, which is autoupdated from libtool.
76028
76029 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76030
76031         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
76032         libtool.
76033
76034 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76035
76036         * config/srclist-update: Don't insist on "USA." before the
76037         close-comment, as libtool omits the period and puts the */ on a
76038         separate line.
76039         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
76040         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
76041
76042 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
76043
76044         * modules/argz: New file.
76045         * MODULES.html.sh (func_all_modules): Add argz.
76046
76047 2004-06-12  Jim Meyering  <jim@meyering.net>
76048         and  Paul Eggert  <eggert@cs.ucla.edu>
76049
76050         * modules/hash (Files): Add lib/xalloc.h.
76051         * modules/pipe (Depends-on): Add wait-process.
76052         * modules/stat (Depends-on): Add xalloc.
76053         * modules/userspec (Files): Add lib/userspec.h.
76054         * modules/xstrto
76055
76056         Upgrade from gettext-0.13.
76057         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
76058         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
76059         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
76060
76061 2004-06-10  Jim Meyering  <jim@meyering.net>
76062
76063         * lib/calloc.c: New file.
76064
76065 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
76066
76067         * lib/getdate.y (yylex): Allow space between sign and number.
76068         Problem reported by Dan Jacobson.
76069
76070 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76071
76072         Merge from coreutils CVS.
76073
76074         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
76075         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
76076         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
76077         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
76078         xstrtol.m4: Fix copyright date and/or serial number.
76079
76080         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
76081         See if we need an fchown replacement.
76082         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
76083         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
76084         and use the replacement function if we detect either defect.
76085
76086         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
76087         gl_UTIMECMP.
76088
76089 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76090         and  Jim Meyering  <jim@meyering.net>
76091
76092         Merge from coreutils CVS.
76093
76094         * lib/stat-macros.h: New file, with contents from file-type.h
76095         and coreutils' system.h.
76096         * lib/file-type.c: Include "stat-macros.h".
76097         * lib/file-type.h (file_type): Move all macro definitions to new file,
76098         stat-macros.h.
76099
76100         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
76101         Wrap old code with this conditional.
76102         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
76103         function that does not dereference symlinks.
76104         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
76105
76106         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
76107         dependency problems.
76108         (xreadlink): Accept new arg SIZE, for efficiency.
76109         All decls and uses changed.
76110         * lib/xreadlink.h: Include <stddef.h>, for size_t.
76111
76112         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
76113         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
76114
76115         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
76116         sysexits.h.
76117
76118 2004-06-01  Jim Meyering  <jim@meyering.net>
76119
76120         * m4/calloc.m4: New file.
76121
76122 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
76123
76124         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
76125         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
76126         Also, fix a typo in a diagnostic.
76127
76128 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76129
76130         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
76131         or AC_FUNC_REALLOC.
76132
76133 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76134
76135         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
76136         macros to be defined.
76137         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
76138         the allocator returns NULL because the requested size is zero.
76139
76140 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76141
76142         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
76143         var.  Add comment explaining why libc still defines it.  This
76144         merges the following patch from glibc:
76145         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
76146
76147 2004-05-20  Andreas Schwab  <schwab@suse.de>
76148
76149         * m4/free.m4: Replace free if it not known to work, not the other
76150         way round.
76151
76152 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76153
76154         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
76155         present in glibc since revision 1.1 of this file.
76156         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
76157         obstack_alignment_mask, obstack_alloc, obstack_base,
76158         obstack_blank, obstack_blank_fast, obstack_chunk_size,
76159         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
76160         obstack_grow0, obstack_init, obstack_int_grow,
76161         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
76162         obstack_next_free, obstack_object_size, obstack_ptr_grow,
76163         obstack_ptr_grow_fast, obstack_room): Remove declarations of
76164         nonexistent functions.
76165
76166 2004-05-18  Karl Berry  <karl@gnu.org>
76167
76168         * config/srclist.txt: break link for vasnprintf.c.
76169
76170 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76171
76172         Port obstack to the AS/400, where pointers are 16 bytes wide and
76173         you cannot cast an integer to a valid pointer.  This patch is
76174         currently waiting to be integrated into glibc; see
76175         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
76176
76177         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
76178         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
76179         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
76180         (struct obstack): temp member is now a union of a pointer and
76181         an integer, instead of an integer.  All integer uses changed.
76182         This does not affect the physical layout of struct obstack,
76183         except on hosts (like the AS/400) where the size or alignment of
76184         void * is greater than that of ptrdiff_t.
76185         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
76186         __STDC__)]: Store temporary in pointer member of union, not
76187         integer member.
76188         * lib/obstack.c: Include <stddef.h>, for offsetof.
76189         (struct fooalign): Remove; it doesn't need a name.
76190         (union fooround): Change double to long double, and add void *.
76191         (DEFAULT_ALIGNMENT): Use offsetof to compute.
76192         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
76193         not a macro.  Hence the values are always int; so remove all
76194         casts-to-int in uses.
76195
76196 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76197
76198         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
76199         we can get this patch merged into glibc.
76200
76201 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76202             Paul Eggert  <eggert@cs.ucla.edu>
76203
76204         * m4/argp: Depend on alloca.
76205
76206 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76207             Paul Eggert  <eggert@cs.ucla.edu>
76208
76209         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
76210         freecoding.
76211
76212 2004-05-17  Bruno Haible  <bruno@clisp.org>
76213
76214         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
76215         precision that consists of a '.' followed by an empty digit string.
76216         Patch by Tor Lillqvist <tml@iki.fi>.
76217
76218 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76219
76220         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
76221         for backward compatibility with older code.  We need our own
76222         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
76223         it under some other name, and our alloca.h will define it.
76224
76225 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76226             Derek Price  <derek@ximbiot.com>
76227
76228         * lib/alloca.c: Include <alloca.h>, to get our interface.
76229         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
76230         include <alloca.h> first.  Use C89 prototype for alloca; this
76231         requires including <stddef.h> for size_t.  Use extern "C" if C++.
76232         Use #elif for simplicity, since we can assume C89 now.
76233         Don't try to source the system alloca.h since it will not be found
76234         and to prevent recursively including its replacement.
76235         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
76236         * lib/regex.c: Likewise.
76237
76238 2004-05-16  Derek Price  <derek@ximbiot.com>
76239             Paul Eggert  <eggert@cs.ucla.edu>
76240
76241         getline cleanup.  This changes the getndelim2 API: both order of
76242         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
76243         no delimiter).
76244
76245         * lib/getline.c: Don't include stddef.h or stdio.h, since our
76246         interface does that.
76247         (getline): Always use getdelim, so that we don't have two
76248         copies of this code.
76249         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
76250         if available.
76251         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
76252         (GETNDELIM2_MAXIMUM): New macro.
76253         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
76254         instead of the old practice of delim2==0.  All callers changed.
76255         Return -1 on overflow, instead of returning junk.
76256         Do not set *linesize unless allocation succeeds.
76257         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
76258         that we include sys/types.h.
76259         * lib/getnline.h: Likewise.
76260         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
76261         (getndelim2): Reorder arguments.
76262         * lib/getnline.c (getnline, getndelim):
76263         Don't discard the NMAX argument.
76264         (getnline): Invoke getndelim, to avoid code duplication.
76265         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
76266         of (size_t) -1 by callers of the getnline family.
76267
76268 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76269
76270         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
76271         Check for gettimeofday.
76272         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
76273         Check for settimeofday, stime.
76274
76275 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76276
76277         * lib/nanosleep.c (suspended): Change its type from int to
76278         sig_atomic_t volatile.
76279         (first_call): Make it private to rpl_nanosleep, and have it
76280         be zero initially as that's a bit faster.
76281         (my_usleep): Round up fractional times instead of truncating them,
76282         as this is the usual meaning for 'sleep'.
76283
76284         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
76285         doesn't work.
76286         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
76287         (ENOSYS): Define if not defined.
76288         (settime): Fall back on stime if it exists and settimeofday fails.
76289         But don't bother with fallbacks if a method fails with errno == EPERM.
76290
76291 2004-05-11  Jim Meyering  <jim@meyering.net>
76292
76293         Prior to this change, the save_cwd caller required read access to the
76294         current directory on most systems (ones with the fchdir function).
76295
76296         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
76297         fails, try write-only, and finally, resort to using xgetcwd.
76298
76299 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76300
76301         * lib/obstack.c, obstack.h: Import changes from libc.
76302
76303 2004-04-28  Bruno Haible  <bruno@clisp.org>
76304
76305         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
76306         also implicitly appends .exe to executables.
76307         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
76308         accepts Windows pathnames.
76309         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76310         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76311         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76312         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76313         Reported by Derek Robert Price <derek@ximbiot.com>.
76314
76315 2004-04-21  Karl Berry  <karl@gnu.org>
76316
76317         * config/srclist.txt (localcharset.c): break sync.
76318
76319 2004-04-20  Paul Eggert  <eggert@twinsun.com>
76320
76321         * m4/host-os.m4: Add a copyright notice.
76322
76323 2004-04-20  Jim Meyering  <jim@meyering.net>
76324
76325         Change UTILS_ to gl_ in AC_DEFINE'd names.
76326         Change utils_- and jm_-prefixed variables, too.
76327         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
76328         UTILS_FUNC_MKDIR_TRAILING_SLASH.
76329         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
76330
76331         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
76332         Don't emit trailing blanks.
76333         Also rename jm_-prefixed variables to have gl_ prefix.
76334
76335         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
76336         Also rename jm_-prefixed variables to have gl_ prefix.
76337
76338         * m4/jm-macros.m4: Reflect the renamings.
76339         * m4/prereq.m4: Likewise.
76340
76341 2004-04-20  Jim Meyering  <jim@meyering.net>
76342
76343         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
76344         memory.
76345
76346 2004-04-20  Jim Meyering  <jim@meyering.net>
76347             Bruno Haible  <bruno@clisp.org>
76348
76349         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
76350         memory when realloc fails.
76351
76352 2004-04-19  Jim Meyering  <jim@meyering.net>
76353
76354         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
76355         now that readutmp.c may call `free (0)'.
76356
76357 2004-04-19  Bruno Haible  <bruno@clisp.org>
76358
76359         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
76360         * m4/inttypes_h.m4: Likewise.
76361         * m4/stdint_h.m4: Likewise.
76362         * m4/intmax_t.m4: Likewise.
76363         * m4/uintmax_t.m4: Likewise.
76364
76365 2004-04-18  Jim Meyering  <jim@meyering.net>
76366
76367         * m4/prereq.m4: Don't forbid jm_ prefix.
76368
76369         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
76370         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
76371         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
76372         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
76373         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
76374         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
76375         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
76376         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
76377         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
76378         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
76379         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
76380         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
76381         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
76382         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
76383         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
76384         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
76385         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
76386         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
76387         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
76388
76389 2004-04-18  Jim Meyering  <jim@meyering.net>
76390
76391         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
76392         failure, don't leak memory and do call END_UTMP_ENT.
76393
76394 2004-04-16  Jim Meyering  <jim@meyering.net>
76395
76396         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
76397         coreutils' stat program.
76398         (gl_PREREQ): Don't require jm_PREREQ_STAT.
76399
76400 2004-04-11  Paul Eggert  <eggert@twinsun.com>
76401
76402         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
76403         C89.
76404         (CHAR_BIT): Remove, since we assume C89.
76405         Include <stdint.h> if available, as per current Autoconf CVS advice.
76406
76407 2004-03-31  Jim Meyering  <jim@meyering.net>
76408
76409         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
76410         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
76411         * m4/xalloc.m4: Likewise.
76412
76413 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76414
76415         Merge from coreutils.
76416
76417         * m4/inttostr.m4: New file.
76418         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
76419         Require AM_STDBOOL_H and gl_TIMESPEC instead.
76420         Require gl_CLOCK_TIME.
76421         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
76422
76423 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76424
76425         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
76426         not bool, to be more consistent with Unix conventions.
76427         Suggested by Bruno Haible.
76428
76429         Merge from coreutils.
76430
76431         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
76432         * lib/umaxtostr.c: New files.
76433
76434         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
76435         the usual <time.h> dance.
76436         (get_date): Change signature to support fractional time stamps.
76437         All callers changed.
76438         * lib/getdate.y: Include "getdate.h" first, as we can now
76439         assume C89 and don't need to worry about 'const'.
76440         Similarly, include "unlocked-io.h" near start, not in middle.
76441         Include <limits.h>.
76442         (textint.value): Use long int rather than int.
76443         (textint.digits): Use size_t rather than int.
76444         (BILLION, LOG10_BILLION): New constants.
76445         (parser_control): New member rel_ns.  Members day_ordinal,
76446         time_zone, month, day, hour, minutes, rel_year, rel_month,
76447         rel_day, rel_hour, rel_minutes, rel_seconds
76448         are now long int, not int.  Member seconds is now struct timespec,
76449         not int.  New member timespec_seen.  Members dates_seen, days_seen,
76450         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
76451         not int.
76452         (%union.intval): Now long int, not int.
76453         New member timespec.
76454         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
76455         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
76456         (spec): Now is a timespec or an item list.
76457         (timespec, items): New nonterminals.
76458         (time, rel, relunit, number, get_date):
76459         Add support for fractional seconds.
76460         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
76461         (gmtime, localtime, mktime): Remove decls; not needed with C89.
76462         (to_hour): First arg is now long int, not int.
76463         (to_year): Returns long int, not int.
76464         Don't treat year -70 like 70.
76465         (tm_diff): Returns long int, not int.
76466         (lookup_word): Use bool instead of int when appropriate.
76467         (yylex): Use size_t for count, not int.
76468         Detect overflow when parsing large integer constants.
76469         Add support for fractions.
76470         (get_date): Make pointers 'const' if possible.
76471         Use more-portable code to detect integer overflow.
76472         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
76473         Don't use ctime; it's not reliable if the year has >4 digits.
76474
76475         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
76476         This is for compatibility with BSD.
76477
76478         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
76479         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
76480         From coreutils' system.h.
76481
76482         * lib/userspec.c: Don't include "posixver.h".
76483         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
76484         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
76485         compatible extension.  Simplify code by removing a boolean int
76486         that was always nonzero if a string was nonnull.
76487
76488 2004-03-30  Jim Meyering  <jim@meyering.net>
76489
76490         Merge from coreutils.
76491
76492         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
76493         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
76494         on some systems one must include <grp.h> before it.
76495         Reported by Christian Krackowizer.
76496
76497 2004-03-30  Jim Meyering  <jim@meyering.net>
76498
76499         Merge from coreutils.
76500
76501         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
76502
76503         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
76504         an empty input stream.
76505
76506         * lib/readtokens.c: Include <stdbool.h>.
76507         (readtoken): Use `size_t' rather than int/long.
76508         All callers adjusted.
76509         Use `bool' rather than `int' where appropriate.
76510         Use memset rather than an explicit loop.
76511         Use x2nrealloc rather than xrealloc.
76512         Allow the use of `\0' as a delimiter.
76513         (readtokens): Likewise.
76514         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
76515
76516 2004-03-30  Jim Meyering  <jim@meyering.net>
76517
76518         * m4/realloc.m4: Remove file, since now it does no more than
76519         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
76520         the `configure.ac' section of module/realloc.
76521         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
76522
76523 2004-03-30  Bruno Haible  <bruno@clisp.org>
76524
76525         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
76526         nonnull.
76527
76528 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76529
76530         Merge changes to getloadavg.c from coreutils and Emacs.
76531
76532         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
76533         Define to an expression, not to the empty string.
76534         Include cloexec.h and xalloc.h.
76535         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
76536         Use set_cloexec_flag rather than rolling our own.
76537         * lib/cloexec.c, lib/cloexec.h: New files.
76538
76539 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76540
76541         * m4/cloexec.m4: New file.
76542
76543 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76544
76545         * lib/getopt.h: Sync with libc CVS.
76546
76547 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76548             Bruno Haible  <bruno@clisp.org>
76549
76550         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
76551         mbswidth.
76552
76553 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76554             Bruno Haible  <bruno@clisp.org>
76555
76556         * lib/mbswidth.h: Include <wchar.h> only if
76557         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
76558         <wchar.h>.
76559         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
76560
76561 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76562
76563         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
76564         Sync with libc CVS.
76565         * lib/getopt_int.h: New file, also synced from libc.
76566
76567 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76568
76569         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
76570         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
76571         Bring back getopt.c, getopt.h, getopt1.c.
76572
76573 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76574
76575         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
76576         All uses changed.  Check for sa_sigaction member; this fixes
76577         a bug first reported by Jason Andrade in
76578         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76579
76580 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76581
76582         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
76583         '#if' expressions.  Unlike the code it replaces, it does not
76584         depend on (defined _SC_PAGESIZE).  However, it does depend on
76585         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
76586         first reported by Jason Andrade in
76587         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76588
76589 2004-02-25  Simon Josefsson  <jas@extundo.com>
76590
76591         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
76592
76593 2004-02-25  Simon Josefsson  <jas@extundo.com>
76594
76595         * lib/strdup.h: New file.
76596         * lib/strdup.c: Include it.
76597         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
76598         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
76599
76600 2004-02-23  Karl Berry  <karl@gnu.org>
76601
76602         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
76603         (from fencepost.gnu.org:/gd/gnuorg).
76604
76605 2004-02-23  Karl Berry  <karl@gnu.org>
76606
76607         * config/srclistvars.sh (GNUORG) [karl]: redefine.
76608         * config/srclist.txt: add maintain/standards documents.
76609
76610 2004-02-18  Bruno Haible  <bruno@clisp.org>
76611
76612         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
76613         Reported by Derek Robert Price <derek@ximbiot.com>.
76614
76615 2004-02-16  Karl Berry  <karl@gnu.org>
76616
76617         * config/mkinstalldirs, install-sh: update from automake.
76618
76619 2004-02-06  Karl Berry  <karl@gnu.org>
76620
76621         * m4/po.m4: update from gettext 0.14.1.
76622
76623 2004-02-06  Karl Berry  <karl@gnu.org>
76624
76625         * lib/config.charset: update from gettext 0.14.1.
76626
76627 2004-02-05  Paul Eggert  <eggert@twinsun.com>
76628
76629         Add comments and code, prompted by suggestions from Bruno Haible
76630         for sh-quote.
76631         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
76632         describing the enum quoting_style values.
76633         * lib/quotearg.c (quotearg_alloc): New function.
76634         (quotearg_buffer_restyled): Treat lone { and } as special.
76635         Treat = as special.  Work around bug with older shells
76636         that "see" a '\' that is really the 2nd byte of a multibyte char.
76637         Quote empty string with shell_quoting_style.
76638
76639 2004-02-03  Bruno Haible  <bruno@clisp.org>
76640
76641         * m4/pipe.m4: New file, from GNU gettext.
76642
76643 2004-02-03  Bruno Haible  <bruno@clisp.org>
76644
76645         * lib/pipe.h: New file, from GNU gettext.
76646         * lib/pipe.c: New file, from GNU gettext.
76647
76648 2004-01-27  Bruno Haible  <bruno@clisp.org>
76649
76650         * m4/execute.m4: New file, from GNU gettext.
76651
76652 2004-01-27  Bruno Haible  <bruno@clisp.org>
76653
76654         * lib/execute.h: New file, from GNU gettext.
76655         * lib/execute.c: New file, from GNU gettext.
76656         * lib/w32spawn.h: New file, from GNU gettext.
76657
76658 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76659
76660         Merge from diffutils.
76661
76662         * lib/file-type.c (file_type): Add typed memory objects.
76663         * lib/file-type.h (S_TYPEISTMO): New macro.
76664
76665         * lib/c-stack.h (c_stack_action): Remove argv argument.
76666         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
76667         (die): Don't calculate message unless segv_action returns.
76668         (get_stack_location, min_address_from_argv, max_address_from_argv,
76669         volatile stack_base, volatile_stack_size): Remove.
76670         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
76671         that every segmentation violation is a stack overflow.  (Ouch!)
76672         See Debian bug 136249 (still outstanding) for more info about why
76673         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
76674
76675 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76676
76677         Exit-status fix from coreutils.
76678
76679         Use exit_failure consistently in place of EXIT_FAILURE,
76680         so that program exit statuses are consistent on failure.
76681
76682         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
76683         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
76684         * lib/argmatch.h: Comment fix to match the above.
76685         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
76686         Now a macro referring to exit_failure, instead of a separate
76687         variable.  Include "exitfail.h" to get it.
76688         * lib/xstrtol.h: Include "exitfail.h".
76689         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
76690
76691         * lib/long-options.c (parse_long_options): Use prototype
76692         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
76693         for clarity.
76694
76695 2004-01-21  Jim Meyering  <jim@meyering.net>
76696
76697         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
76698         so as not to conflict with a different-sized __mktime_internal
76699         function in GNU libc.
76700         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
76701         Problem building statically-linked `ls' reported by Michael Brunnbauer.
76702
76703 2004-01-20  Karl Berry  <karl@gnu.org>
76704
76705         * config/config.guess: update from config.
76706
76707         * config/srclistvars.sh: GNUWWWLICENSES for karl.
76708
76709 2004-01-20  Bruno Haible  <bruno@clisp.org>
76710
76711         Safer stack allocation.
76712         * lib/setenv.c: Include allocsa.h.
76713         (alloca): Remove fallback definition.
76714         (freea): Remove macro.
76715         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
76716         instead of freea.
76717
76718 2004-01-20  Bruno Haible  <bruno@clisp.org>
76719
76720         * m4/eealloc.m4: New file, from GNU gettext.
76721
76722 2004-01-20  Bruno Haible  <bruno@clisp.org>
76723
76724         * m4/allocsa.m4: New file, from GNU gettext.
76725
76726 2004-01-20  Bruno Haible  <bruno@clisp.org>
76727
76728         * lib/xallocsa.h: New file, from GNU gettext.
76729         * lib/xallocsa.c: New file, from GNU gettext.
76730
76731 2004-01-20  Bruno Haible  <bruno@clisp.org>
76732
76733         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
76734
76735 2004-01-20  Bruno Haible  <bruno@clisp.org>
76736
76737         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
76738         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
76739         specially.
76740
76741 2004-01-20  Bruno Haible  <bruno@clisp.org>
76742
76743         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
76744         patch.
76745
76746 2004-01-20  Bruno Haible  <bruno@clisp.org>
76747
76748         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
76749
76750 2004-01-20  Bruno Haible  <bruno@clisp.org>
76751
76752         * lib/eealloc.h: New file.
76753
76754 2004-01-20  Bruno Haible  <bruno@clisp.org>
76755
76756         * lib/binary-io.h: Avoid warnings on Cygwin.
76757
76758 2004-01-20  Bruno Haible  <bruno@clisp.org>
76759
76760         * lib/allocsa.h: New file, from GNU gettext.
76761         * lib/allocsa.c: New file, from GNU gettext.
76762
76763 2004-01-18  Karl Berry  <karl@gnu.org>
76764
76765         * doc/gpl.texi, doc/lgpl.texi: new files.
76766
76767 2004-01-18  Karl Berry  <karl@gnu.org>
76768
76769         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
76770         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
76771
76772 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76773
76774         Merge from coreutils.
76775
76776         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
76777         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
76778         (gl_DEFAULT_POSIX2_VERSION): Move
76779         the documentation from 'configure' into 'config.hin',
76780         so that 'configure --help' isn't burdened by it and
76781         we don't have to worry about its formatting there.
76782         Reword the documentation so that it's more succinct
76783         and can be run together into a single paragraph.
76784         * m4/same.m4 (gl_SAME): Check for pathconf.
76785
76786 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76787
76788         Merge from coreutils.
76789
76790         * lib/posixver.c: Include posixver.h.
76791
76792         * lib/same.c: Include <stdbool.h>, <limits.h>.
76793         (_POSIX_NAME_MAX): Define if not defined.
76794         (MIN): New macro.
76795         (same_name): If file names are silently truncated, report
76796         that the file names are the same if they are the same after
76797         the silent truncation.
76798
76799         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
76800         conversion function.
76801         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
76802         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
76803         longer needed.
76804
76805 2004-01-15  Jim Meyering  <jim@meyering.net>
76806
76807         Merge from coreutils.
76808
76809         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
76810         if no library is required.
76811         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
76812         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
76813         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
76814         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
76815         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
76816         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
76817         value, $ac_cv_search_crypt, if it's "none required".
76818         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
76819         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
76820         not gl_FUNC_GETLOADAVG.
76821         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
76822         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
76823
76824 2004-01-15  Jim Meyering  <jim@meyering.net>
76825
76826         Merge from coreutils.
76827
76828         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
76829         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
76830         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
76831
76832         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
76833         optional configure-time default.
76834
76835         * lib/version-etc.c (version_etc_copyright): Update copyright date.
76836
76837         * lib/xreadlink.c (xreadlink): Correct outdated comment.
76838
76839 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
76840
76841         Merge from coreutils.
76842
76843         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
76844         value, $ac_cv_search_nanosleep, if it's "none required".
76845
76846 2004-01-14  Paul Eggert  <eggert@twinsun.com>
76847
76848         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
76849         with like-named macro in fnmatch.c.
76850         (EXT): Use an internal constant instead.
76851
76852         Merge fnmatch patches from glibc.
76853         * lib/fnmatch.c (mbsinit): Remove define.
76854         Add libc_hidden_ver (__fnmatch, fnmatch).
76855         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
76856         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
76857
76858 2004-01-14  Karl Berry  <karl@gnu.org>
76859
76860         * config/install-sh: update from automake.
76861
76862 2004-01-13  Karl Berry  <karl@gnu.org>
76863
76864         * config/install-sh: update from automake.
76865
76866 2004-01-09  Karl Berry  <karl@gnu.org>
76867
76868         * config/install-sh: update from automake.
76869
76870 2004-01-05  Karl Berry  <karl@gnu.org>
76871
76872         * config/config.{sub,guess}: update from config.
76873
76874 2003-12-31  Karl Berry  <karl@gnu.org>
76875
76876         * config/depcomp: update from automake.
76877
76878 2003-12-14  Karl Berry  <karl@gnu.org>
76879
76880         * lib/config.charset: update from gettext-runtime.
76881
76882 2003-12-03  Paul Eggert  <eggert@twinsun.com>
76883
76884         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
76885         Bug reported by Alfred M. Szmidt.
76886
76887 2003-12-03  Bruno Haible  <bruno@clisp.org>
76888
76889         * m4/gettext.m4: Upgrade from gettext-0.13.
76890         * m4/po.m4: Upgrade from gettext-0.13.
76891         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
76892         * m4/intmax.m4: New file, from gettext-0.13.
76893         * m4/printf-posix.m4: New file, from gettext-0.13.
76894
76895 2003-11-29  Karl Berry  <karl@gnu.org>
76896
76897         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
76898
76899 2003-11-25  Paul Eggert  <eggert@twinsun.com>
76900             Bruno Haible  <bruno@clisp.org>
76901
76902         * lib/printf-parse.h: Don't include sys/types.h.
76903         (ARG_NONE): New macro.
76904         (char_directive): Change type of *arg_index fields to size_t.
76905         * lib/printf-parse.c: Don't include sys/types.h.
76906         (SSIZE_MAX): Remove macro.
76907         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
76908         Remove unnecessary overflow check.
76909         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
76910         fields.
76911
76912 2003-11-25  Bruno Haible  <bruno@clisp.org>
76913
76914         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
76915
76916 2003-11-25  Bruno Haible  <bruno@clisp.org>
76917
76918         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
76919         gt_TYPE_SSIZE_T.
76920
76921 2003-11-24  Paul Eggert  <eggert@twinsun.com>
76922
76923         * modules/alloca: Remove dependency on xalloc.
76924
76925 2003-11-24  Paul Eggert  <eggert@twinsun.com>
76926
76927         * lib/alloca.c: Remove dependency on xalloc module.
76928         (xalloc_die): Remove.
76929         (memory_full) [!defined emacs]: New macro.
76930         [!defined emacs]: Don't include xalloc.h.
76931         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
76932         address arithmetic overflows.  Change datatypes a bit to avoid
76933         unnecessary casts.
76934
76935 2003-11-22  Jim Meyering  <jim@meyering.net>
76936
76937         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
76938         s/size/size_t/.
76939
76940 2003-11-21  Karl Berry  <karl@gnu.org>
76941
76942         * config/config.{sub,guess}: update from config.
76943
76944 2003-11-18  Karl Berry  <karl@gnu.org>
76945
76946         * config/config.{sub,guess}: update from config.
76947
76948         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
76949
76950 2003-11-17  Paul Eggert  <eggert@twinsun.com>
76951
76952         * README: Mention that S+T cannot overflow if S is the size of
76953         an existing object and T is sufficiently small.
76954
76955 2003-11-17  Jim Meyering  <jim@meyering.net>
76956
76957         On systems without utime and without a utimes function capable of
76958         dealing with a NULL struct utimbuf* argument, this utime replacement
76959         could -- in unusual circumstances -- leak a file descriptor.
76960         * lib/utime.c: Include <unistd.h> and <errno.h>.
76961         (utime_null): Be sure to close `fd' and to preserve errno.
76962         Reported by Geoff Collyer via Arnold Robbins.
76963
76964 2003-11-17  Bruno Haible  <bruno@clisp.org>
76965
76966         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
76967         (Depends-on): Add xsize.
76968
76969 2003-11-17  Bruno Haible  <bruno@clisp.org>
76970
76971         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
76972
76973 2003-11-17  Bruno Haible  <bruno@clisp.org>
76974
76975         * lib/vasnprintf.c (alloca): Remove fallback definition.
76976         (freea): Remove definition.
76977         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
76978         Reported by Paul Eggert.
76979
76980 2003-11-16  Paul Eggert  <eggert@twinsun.com>
76981             Bruno Haible  <bruno@clisp.org>
76982
76983         Protect against address arithmetic overflow.
76984         * lib/printf-args.h: Include stddef.h.
76985         (arguments): Change type of field 'count' to size_t.
76986         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
76987         'unsigned int' where appropriate.
76988         * lib/printf-parse.h: Include sys/types.h.
76989         (char_directive): Change type of *arg_index fields to ssize_t.
76990         (char_directives): Change type of fields 'count', max_*_length to
76991         size_t.
76992         * lib/printf-parse.c: Include sys/types.h and xsize.h.
76993         (SSIZE_MAX): Define fallback value.
76994         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
76995         instead of 'int' where appropriate. Check a_allocated, d_allocated
76996         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
76997         * lib/vasnprintf.c: Include xsize.h.
76998         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
76999         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
77000         overflow. Avoid wraparound when converting a width or precision from
77001         decimal to binary.
77002
77003 2003-11-16  Bruno Haible  <bruno@clisp.org>
77004
77005         Update from GNU gettext.
77006         * lib/printf-parse.c: Generalize to it can be compiled for wide
77007         strings.
77008         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
77009         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
77010         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
77011         SNPRINTF): New macros.
77012         Don't include <alloca.h> if the file is used inside libintl.
77013         (local_wcslen): New function, for Solaris 2.5.1.
77014         (VASNPRINTF): Use it instead of wcslen.
77015
77016 2003-11-16  Bruno Haible  <bruno@clisp.org>
77017
77018         * lib/xsize.h (xmax): New function.
77019         (xsum, xsum3, xsum4): Declare as "pure" functions.
77020
77021 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77022
77023         * modules/xalloc (Files): Undo latest change, since xalloc.h
77024         no longer needs SIZE_MAX or PTRDIFF_MAX.
77025
77026 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77027
77028         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
77029         gl_PTRDIFF_MAX.
77030
77031 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77032
77033         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
77034         "return", to pacify some unknown compiler.  Problem reported
77035         by Joerg Schilling.
77036
77037 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77038
77039         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
77040         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
77041         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
77042         heuristic is just as accurate as far as we know, and it removes a
77043         dependency on size_max.m4 and ptrdiff_max.m4.
77044
77045 2003-11-11  Bruno Haible  <bruno@clisp.org>
77046
77047         * modules/xsize (Files): Add m4/size_max.m4.
77048         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
77049
77050 2003-11-11  Bruno Haible  <bruno@clisp.org>
77051
77052         * m4/size_max.m4: New file.
77053         * m4/ptrdiff_max.m4: New file.
77054         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
77055         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
77056         (gl_XALLOC): Invoke it.
77057
77058 2003-11-11  Bruno Haible  <bruno@clisp.org>
77059
77060         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
77061         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
77062         defined.
77063
77064 2003-11-10  Paul Eggert  <eggert@twinsun.com>
77065
77066         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
77067         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
77068         rejected some allocations of exactly SIZE_MAX - 2 bytes.
77069         From Bruno Haible.
77070         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
77071         not (size_t) -1, since it's defined here.
77072
77073 2003-11-09  Karl Berry  <karl@gnu.org>
77074
77075         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
77076
77077 2003-11-06  Paul Eggert  <eggert@twinsun.com>
77078
77079         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
77080         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
77081         Reject sizes of exactly SIZE_MAX bytes.
77082         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
77083         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
77084
77085 2003-11-05  Bruno Haible  <bruno@clisp.org>
77086
77087         * lib/xsize.h: Include limits.h, to avoid a possible collision with
77088         SIZE_MAX defined in <limits.h> on Solaris.
77089
77090 2003-11-04  Jim Meyering  <jim@meyering.net>
77091
77092         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
77093         variable names, rather than @VAR@.
77094         * modules/poll: Likewise.
77095
77096 2003-11-04  Bruno Haible  <bruno@clisp.org>
77097
77098         * modules/xsize: New file.
77099         * modules/linebreak: Depend on xsize.
77100         * MODULES.html.sh (func_all_modules): Add xsize.
77101
77102 2003-11-04  Bruno Haible  <bruno@clisp.org>
77103
77104         * m4/xsize.m4: New file.
77105
77106 2003-11-04  Bruno Haible  <bruno@clisp.org>
77107
77108         * lib/xsize.h: New file.
77109         * lib/linebreak.c: Include xsize.h.
77110         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
77111         argument for overflow.
77112         Suggested by Paul Eggert.
77113
77114 2003-11-03  Karl Berry  <karl@gnu.org>
77115
77116         * config/config.{guess,sub}: update from config.
77117
77118 2003-11-03  Jim Meyering  <jim@meyering.net>
77119
77120         * modules/userspec (lib_SOURCES): Add userspec.h.
77121         (Include): Add "userspec.h".
77122         Improve description.
77123
77124 2003-11-03  Jim Meyering  <jim@meyering.net>
77125
77126         * lib/userspec.c: Include "userspec.h".
77127         * lib/userspec.h: New file.
77128
77129 2003-11-03  Bruno Haible  <bruno@clisp.org>
77130
77131         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
77132
77133 2003-11-03  Bruno Haible  <bruno@clisp.org>
77134
77135         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
77136         available, to avoid (extremely rare) race condition.
77137         Suggested by Paul Eggert.
77138
77139 2003-11-02  Karl Berry  <karl@gnu.org>
77140
77141         * config/srclist.txt (vasprintf.c): sync broken, sigh.
77142
77143 2003-10-31  Paul Eggert  <eggert@twinsun.com>
77144
77145         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
77146         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
77147         (read_filesystem_list): Set and use me_type_malloced.
77148         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
77149         whatever the type happens to be), for brevity and consistency.
77150         Check for size calculation overflow on Alphas running OSF/1.
77151
77152 2003-10-31  Jim Meyering  <jim@meyering.net>
77153
77154         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
77155
77156         * lib/linebuffer.c: Include <string.h> for declaration of memset.
77157
77158 2003-10-30  Paul Eggert  <eggert@twinsun.com>
77159             Bruno Haible  <bruno@clisp.org>
77160
77161         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
77162         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
77163
77164 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77165
77166         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
77167         netbsd*-gnu*.  Suggested by Robert Millan.
77168
77169 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77170
77171         * modules/group-member: Depend on stdbool.
77172
77173 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77174
77175         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
77176
77177 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77178
77179         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
77180         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
77181         after the 'gnu' in these cases.  This fixes some bugs in the
77182         previous change, and is based on suggestions by Robert Millan.
77183
77184 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77185
77186         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
77187         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
77188         no longer needed.
77189         * lib/quotearg.c (quotearg_n_options): Use it.
77190         * lib/group-member.c: Include <stdbool.h>.
77191         (free_group_info): Arg is now const *; don't free arg.
77192         (get_group_info): Now returns bool and accepts struct group_info *,
77193         rather than returning a malloc'ed struct group_info *.
77194         All uses changed.  Check for overflow in internal size calculation.
77195
77196         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
77197         rather than xmalloc/xrealloc.
77198         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
77199         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
77200         conformance bug: the old code used a pointer after freeing the
77201         storage that it addressed.
77202         * lib/hash.c (hash_initialize): Simplify the code by using
77203         xalloc_oversized rather than doing it by hand.
77204         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
77205         the buffer preserved.  Use free and xmalloc instead.
77206         * lib/quotearg.c (quotearg_n_options): Likewise.
77207         Use a simpler test for size overflow.  Don't use xalloc_oversized
77208         because unsigned int might be wider than size_t (!); this suggests
77209         that we should switch from unsigned int to size_t for slot numbers.
77210
77211 2003-10-28  Paul Eggert  <eggert@twinsun.com>
77212
77213         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
77214         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
77215         NetBSD kernels.  Requested by Richard Stallman.
77216
77217 2003-10-27  Paul Eggert  <eggert@twinsun.com>
77218
77219         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
77220         to allocate the returned structure.  Do not allocate a subarray,
77221         as x2nrealloc will do that.
77222         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
77223         instead of xnrealloc.
77224         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
77225
77226 2003-10-27  Bruno Haible  <bruno@clisp.org>
77227
77228         * lib/stdbool_.h: Better support for BeOS.
77229
77230 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77231
77232         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
77233         now uses inline.
77234
77235 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77236
77237         * lib/xalloc.h (xalloc_oversized): New static inline function, for
77238         callers that want to do their own size-overflow checking.  Include
77239         <stdbool.h>, since xalloc_oversized returns bool.
77240         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
77241         to use xalloc_oversized.
77242
77243         Add two functions x2realloc, x2nrealloc, for programs that grow
77244         arrays dynamically by doubling their sizes.
77245         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
77246         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
77247         New functions.
77248
77249         Port to C99 semantics for 'inline' of external functions.
77250         Bug reported by Bruno Haible.
77251         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
77252         with the old contents of xnmalloc.
77253         (xnmalloc, xmalloc): Use it.
77254         (xnrealloc_inline): New static inline function,
77255         with the old contents of xnrealloc.
77256         (xnrealloc, xrealloc): Use it.
77257
77258         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
77259         that.
77260
77261 2003-10-26  Karl Berry  <karl@gnu.org>
77262
77263         * config/srclist.txt (COPYING.DOC): no longer available from
77264         /gd/gnuorg; don't know where the ultimate source is.
77265
77266 2003-10-25  Paul Eggert  <eggert@twinsun.com>
77267
77268         Fix several address-calculation bugs in the hash modules,
77269         plus some minor code cleanup.
77270
77271         * lib/hash.h: Include <stdbool.h>, for bool.
77272         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
77273         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
77274         hash_get_n_entries, hash_get_max_bucket_length,
77275         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
77276         hash_rehash): Use size_t rather than unsigned.
77277         * lib/hash.c (struct hash_table, hash_get_n_buckets,
77278         hash_get_n_buckets_used, hash_get_n_entries,
77279         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
77280         hash_get_entries, hash_do_for_each, hash_string, is_prime,
77281         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
77282         Likewise.
77283         (SIZE_MAX): Define if not defined.
77284         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
77285         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
77286         hash_print):
77287         Use const * when possible.
77288         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
77289         (check_tuning): Fix bug: if tuning parameters were very close to
77290         0 or 1, rounding errors could have caused subscript violations.
77291         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
77292         (hash_initialize): Add 'fail:' label
77293         to free table and return NULL, and use it to simplify code.
77294         Use calloc rather than clearing the storage ourself.
77295         (hash_initialize, hash_rehash): Check for arithmetic overflow in
77296         buffer size calculations.
77297         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
77298         Include <stddef.h>, for size_t.
77299         * lib/hash-pjw.c (hash_pjw): Likewise.
77300         Switch to method described by Bruno Haible.
77301         Include <limits.h>, for CHAR_BIT.
77302         (SIZE_BITS): New macro.
77303
77304 2003-10-23  Paul Eggert  <eggert@twinsun.com>
77305
77306         * m4/getline.m4 (AM_FUNC_GETLINE):
77307         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
77308         hosts.  Problem reported by Derek Robert Price in
77309         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
77310         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
77311         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
77312
77313 2003-10-21  Paul Eggert  <eggert@twinsun.com>
77314
77315         * lib/getndelim2.c (getndelim2): When size calculation overflows,
77316         ceiling the allocation at NMAX bytes rather than silently
77317         discarding input bytes before NMAX is reached.  This makes
77318         a difference only if NMAX exceeds SIZE_MAX / 2.
77319
77320         * lib/obstack.c: Merge from glibc.
77321         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
77322         Add libc_hidden_def (_obstack_newchunk).
77323         (_obstack_free) [! defined _LIBC]: Remove.
77324         [defined _LIBC]: Make a strong alias from obstack_free, rather than
77325         a clone of the function body.
77326         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
77327         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
77328
77329         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
77330         glibc.
77331         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
77332         arg to memcpy.
77333
77334         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
77335         (obstack_ptr_grow_fast, obstack_int_grow_fast):
77336         Don't use lvalue casts, as GCC plans to remove support for them
77337         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
77338         was also present in the non-GCC version, indicating that this
77339         code had always been buggy and had never been widely used.
77340         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
77341         Use the fast variant of each macro, rather than copying the
77342         definiens of the fast variant; that way, we'll be more likely to
77343         catch future bugs in the fast variants.
77344
77345 2003-10-20  Bruno Haible  <bruno@clisp.org>
77346
77347         * modules/wait-process: New file.
77348         * MODULES.html.sh (func_all_modules): Add wait-process.
77349
77350 2003-10-20  Bruno Haible  <bruno@clisp.org>
77351
77352         * m4/wait-process.m4: New file.
77353
77354 2003-10-20  Bruno Haible  <bruno@clisp.org>
77355
77356         * lib/wait-process.h: New file, from GNU gettext.
77357         * lib/wait-process.c: New file, from GNU gettext.
77358
77359 2003-10-19  Jim Meyering  <jim@meyering.net>
77360
77361         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
77362         HPUX 10.20.
77363
77364 2003-10-18  Karl Berry  <karl@gnu.org>
77365
77366         * config/config.guess: update from config.
77367
77368 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77369
77370         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
77371         (getgroups): First arg is int, not size_t.
77372         Don't let 'free' mangle errno.
77373
77374 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77375
77376         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
77377
77378 2003-10-16  Karl Berry  <karl@gnu.org>
77379
77380         * config/config.{guess,sub}: update from config.
77381
77382 2003-10-16  Jim Meyering  <jim@meyering.net>
77383
77384         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
77385         memcpy.
77386
77387 2003-10-15  Paul Eggert  <eggert@twinsun.com>
77388
77389         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
77390         (SIZE_MAX): Remove.
77391         (new_exclude, add_exclude_file): Initial size no longer needs to
77392         be a power of 2.
77393         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
77394         our own address arithmetic overflow checking.
77395
77396         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
77397         (fnmatch): Do not alloca more than 2000 wide characters;
77398         instead, use malloc for large buffers.
77399         Check for address arithmetic overflow, and return -1
77400         with errno set to ENOMEM in that case.
77401         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
77402         (NEW_PATTERN): Do not alloca more than 8000 bytes;
77403         instead, return -1.  Check for address arithmetic overflow.
77404
77405 2003-10-14  Paul Eggert  <eggert@twinsun.com>
77406
77407         Handle invalid suffixes and overflow independently, so that
77408         callers can treat them independently as needed.  Fix some bugs in
77409         suffix handling, e.g., "100k@" was not diagnosed as an invalid
77410         suffix for a human-readable blocksize.  The major caller-visible
77411         change is the addition of a new
77412         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
77413         that both overflow and suffix chars were found.
77414
77415         * lib/human.c (humblock): Don't check separately for invalid suffix
77416         char; that is xstrtoumax's job (now that its bug is fixed).
77417         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
77418         INTMAX_MAX]: New macros.
77419         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
77420         TYPE_MAXIMUM): New macros.
77421         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
77422         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
77423         if overflow occurs, as it's what __strtol does and it's more useful
77424         in practice.
77425         (__xstrtol): If __strtol reports some error other than ERANGE,
77426         reflect it to the caller as LONGINT_INVALID.  If it reports
77427         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
77428         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
77429         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
77430         value.
77431         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
77432         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
77433         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
77434         [defined UINTMAX_MAX]: New macros.
77435
77436 2003-10-14  Bruno Haible  <bruno@clisp.org>
77437
77438         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
77439
77440 2003-10-14  Bruno Haible  <bruno@clisp.org>
77441
77442         * m4/sig_atomic_t: New file, from GNU gettext.
77443         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
77444
77445 2003-10-14  Bruno Haible  <bruno@clisp.org>
77446
77447         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
77448         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
77449         Also use volatile where needed.
77450
77451 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77452
77453         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
77454         Change maintainer from Bruno Haible to 'all'.
77455
77456 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77457
77458         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
77459
77460 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77461
77462         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
77463         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
77464         and define in terms of the other primitives.
77465         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
77466         (SIZE_MAX): Define if not already defined.
77467         (array_size_overflow): New function.
77468         (xalloc_die): Abort instead of exiting if 'error' returns.
77469         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
77470         (xmalloc, xrealloc): Use them.
77471         (xcalloc): Check for address arithmetic overflow.
77472         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
77473         a bit faster than strcpy.
77474
77475 2003-10-10  Simon Josefsson  <jas@extundo.com>
77476
77477         * modules/argp (Depends-on): Add restrict and strcase.
77478
77479 2003-10-10  Simon Josefsson  <jas@extundo.com>
77480
77481         * m4/argp.m4: Add AC_C_INLINE.
77482
77483 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77484
77485         Merge getpass from libc, plus a few fixes.
77486
77487         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
77488         Include <stdbool.h>.
77489         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
77490         __fsetlocking to empty.
77491         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
77492         do include <bits/libc-lock.h>.
77493         Do not include <fcntl.h>; not needed.
77494         [_LIBC]: Include <wchar.h>.
77495         (NOTCANCEL_MODE): New macro.
77496         (flockfile, funlockfile) [_LIBC]: New macros.
77497         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
77498         [!_LIBC]: New macros.
77499         (call_fclose): New function.
77500         (getpass): Use it.  Save tty stream separately; this simplifies the
77501         code and makes it more reliable if stdin happens to equal stdout.
77502         Invoke __fsetlocking on tty.
77503         Handle thread cancellation if needed.
77504         Namespace cleanup (use __tcgetattr, __getline).
77505         Use bool for Booleans.
77506         [USE_IN_LIBIO]: Handle wide streams.
77507         [!_LIBC]: Unconditionally do the fseek, since we don't know what
77508         stream might go where.
77509
77510         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
77511         doesn't have to include <stdio.h> before us.
77512         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
77513         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
77514         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
77515         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
77516         if not declared, so that we can use getpass.c code from libc without
77517         rewriting it.
77518         (flockfile, ftrylockfile, funlockfile): New macros.
77519
77520 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77521
77522         * modules/getpass: Depend on stdbool.
77523
77524 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77525
77526         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
77527
77528 2003-10-07  Karl Berry  <karl@gnu.org>
77529
77530         * config/config.{guess,sub}: update from config.
77531
77532 2003-10-06  Jim Meyering  <jim@meyering.net>
77533             Bruno Haible  <bruno@clisp.org>
77534
77535         This lets translators provide better translations for the
77536         "Written by ..." part of --version output.
77537         * lib/version-etc.h: Include stdarg.h.
77538         (version_etc_copyright): Declare as readonly.
77539         (version_etc): Make this function variadic with a NULL-terminated list
77540         of author name strings.
77541         (version_etc_va): New declaration.
77542         * lib/version-etc.c: Include stdarg.h, stdlib.h.
77543         (version_etc_copyright): Declare as readonly.
77544         (version_etc_va): New function. Provide a different translatable string
77545         for each possible number of authors < 10. Abbreviate when there are 10
77546         authors or more.
77547         (version_etc): Make this function variadic. Call version_etc_va.
77548         Suggestion from Gary V. Vaughan.
77549
77550         * lib/long-options.h (parse_long_options): Change prototype: the
77551         authors string is moved to the end and becomes variadic.
77552         * lib/long-options.c: Include stdarg.h.
77553         (parse_long_options): Make this function variadic, too.
77554         Call version_etc_va, not version_etc.
77555
77556 2003-10-06  Bruno Haible  <bruno@clisp.org>
77557
77558         * modules/version-etc-2: Remove file.
77559         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
77560
77561 2003-10-06  Bruno Haible  <bruno@clisp.org>
77562
77563         * modules/fatal-signal: New file.
77564         * MODULES.html.sh (func_all_modules): Add fatal-signal.
77565
77566 2003-10-06  Bruno Haible  <bruno@clisp.org>
77567
77568         * m4/fatal-signal.m4: New file.
77569         * m4/signalblocking.m4: New file, from GNU gettext.
77570
77571 2003-10-06  Bruno Haible  <bruno@clisp.org>
77572
77573         * lib/version-etc-2.h: Remove file.
77574         * lib/version-etc-2.c: Remove file.
77575
77576 2003-10-06  Bruno Haible  <bruno@clisp.org>
77577
77578         * lib/fatal-signal.h: New file, from GNU gettext.
77579         * lib/fatal-signal.c: New file, from GNU gettext.
77580
77581 2003-10-05  Paul Eggert  <eggert@twinsun.com>
77582
77583         * README: Rework advice for preventing empty .o files.
77584         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
77585         not <sys/types.h>.
77586
77587 2003-10-04  Karl Berry  <karl@gnu.org>
77588
77589         * lib/argp*: update from libc.
77590
77591 2003-10-04  Karl Berry  <karl@gnu.org>
77592
77593         * config/config.{guess,sub}: update from config.
77594
77595 2003-10-02  Bruno Haible  <bruno@clisp.org>
77596
77597         * modules/lchown (Include): Add lchown.h.
77598         * modules/time_r (Include): Use "..." syntax.
77599         * modules/xgetdomainname (Include): Add xgetdomainname.h.
77600
77601 2003-10-01  Simon Josefsson  <jas@extundo.com>
77602
77603         * MODULES.html.sh (func_all_modules): Move gethostname from section
77604         'based on' to section 'lacking' POSIX:2001.
77605
77606 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
77607
77608         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
77609         to output mode on the same stream.
77610
77611 2003-09-29  Paul Eggert  <eggert@twinsun.com>
77612
77613         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
77614         Fix arg typo in previous patch.
77615
77616 2003-09-28  Jim Meyering  <jim@meyering.net>
77617
77618         * lib/error.c: Correct cpp indentation.
77619
77620 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77621
77622         * modules/free: New file.
77623
77624 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77625
77626         * m4/free.m4: New file.
77627
77628 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77629
77630         * lib/minmax.h (MIN, MAX)
77631         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
77632         Omit the special code that used __typeof__, since we worry that
77633         it could be more trouble than it's worth.  See:
77634         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
77635         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
77636
77637         * lib/free.c: New file.
77638
77639 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
77640
77641         Trivial fixes to Makefile.am parts of module listings.
77642         * modules/strstr: Append strstr.h to lib_SOURCES.
77643         * modules/strcase: Likewise, for strcase.h.
77644
77645 2003-09-27  Karl Berry  <karl@gnu.org>
77646
77647         * config/mkinstalldirs: update from automake.
77648
77649 2003-09-26  Paul Eggert  <eggert@twinsun.com>
77650
77651         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
77652         (error_tail): Do not loop, reallocating temporary buffer, since
77653         the output cannot contain more wide characters than the input
77654         contains bytes, the size must be big enough already.  This avoids
77655         one potential size overflow calculation.  Check for size overflow
77656         when calculating temporary buffer size.  Free temporary buffer
77657         when done, if it was allocated with malloc; this plugs a memory
77658         leak.  Remove casts from void * to pointers, that are no longer
77659         needed now that we're assuming C89 or better.
77660
77661         Merge error changes from glibc.
77662
77663         * lib/error.c, error.h: Update copyright notice header to match glibc.
77664         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
77665         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
77666         Disable cancellation while printing error.
77667         * lib/error.h: Prepend __ to parameter names.
77668
77669 2003-09-26  Jim Meyering  <jim@meyering.net>
77670
77671         * lib/error.c (error_tail): Move some declarations
77672         into inner scope where the local variables are used.
77673
77674 2003-09-26  Bruno Haible  <bruno@clisp.org>
77675
77676         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
77677         stpncpy().
77678         Don't define stpncpy through config.h; it's now done through stpncpy.h.
77679
77680 2003-09-26  Bruno Haible  <bruno@clisp.org>
77681
77682         * lib/stpncpy.h (gnu_stpncpy): New declaration.
77683         (stpncpy): Define as alias for gnu_stpncpy.
77684         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
77685
77686 2003-09-25  Simon Josefsson  <jas@extundo.com>
77687
77688         * lib/xgetdomainname.h: New file.
77689         * lib/xgetdomainname.c: New file.
77690
77691 2003-09-25  Simon Josefsson  <jas@extundo.com>
77692             Bruno Haible  <bruno@clisp.org>
77693
77694         * modules/getdomainname: New file.
77695         * modules/xgetdomainname: New file.
77696         * MODULES.html.sh (func_all_modules): Add getdomainname,
77697         xgetdomainname.
77698
77699 2003-09-25  Simon Josefsson  <jas@extundo.com>
77700             Bruno Haible  <bruno@clisp.org>
77701
77702         * m4/getdomainname.m4: New file.
77703
77704 2003-09-25  Simon Josefsson  <jas@extundo.com>
77705             Bruno Haible  <bruno@clisp.org>
77706
77707         * lib/getdomainname.h: New file.
77708         * lib/getdomainname.c: New file.
77709
77710 2003-09-25  Karl Berry  <karl@gnu.org>
77711
77712         * lib/argp-fmtstream.c, argp-help.c: update from libc.
77713
77714 2003-09-25  Karl Berry  <karl@gnu.org>
77715
77716         * config/install-sh: update from automake.
77717
77718 2003-09-25  Bruno Haible  <bruno@clisp.org>
77719
77720         * modules/version-etc-2: New file, from modules/version-etc with
77721         modifications.
77722         * MODULES.html.sh (func_all_modules): Add version-etc-2.
77723
77724 2003-09-25  Bruno Haible  <bruno@clisp.org>
77725
77726         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
77727         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
77728
77729 2003-09-24  Simon Josefsson  <jas@extundo.com>
77730
77731         * modules/xgethostname: Add xgethostname.h.
77732
77733 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77734
77735         * lib/linebuffer.c (freebuffer): Don't free the argument, just
77736         the buffer associated with the argument.  Bug reported by
77737         Simon Josefsson.
77738
77739 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77740
77741         * README: Document assumptions that 'int' is at least 32 bits
77742         wide, that integer arithmetic is 2's complement without overflow,
77743         that there are no holes in integer values, that adding sizes of
77744         two nonoverlapping objects can't overflow, and that all-bits-zero
77745         yields scalar zero.  Fix spelling and capitalization typos.
77746
77747 2003-09-19  Karl Berry  <karl@gnu.org>
77748
77749         * lib/argp.h: update from libc.
77750
77751 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77752
77753         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
77754         to avoid spurious warnings like "AC_RUN_IFELSE was called before
77755         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
77756
77757 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77758
77759         * gnulib-tool: Use "test -h", not "test -L", for portability
77760         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
77761         (tags_regexp): Remove, since \| doesn't conform to POSIX.
77762         (sed_extract_prog): Issue s commands one-by-one, rather than
77763         using \| in one s command.
77764
77765 2003-09-16  Paul Eggert  <eggert@twinsun.com>
77766
77767         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
77768         input error, instead of returning NULL the next time we are called
77769         (and therefore losing track of errno).
77770
77771 2003-09-16  Bruno Haible  <bruno@clisp.org>
77772
77773         * gnulib-tool (func_create_testdir): Warn about duplicated
77774         dependencies.
77775
77776 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77777
77778         * modules/argmatch, modules/fatal, modules/obstack,
77779         modules/xalloc, modules/xgethostname: Sort dependencies by
77780         importance, not alphabetically.
77781
77782 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77783
77784         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
77785         fails, so that the caller gets the proper errno.
77786
77787         * lib/readutmp.c (read_utmp): Likewise.
77788         Check for fstat error.  Close stream and free storage
77789         when failing.
77790
77791 2003-09-14  Karl Berry  <karl@gnu.org>
77792
77793         * config/srclist.txt (strdup.c): disable for c89 changes.
77794
77795 2003-09-14  Jim Meyering  <jim@meyering.net>
77796
77797         * lib/getloadavg.c: Correct cpp indentation.
77798         * lib/strdup.c: Likewise.
77799         * lib/vasnprintf.c: Likewise.
77800
77801 2003-09-14  Bruno Haible  <bruno@clisp.org>
77802
77803         * modules/fwriteerror: New file.
77804         * MODULES.html.sh (func_all_modules): Add fwriteerror.
77805
77806 2003-09-14  Bruno Haible  <bruno@clisp.org>
77807
77808         * lib/fwriteerror.h: New file.
77809         * lib/fwriteerror.c: New file.
77810
77811 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77812
77813         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
77814         modules/xgethostname, modules/xalloc: Depend on exit.
77815
77816 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77817
77818         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
77819
77820         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
77821         and AC_MINIX, too, so that their extensions are available.
77822
77823         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
77824         This macro has been superseded by gl_BACKUPFILE.
77825
77826         More patches to assume C89 or better.
77827
77828         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
77829
77830         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
77831         unconditionally.
77832         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
77833         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
77834         Include <string.h>, <stdlib.h> unconditionally.
77835         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
77836         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
77837         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
77838         headers or for string.h.
77839         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
77840         or strtoul.
77841
77842         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
77843         headers.
77844         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
77845         * m4/userspec.m4 (gl_USERSPEC): Likewise.
77846         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
77847         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
77848         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77849         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
77850         memcpy, memset.
77851         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
77852         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
77853         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
77854         strtol.
77855         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
77856         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
77857         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
77858         strtoul.
77859
77860 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77861
77862         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
77863         * lib/obstack.c [!defined _LIBC]: Likewise.
77864         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
77865         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
77866         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
77867
77868         More changes to assume C89 or better.
77869
77870         * lib/error.c (error_tail): Assume vprintf.
77871
77872         * lib/argmatch.c (getenv): Remove decl.
77873         * lib/progreloc.c (get_full_program_name): Define via prototype.
77874         * lib/setenv.c (clearenv): Likewise.
77875         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
77876         needed.
77877         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
77878         (malloc, memcpy): Remove decls.
77879         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
77880         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
77881         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
77882         (memcpy): Remove macro.
77883         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
77884         (__P): Remove.  All uses removed.
77885         (PTR): Remove.  All uses changed to void *.
77886         (CHAR_BIT, NULL): Remove.
77887         (spaces, zeros, memset_space, memset_zero)
77888         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
77889         Remove.
77890         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
77891         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
77892         Define with prototype.
77893         Remove now-unnecessary prototype decl.
77894         (extra_args_spec): Assume ANSI C.  All uses changed.
77895         (extra_args_spec_iso): Remove.
77896         (my_strftime, emacs_strftimeu): Define via prototype.
77897         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
77898         unconditionally.
77899         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
77900         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
77901         (strtoul, strtol): Remove decls.
77902         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
77903         LONG_MAX): Remove.
77904         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
77905         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
77906         (LOCALE_PARAM_PROTO): New macro.
77907         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
77908         (INTERNAL (strtol), strtol): Define with a prototype.
77909         (PARAMS): Remove.  All uses removed.
77910         * lib/tempname.c: Include <string.h> unconditionally.
77911         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
77912         * lib/xgethostname.c (main): Define with a prototype.
77913         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
77914         Include <stdlib.h> unconditionally.
77915         (calloc, malloc, realloc, free): Remove decls.
77916         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
77917         Include <stdlib.h> unconditionally.  Sort include file names.
77918         (strtod): Remove.
77919         (xstrtod): Define with a prototype.
77920         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
77921         (strtol, strtoul): Remove decls.
77922
77923 2003-09-11  Paul Eggert  <eggert@twinsun.com>
77924
77925         More patches to assume C89 or better.
77926         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
77927         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
77928         string.h, memchr, STDC_HEADERS.
77929
77930 2003-09-11  Paul Eggert  <eggert@twinsun.com>
77931
77932         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
77933         Include <stdlib.h>, <string.h> unconditionally.
77934         Remove now-unnecessary cast to char *.
77935         * lib/strnlen.c: Include <string.h> unconditionally.
77936         * lib/yesno.c (yesno): Define with a prototype.
77937
77938 2003-09-11  Bruno Haible  <bruno@clisp.org>
77939
77940         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
77941
77942 2003-09-10  Jim Meyering  <jim@meyering.net>
77943
77944         * lib/error.c: Correct indentation of cpp directives.
77945
77946 2003-09-10  Bruno Haible  <bruno@clisp.org>
77947
77948         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
77949         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
77950         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
77951         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
77952         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
77953         <stdlib.h> and <string.h> checks.
77954         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
77955         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
77956
77957 2003-09-10  Bruno Haible  <bruno@clisp.org>
77958
77959         * lib/strcspn.c: Include <string.h> unconditionally.
77960         * lib/strpbrk.c: Include <string.h> unconditionally.
77961         * lib/strstr.c: Include <string.h> unconditionally.
77962         * lib/unicodeio.c: Include <string.h> unconditionally.
77963         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
77964         * lib/unsetenv.c: Likewise.
77965         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
77966         * lib/yesno.c: Include <stdlib.h> unconditionally.
77967         (rpmatch): Add prototype.
77968
77969 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77970
77971         More patches to assume C89 or better.
77972         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
77973         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
77974         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
77975         or for string.h.
77976         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
77977         stdlib.h.
77978         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
77979         C headers.
77980         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
77981         string.h.
77982         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
77983         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
77984         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
77985         or for string.h.
77986         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
77987         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
77988         C headers.
77989         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
77990         memcpy.
77991         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
77992         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
77993         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
77994         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
77995         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
77996         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
77997         string.h, free.
77998         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
77999         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
78000         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
78001         C headers, or for string.h.
78002         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
78003         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
78004         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
78005         headers, memory.h, stdlib.h, string.h, strings.h.
78006         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
78007         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
78008         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
78009         strchr.
78010         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
78011         headers, memory.h, string.h.
78012         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
78013         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
78014         free.
78015         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
78016         headers.
78017         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
78018         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
78019         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
78020         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
78021         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
78022
78023 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78024
78025         More K&R removal.
78026
78027         * lib/acosl.c (main): Use a prototype.
78028         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
78029         tanl.c: Likewise.
78030
78031         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
78032
78033         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
78034         (getopt, etopt_long, getopt_long_only, _getopt_internal)
78035         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
78036         with a prototype.
78037         * lib/getopt.c (const): Remove macro.
78038         Include <string.h> unconditionally.
78039         (my_index): Remove; all uses changed to strchr.
78040         (strlen): Remove decl.
78041         (exchange): Remove forward decl; no longer needed.
78042         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
78043         Define with prototype.
78044         * lib/getopt1.c (const): Remove macro.
78045         (getopt_long, getopt_long_only, main): Define with prototype.
78046
78047         * lib/getugroups.c: Include <string.h> unconditionally.
78048
78049         * lib/getusershell.c: Include <stdlib.h> unconditionally.
78050         (getusershell, setusershell, endusershell, readname, main):
78051         Define with prototypes.
78052
78053         * lib/group-member.c: Include group-member.h first.
78054         Include <stdlib.h> unconditionally.
78055
78056         * lib/hard-locale.c: Include hard-locale.h first.
78057         Include <stdlib.h>, <string.h> unconditionally.
78058
78059         * lib/hash.c (free, malloc): Remove decls.
78060         Include <stdlib.h> unconditionally.
78061
78062         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
78063         (getenv): Do not declare.
78064
78065         * lib/idcache.c: Include <string.h> unconditionally.
78066
78067         * lib/long-options.c: Include long-options.h first, to test interface.
78068         Include <stdlib.h> unconditionally.
78069
78070         * lib/makepath.c: Include makepath.h first, to test interface.
78071         Include <stdlib.h> and <string.h> unconditionally.
78072
78073         * lib/linebuffer.c: Include <stdlib.h>.
78074         (free): Remove decl.
78075
78076         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
78077         stddef.h. rpl_malloc returns void *, not char *.
78078         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
78079         prototype.
78080
78081         * lib/md5.h: Include <limits.h> unconditionally.
78082         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
78083         (__P): Remove; all uses removed.
78084         * lib/md5.c: Include "md5.h" first.
78085         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
78086         md5_buffer, md5_process_bytes, md5_process_block):
78087         Define with prototypes.
78088         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
78089         * lib/sha.c: Include "sha.h" first.
78090         Include <stdlib.h>, <string.h> unconditionally.
78091
78092         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
78093         * lib/memcmp.c (__ptr_t): Likewise.
78094         * lib/memrchr.c (__ptr_t): Likewise.
78095         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
78096         Include <string.h> unconditionally.
78097         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
78098         * lib/memchr.c: Include <stdlib.h> unconditionally.
78099         * lib/memchr.c (LONG_MAX): Remove.
78100         * lib/memrchr.c (LONG_MAX): Likewise.
78101         * lib/memchr.c (__memchr): Define via a prototype.
78102         * lib/memrchr.c (__memrchr): Likewise.
78103         * lib/memcmp.c (__P): Remove, and remove all uses.
78104         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
78105         Remove forward decls; no longer needed.
78106         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
78107         Use types required by C89 in prototype.
78108
78109         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
78110         * lib/savedir.c: Likewise.
78111         * lib/mkdir.c (free): Remove decl.
78112         * lib/rmdir.c (rmdir): Define with a prototype.
78113         * lib/savedir.c: Include savedir.h first, to test interface.
78114
78115         * lib/mktime.c (STDC_HEADERS): Remove.
78116         Include <stdlib.h>, <string.h> unconditionally.
78117
78118         * lib/modechange.c: Include <stdlib.h> unconditionally.
78119         (malloc): Remove decl.
78120
78121         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
78122         (free): Remove decl.
78123
78124         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
78125         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
78126         (This type really should be intptr_t, but that's a C99ism.)
78127         (_obstack_memcpy): Remove: all uses changed to memcpy.
78128         Include <string.h> unconditionally.
78129         (struct obstack): Assume __STDC__ for types of members
78130         chunkfun, freefun, extra_arg.
78131         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
78132         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
78133         obstack_begin, obstack_specify_allocation,
78134         obstack_specify_allocation_with_arg, obstack_chunkfun,
78135         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
78136         Remove unprototyped decls and the macros that use them.
78137         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
78138         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
78139         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
78140         (defined __STDC__ && __STDC__)]:
78141         Remove nonprototyped code.
78142         Include <stdlib.h> unconditionally.
78143         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
78144         _obstack_allocated_p, _obstack_free, obstack_free,
78145         _obstack_memory_used, print_and_abort):
78146         Define using prototypes.
78147         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
78148         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
78149         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
78150         obstack_next_free, obstack_object_size, obstack_room) [0]:
78151         Remove unused, unprototyped code.
78152
78153         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
78154
78155         * lib/physmem.c (physmem_total, physmem_available, main): Define
78156         with prototypes.
78157
78158         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
78159         (main): Define with a prototype.
78160
78161         * lib/posixver.c (getenv): Remove decl.
78162
78163         * lib/putenv.c (malloc): Returns void *, not char *.
78164         Include <string.h> unconditionally.
78165         (strchr, memcpy, NULL): Do not define.
78166
78167         * lib/readtokens.c: Include readtokens.h first, to test interface.
78168         Include <stdlib.h>, <string.h> unconditionally.
78169         (init_tokenbuffer): Define with a prototype.
78170
78171         * lib/regex.c (PARAMS): Remove.  All uses removed.
78172         All uses of _RE_ARGS removed, too.
78173         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78174         unconditionally.
78175         (bzero): Assume memset exists.
78176         (memcmp, memcpy, NULL): Remove.
78177         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
78178         char, or assignments to local vars of type signed char.
78179         (init_syntax_once, PREFIX(extract_number_and_incr),
78180         PREFIX(print_partial_compiled_pattern),
78181         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
78182         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
78183         PREFIX(regex_grow_registers), PREFIX(regex_compile),
78184         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
78185         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
78186         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
78187         wcs_compile_range, byte_compile_range, truncate_wchar,
78188         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
78189         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
78190         count_mbs_length, wcs_re_match_2_internal,
78191         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
78192         PREFIX(alt_match_null_string_p),
78193         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
78194         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
78195         regfree, PREFIX(extract_number)): Define with prototype.  Remove
78196         now-unnecessary declaration, if any.
78197         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
78198         regcomp, regexec):
78199         Remove now-unnecessary casts among pointer types.
78200         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
78201
78202         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
78203         (free): Remove decl.
78204
78205         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
78206
78207         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
78208         (free): Remove decl.
78209
78210         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
78211         * lib/xgetcwd.c: Likewise.
78212
78213         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
78214         (free): Remove decl.
78215
78216         * lib/strchrnul.c (strchrnul): Define with a prototype.
78217         Fix bug: c_in was not converted to char before searching.
78218
78219         The following changes are not K&R related:
78220
78221         * lib/group-member.h: Include <sys/types.h>, so that this file is
78222         self-contained.
78223         * lib/makepath.h: Likewise.
78224
78225         * lib/getusershell.c (readname, default_index, line_size, readname):
78226         Use size_t, not int, for sizes.
78227         (readname): If the size overflows, report an error instead of
78228         looping forever.
78229
78230 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78231
78232         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
78233         libc.
78234
78235 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78236
78237         * README: New section: portability guidelines.
78238
78239 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78240
78241         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
78242         C89 spec.
78243
78244 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78245
78246         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
78247
78248 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78249
78250         Assume C89 or better; remove K&R cruft.
78251         A few of these changes were first proposed by Derek Robert Price
78252         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
78253
78254         * lib/addext.c: Include <string.h> unconditionally.
78255         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
78256         Don't declare getenv or malloc.
78257
78258         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
78259         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
78260         (NULL): Remove.
78261         (find_stack_direction, alloca): Use prototypes.
78262
78263         * lib/atexit.c (atexit): Define using a prototype.
78264
78265         * lib/basename.c, dirname.c, stripslash.c:
78266         Include <string.h> unconditionally.
78267
78268         * lib/bcopy.c: Include <stddef.h>.
78269         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
78270
78271         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
78272
78273         * lib/error.h (error, error_at_line, error_print_progname)
78274         [! (defined (__STDC__) && __STDC__)]: Remove decls.
78275         * lib/error.c: Include error.h first, to check interface.
78276         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78277         (VA_START): Remove; all uses changeed to va_start.
78278         (exit, strerror): Remove decls.
78279         (error_print_progname): Prototype uncondionally.
78280         Don't include <errno.h>; no longer needed.
78281         (private_strerror): Remove.
78282         (error_tail): Always define.
78283         (error, error_at_line): Assume C89 or better; always use prototypes.
78284         * lib/fatal.c: Include "fatal.h" first, to test interface.
78285         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78286         (VA_START): Remove; all uses changed to va_start.
78287         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
78288         this case.
78289         (exit): Remove decl.
78290         (fatal): Prototype unconditionally.  Assume va_start works.
78291         Abort at end, to pacify gcc.
78292
78293         * lib/euidaccess.c (main): Define with a prototype.
78294
78295         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
78296
78297         * lib/exitfail.c: Include <stdlib.h> unconditionally.
78298
78299         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
78300         prototypes.
78301         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
78302         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
78303         (getenv): Remove decl.
78304         (fnmatch): Define using a prototype.
78305         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
78306         (FCT): Define using a prototype.
78307
78308         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
78309
78310         * lib/gethostname.c: Include <stddef.h>.
78311         (gethostname): Define with prototype.  Length is size_t, not int.
78312
78313 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78314
78315         Assume C89 or better; remove K&R cruft.
78316         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
78317         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
78318         string.h, getenv, malloc.
78319         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
78320         headers.
78321         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
78322         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
78323         do not check for strerror.
78324         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
78325         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
78326         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
78327         do not check for doprnt or vprintf.
78328         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
78329         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
78330
78331 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78332
78333         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
78334         getversion.c should have been removed then, but was accidentally
78335         preserved.
78336
78337         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
78338         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
78339
78340 2003-09-08  Karl Berry  <karl@gnu.org>
78341
78342         * config/config.sub, config.guess, srclistvars.sh: update from savannah
78343                 config, forget about prep.
78344
78345         * config/depcomp, missing: update from automake.
78346
78347 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78348
78349         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
78350         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78351
78352 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78353
78354         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
78355         copy_tm_result.  Bug reported by Simon Josefsson in
78356         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78357
78358 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78359
78360         * m4/time_r.m4: New file.
78361         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
78362         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
78363         is. Check for timegm declaration.
78364         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
78365         Do not check for gmtime_r.
78366         Replace mktime if __mktime_internal does not exist and if mktime
78367         hasn't been replaced already.
78368
78369 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78370
78371         * lib/time_r.c, lib/time_r.h: New files.
78372
78373         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
78374         __localtime_r.
78375         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
78376         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
78377
78378         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
78379         __gmtime_r.
78380         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
78381         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
78382         Include <time_r.h>.
78383
78384         * lib/timegm.c: Switch to glibc implementation, with the following
78385         changes:
78386         [defined HAVE_CONFIG_H]: Include <config.h>.
78387         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
78388         (__mktime_internal) [!defined _LIBC]: New decl.
78389         (__gmtime_r) [!defined _LIBC]: New macro and function.
78390         (timegm): Use a prototype, since gnulib assumes C89.
78391         Do not bother declaring tmp to be const, as it's not really usefu.
78392         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
78393         (timegm): Declare only if HAVE_DECL_TIMEGM.
78394
78395 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78396
78397         * MODULES.html.sh (func_all_modules): Add time_r.
78398         * modules/time_r: New file.
78399         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
78400         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
78401
78402 2003-09-03  Paul Eggert  <eggert@twinsun.com>
78403
78404         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
78405         Bug reported by Lute Kamstra in
78406         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
78407
78408         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
78409         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
78410         course with correspondingly smaller numbers for tomorrow and
78411         yesterday.  From Tadayoshi Funaba.  Originally installed into
78412         sh-utils on 1999-08-07, but the patch got lost (I guess during the
78413         coreutils merge?).
78414
78415 2003-08-31  Simon Josefsson  <jas@extundo.com>
78416
78417         * modules/timegm: New file.
78418         * MODULES.html.sh (func_all_modules): Add timegm.
78419
78420 2003-08-31  Simon Josefsson  <jas@extundo.com>
78421
78422         * m4/timegm.m4: New file.
78423
78424 2003-08-31  Simon Josefsson  <jas@extundo.com>
78425
78426         * lib/timegm.h: New file.
78427         * lib/timegm.c: New file.  Based on
78428         wget-1.8.2/src/http.c:mktime_from_utc.
78429
78430 2003-08-31  Karl Berry  <karl@gnu.org>
78431
78432         * lib/argp.h: update from libc.
78433
78434 2003-08-28  Bruno Haible  <bruno@clisp.org>
78435
78436         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
78437         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
78438         followed by '#define fnmatch fnmatch_posix' gives an error.
78439
78440 2003-08-28  Bruno Haible  <bruno@clisp.org>
78441
78442         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
78443         warning on QNX, which defines O_BINARY to 000000.
78444
78445 2003-08-27  Jim Meyering  <jim@meyering.net>
78446
78447         * m4/mkstemp.m4: Require that the system mkstemp be able to create
78448         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
78449         would fail after 32.  Reported by Danny Levinson.  Details here:
78450         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
78451
78452 2003-08-24  Bruno Haible  <bruno@clisp.org>
78453
78454         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
78455         MSVC7 <stdio.h> is included later.
78456
78457 2003-08-22  Simon Josefsson  <jas@extundo.com>
78458
78459         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
78460
78461 2003-08-20  Karl Berry  <karl@gnu.org>
78462
78463         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
78464
78465 2003-08-20  Bruno Haible  <bruno@clisp.org>
78466
78467         * modules/progname: New file.
78468         * MODULES.html.sh (func_all_modules): Add progname.
78469
78470 2003-08-20  Bruno Haible  <bruno@clisp.org>
78471
78472         * lib/progname.h: New file, from GNU gettext.
78473         * lib/progname.c: New file, from GNU gettext.
78474         * lib/progreloc.c: New file, from GNU gettext.
78475
78476 2003-08-19  Jim Meyering  <jim@meyering.net>
78477
78478         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
78479         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
78480
78481 2003-08-19  Bruno Haible  <bruno@clisp.org>
78482
78483         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
78484         more.
78485
78486 2003-08-19  Bruno Haible  <bruno@clisp.org>
78487
78488         * lib/xstrdup.c: Assume <string.h> exists.
78489
78490 2003-08-18  Paul Eggert  <eggert@twinsun.com>
78491
78492         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
78493         in makefile rules.
78494
78495 2003-08-18  Jim Meyering  <jim@meyering.net>
78496
78497         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
78498         * m4/lib-ld.m4: Likewise.
78499
78500 2003-08-18  Jim Meyering  <jim@meyering.net>
78501
78502         * lib/setenv.h: Indent nested cpp directive.
78503         * lib/vasnprintf.c: Remove trailing blanks.
78504
78505 2003-08-17  Simon Josefsson  <jas@extundo.com>
78506
78507         * modules/xstrndup: New file.
78508         * MODULES.html.sh (func_all_modules): Add xstrndup.
78509
78510 2003-08-17  Simon Josefsson  <jas@extundo.com>
78511
78512         * modules/argp: Fix autoconf macro name. Add more dependencies.
78513
78514 2003-08-17  Simon Josefsson  <jas@extundo.com>
78515
78516         * m4/xstrndup.m4: New file.
78517
78518 2003-08-17  Simon Josefsson  <jas@extundo.com>
78519
78520         * m4/argp.m4: New file.
78521
78522 2003-08-17  Simon Josefsson  <jas@extundo.com>
78523             Bruno Haible  <bruno@clisp.org>
78524
78525         * lib/xstrndup.h: New file.
78526         * lib/xstrndup.c: New file.
78527
78528 2003-08-17  Bruno Haible  <bruno@clisp.org>
78529
78530         * modules/strndup (Files, Include): Add lib/strndup.h.
78531
78532 2003-08-17  Bruno Haible  <bruno@clisp.org>
78533
78534         * modules/euidaccess (Files): Add lib/euidaccess.h.
78535
78536 2003-08-17  Bruno Haible  <bruno@clisp.org>
78537
78538         * lib/strndup.h: New file.
78539
78540 2003-08-17  Bruno Haible  <bruno@clisp.org>
78541
78542         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
78543         like AC_GNU_SOURCE.
78544         * modules/extensions (configure.ac): Comment out the invocation of
78545         gl_USE_SYSTEM_EXTENSIONS.
78546
78547 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78548
78549         Merges from coreutils, etc.
78550         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
78551         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
78552         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
78553         fixing a typo.
78554         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
78555         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
78556
78557 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78558
78559         Document merge from coreutils.
78560         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
78561         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
78562         * modules/utime: Add m4/utimes-null.m4.
78563
78564 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78565
78566         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
78567         space, undoing this 2003-08-12 change:
78568         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78569
78570 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78571
78572         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
78573         strtoul.c from libc, undoing this 2003-08-12 change:
78574         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78575
78576 2003-08-16  Jim Meyering  <jim@meyering.net>
78577
78578         Merges from coreutils.
78579         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
78580         prefix.  Adjust cache variables similarly.  Create 500 rather than
78581         just 300 files, to exercise bug on Darwin6.5, too.
78582         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
78583         $missing_dir.
78584         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
78585         AM_SYS_POSIX_TERMIOS.
78586         Reported by mkc@mathdogs.com.
78587         Also change use of $am_cv_sys_posix_termios
78588         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
78589         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
78590         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
78591         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
78592         in /proc/mounts until it finds one with matching device number.  This
78593         is unnecessary when the FILE argument *is* a mount point.  No stat call
78594         is necessary in that case.  So, disable the statvfs-testing code on
78595         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
78596         as RedHat bug# 84846.
78597         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78598         to 1MB, so as not to render systems with no stack size limit (e.g.,
78599         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78600         Include <unistd.h>.  On some systems,
78601         it is required for the definition of _SC_PAGESIZE.
78602
78603 2003-08-16  Jim Meyering  <jim@meyering.net>
78604
78605         Merge from coreutils.
78606         * lib/xstrtoimax.c: #else #if -> #elif.
78607         * lib/xstrtoumax.c: Likewise.
78608
78609 2003-08-16  Jim Meyering  <jim@meyering.net>
78610
78611         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
78612         * m4/utimes.m4: Removed.
78613         * m4/utimes-null.m4: Renamed from utimes.m4.
78614
78615         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78616         to 1MB, so as not to render systems with no stack size limit (e.g.,
78617         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78618         Include <unistd.h>.  On some systems,
78619         it is required for the definition of _SC_PAGESIZE.
78620
78621 2003-08-16  Jim Meyering  <jim@meyering.net>
78622         and Paul Eggert  <eggert@cs.ucla.edu>
78623
78624         Merges from coreutils, etc.
78625
78626         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
78627         using the latest version from cvs.  This avoids problems with #line
78628         directives using a vendor (Sun) compiler.
78629         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
78630         Don't set GETGROUPS_LIB here; now it's
78631         done via getgroups.m4's wrapper function.
78632         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
78633         rather than just in sh-util/configure.in, so that the
78634         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
78635         same.
78636         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
78637         AC_FUNC_GETLOADAVG where to find getloadavg.c.
78638         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
78639         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
78640         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
78641         Remove code that is now done by the newly-required macros.
78642         Append $(EXEEXT) to DF_PROG.
78643         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
78644         Do not invoke or require the following here,
78645         since prereq.m4 or some gnulib .m4 now does this for us:
78646         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
78647         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
78648         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
78649         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
78650         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
78651         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
78652         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
78653         AC_FUNC_OBSTACK.
78654         Do not replace the following functions, as this is now the job
78655         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
78656         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
78657         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
78658         atexit getpass, strdup, getpagesize.
78659         Replace 'raise'.
78660         Do not check for the following functions, as this is now the job
78661         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
78662         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
78663         setregid.
78664         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
78665         Check for sys/sysctl.h.
78666         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
78667         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
78668         of checking for ssize_t ourselves.
78669
78670         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
78671         Require every macro that gnulib/modules/* suggests for us.
78672         (jm_PREREQ_ADDEXT): New macro.
78673         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
78674         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
78675
78676         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
78677         (gl_PHYSMEM): Use it.
78678         Also check for `table' function.
78679         Check for new headers and functions.
78680         Add check for sys/sysmp.h.
78681         With suggestions from Kaveh Ghazi.
78682         Ignore headers that are present but cannot be compiled.  This
78683         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
78684         C 5.4.
78685
78686 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78687
78688         Document merge from coreutils.
78689         * modules/userspec: Depend on posixver.
78690         * modules/strftime: Depend on tzset.
78691
78692 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78693
78694         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
78695         rather than tab, after '#' in shell-script copyright notices.
78696         Suggested by Bruno Haible.
78697
78698 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78699
78700         * config/srclist-update: Use three spaces, rather than tab, after '#'
78701         in shell-script copyright notices.  Suggested by Bruno Haible.
78702         Remove unnecessary parenthesization in regular expression.
78703
78704 2003-08-15  Jim Meyering  <jim@meyering.net>
78705
78706         Merge from coreutils.
78707         * lib/xgethostname.c: Include <stdlib.h>.
78708         (xghostname): Don't exit for anything other than memory-related
78709         failure; just return NULL.
78710         * lib/userspec.c: Include "posixver.h".
78711         (parse_user_spec): Accept `.' as a separator only
78712         in pre-POSIX-200112 mode.
78713         * lib/strtoimax.c: Use #elif rather than #else #if.
78714         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
78715         Remove function, now that we can rely on a working tzset function.
78716         [!_LIBC]: Ensure that the required autoconf test has been run.
78717         [!defined _NL_CURRENT && HAVE_STRFTIME]:
78718         Use underlying_strftime for %r.
78719         * lib/sha.c: Merge in some clean-up and optimization changes from
78720         glibc.
78721         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
78722         Ensure that it is a multiple of 64.
78723         Rearrange loop exit tests so as to avoid performing an
78724         additional fread after encountering an error or EOF.
78725         * lib/realloc.c: Update copyright date.
78726
78727 2003-08-15  Jim Meyering  <jim@meyering.net>
78728         and Paul Eggert  <eggert@twinsun.com>
78729
78730         Merge from coreutils.
78731         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
78732         member but strut utmpx does not.  Needed for AIX 4.3.3.
78733         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
78734
78735 2003-08-15  Jim Meyering  <jim@meyering.net>
78736         and Paul Eggert  <eggert@cs.ucla.edu>
78737
78738         Merges from coreutils, etc.
78739         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
78740         Require gl_FUNC_TZSET_CLOBBER.
78741         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
78742         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
78743         members.
78744
78745 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78746
78747         Help the merge from coreutils.
78748         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
78749         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
78750         * m4/tzset.m4: Use it too.
78751
78752 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78753
78754         * modules/tzset: New file.
78755
78756 2003-08-14  Jim Meyering  <jim@meyering.net>
78757
78758         Merges from coreutils.
78759         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
78760         variable names, rather than @FNMATCH_H@.
78761         * modules/alloca: Likewise for $(ALLOCA_H).
78762
78763         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
78764         the three copies of the literal target, `fnmatch.h'.
78765         * modules/alloca (alloca.h): Likewise.
78766
78767 2003-08-14  Jim Meyering  <jim@meyering.net>
78768
78769         Merge from coreutils.
78770         * m4/tzset.m4: New file.
78771         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
78772         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
78773         otherwise, AIX 5.1 systems would end up using the latter.
78774         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
78775         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
78776         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
78777         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
78778
78779 2003-08-14  Jim Meyering  <jim@meyering.net>
78780
78781         Merge from coreutils.
78782         * lib/obstack.h: Whitespace changes.
78783         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
78784         and xcalloc return values.
78785         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
78786         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
78787         hang on OSF/1 5.1 for DIR on both local and remote file systems.
78788         Reported by (and fix confirmed by) Nelson H. F. Beebe.
78789         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78790         error from mntctl.
78791         Use mntctl's return value to drive the entry-processing loop, since
78792         we can't rely on the value of the vmt_length member in the last
78793         entry.  On some systems doing so could result in exhausting
78794         virtual memory.  Based in part on a patch from Mike Jetzer.
78795
78796 2003-08-14  Jim Meyering  <jim@meyering.net>
78797         and Paul Eggert  <eggert@twinsun.com>
78798
78799         Merges from coreutils, plus other fixes.
78800         * lib/physmem.c: Merge in portability changes from gcc/libiberty
78801         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
78802         for credits and details.  Thanks to Kaveh Ghazi for helping
78803         to keep these files in sync.
78804         (ARRAY_SIZE): Define it.
78805         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
78806         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
78807         (memcasecmp): Don't assume size_t fits in unsigned int.
78808         Remove casts and duplicate code.
78809         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
78810         (memcpy): Remove definition.
78811         Merge in some clean-up and optimization changes from glibc.
78812         [BLOCKSIZE]: Move definition to top of file.
78813         Ensure that it is a multiple of 64.
78814         Rearrange loop exit tests so as to avoid performing an
78815         additional fread after encountering an error or EOF.
78816         * lib/md5.h (md5_uintptr): Define.
78817         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
78818         return to the initial working directory.  Preserve errno
78819         for caller.
78820         * lib/idcache.c: Include "xalloc.h".
78821         (xmalloc, xrealloc): Remove decls.
78822         (getuser): Remove casts no longer required in C89.
78823         * lib/human.c: Include stdio.h, for sprintf.
78824         * lib/group-member.c: Include "xalloc.h".
78825         (xmalloc, xrealloc): Remove decls.
78826         (get_group_info): Remove casts no longer required in C89.
78827         * lib/getusershell.c (readname): Remove casts no longer required in
78828         C89.
78829         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
78830         * lib/getline.c: Whitespace fix, from coreutils.
78831
78832 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78833
78834         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
78835         Check for isascii.
78836
78837         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
78838         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
78839         Undo previous (whitespace-only) change.
78840
78841 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78842
78843         * lib/exclude.c: Include <ctype.h>
78844         (IN_CTYPE_DOMAIN): New macro.
78845         (is_space): New fn.
78846         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
78847         and empty lines.
78848
78849         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
78850         Undo previous (whitespace-only) change.
78851
78852 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78853
78854         * config/srclist-update: Change update back to the old behavior,
78855         leaving whitespace alone.  Use one 'sed' command rather than a
78856         pipeline.
78857         (fixlicense): Now a variable, not a function.
78858         (remove_trailing_blanks): Remove.
78859         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
78860         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
78861         Undo previous (whitespace-only) change.
78862
78863 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78864
78865         Merge from coreutils.
78866         * modules/euidaccess: Add lib_SOURCES, include for new
78867         file euidaccess.h
78868
78869 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78870
78871         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
78872         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
78873         Normalize leading white space and remove trailing white space.
78874
78875         Merge from coreutils
78876         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
78877
78878         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
78879         0.12.1.  These files are now being upgraded automatically by
78880         ../config/srclist-update.
78881
78882 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78883
78884         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
78885         Normalize leading white space and remove trailing white space.
78886         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
78887         notice, as per ../config/srclist-update.
78888
78889         Merge from coreutils.
78890         * lib/euidaccess.h: New file.
78891         * lib/euidaccess.c: Include it.
78892         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
78893         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
78894         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
78895
78896 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78897
78898         * config/srclist-update: Add copyright notice.
78899         (remove_id_lines, remove_trailing_blanks): New constants.
78900         (fixfile): Use them to normalize spacing a bit in copied files.
78901         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
78902         Normalize leading white space and remove trailing white space.
78903
78904         * config/texinfo.tex: Sync with texinfo.
78905
78906         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
78907         strtoul.c from libc, to merge coreutils whitespace changes.
78908
78909         * config/srclist.txt: Get the following m4 files from gettext:
78910         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
78911         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
78912         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
78913         wint_t.m4.
78914
78915 2003-08-12  Karl Berry  <karl@gnu.org>
78916
78917         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
78918         been made.
78919
78920 2003-08-11  Paul Eggert  <eggert@twinsun.com>
78921
78922         * modules/gnu-source, m4/gnu-source.m4:
78923         Remove; we're assuming Autoconf 2.54 or later now.
78924         Suggested by Bruno Haible.
78925         * MODULES.html.sh (func_all_modules): Remove gnu-source.
78926
78927 2003-08-11  Bruno Haible  <bruno@clisp.org>
78928
78929         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
78930
78931 2003-08-11  Bruno Haible  <bruno@clisp.org>
78932
78933         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
78934         (vasnprintf): Use it instead of wcslen.
78935
78936 2003-08-11  Bruno Haible  <bruno@clisp.org>
78937
78938         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
78939         value to ensure that _Bool promotes to int. Use #define for _Bool when
78940         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
78941
78942 2003-08-10  Karl Berry  <karl@gnu.org>
78943
78944         * lib/regex.h: update from libc (whitespace fix).
78945
78946 2003-08-09  Paul Eggert  <eggert@twinsun.com>
78947
78948         Merge some files from coreutils.  These changes were
78949         originally made by Jim Meyering.
78950         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
78951         many older Unixes require this.
78952         * lib/alloca.c (alloca): Remove cast to argument of free;
78953         no longer needed in C89.
78954         * lib/alloca_.h, regex.h: Fix white space to match
78955         what GNU indent does.
78956
78957 2003-08-09  Paul Eggert  <eggert@twinsun.com>
78958
78959         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
78960         apparently Emacs's Unicode mode got confused before my 2003-08-05
78961         checkin.
78962
78963 2003-08-08  Paul Eggert  <eggert@twinsun.com>
78964
78965         * m4/extensions.m4: New file.
78966         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
78967         Require gl_USE_SYSTEM_EXTENSIONS.
78968         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
78969         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
78970
78971 2003-08-08  Paul Eggert  <eggert@twinsun.com>
78972
78973         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
78974         * modules/extensions, modules/gnu-source: New files.
78975         * modules/timespec, modules/unlocked-io: Depend on extensions.
78976
78977 2003-08-07  Paul Eggert  <eggert@twinsun.com>
78978
78979         * modules/restrict: New file.
78980         * MODULES.html.sh (func_all_modules): Add restrict.
78981         * modules/regex: Depend on restrict.
78982
78983 2003-08-07  Paul Eggert  <eggert@twinsun.com>
78984
78985         * m4/restrict.m4: New file.
78986         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
78987
78988 2003-08-07  Bruno Haible  <bruno@clisp.org>
78989
78990         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
78991         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
78992
78993 2003-08-07  Bruno Haible  <bruno@clisp.org>
78994
78995         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
78996         makes the module 'getndelim2' compatible with the module 'getline'.
78997
78998 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78999
79000         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
79001         byte with "\201" to avoid glitches when editing that source file
79002         with multi-gnome-terminal.
79003
79004 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79005
79006         * lib/bumpalloc.h: Remove.
79007
79008 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79009
79010         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
79011         * modules/bumpalloc: Remove.
79012
79013 2003-08-04  Paul Eggert  <eggert@twinsun.com>
79014
79015         * lib/getloadavg.c: Change copyright notice and spacing to conform to
79016         GNU coding style.
79017
79018         Merge from coreutils.
79019         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
79020         1. From glibc.
79021         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
79022         from Karl Berry, implemented by Jim Meyering.
79023         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
79024         from Dmitry V. Levin.
79025         Remove anachronistic cast of xrealloc.
79026         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
79027         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
79028         type. Otherwise, it wouldn't compile with at least /bin/cc on
79029         ymp-cray-unicos9.0.2.X.
79030         Combine two mostly-identical uses of alloca into one.
79031         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
79032
79033 2003-08-04  Dave Love  <d.love@dl.ac.uk>
79034
79035         [From Emacs.]
79036
79037         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
79038         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
79039         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
79040         obsolete NLIST_NAME_UNION.
79041         [__GNU__]: Undef BSD and FSCALE.
79042         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
79043
79044 2003-08-03  Paul Eggert  <eggert@twinsun.com>
79045
79046         * lib/stdbool_.h (_Bool): Make it signed char, instead of
79047         an enum type, so that it's guaranteed to promote to int.  See:
79048         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
79049
79050 2003-08-03  Karl Berry  <karl@gnu.org>
79051
79052         * config/depcomp: update from automake.
79053
79054 2003-07-31  Paul Eggert  <eggert@twinsun.com>
79055
79056         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
79057         (strerror): Don't assume that a printable int fits in 14 bytes.
79058
79059 2003-07-31  Bruno Haible  <bruno@clisp.org>
79060
79061         * modules/getpass-gnu: New file.
79062         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
79063
79064 2003-07-31  Bruno Haible  <bruno@clisp.org>
79065
79066         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
79067
79068 2003-07-24  Karl Berry  <karl@gnu.org>
79069
79070         * config/missing: update from automake.
79071
79072 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
79073             Bruno Haible  <bruno@clisp.org>
79074
79075         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
79076         * lib/getline.c (getline, getdelim): Likewise.
79077         Remove _GNU_SOURCE define; now it's defined in config.h through
79078         m4/getline.m4.
79079
79080 2003-07-23  Karl Berry  <karl@gnu.org>
79081
79082         * config/config.sub: update from prep.
79083
79084 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79085
79086         * modules/xalloc (Depends-on): Add exitfail.
79087         * modules/xmemcoll: Likewise.
79088
79089 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79090
79091         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
79092         over-parenthesization in macros.
79093
79094         Sync with coreutils.
79095
79096         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
79097         required by C99.
79098
79099         Use `exit_failure' for xalloc and xmemcoll instead of their own
79100         private exit-failure variables.
79101         * lib/xalloc.h (xalloc_exit_failure): Remove.
79102         * lib/xmalloc.c: Likewise.  Include exitfail.h.
79103         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
79104         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
79105         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
79106         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
79107
79108 2003-07-20  Jim Meyering  <jim@meyering.net>
79109
79110         * modules/closeout (Depends-on): Add exitfail.
79111         Suggestion from Bruno Haible.
79112
79113 2003-07-19  Karl Berry  <karl@gnu.org>
79114
79115         * config/config.sub: update from prep.
79116
79117 2003-07-18  Paul Eggert  <eggert@twinsun.com>
79118
79119         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
79120         Remove.
79121         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
79122         to test that it can stand by itself.  Include "exitfail.h".
79123         Clients should set exit_failure instead.
79124         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
79125
79126 2003-07-18  Bruno Haible  <bruno@clisp.org>
79127
79128         * modules/getndelim2: New file.
79129         * modules/getline: Share files with module getndelim2.
79130         * modules/getnline: Depend on getndelim2 instead of sharing files with
79131         it. Add getnline.c to lib_SOURCES.
79132         * MODULES.html.sh (func_all_modules): Add getndelim2.
79133
79134 2003-07-18  Bruno Haible  <bruno@clisp.org>
79135
79136         * m4/getndelim2.m4: New file.
79137         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
79138         invoke gl_PREREQ_GETNDELIM2.
79139         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
79140         gl_PREREQ_GETNDELIM2.
79141         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
79142         gl_GETNDELIM2.
79143
79144 2003-07-18  Bruno Haible  <bruno@clisp.org>
79145
79146         * lib/getndelim2.h: New file.
79147         * lib/getndelim2.c: Make into a module of its own. Include config.h,
79148         getndelim2.h.
79149         (getndelim2): Make non-static. Change return type to ssize_t.
79150         * lib/getline.h: Change argument names.
79151         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
79152         * lib/getnline.c: Include getndelim2.h.
79153
79154 2003-07-18  Andreas Schwab  <schwab@suse.de>
79155
79156         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
79157
79158 2003-07-17  Karl Berry  <karl@gnu.org>
79159
79160         * config/config.sub: update from prep.
79161
79162 2003-07-17  Bruno Haible  <bruno@clisp.org>
79163
79164         * modules/getnline: New file.
79165         * modules/getline: Add lib/getndelim2.c to source file list.
79166         * MODULES.html.sh (func_all_modules): Add getnline.
79167
79168 2003-07-17  Bruno Haible  <bruno@clisp.org>
79169
79170         * m4/getnline.m4: New file.
79171
79172 2003-07-17  Bruno Haible  <bruno@clisp.org>
79173
79174         * m4/Makefile.am.in: Remove file.
79175         * m4/Makefile.am: Remove file.
79176         * m4/Makefile.in: Remove file.
79177
79178 2003-07-17  Bruno Haible  <bruno@clisp.org>
79179
79180         * lib/getnline.h: New file.
79181         * lib/getnline.c: New file.
79182         * lib/getndelim2.c: New file, extracted from getline.c.
79183         (getndelim2): Renamed from getdelim2, with added nmax argument.
79184         * lib/getline.c: Include getndelim2.c.
79185         (getdelim2): Moved out to getndelim2.c.
79186         (getline, getdelim): Update.
79187
79188 2003-07-17  Bruno Haible  <bruno@clisp.org>
79189
79190         * lib/Makefile.am: Remove file.
79191         * lib/Makefile.in: Remove file.
79192
79193 2003-07-17  Bruno Haible  <bruno@clisp.org>
79194
79195         * configure.in: Remove file.
79196         * Makefile.in: Remove file.
79197
79198 2003-07-17  Bruno Haible  <bruno@clisp.org>
79199
79200         * MODULES.html.sh: Put the </BODY> right before </HTML>.
79201
79202 2003-07-16  Karl Berry  <karl@gnu.org>
79203
79204         * config/srclist-update: was running fixlicense twice, which caused
79205                 texinfo.tex to be nullified for some reason.  Simplify,
79206                 $gplsrc is no longer needed as far as I can see?
79207
79208 2003-07-16  Jim Meyering  <jim@meyering.net>
79209
79210         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
79211
79212 2003-07-15  Paul Eggert  <eggert@twinsun.com>
79213
79214         * config/srclist.txt: Get the following files from gettext-runtime/intl
79215         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
79216         ref-del.sin.  From Bruno Haible.
79217         * config/srclist-update (fixfile): Change grep pattern again, since the
79218         previous fix didn't work (there was another trailing $).  Use
79219         '[$]' to escape the $s.
79220
79221 2003-07-15  Karl Berry  <karl@gnu.org>
79222
79223         * lib/vasnprintf.c: update from gettext.
79224
79225 2003-07-15  Karl Berry  <karl@gnu.org>
79226
79227         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
79228         gets expanded when surrounded by '$'.
79229
79230 2003-07-15  Jim Meyering  <jim@meyering.net>
79231
79232         * modules/save-cwd: Don't depend on error.  From Derek Price.
79233
79234 2003-07-15  Jim Meyering  <jim@meyering.net>
79235
79236         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
79237
79238 2003-07-14  Simon Josefsson  <jas@extundo.com>
79239
79240         * modules/mempcpy: New file.
79241         * MODULES.html.sh (func_all_modules): Add mempcpy.
79242
79243 2003-07-14  Simon Josefsson  <jas@extundo.com>
79244
79245         * m4/mempcpy.m4: New file.
79246
79247 2003-07-14  Simon Josefsson  <jas@extundo.com>
79248
79249         * lib/mempcpy.h: New file.
79250         * lib/mempcpy.c: New file.
79251
79252 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79253
79254         * modules/getdate, modules/posixtm: Depend on mktime.
79255
79256 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79257
79258         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
79259         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
79260         unicodeio.c, unicodeio.h, unlocked-io.h:
79261         Switch from LGPL to GPL.
79262
79263 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79264
79265         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
79266         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
79267         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
79268         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
79269         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
79270         updated automatically by ../config/srclist-update.  This changes
79271         their license from LPGL to GPL.
79272
79273 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79274
79275         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
79276         assumed to refer to the root of the most recent stable gettext version.
79277         * config/srclistvars.sh: Add defaults for eggert.
79278         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
79279         Match "This program" as well as "The program".  This is needed
79280         for gettext.
79281
79282 2003-07-14  Jim Meyering  <jim@meyering.net>
79283
79284         Don't emit diagnostics.  Let callers do that.
79285         * lib/save-cwd.c: Don't include "error.h".
79286         (save_cwd): Don't call error.  Ensure that errno is valid
79287         when returning nonzero.
79288
79289         * lib/save-cwd.h (restore_cwd): Update prototype.
79290         * lib/save-cwd.c (restore_cwd): Remove two parameters.
79291         Simplify.  Don't call error upon failure.  Let callers do that.
79292         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
79293         when auditing is enabled.  But don't bother updating the #if.
79294
79295 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
79296
79297         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
79298         it breaks C++ compilation.
79299         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
79300
79301 2003-07-10  Simon Josefsson  <jas@extundo.com>
79302
79303         * modules/strchrnul (Makefile.am): Add strchrnul.h.
79304
79305 2003-07-10  Jim Meyering  <jim@meyering.net>
79306
79307         * m4/clock_time.m4: Remove trailing blank.
79308         * m4/intmax_t.m4: Likewise.
79309
79310 2003-07-10  Jim Meyering  <jim@meyering.net>
79311
79312         * lib/vasnprintf.c: Remove trailing blanks.
79313         Make cpp indentation consistent.
79314
79315 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79316
79317         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
79318         posixver.c, strftime.c, strnlen.c, strverscmp.c:
79319         Switch from LGPL to GPL.
79320
79321 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79322
79323         * config/srclist.txt: Sort sublists.  Add
79324         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
79325         that differ from gnulib for one reason or another; we'd like this list
79326         to be smaller but for now let's document what we have.
79327
79328 2003-07-08  Paul Eggert  <eggert@twinsun.com>
79329
79330         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
79331         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
79332         and sweeter "eval x=$x".
79333         * config/srclist.txt: Get lib/argp* from glibc.
79334
79335 2003-07-07  Paul Eggert  <eggert@twinsun.com>
79336
79337         * lib/mktime.c: Fix some boundary cases and remove need for floating
79338         point.
79339
79340         Issue a compile-time diagnostic if time_t is floating point, or if
79341         two's complement arithmetic is not in effect, or if arithmetic
79342         right shift does not propagate the sign.  These assumptions were
79343         all in the original code but they weren't checked.
79344
79345         (TIME_T_MIDPOINT, verify): New macros.
79346         (__isleap): Remove; it has integer overflow problems.
79347         (leapyear): New function, without those problems.
79348         (ydhms_tm_diff): Remove; splitting into two parts.
79349         (ydhms_diff): New function, containing the arithmetic part of
79350         the old ydhms_tm_diff function.  Issue a compile-time
79351         diagnostic if we are not using C99 integer division.
79352         Avoid casts when possible.
79353         (guess_time_tm): New function, containing the checking part of
79354         the old ydhms_tm_diff function.  Return the new value, rather than
79355         the difference between it and the old.  Accept a new argument T
79356         so that *T specifies the old value.  Check for overflow in the result.
79357
79358         (__mktime_internal): Use a time_t offset, not a long int offset.
79359         This undoes the 2003-06-04 change, which is no longer needed now
79360         that we have better overflow checking.
79361         (localtime_offset): Likewise.
79362
79363         (__mktime_internal): Avoid harmful overflow on hosts where time_t
79364         and long are 64-bit but int is only 32-bit.
79365         (ydhms_diff): Use long int to store year1 and yday1.
79366         Issue a compile-time diagnostic if long int is not wide enough.
79367
79368         (__mktime_internal): Use long int to store adjusted year and yday.
79369         Use plain C rather than preprocessor commands, if that doesn't
79370         affect efficiency.
79371         Check for overflow (and try to repair) after each probe
79372         rather than checking only at the very end.  This avoids some bugs
79373         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
79374         does not equal GMT offset at maximum time).
79375         Use integer to check for overflow rather than floating point; this
79376         is more portable to non-IEEE hosts, and is a tad faster.
79377         When we detect that we are oscillating between two values,
79378         don't check whether tm_isdst has the requested value, since
79379         we already know the answer.  When tm_isdst has the wrong value,
79380         use a different heuristic to find the right one, based on the
79381         extreme values actually observed in practice in tz2003a,
79382         rather than the (overly optimistic) "previous 3 calendar quarters".
79383
79384         (not_equal_tm, print_tm, check_result): Use "const T" rather than
79385         "T const" to accommodate glibc style.
79386         (check_result): Use less-confusing report format.  "long" -> "long int.
79387         (main): Likewise.
79388         Don't loop if the iteration overflows time_t.
79389         Allow a negative step in the iteration.
79390
79391 2003-07-06  Karl Berry  <karl@gnu.org>
79392
79393         * config/depcomp: update from automake.
79394         * config/config.sub: update from prep.
79395
79396 2003-07-03  Karl Berry  <karl@gnu.org>
79397
79398         * config/config.guess: update from prep.
79399
79400 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79401
79402         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
79403         xreadlink.c now includes it unconditionally.
79404
79405 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79406
79407         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
79408         having it depend on HAVE_SYS_TYPES_H.
79409
79410 2003-07-01  Bruno Haible  <bruno@clisp.org>
79411
79412         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
79413         <sys/types.h> should be sufficient.
79414         Reported by Paul Eggert.
79415
79416 2003-06-26  Karl Berry  <karl@gnu.org>
79417
79418         * config/depcomp: update from automake.
79419
79420 2003-06-26  Bruno Haible  <bruno@clisp.org>
79421
79422         * modules/human: Depend on module stdbool.
79423
79424 2003-06-25  Bruno Haible  <bruno@clisp.org>
79425
79426         * modules/readlink: New file.
79427         * modules/xreadlink: Depend on it.
79428         * MODULES.html.sh (func_all_modules): Add readlink.
79429
79430 2003-06-25  Bruno Haible  <bruno@clisp.org>
79431
79432         * m4/readlink.m4: New file.
79433
79434 2003-06-25  Bruno Haible  <bruno@clisp.org>
79435
79436         * lib/readlink.c: New file.
79437
79438 2003-06-22  Karl Berry  <karl@gnu.org>
79439
79440         * config/srclist.txt: update mkinstalldirs from automake.
79441         * config/mkinstalldirs: update.
79442
79443 2003-06-22  Bruno Haible  <bruno@clisp.org>
79444
79445         Portability to mingw32.
79446         * m4/ssize_t.m4: New file, from GNU gettext.
79447         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
79448         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
79449
79450 2003-06-22  Bruno Haible  <bruno@clisp.org>
79451
79452         * modules/safe-read: Add m4/ssize_t.m4.
79453         * modules/xreadlink: Add m4/ssize_t.m4.
79454
79455 2003-06-20  Bruno Haible  <bruno@clisp.org>
79456
79457         Assume C89, so PARAMS isn't needed.
79458         * lib/unicodeio.h (PARAMS): Remove.
79459         * lib/unicodeio.c: Don't use PARAMS.
79460
79461 2003-06-18  Karl Berry  <karl@gnu.org>
79462
79463         * config/config.{guess,sub}: update from prep.
79464
79465 2003-06-18  Jim Meyering  <jim@meyering.net>
79466
79467         Merge changes from coreutils.
79468         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
79469         Remove explicit declarations of xmalloc and realloc.
79470         Include xalloc.h.
79471         (read_utmp): Remove anachronistic cast of xmalloc.
79472
79473 2003-06-17  Paul Eggert  <eggert@twinsun.com>
79474
79475         Assume C89, so PARAMS isn't needed.
79476         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
79477         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
79478         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
79479         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
79480         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
79481         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
79482         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
79483         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
79484         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
79485         lib/xstrtod.h, lib/xstrtol.h: Likewise.
79486         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
79487         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
79488         no longer needed. Anyway, config.h should always be included before any
79489         other file.
79490
79491 2003-06-11  Simon Josefsson  <jas@extundo.com>
79492
79493         * modules/sysexits: New file.
79494         * MODULES.html.sh (func_all_modules): Add sysexits.
79495
79496 2003-06-11  Simon Josefsson  <jas@extundo.com>
79497
79498         * lib/sysexit_.h: New file.
79499
79500 2003-06-11  Derek Price  <derek@ximbiot.com>
79501
79502         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
79503         necessary.
79504
79505 2003-06-11  Bruno Haible  <bruno@clisp.org>
79506
79507         * m4/sysexits.m4: New file.
79508
79509 2003-06-10  Simon Josefsson  <jas@extundo.com>
79510
79511         * lib/argp.h: New file, from glibc.
79512         * lib/argp-ba.c: New file, from glibc.
79513         * lib/argp-eexst.c: New file, from glibc.
79514         * lib/argp-fmtstream.c: New file, from glibc.
79515         * lib/argp-fmtstream.h: New file, from glibc.
79516         * lib/argp-fs-xinl.c: New file, from glibc.
79517         * lib/argp-help.c: New file, from glibc.
79518         * lib/argp-namefrob.h: New file, from glibc.
79519         * lib/argp-parse.c: New file, from glibc.
79520         * lib/argp-pv.c: New file, from glibc.
79521         * lib/argp-pvh.c: New file, from glibc.
79522         * lib/argp-xinl.c: New file, from glibc.
79523
79524 2003-06-10  Simon Josefsson  <jas@extundo.com>
79525
79526         * modules/strchrnul: New file.
79527
79528 2003-06-10  Simon Josefsson  <jas@extundo.com>
79529
79530         * modules/argp: New file.
79531
79532 2003-06-10  Simon Josefsson  <jas@extundo.com>
79533
79534         * m4/strchrnul.m4: New file.
79535
79536 2003-06-10  Simon Josefsson  <jas@extundo.com>
79537
79538         * lib/strchrnul.h: New file.
79539         * lib/strchrnul.c: New file.
79540
79541 2003-06-10  Bruno Haible  <bruno@clisp.org>
79542
79543         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
79544
79545 2003-06-07  Karl Berry  <karl@gnu.org>
79546
79547         * config/config.{guess,sub}: update from prep.
79548
79549 2003-06-07  Jim Meyering  <jim@meyering.net>
79550
79551         * modules/strtod: Use $(...) notation, not @...@ for
79552         AC_REPLACE'd variables.
79553         * modules/localcharset: Likewise.
79554
79555 2003-06-07  Jim Meyering  <jim@meyering.net>
79556
79557         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
79558         in place of my name in the copyright comment.
79559         Remove definition and uses of __P.
79560
79561         From coreutils.
79562         * lib/stat.c: Don't declare xmalloc explicitly.
79563         Instead, include "xalloc.h".
79564         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
79565         xrealloc, and xcalloc return values.
79566         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
79567         Improve comment.
79568         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
79569
79570 2003-06-07  Bruno Haible  <bruno@clisp.org>
79571
79572         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
79573         avoid AC_CONFIG_LINKS.
79574         * modules/fnmatch (Makefile.am): Use explicit creation rule for
79575         fnmatch.h, to avoid AC_CONFIG_LINKS.
79576         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
79577
79578 2003-06-07  Bruno Haible  <bruno@clisp.org>
79579
79580         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
79581         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
79582         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79583         directory.
79584         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
79585         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79586         directory.
79587
79588 2003-06-06  Jim Meyering  <jim@meyering.net>
79589
79590         Merge from coreutils.
79591         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
79592         Consolidate declarations and initializations of *_base* locals.
79593
79594         Merge from coreutils.
79595         This avoids a core dump on systems without GNU putenv,
79596         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
79597         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
79598         (unsetenv): New static function, from GNU libc.
79599         (rpl_putenv): Use it.
79600
79601         * lib/modechange.c: Remove trailing blanks.
79602
79603         Merge from coreutils.
79604         * lib/fsusage.c: Remove declaration of statfs.
79605         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
79606
79607         * lib/posixtm.c: Include <stdbool.h> unconditionally.
79608
79609 2003-06-06  Jim Meyering  <jim@meyering.net>
79610
79611         * lib/stdbool_.h: Renamed from stdbool.h.in.
79612
79613 2003-06-06  Jim Meyering  <jim@meyering.net>
79614             Bruno Haible  <bruno@clisp.org>
79615
79616         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
79617         Adjust Makefile.am snippet not to redirect directly to target.
79618         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
79619
79620 2003-06-05  Paul Eggert  <eggert@twinsun.com>
79621
79622         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
79623         mismatch, look in future quarters as well as past.  This fixes a
79624         bug when processing fall-backwards gaps immediately after a long
79625         period of daylight-saving time.
79626
79627         * lib/mktime.c: Assume freestanding C89 or better.
79628         (HAVE_LIMITS_H): Remove.  Assume it's 1.
79629         (__P): Remove; not used.
79630         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
79631         (mktime, not_equal_tm, print_tm, check_result,
79632         main): Use prototypes.  Use const * where appropriate.
79633         (main): Fix typo in testing code that uncovered by above changes.
79634         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
79635
79636 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79637
79638         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
79639         locale.h, localeconv.  This merges changes from coreutils.
79640
79641         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
79642         It can be removed after the next Autoconf is released.
79643         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
79644         needed.
79645
79646 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79647
79648         * lib/mktime.c: Fix Debian bug 177940
79649         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
79650         (localtime_offset): Now long int, not time_t, because we want it
79651         to be guaranteed to be signed.  All uses changed.
79652         (__mktime_internal): If overflow would occur when adding offset,
79653         don't add it.
79654
79655         Merge 'human' changes from coreutils.  Rewrite to support
79656         locale-specific notations like thousands separators.
79657         * lib/human.c: Simplify authorship notice.
79658         Include human.h immediately after config.h.
79659         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
79660         <limits.h>: Do not include, since human.h does.
79661         (SIZE_MAX, UINTMAX_MAX): New macros.
79662         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
79663         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
79664         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
79665         (power_letter): Renamed from suffixes.
79666         (generate_suffix_backwards): Remove.
79667         (adjust_value): Now takes int style (because of human.h changes)
79668         and long double value (for greater precision on some platforms).
79669         (group_number): New function.
79670         (human_readable): Use it.  Use integer options, not enum.
79671         Put the options before the sizes in the arg list.
79672         Support all the new options.
79673         The old human_readable function has been removed;
79674         use inttostr.h instead.
79675         (human_readable, default_block_size, humblock):
79676         Use uintmax_t, not int, for block sizes.
79677         (human_readable_inexact, block_size_types): Remove.
79678         (block_size_opts): New constant.
79679         (human_options): Renamed from human_block_size, with new signature
79680         that allows block sizes up to UINTMAX_MAX.  All callers changed.
79681         * lib/human.h: Add copyright and authorship notice.
79682         Include <limits.h> and <stdbool.h> unconditionally.
79683         (PARAMS): Remove.  All uses removed.
79684         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
79685         (enum human_inexact_style): Remove tag; now a nameless enum.
79686         (human_floor, human_ceiling, human_round_to_even): Now have
79687         values 2, 0, 1 rather than -1, 1, 0.
79688         (human_group_digits, human_suppress_point_zero, human_autoscale,
79689         human_base_1024, human_SI, human_B): New constants.
79690         (human_readable_inexact, human_block_size): Remove.
79691         (human_readable): Size args are now uintmax_t, not int.
79692         (human_options): New decl.
79693
79694         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
79695         unnecessary now that we assume C89 or better.  This change
79696         imported from coreutils.
79697
79698         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79699         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
79700         in the 2003-05-30 sync from glibc.
79701
79702         .h files should stand alone, but we shouldn't include <sys/types.h>
79703         if we can get away with just <stddef.h>.
79704
79705         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
79706         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
79707         rather than <sys/types.h>, as we merely need size_t.
79708         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
79709         to get size_t.
79710         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
79711         Include <stdio.h>, to get FILE.
79712         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
79713         memcasecmp.h has included <stddef.h> and all we need is size_t.
79714         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
79715         our interface, instead of including <sys/types.h>
79716
79717 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79718
79719         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
79720         now, as glibc mktime is buggy on non-glibc systems.
79721
79722 2003-06-03  Karl Berry  <karl@gnu.org>
79723
79724         * config/config.sub: update from prep.
79725
79726 2003-06-02  Paul Eggert  <eggert@twinsun.com>
79727
79728         [from coreutils]
79729         Fix some minor time-related bugs with POSIX time arguments.
79730         Some valid time stamps were being rejected (notably -1, and
79731         time stamps before 1900 on 64-bit hosts).  And some invalid
79732         time stamps were being accepted, e.g. September 31.
79733
79734         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
79735         that we can return (time_t) -1 successfully.
79736         * lib/posixtm.c: Likewise.
79737         [HAVE_STDBOOL_H]: Include <stdbool.h>.
79738         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
79739         (t): Remove static var.
79740         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
79741         of static var.  All uses changed.
79742         (year): Do not reject years before 1900; they can occur with
79743         64-bit time_t.
79744         (posix_time_parse): Do not check for out-of-range components;
79745         that is now the caller's responsibility, since our checks were
79746         only approximations.
79747         (posixtime): Use mktime to check for out-of-range components,
79748         since it knows them exactly.
79749         If mktime returns (time_t) -1, check whether an error actually occurred
79750         by invoking localtime on -1.
79751         (main) [TEST_POSIXTIME]: Check for input data errors, and report
79752         posixtime failures better.
79753         Improve the test data (in comments only).
79754
79755 2003-06-02  Karl Berry  <karl@gnu.org>
79756
79757         * config/mkinstalldirs (version): new variable.
79758         (--version): new option.
79759         (usage): improve message.
79760
79761 2003-05-30  Karl Berry  <karl@gnu.org>
79762
79763         * lib/mktime.c: update from libc.
79764
79765 2003-05-30  Bruno Haible  <bruno@clisp.org>
79766
79767         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
79768         * config/config.rpath: Upgrade to gettext-0.12.1.
79769
79770 2003-05-30  Bruno Haible  <bruno@clisp.org>
79771
79772         * m4/gettext.m4: Upgrade to gettext-0.12.1.
79773         * m4/nls.m4: New file, from gettext-0.12.1.
79774         * m4/po.m4: New file, from gettext-0.12.1.
79775         * m4/progtest.m4: Upgrade to gettext-0.12.1.
79776
79777 2003-05-30  Bruno Haible  <bruno@clisp.org>
79778
79779         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
79780         * lib/localcharset.h: Likewise.
79781         * lib/localcharset.c: Likewise.
79782
79783 2003-05-29  Karl Berry  <karl@gnu.org>
79784
79785         * config/config.rpath: update from gettext.
79786
79787 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79788
79789         Assume the headers required for C89 freestanding compilers.
79790         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
79791         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
79792         * m4/human.m4 (gl_HUMAN): Likewise.
79793         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
79794         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
79795         * m4/userspec.m4 (gl_USERSPEC): Likewise.
79796         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
79797         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79798         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
79799
79800 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79801
79802         Assume the headers required for C89 freestanding compilers.
79803         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
79804         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
79805         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
79806         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
79807         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
79808         define, since <limits.h> is guaranteed to do that.
79809         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
79810         * lib/exclude.c: Include <stdbool.h> unconditionally.
79811         * lib/tempname.c: Include <stddef.h> unconditionally.
79812         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
79813         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
79814         <stddef.h> does that.
79815         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
79816         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
79817         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
79818         needed.
79819         * lib/xstrtol.c: Likewise.
79820         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
79821         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
79822
79823         * lib/addext.c (addext): Use assignment rather than cast, to avoid
79824         warnings on some platforms.
79825
79826         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79827         arbitrarily.
79828
79829 2003-05-26  Jim Meyering  <jim@meyering.net>
79830
79831         Merge in a change from coreutils:
79832         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
79833         that is guaranteed to be `no'.  Use `no_such_member' to indicate
79834         that condition, rather than `-1' which is slightly misleading.
79835         Change the name of the cache variable to have the gl_ prefix.
79836         Prompted by a patch from Richard Dawe for DJGPP.
79837
79838 2003-05-24  Karl Berry  <karl@gnu.org>
79839
79840         * config/config.guess: update from prep.
79841
79842 2003-05-22  Karl Berry  <karl@gnu.org>
79843
79844         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
79845
79846 2003-05-20  Karl Berry  <karl@gnu.org>
79847
79848         * config/config.guess: update from prep.
79849
79850 2003-05-18  Karl Berry  <karl@gnu.org>
79851
79852         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
79853         might actually be set by the user.
79854
79855         * config/depcomp, install-sh, mdate-sh: update from automake.
79856
79857 2003-05-17  Bruno Haible  <bruno@clisp.org>
79858
79859         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
79860         invalid expansion for AC_EGREP_CPP.
79861         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
79862         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
79863         Suggested by Akim Demaille <akim@epita.fr> in
79864         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
79865
79866 2003-05-12  Jim Meyering  <jim@meyering.net>
79867
79868         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
79869         the space-padded-by-default conversion specifiers, %e, %k, %l.
79870
79871 2003-05-12  Bruno Haible  <bruno@clisp.org>
79872
79873         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
79874         the string is longer than 4 KB.
79875
79876 2003-05-11  Karl Berry  <karl@gnu.org>
79877
79878         * config/config.{guess,sub}: update from prep.
79879
79880 2003-05-09  Bruno Haible  <bruno@clisp.org>
79881
79882         * modules/error: Add m4/strerror_r.m4 to file list.
79883
79884 2003-05-03  Bruno Haible  <bruno@clisp.org>
79885
79886         Upgrade to Unicode-4.0.
79887         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
79888         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
79889         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
79890         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
79891         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
79892         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
79893         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
79894         Change width of U+E0100..U+E01EF from 1 to 0.
79895
79896 2003-04-25  Jim Meyering  <jim@meyering.net>
79897
79898         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
79899         of type size_t, not int.
79900
79901 2003-04-25  Bruno Haible  <bruno@clisp.org>
79902
79903         * lib/copy-file.c: Include <stddef.h>, for size_t.
79904
79905 2003-04-21  Paul Eggert  <eggert@twinsun.com>
79906
79907         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
79908         code which expansion is under static control.  Patch imported from
79909         Akim Demaille's patch to Bison; see
79910         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
79911
79912 2003-04-14  Bruno Haible  <bruno@clisp.org>
79913
79914         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
79915
79916 2003-04-11  Jim Meyering  <jim@meyering.net>
79917
79918         Merge changes from Coreutils.
79919
79920         2003-03-22  Jim Meyering  <jim@meyering.net>
79921
79922         * lib/strftime.c (widen): Cast alloca return value to proper type.
79923
79924         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
79925
79926         From GNU libc.
79927         * lib/strftime.c (my_strftime): Handle very large width
79928         specifications for numeric values correctly.  Improve checks for
79929         overflow.
79930
79931         2003-01-19  Jim Meyering  <jim@meyering.net>
79932
79933         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
79934         definitions.
79935         (nl_get_alt_digit) [! defined my_strftime]: Define.
79936         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
79937         _nl_get_alt_digit and _nl_get_walt_digit.
79938
79939         * lib/strftime.c (my_strftime): Merge in locale-related changes from
79940         libc. These changes have no effect outside of _LIBC.
79941
79942 2003-04-10  Bruno Haible  <bruno@clisp.org>
79943
79944         * modules/findprog: New file.
79945         * MODULES.html.sh (func_all_modules): Add it.
79946
79947 2003-04-10  Bruno Haible  <bruno@clisp.org>
79948
79949         * m4/findprog.m4: New file.
79950         * m4/eaccess.m4: New file.
79951
79952 2003-04-10  Bruno Haible  <bruno@clisp.org>
79953
79954         * lib/findprog.h: New file, from GNU gettext.
79955         * lib/findprog.c: New file, from GNU gettext.
79956
79957 2003-04-05  Jim Meyering  <jim@meyering.net>
79958
79959         Merge changes from Coreutils.
79960
79961         * lib/exclude.h (PARAMS): Remove definition and uses.
79962         * lib/exclude.c: Remove uses of `PARAMS'.
79963
79964         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
79965         Add test-cases for DOS filenames. Declare program_name.
79966         (main): Set up program_name.  Patch by Rich Dawe.
79967
79968         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79969         error from mntctl.
79970         Use mntctl's return value to drive the entry-processing loop, since
79971         we can't rely on the value of the vmt_length member in the last
79972         entry.  On some systems doing so could result in exhausting
79973         virtual memory.  Based in part on a patch from Mike Jetzer.
79974
79975 2003-04-04  Bruno Haible  <bruno@clisp.org>
79976
79977         * modules/linebreak: New file.
79978         * MODULES.html.sh (func_all_modules): Add it.
79979
79980 2003-04-04  Bruno Haible  <bruno@clisp.org>
79981
79982         * m4/linebreak.m4: New file.
79983
79984 2003-04-04  Bruno Haible  <bruno@clisp.org>
79985
79986         * lib/linebreak.h: New file, from GNU gettext.
79987         * lib/linebreak.c: New file, from GNU gettext with slight
79988         modifications.
79989         * lib/lbrkprop.h: New file, from GNU gettext.
79990
79991 2003-04-03  Bruno Haible  <bruno@clisp.org>
79992
79993         * modules/utf8-ucs4: New file.
79994         * modules/utf16-ucs4: New file.
79995         * modules/ucs4-utf8: New file.
79996         * modules/ucs4-utf16: New file.
79997         * MODULES.html.sh (func_all_modules): Add them.
79998
79999 2003-04-03  Bruno Haible  <bruno@clisp.org>
80000
80001         * m4/utf-ucs4.m4: New file.
80002         * m4/ucs4-utf.m4: New file.
80003
80004 2003-04-03  Bruno Haible  <bruno@clisp.org>
80005
80006         * lib/utf8-ucs4.h: New file, from GNU gettext.
80007         * lib/utf16-ucs4.h: New file, from GNU gettext.
80008         * lib/ucs4-utf8.h: New file, from GNU gettext.
80009         * lib/ucs4-utf16.h: New file, from GNU gettext.
80010
80011 2003-04-02  Bruno Haible  <bruno@clisp.org>
80012
80013         * modules/binary-io: New file.
80014         * MODULES.html.sh (func_all_modules): Add it.
80015
80016 2003-04-02  Bruno Haible  <bruno@clisp.org>
80017
80018         * lib/binary-io.h: New file, from GNU gettext.
80019
80020 2003-04-01  Bruno Haible  <bruno@clisp.org>
80021
80022         * modules/pathname: New file.
80023         * MODULES.html.sh (func_all_modules): Add it.
80024
80025 2003-04-01  Bruno Haible  <bruno@clisp.org>
80026
80027         * lib/pathname.h: New file, from GNU gettext.
80028         * lib/concatpath.c: New file, from GNU gettext.
80029
80030 2003-03-30  Bruno Haible  <bruno@clisp.org>
80031
80032         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
80033
80034 2003-03-30  Bruno Haible  <bruno@clisp.org>
80035
80036         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
80037         function chown() doesn't exist.
80038
80039 2003-03-28  Bruno Haible  <bruno@clisp.org>
80040
80041         * modules/copy-file: New file.
80042         * MODULES.html.sh (func_all_modules): Add it.
80043
80044 2003-03-28  Bruno Haible  <bruno@clisp.org>
80045
80046         * m4/copy-file.m4: New file.
80047
80048 2003-03-28  Bruno Haible  <bruno@clisp.org>
80049
80050         * lib/copy-file.h: New file, from GNU gettext.
80051         * lib/copy-file.c: New file, from GNU gettext.
80052
80053 2003-03-18  Jim Meyering  <jim@meyering.net>
80054
80055         * lib/quote.c (quote_n): Fix typo in comment.
80056
80057 2003-03-18  Bruno Haible  <bruno@clisp.org>
80058
80059         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
80060         checking.
80061         * m4/onceonly_2_57.m4: Likewise.
80062
80063 2003-03-17  Bruno Haible  <bruno@clisp.org>
80064
80065         * m4/onceonly.m4: Require autoconf 2.54 or newer.
80066         (m4_quote): Remove macro.
80067         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
80068
80069 2003-03-14  Jim Meyering  <jim@meyering.net>
80070
80071         Merge changes from Coreutils.
80072         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
80073         to be const, in order to avoid warnings.
80074         (obstack_room): Likewise.
80075         (obstack_empty_p): Likewise.
80076
80077 2003-03-14  Bruno Haible  <bruno@clisp.org>
80078
80079         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
80080         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
80081
80082 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80083
80084         Merge changes from Bison.
80085         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
80086         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
80087         when compiling Bison 1.875's `bitset bset = obstack_alloc
80088         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
80089         * lib/hash.c: Include <stdbool.h> unconditionally.
80090
80091 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80092
80093         * m4/onceonly.m4 (m4_quote): New macro.
80094         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
80095         Quote AC_FOREACH variable-expansions properly.
80096
80097 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80098
80099         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
80100
80101 2003-03-09  Paul Eggert  <eggert@twinsun.com>
80102
80103         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
80104         Reported by Bruce Becker; see:
80105         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
80106
80107 2003-03-03  Paul Eggert  <eggert@twinsun.com>
80108             Bruno Haible  <bruno@clisp.org>
80109
80110         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
80111         Reported by John Hughes, see
80112         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
80113
80114 2003-02-20  Bruno Haible  <bruno@clisp.org>
80115
80116         * MODULES.html.sh (func_all_modules): Add poll.
80117
80118 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80119
80120         * modules/poll: New file.
80121
80122 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80123
80124         * lib/poll_.h: New file.
80125         * lib/poll.c: New file.
80126
80127 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80128
80129         * m4/poll.m4: New file.
80130
80131 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80132
80133         * modules/mathl: New file.
80134
80135 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80136
80137         * lib/mathl.h: New file.
80138         * lib/acosl.c: New file.
80139         * lib/asinl.c: New file.
80140         * lib/atanl.c: New file.
80141         * lib/ceill.c: New file.
80142         * lib/cosl.c: New file.
80143         * lib/expl.c: New file.
80144         * lib/floorl.c: New file.
80145         * lib/frexpl.c: New file.
80146         * lib/ldexpl.c: New file.
80147         * lib/logl.c: New file.
80148         * lib/sincosl.c: New file.
80149         * lib/sinl.c: New file.
80150         * lib/sqrtl.c: New file.
80151         * lib/tanl.c: New file.
80152         * lib/trigl.c: New file.
80153         * lib/trigl.h: New file.
80154
80155 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80156
80157         * m4/mathl.m4: New file.
80158
80159 2003-02-18  Bruno Haible  <bruno@clisp.org>
80160
80161         * MODULES.html.sh (func_all_modules): Add mathl.
80162
80163 2003-02-17  Bruno Haible  <bruno@clisp.org>
80164
80165         * modules/mkdtemp: New module.
80166         * MODULES.html.sh (func_all_modules): Add it.
80167
80168 2003-02-17  Bruno Haible  <bruno@clisp.org>
80169
80170         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
80171
80172 2003-02-17  Bruno Haible  <bruno@clisp.org>
80173
80174         * lib/mkdtemp.h: New file, from GNU gettext.
80175         * lib/mkdtemp.c: New file, from GNU gettext.
80176
80177 2003-02-02  Jim Meyering  <jim@meyering.net>
80178
80179         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
80180         e.g. glibc-2.2.93.
80181
80182 2003-01-31  Bruno Haible  <bruno@clisp.org>
80183
80184         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
80185         'rpl_rename'.
80186         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
80187         'rpl_strnlen'.
80188         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
80189         'rpl_strtod'.
80190         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
80191         'rpl_utime'.
80192
80193 2003-01-31  Bruno Haible  <bruno@clisp.org>
80194
80195         * lib/rename.c: #undef rename before defining rpl_rename.
80196         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
80197
80198 2003-01-30  Bruno Haible  <bruno@clisp.org>
80199
80200         * modules/vasnprintf, modules/vasprintf: New modules.
80201         * MODULES.html.sh (func_all_modules): Add them.
80202
80203 2003-01-30  Bruno Haible  <bruno@clisp.org>
80204
80205         * m4/signed.m4: New file, from GNU gettext.
80206         * m4/longdouble.m4: New file, from GNU gettext.
80207         * m4/wchar_t.m4: New file, from GNU gettext.
80208         * m4/wint_t.m4: New file, from GNU gettext.
80209         * m4/vasnprintf.m4: New file.
80210         * m4/vasprintf.m4: New file.
80211
80212 2003-01-30  Bruno Haible  <bruno@clisp.org>
80213
80214         * lib/printf-args.h: New file, from GNU gettext.
80215         * lib/printf-args.c: New file, from GNU gettext.
80216         * lib/printf-parse.h: New file, from GNU gettext.
80217         * lib/printf-parse.c: New file, from GNU gettext.
80218         * lib/vasnprintf.h: New file, from GNU gettext.
80219         * lib/vasnprintf.c: New file, from GNU gettext.
80220         * lib/asnprintf.c: New file, from GNU gettext.
80221         * lib/vasprintf.h: New file, from GNU gettext with modifications.
80222         * lib/vasprintf.c: New file, from GNU gettext.
80223         * lib/asprintf.c: New file, from GNU gettext.
80224
80225 2003-01-29  Bruno Haible  <bruno@clisp.org>
80226
80227         * modules/stpncpy: New module.
80228         * MODULES.html.sh (func_all_modules): Add it.
80229
80230 2003-01-29  Bruno Haible  <bruno@clisp.org>
80231
80232         * m4/stpncpy.m4: New file.
80233
80234 2003-01-29  Bruno Haible  <bruno@clisp.org>
80235
80236         * lib/stpncpy.h: New file, from GNU gettext with modifications.
80237         * lib/stpncpy.c: New file, from GNU gettext with modifications.
80238
80239 2003-01-28  Bruno Haible  <bruno@clisp.org>
80240
80241         * modules/c-ctype: New module.
80242         * MODULES.html.sh (func_all_modules): Add it.
80243
80244 2003-01-28  Bruno Haible  <bruno@clisp.org>
80245
80246         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
80247         Paul Eggert.
80248         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
80249         Paul Eggert.
80250
80251 2003-01-27  Bruno Haible  <bruno@clisp.org>
80252
80253         * modules/xsetenv: New module.
80254         * MODULES.html.sh (func_all_modules): Add it.
80255
80256 2003-01-27  Bruno Haible  <bruno@clisp.org>
80257
80258         * lib/xsetenv.h: New file, from GNU gettext.
80259         * lib/xsetenv.c: New file, from GNU gettext.
80260
80261 2003-01-23  Jim Meyering  <jim@meyering.net>
80262
80263         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
80264         from working on systems without dirfd (at least Irix and OSF1/Tru64).
80265
80266 2003-01-23  Bruno Haible  <bruno@clisp.org>
80267
80268         * modules/minmax: New module.
80269         * MODULES.html.sh (func_all_modules): Add it.
80270
80271 2003-01-23  Bruno Haible  <bruno@clisp.org>
80272
80273         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
80274         Eggert.
80275
80276 2003-01-22  Bruno Haible  <bruno@clisp.org>
80277
80278         * modules/exit: New module.
80279         * MODULES.html.sh (func_all_modules): Add it.
80280
80281 2003-01-22  Bruno Haible  <bruno@clisp.org>
80282
80283         * lib/exit.h: New file, from GNU gettext.
80284
80285 2003-01-19  Bruno Haible  <bruno@clisp.org>
80286
80287         * gnulib-tool: Recognize option --extract-maintainer.
80288         (func_get_maintainer): New function.
80289         * modules/*: Add Maintainer entry.
80290
80291 2003-01-16  Jim Meyering  <jim@meyering.net>
80292
80293         * m4/regex.m4: The `regex' struct is both input and output.
80294         Initialize it before each use.  Patch by Tim Waugh.
80295
80296 2003-01-16  Bruno Haible  <bruno@clisp.org>
80297
80298         * MODULES.html.sh: Add a table of contents. Add the module name as
80299         leftmost column. Add hyperlinks.
80300
80301 2003-01-15  Bruno Haible  <bruno@clisp.org>
80302
80303         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
80304
80305 2003-01-15  Bruno Haible  <bruno@clisp.org>
80306
80307         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
80308         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
80309         suffix.
80310
80311 2003-01-15  Bruno Haible  <bruno@clisp.org>
80312
80313         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
80314
80315 2003-01-15  Bruno Haible  <bruno@clisp.org>
80316
80317         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
80318         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
80319
80320 2003-01-14  Jim Meyering  <jim@meyering.net>
80321
80322         * lib/same.c (same_name): Tweak a comment.
80323
80324 2003-01-14  Bruno Haible  <bruno@clisp.org>
80325
80326         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
80327         when a string comparison is sufficient.
80328
80329 2003-01-14  Bruno Haible  <bruno@clisp.org>
80330
80331         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
80332         'unsigned int'.
80333
80334 2003-01-14  Bruno Haible  <bruno@clisp.org>
80335
80336         * lib/hash-pjw.c: Add comment about low quality of this function.
80337
80338 2003-01-13  Bruno Haible  <bruno@clisp.org>
80339
80340         * modules/stpcpy: Distribute lib/stpcpy.h.
80341         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
80342
80343 2003-01-13  Bruno Haible  <bruno@clisp.org>
80344
80345         * modules/*: Add a description.
80346         * modules/strpbrk: Fix Makefile.am snippet.
80347         * modules/strtoimax: Fix dependencies.
80348         * modules/strtoumax: Likewise.
80349
80350 2003-01-13  Bruno Haible  <bruno@clisp.org>
80351
80352         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
80353         * modules/alloca (Makefile.am): All object files depend on alloca.h.
80354         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
80355
80356 2003-01-13  Bruno Haible  <bruno@clisp.org>
80357
80358         * gnulib-tool (func_create_testdir): Store config/* files in the main
80359         directory.
80360         * config.rpath: Move to ...
80361         * config/config.rpath: ... here.
80362         * modules/gettext: Contains config/config.rpath, not config.rpath.
80363         * modules/iconv: Likewise.
80364
80365 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80366
80367         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80368         to avoid collisions with libcurses and libreadline.
80369
80370         * m4/getstr.m4: Remove.
80371         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
80372
80373 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80374
80375         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80376         to avoid collisions with libcurses and libreadline.
80377
80378         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
80379         * lib/getstr.h, getstr.c: Remove.
80380         * lib/getline.c: Include "getline.h", to check interface.
80381         Move body of old getstr.c here: this defines MIN_CHUNK and
80382         declares getdelim2, which is renamed from getstr.
80383         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
80384
80385         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
80386         All uses changed.
80387         * lib/linebuffer.h: Likewise.
80388         (readline): Remove backward-compatibility macro.
80389
80390 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80391
80392         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80393         to avoid collisions with libcurses and libreadline.
80394         * getstr: Remove.
80395         * MODULES.html.sh: Remove getstr.
80396         * modules/getline: Depend on unlocked-io, not getstr.
80397
80398 2003-01-12  Jim Meyering  <jim@meyering.net>
80399
80400         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
80401
80402 2003-01-10  Bruno Haible  <bruno@clisp.org>
80403
80404         * modules/alloca: Change Makefile.am requirements. Simplify Include
80405         requirements. Add lib/alloca_.h to file list.
80406
80407 2003-01-10  Bruno Haible  <bruno@clisp.org>
80408
80409         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
80410
80411 2003-01-10  Bruno Haible  <bruno@clisp.org>
80412
80413         * lib/alloca_.h: New file.
80414         * lib/getdate.y: Unconditionally include alloca.h.
80415         * lib/makepath.c: Likewise.
80416         * lib/setenv.c: Likewise.
80417         * lib/userspec.c: Likewise.
80418
80419 2003-01-09  Karl Berry  <karl@gnu.org>
80420
80421         * MODULES.html.sh: include `dirname $0` in PATH, to find
80422         gnulib-tool.
80423
80424 2003-01-09  Bruno Haible  <bruno@clisp.org>
80425
80426         * modules/stdbool: Change configure.ac, Makefile.am requirements.
80427         Simplify Include requirements. Add lib/stdbool.h.in to file list.
80428
80429 2003-01-09  Bruno Haible  <bruno@clisp.org>
80430
80431         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
80432
80433 2003-01-09  Bruno Haible  <bruno@clisp.org>
80434
80435         * lib/stdbool.h.in: New file.
80436
80437 2003-01-09  Bruno Haible  <bruno@clisp.org>
80438
80439         * gnulib-tool (func_all_modules): Ignore files ending in ~.
80440         * MODULES.html.sh: Likewise.
80441
80442 2003-01-08  Jim Meyering  <jim@meyering.net>
80443
80444         * lib/full-write.c: Undefine and define-away `const' after inclusion
80445         of errno.h, not before.  Suggestion from Bruno Haible.
80446
80447 2003-01-08  Bruno Haible  <bruno@clisp.org>
80448
80449         * modules/full-read: Depend on full-write.
80450
80451 2003-01-08  Bruno Haible  <bruno@clisp.org>
80452
80453         * lib/safe-read.c: Include specification header first, to ensure its
80454         selfcontainedness.
80455         * lib/full-write.c: Likewise.
80456
80457 2003-01-07  Jim Meyering  <jim@meyering.net>
80458
80459         * lib/full-write.c: Rework so that it may serve to define full_read,
80460         too.
80461         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
80462
80463 2003-01-07  Bruno Haible  <bruno@clisp.org>
80464
80465         * lib/strtoimax.c: Include <stdint.h> as an alternative to
80466         <inttypes.h>.
80467         * lib/xstrtol.h: Likewise.
80468         * lib/xstrtoimax.c: Likewise.
80469         * lib/xstrtoumax.c: Likewise.
80470         * lib/human.h: Likewise.
80471
80472         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
80473         on systems that have <inttypes.h> but not <stdint.h>.
80474
80475 2003-01-07  Bruno Haible  <bruno@clisp.org>
80476
80477         * MODULES.html.sh: Add copyright notice.
80478         (missed_files): Omit CVS directory entries.
80479         (func_module): Make it work with sed-3.02.
80480         * MODULES.txt: Remove file.
80481
80482 2003-01-06  Jim Meyering  <jim@meyering.net>
80483
80484         * lib/version-etc.c: Update year in translatable copyright string.
80485
80486 2003-01-03  Karl Berry  <karl@gnu.org>
80487
80488         * config/config.{guess,sub}: update from prep.
80489
80490 2003-01-02  Karl Berry  <karl@gnu.org>
80491
80492         * doc/COPYING.DOC: belatedly updated to 1.2.
80493
80494 2003-01-01  Karl Berry  <karl@gnu.org>
80495
80496         * gnulib-tool (func_verify_module): report module name $module in
80497         error message, not $1.
80498         * gnulib-tool (create-testdir): don't complain if destdir couldn't
80499         be created, only if it doesn't exist.
80500         * gnulib-tool (last_checkin_date): don't expand the $Date here.
80501
80502 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80503
80504         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
80505
80506 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80507
80508         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
80509         memcmp if strcoll doesn't work.
80510
80511 2002-12-31  Bruno Haible  <bruno@clisp.org>
80512
80513         * lib/utime.c (utime_null): No need to call ftruncate if the file was
80514         nonempty.
80515
80516 2002-12-31  Bruno Haible  <bruno@clisp.org>
80517
80518         * lib/memcoll.c (STRCOLL): New macro.
80519         (memcoll): Use it.
80520
80521 2002-12-31  Bruno Haible  <bruno@clisp.org>
80522
80523         * lib/localcharset.h: New file.
80524         * lib/localcharset.c: Include it.
80525         * lib/unicodeio.c: Likewise.
80526
80527 2002-12-31  Bruno Haible  <bruno@clisp.org>
80528
80529         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
80530         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
80531
80532 2002-12-31  Bruno Haible  <bruno@clisp.org>
80533
80534         * lib/getline.h: Include <stddef.h>, for size_t.
80535
80536         * lib/unicodeio.h: Include <stddef.h>, for size_t.
80537         * lib/unicodeio.c: Don't include <stddef.h>.
80538
80539 2002-12-31  Bruno Haible  <bruno@clisp.org>
80540
80541         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
80542         HAVE_TM_ZONE.
80543
80544 2002-12-24  Karl Berry  <karl@gnu.org>
80545
80546         * config/config.guess: update from prep.
80547
80548 2002-12-24  Bruno Haible  <bruno@clisp.org>
80549
80550         General infrasructure.
80551         * m4/README: Rewritten.
80552         * m4/onceonly.m4: New file.
80553         * m4/onceonly_2_57.m4: New file.
80554
80555         Module atexit.
80556         * m4/atexit.m4: New file.
80557
80558         Module strtod.
80559         * m4/strtod.m4: New file.
80560
80561         Module strtol.
80562         * m4/strtol.m4: New file.
80563
80564         Module strtoul.
80565         * m4/strtoul.m4: New file.
80566
80567         Module memchr.
80568         * m4/memchr.m4: New file.
80569
80570         Module memcmp.
80571         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
80572         (jm_FUNC_MEMCMP): Invoke it.
80573
80574         Module memcpy.
80575         * m4/memcpy.m4: New file.
80576
80577         Module memmove.
80578         * m4/memmove.m4: New file.
80579
80580         Module memset.
80581         * m4/memset.m4: New file.
80582
80583         Module strcspn.
80584         * m4/strcspn.m4: New file.
80585
80586         Module strpbrk.
80587         * m4/strpbrk.m4: New file.
80588
80589         Module strstr.
80590         * m4/strstr.m4: New file.
80591
80592         Module strerror.
80593         * m4/strerror.m4: New file.
80594
80595         Module mktime.
80596         * m4/mktime.m4: Renamed from jm-mktime.m4.
80597         (gl_PREREQ_MKTIME): New macro.
80598         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
80599
80600         Module malloc.
80601         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
80602         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
80603         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
80604
80605         Module realloc.
80606         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
80607         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
80608         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
80609
80610         Module strftime.
80611         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
80612         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
80613         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
80614         gl_TM_GMTOFF.
80615         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
80616
80617         Module xalloc.
80618         * m4/xalloc.m4: New file.
80619
80620         Module alloca.
80621         * m4/alloca.m4: New file.
80622
80623         Module putenv.
80624         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
80625         (jm_FUNC_PUTENV): Invoke it.
80626
80627         Module setenv.
80628         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
80629         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
80630         when invoked twice.
80631         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
80632         gt_FUNC_SETENV.
80633
80634         Module memrchr.
80635         * m4/memrchr.m4: New file.
80636
80637         Module stpcpy.
80638         * m4/stpcpy.m4: New file.
80639
80640         Module strcase.
80641         * m4/strcase.m4: New file.
80642
80643         Module strdup.
80644         * m4/strdup.m4: New file.
80645
80646         Module strnlen.
80647         * m4/strnlen.m4: New file.
80648
80649         Module strndup.
80650         * m4/strndup.m4: New file.
80651
80652         Module xstrtod.
80653         * m4/xstrtod.m4: New file.
80654
80655         Module xstrtol.
80656         * m4/xstrtol.m4: New file.
80657
80658         Module getdate.
80659         * m4/getdate.m4: New file.
80660
80661         Module unlocked-io.
80662         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
80663         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
80664         * m4/jm-glibc-io.m4n: Remove file.
80665
80666         Module long-options.
80667         * m4/long-options.m4: New file.
80668
80669         Module md5.
80670         * m4/md5.m4: New file.
80671
80672         Module sha.
80673         * m4/sha.m4: New file.
80674
80675         Module getstr.
80676         * m4/getstr.m4: New file.
80677
80678         Module getline.
80679         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
80680         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
80681         <sys/types.h>, for size_t. Use the function name gnu_getline, not
80682         simply getline. Infoke gl_PREREQ_GETLINE.
80683
80684         Module obstack.
80685         * m4/obstack.m4: New file.
80686
80687         Module hash.
80688         * m4/hash.m4: New file.
80689
80690         Module readtokens.
80691         * m4/readtokens.m4: New file.
80692
80693         Module strverscmp.
80694         * m4/strverscmp.m4: New file.
80695
80696         Module stdbool.
80697         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
80698         OSF/1.
80699
80700         Module strtoll.
80701         * m4/strtoll.m4: New file.
80702
80703         Module strtoull.
80704         * m4/strtoull.m4: New file.
80705
80706         Module strtoimax.
80707         * m4/strtoimax.m4: New file.
80708
80709         Module strtoumax.
80710         * m4/strtoumax.m4: New file.
80711
80712         Module xstrtoimax.
80713         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
80714         jm_AC_PREREQ_XSTRTOIMAX.
80715         Moved the strtol prerequisites to strtol.m4.
80716         Moved the strtoll prerequisites to strtoll.m4.
80717         Moved the strtoimax prerequisites to strtoimax.m4.
80718
80719         Module xstrtoumax.
80720         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
80721         jm_AC_PREREQ_XSTRTOUMAX.
80722         Moved the strtoul prerequisites to strtoul.m4.
80723         Moved the strtoull prerequisites to strtoull.m4.
80724         Moved the strtoumax prerequisites to strtoumax.m4.
80725
80726         Module chown.
80727         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
80728         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
80729
80730         Module dup2.
80731         * m4/dup2.m4: New file.
80732
80733         Module ftruncate.
80734         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
80735         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
80736
80737         Module getgroups.
80738         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
80739         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
80740
80741         Module gettimeofday.
80742         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
80743         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
80744         gl_PREREQ_GETTIMEOFDAY.
80745
80746         Module mkdir.
80747         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
80748         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
80749
80750         Module mkstemp.
80751         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
80752         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
80753         jm_AC_TYPE_UINTMAX_T.
80754         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
80755
80756         Module stat.
80757         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
80758         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
80759
80760         Module lstat.
80761         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
80762         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
80763
80764         Module timespec.
80765         * m4/timespec.m4 (gl_TIMESPEC): New macro.
80766         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
80767         * m4/st_mtim.m4: Indentation.
80768
80769         Module nanosleep.
80770         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
80771         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
80772         gl_PREREQ_NANOSLEEP.
80773
80774         Module regex.
80775         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
80776         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
80777         (gl_REGEX): New macro.
80778
80779         Module rename.
80780         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
80781         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
80782
80783         Module rmdir.
80784         * m4/rmdir.m4: New file.
80785
80786         Module utime.
80787         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
80788         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
80789         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
80790
80791         Module dirname.
80792         * m4/dirname.m4: New file.
80793
80794         Module getopt.
80795         * m4/getopt.m4: New file.
80796
80797         Module unistd-safer.
80798         * m4/unistd-safer.m4: New file.
80799
80800         Module fnmatch.
80801         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
80802         declaration.
80803         (gl_PREREQ_FNMATCH_EXTRA): New macro.
80804         (gl_FUNC_FNMATCH_POSIX): New macro.
80805         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
80806         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
80807         simply fnmatch.
80808
80809         Module exclude.
80810         * m4/exclude.m4: New file.
80811
80812         Module human.
80813         * m4/human.m4: New file.
80814
80815         Module acl.
80816         * m4/acl.m4: Nop.
80817
80818         Module backupfile.
80819         * m4/backupfile.m4: New file.
80820         * m4/d-ino.m4: Indentation.
80821
80822         Module fsusage.
80823         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
80824         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
80825         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
80826
80827         Module dirfd.
80828         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
80829         requirements.
80830
80831         Module euidaccess.
80832         * m4/euidaccess.m4: New file.
80833
80834         Module file-type.
80835         * m4/file-type.m4: New file.
80836
80837         Module fileblocks.
80838         * m4/fileblocks.m4: New file.
80839
80840         Module filemode.
80841         * m4/filemode.m4: New file.
80842
80843         Module isdir.
80844         * m4/isdir.m4: New file.
80845
80846         Module lchown.
80847         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
80848         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
80849
80850         Module makepath.
80851         * m4/makepath.m4: New file.
80852
80853         Module modechange.
80854         * m4/modechange.m4: New file.
80855
80856         Module mountlist.
80857         * m4/mountlist.m4: New file.
80858         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
80859         Indentation.
80860
80861         Module path-concat.
80862         * m4/path-concat.m4: New file.
80863
80864         Module pathmax.
80865         * m4/pathmax.m4: New file.
80866
80867         Module same.
80868         * m4/same.m4: New file.
80869
80870         Module save-cwd.
80871         * m4/save-cwd.m4: New file.
80872
80873         Module savedir.
80874         * m4/savedir.m4: New file.
80875
80876         Module xgetcwd.
80877         * m4/xgetcwd.m4: New file.
80878         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
80879
80880         Module xreadlink.
80881         * m4/xreadlink.m4: New file.
80882
80883         Module safe-read.
80884         * m4/safe-read.m4: New file.
80885
80886         Module safe-write.
80887         * m4/safe-write.m4: New file.
80888
80889         Module closeout.
80890         * m4/closeout.m4: New file.
80891
80892         Module stdio-safer.
80893         * m4/stdio-safer.m4: New file.
80894
80895         Module getpass.
80896         * m4/getpass.m4: New file.
80897
80898         Module getugroups.
80899         * m4/getugroups.m4: New file.
80900
80901         Module group-member.
80902         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
80903         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
80904
80905         Module idcache.
80906         * m4/idcache.m4: New file.
80907
80908         Module userspec.
80909         * m4/userspec.m4: New file.
80910
80911         Module gettime.
80912         * m4/clock_time.m4: New file.
80913         * m4/gettime.m4: New file.
80914
80915         Module settime.
80916         * m4/settime.m4: New file.
80917
80918         Module posixtm.
80919         * m4/posixtm.m4: New file.
80920
80921         Module gethostname.
80922         * m4/gethostname.m4: New file.
80923
80924         Module canon-host.
80925         * m4/canon-host.m4: New file.
80926
80927         Module gettext.
80928         * m4/codeset.m4: New file, from gettext-0.11.5.
80929         * m4/gettext.m4: New file, from gettext-0.11.5.
80930         * m4/glibc21.m4: New file, from gettext-0.11.5.
80931         * m4/iconv.m4: New file, from gettext-0.11.5.
80932         * m4/intdiv0.m4: New file, from gettext-0.11.5.
80933         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
80934         * m4/inttypes.m4: New file, from gettext-0.11.5.
80935         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
80936         * m4/isc-posix.m4: New file, from gettext-0.11.5.
80937         * m4/lcmessage.m4: New file, from gettext-0.11.5.
80938         * m4/lib-ld.m4: New file, from gettext-0.11.5.
80939         * m4/lib-link.m4: New file, from gettext-0.11.5.
80940         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
80941         * m4/progtest.m4: New file, from gettext-0.11.5.
80942         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
80943         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
80944         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
80945
80946         Module localcharset.
80947         * m4/localcharset.m4: New file.
80948
80949         Module hard-locale.
80950         * m4/hard-locale.m4: New file.
80951
80952         Module mbswidth.
80953         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
80954         onceonly macros.
80955         * m4/mbrtowc.m4: Add comment.
80956
80957         Module memcasecmp.
80958         * m4/memcasecmp.m4: New file.
80959
80960         Module memcoll.
80961         * m4/memcoll.m4: New file.
80962
80963         Module unicodeio.
80964         * m4/unicodeio.m4: New file.
80965
80966         Module rpmatch.
80967         * m4/rpmatch.m4: New file.
80968
80969         Module yesno.
80970         * m4/yesno.m4: New file.
80971
80972         Module exitfail.
80973         * m4/exitfail.m4: New file.
80974
80975         Module c-stack.
80976         * m4/c-stack.m4 (gl_C_STACK): New macro.
80977         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
80978
80979         Module error.
80980         * m4/error.m4 (gl_ERROR): New macro.
80981         (jm_PREREQ_ERROR): Use onceonly macros.
80982
80983         Module fatal.
80984         * m4/fatal.m4: New file.
80985
80986         Module getloadavg.
80987         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
80988         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
80989
80990         Module getpagesize.
80991         * m4/getpagesize.m4: New file.
80992
80993         Module getusershell.
80994         * m4/getusershell.m4: New file.
80995
80996         Module physmem.
80997         * m4/physmem.m4: New file.
80998
80999         Module posixver.
81000         * m4/posixver.m4: New file.
81001
81002         Module quotearg.
81003         * m4/quotearg.m4: New file.
81004
81005         Module quote.
81006         * m4/quote.m4: New file.
81007
81008         Module readutmp.
81009         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
81010
81011         Module sig2str.
81012         * m4/sig2str.m4: New file.
81013
81014         Other.
81015         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
81016         ulonglong.m4.
81017         * m4/intmax_t.m4: New file.
81018         * m4/d-type.m4: Indentation.
81019         * m4/jm-macros.m4: Update.
81020         * m4/prereq.m4 (jm_PREREQ): Update.
81021         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
81022         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
81023         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
81024         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
81025         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
81026         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
81027         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
81028         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
81029         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
81030         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
81031         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
81032         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
81033         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
81034         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
81035         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
81036         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
81037         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
81038         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
81039         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
81040
81041 2002-12-24  Bruno Haible  <bruno@clisp.org>
81042
81043         * MODULES.txt: Update according to m4/ changes.
81044
81045         Module gettext.
81046         * config.rpath: New file, from gettext-0.11.5.
81047
81048         * modules/*: New module descriptions.
81049         * gnulib-tool: New file.
81050         * MODULES.html.sh: New file.
81051
81052 2002-12-21  Karl Berry  <karl@gnu.org>
81053
81054         * doc/fdl.texi: update to version 1.2.
81055
81056 2002-12-19  Karl Berry  <karl@gnu.org>
81057
81058         * config/config.guess: update from prep.
81059
81060 2002-12-18  Bruno Haible  <bruno@clisp.org>
81061
81062         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
81063         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
81064
81065 2002-12-17  Bruno Haible  <bruno@clisp.org>
81066
81067         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
81068         stdlib.h, string.h.
81069
81070 2002-12-17  Bruno Haible  <bruno@clisp.org>
81071
81072         * lib/canon-host.c (strdup): Remove unused declaration.
81073
81074         * lib/fsusage.c: Include full_read.h.
81075         (get_fs_usage): Use full_read instead of safe_read.
81076
81077         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
81078
81079 2002-12-12  Karl Berry  <karl@gnu.org>
81080
81081         * config/config.guess: update from prep.
81082
81083 2002-12-11  Bruno Haible  <bruno@clisp.org>
81084
81085         * m4/setenv.m4: New file, from gettext-0.11.5.
81086
81087 2002-12-11  Bruno Haible  <bruno@clisp.org>
81088
81089         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
81090         not unsetenv().
81091         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
81092         modifications:
81093
81094         2002-12-11  Bruno Haible  <bruno@clisp.org>
81095
81096                 * setenv.c (alloca): Fall back to malloc.
81097                 (freea): New macro.
81098                 (setenv): Use freea() to free memory allocated with alloca().
81099
81100         2002-11-13  Bruno Haible  <bruno@clisp.org>
81101
81102                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
81103                 function declarations.
81104                 * unsetenv.c (unsetenv): Likewise.
81105
81106         2002-03-04  Bruno Haible  <bruno@clisp.org>
81107
81108                 Portability to AIX 4.3.3.
81109                 * unsetenv.c: New file, extracted from setenv.c.
81110                 * setenv.c: Move the unsetenv() function to unsetenv.c.
81111
81112         2001-12-20  Bruno Haible  <bruno@clisp.org>
81113
81114                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
81115                 use malloc instead. For SunOS 4.
81116
81117         2001-12-11  Bruno Haible  <bruno@clisp.org>
81118
81119                 * setenv.c: Declare alloca.
81120                 (compar_fn_t): New typedef.
81121                 (KNOWN_VALUE, STORE_VALUE): Use it.
81122
81123         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
81124         setenv.h.
81125
81126 2002-12-10  Paul Eggert  <eggert@twinsun.com>
81127
81128         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
81129         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
81130         Choose values that are less likely to collide with system fnmatch
81131         options.
81132         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
81133         defined (e.g., a pure POSIX system).
81134         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
81135         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
81136
81137 2002-12-06  Paul Eggert  <eggert@twinsun.com>
81138
81139         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
81140         a pain in practice to deal with generated m4 files.  This change
81141         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
81142
81143         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
81144         and jm-glibc-io.m4, as they are no longer a special case.
81145         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
81146         kludge and the auto-generation stuff.  Check only whether the
81147         functions are declared, not whether they exist, since older hosts
81148         that don't declare the functions can't use the optimization anyway.
81149
81150 2002-12-06  Jim Meyering  <jim@meyering.net>
81151
81152         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
81153
81154         Merge in changes from libc's misc/error.c, in preparation
81155         for the merge of gnulib's changes back into libc.
81156
81157         * lib/error.c (_): Define only if not already defined.
81158         Move definition to follow all #include directives.
81159         Include unlocked-io.h only if !_LIBC.
81160         [_LIBC]: Include <libio/libioP.h>.
81161         [USE_IN_LIBIO]: Include <libio/iolibio.h>
81162         (fflush): Tweak definition to use INTUSE.
81163         (putc): Define.
81164
81165 2002-12-05  Paul Eggert  <eggert@twinsun.com>
81166
81167         * lib/alloca.c [defined emacs]: Include "lisp.h".
81168         (xalloc_die) [defined emacs]: New macro.
81169         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
81170         [! defined emacs]: Include <xalloc.h>.
81171         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
81172         (pointer): Typedef to POINTER_TYPE *.
81173         (malloc): Remove decl; we now always use xmalloc.
81174         (alloca): Use old-style definition, since Emacs needs this.
81175         Check for arithmetic overflow when computing combined size.
81176
81177 2002-12-04  Paul Eggert  <eggert@twinsun.com>
81178
81179         Do not generate unlocked-io.h automatically, since it's easier to
81180         maintain it by hand.
81181
81182         * lib/unlocked-io.h: New file, from GNU diffutils,
81183         but with proper copyright notice and attribution.
81184         * lib/gen-uio: Remove.
81185         * lib/Makefile.am: Add copyright notice.
81186         (libfetish_a_SOURCES): Add unlocked-io.h.
81187         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
81188         (DISTCLEANFILES, io_functions): Remove macros.
81189         (EXTRA_DIST): Remove gen_uio.
81190         (unlocked-io.h): Remove rule.
81191
81192 2002-12-04  Jim Meyering  <jim@meyering.net>
81193
81194         Reflect the fact that stat.c and lstat.c are no longer generated.
81195         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
81196         (DISTCLEANFILES): Likewise.
81197         (EXTRA_DIST): Likewise.
81198         (all_local): Don't depend on stat.c or lstat.c.
81199         (stat.c, lstat.c): Remove rules.
81200         (EXTRA_DIST): Remove xstat.in.
81201
81202         * lib/xstat.in: Remove file.  Contents moved into stat.c.
81203         * lib/stat.c: New file.  Contents mostly from xstat.in.
81204         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
81205         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
81206
81207         * lib/safe-read.c: Rework so that it may serve to define safe_write,
81208         too.
81209         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
81210
81211 2002-12-03  Jim Meyering  <jim@meyering.net>
81212
81213         * lib/safe-read.c, safe-write.c: Change variable names and comments,
81214         but not semantics, to minimize the differences between these two files.
81215         (safe_read): Change comment to mention SAFE_READ_ERROR.
81216
81217         * lib/safe-read.c (IS_EINTR): Define.
81218         (safe_read): Use IS_EINTR in place of in-function cpp directives.
81219
81220 2002-12-02  Jim Meyering  <jim@meyering.net>
81221
81222         * lib/safe-read.c (EINTR): Define.
81223         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81224         (INT_MAX): Provide fallback.
81225         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
81226
81227         * lib/safe-read.h (SAFE_READ_ERROR): Define.
81228
81229 2002-12-02  Bruno Haible  <bruno@clisp.org>
81230
81231         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
81232         Define, taken from safe-read.c.
81233         (INT_MAX): Provide fallback.
81234         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
81235         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
81236
81237         * lib/safe-read.c (EINTR): Remove definition.
81238         (safe_read): Don't use EINTR if it is absent.
81239
81240 2002-12-01  Jim Meyering  <jim@meyering.net>
81241
81242         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
81243         zero.
81244         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
81245
81246 2002-11-27  Paul Eggert  <eggert@twinsun.com>
81247
81248         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
81249         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
81250         with `if (! (value < limit)) abort ();', for readability.
81251
81252 2002-11-26  Karl Berry  <karl@gnu.org>
81253
81254         * lib/strdup.c: copy from libc again, with jim's ok.
81255         * lib/.cppi-disable: re-add strdup.c
81256
81257 2002-11-25  Karl Berry  <karl@gnu.org>
81258
81259         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
81260         instead of "strtol.c".
81261
81262 2002-11-25  Karl Berry  <karl@gnu.org>
81263
81264         * config/install-sh: update from automake for variable quoting, $0 in
81265         error msgs, etc.
81266
81267         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
81268         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
81269         entry.
81270
81271 2002-11-25  Jim Meyering  <jim@meyering.net>
81272
81273         * lib/mktime.c: Sync from libc, now that it has the latest fix.
81274
81275 2002-11-24  Karl Berry  <karl@gnu.org>
81276
81277         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
81278         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
81279
81280 2002-11-24  Jim Meyering  <jim@meyering.net>
81281
81282         Update from coreutils:
81283
81284         * lib/mktime.c: Merge in changes from libc.
81285
81286         Avoid a link-time failure on some Linux systems.
81287         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
81288         (otherwise).
81289         (__mon_yday): Declare with the STATIC attribute.
81290         (__mktime_internal): Likewise.
81291         Based on a report from Greg Schafer.
81292
81293 2002-11-23  Jim Meyering  <jim@meyering.net>
81294
81295         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
81296         Use `unsigned', not `int', as type of index.
81297
81298         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
81299
81300         * lib/fsusage.c: Remove unneeded parentheses around operands of
81301         `defined'.
81302
81303 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81304
81305         * lib/quotearg.h: Allow multiple inclusion by surrounding with
81306         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
81307         so that we can be included first.
81308         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
81309         * lib/quotearg.c: Include quotearg.h immediately after config.h.
81310         No need to include stddef.h or sys/types.h any more.
81311         Surround local include files with "", not "<>".
81312         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
81313         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
81314         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
81315         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
81316         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
81317         (ISPRINT): Remove; no longer needed now that we assume C89.
81318
81319         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
81320         Preserve errno.
81321
81322         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
81323         quotearg_char): Use SIZE_MAX rather than
81324         (size_t) -1 when we are talking about "infinity".
81325
81326         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
81327
81328 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81329
81330         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
81331         hint that one should use `if (! x) abort ();' rather than `assert
81332         (x);', and anyway it's one less thing to worry about configuring.
81333         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
81334         hash_rehash, hash_insert): Use abort rather than assert.
81335
81336 2002-11-22  Bruno Haible  <bruno@clisp.org>
81337
81338         * lib/safe-read.h: Assume C89. Add comments.
81339         (safe_read): Change return type to size_t.
81340         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
81341         byte counts > SSIZE_MAX correctly.
81342         * lib/safe-write.h: New file.
81343         * lib/safe-write.c: New file.
81344         * lib/full-read.h: New file.
81345         * lib/full-read.c: New file.
81346         * lib/full-write.h: Assume C89. Add comments.
81347         * lib/full-write.c: Include safe-write.h.
81348         (full_write): Rewritten to use safe_write.
81349         Suggested by Jim Meyering and Paul Eggert.
81350
81351 2002-11-21  Jim Meyering  <jim@meyering.net>
81352
81353         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
81354
81355         Merge in changes from the coreutils.
81356
81357         2002-09-25  Paul Eggert  <eggert@twinsun.com>
81358         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
81359         <stdint.h>.
81360         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
81361         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
81362         int.  Work more efficiently if X is the same width as uintmax_t.
81363         Do not compare X to -1, to avoid bogus compiler warning.
81364         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
81365         Don't assume that f_frsize and f_bsize are the same type.
81366
81367         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
81368         warning on FreeBSD.
81369
81370         * lib/makepath.c (make_path): Restore umask *before* creating the final
81371         component.
81372         (make_path): Minor reformatting.
81373
81374         * lib/xmalloc.c: Adjust to work with new autoconf macros,
81375         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
81376         HAVE_MALLOC/HAVE_REALLOC.
81377
81378         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
81379         dummy ones.  At least on GNU/Linux systems, `auto' means something
81380         else.
81381         From Michael Stone.
81382
81383 2002-11-21  Bruno Haible  <bruno@clisp.org>
81384
81385         Remove case insensitive option matching.
81386         * lib/argmatch.h (argcasematch): Remove declaration.
81387         (ARGCASEMATCH): Remove macro.
81388         (__xargmatch_internal): Remove case_sensitive argument.
81389         (XARGMATCH): Update.
81390         (XARGCASEMATCH): Remove macro.
81391         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
81392         case_sensitive argument.
81393         (argcasematch): Remove function.
81394         (__xargmatch_internal): Remove case_sensitive argument.
81395         (main): Use XARGMATCH instead of XARGCASEMATCH.
81396
81397         * lib/xmalloc.c: Change compile-time error message. Add comment about
81398         required autoconf version.
81399
81400 2002-11-20  Paul Eggert  <eggert@twinsun.com>
81401
81402         Merge argmatch cleanups from Bison.  Assume C89.
81403
81404         * lib/argmatch.c: Include config.h here, not in argmatch.h.
81405         Include stdlib.h, for EXIT_FAILURE.
81406         Always include <string.h>, since we assume C89.
81407         (EXIT_FAILURE): Remove pre-C89 bug workaround.
81408         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
81409         Include <stddef.h> instead, since it's all we need for size_t.
81410         (PARAMS): Remove.  All uses removed.
81411         (ARRAY_CARDINALITY): Do not bother to #undef.
81412         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
81413         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81414         Remove unnecessary parentheses.
81415         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81416         Insert necessary parentheses.
81417         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
81418         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
81419
81420 2002-11-19  Bruno Haible  <bruno@clisp.org>
81421
81422         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
81423         * lib/mbswidth.h: Include <stddef.h>, for size_t.
81424
81425         * lib/mbswidth.h (PARAMS): Remove macro.
81426         (mbswidth, mbsnwidth): Use ANSI C function declarations.
81427         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
81428
81429         * lib/gcd.h (PARAMS): Remove macro.
81430         (gcd): Use ANSI C function declarations.
81431         * lib/gcd.c (gcd): Likewise.
81432
81433 2002-11-15  Bruno Haible  <bruno@clisp.org>
81434
81435         * lib/strcspn.c: Include <stddef.h>.
81436         (strcspn): Use ANSI C function declaration. Change return type to
81437         size_t. Use NULL.
81438         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
81439         (strpbrk): Use NULL.
81440         * lib/strpbrk.h (PARAMS): Remove macro.
81441         (strpbrk): Use ANSI C function declaration.
81442         * lib/strstr.c: Don't include <sys/types.h>.
81443         * lib/strstr.h (PARAMS): Remove macro.
81444         (strstr): Use ANSI C function declarations.
81445
81446 2002-11-14  Karl Berry  <karl@gnu.org>
81447
81448         * config/mkinstalldirs: `do' on separate line, instead of
81449         `for var; do'.
81450
81451 2002-11-06  Bruno Haible  <bruno@clisp.org>
81452
81453         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
81454         * lib/gcd.c (gcd): Likewise.
81455
81456 2002-11-05  Bruno Haible  <bruno@clisp.org>
81457
81458         * lib/gcd.h: New file, from gettext-0.11.5.
81459         * lib/gcd.c: New file, from gettext-0.11.5.
81460
81461 2002-11-05  Bruno Haible  <bruno@clisp.org>
81462
81463         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81464         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81465         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81466         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81467
81468         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
81469         <libintl.h>.
81470         * lib/makepath.c: Include gettext.h instead of <locale.h> and
81471         <libintl.h>.
81472
81473         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
81474         * lib/human.c: Include gettext.h instead of <libintl.h>.
81475         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
81476         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
81477         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
81478         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
81479         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
81480         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
81481         (textdomain): Remove definition.
81482         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
81483
81484         * lib/long-options.c: Remove include of <libintl.h> and definition of
81485         _.
81486         * lib/same.c: Remove include of <libintl.h> and definition of _.
81487
81488 2002-11-04  Owen Taylor  <otaylor@redhat.com>
81489
81490         * lib/config.charset: A few additions for Solaris.
81491
81492 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81493
81494         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
81495         * lib/localcharset.c (locale_charset): Declare as extern "C".
81496
81497 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81498
81499         * lib/config.charset: msdos in uk_UA uses CP1125.
81500
81501 2002-11-04  Bruno Haible  <bruno@clisp.org>
81502
81503         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
81504         * lib/strcase.h: New file, from GNU gettext-0.11.5.
81505         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
81506         * lib/strstr.h: New file, from GNU gettext-0.11.5.
81507         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
81508
81509 2002-11-04  Bruno Haible  <bruno@clisp.org>
81510
81511         * lib/localcharset.c (locale_charset): Don't return an empty string.
81512
81513 2002-11-04  Bruno Haible  <bruno@clisp.org>
81514
81515         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
81516         aliases.
81517
81518 2002-11-04  Bruno Haible  <bruno@clisp.org>
81519
81520         * lib/config.charset: Update for newest glibc. Add canonical names
81521         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
81522
81523 2002-11-04  Bruno Haible  <bruno@clisp.org>
81524
81525         * lib/config.charset: Add support for NetBSD.
81526
81527 2002-11-04  Bruno Haible  <bruno@clisp.org>
81528
81529         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
81530
81531 2002-11-01  Bruno Haible  <bruno@clisp.org>
81532
81533         * configure.in: Add AC_CONFIG_AUX_DIR call.
81534         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
81535         test/Makefile.
81536         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
81537
81538 2002-09-28  Karl Berry  <karl@gnu.org>
81539
81540         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
81541         installed automake until the next release, since changes have been
81542         made.
81543
81544 2002-09-25  Karl Berry  <karl@gnu.org>
81545
81546         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
81547         * lib/getopt*: copy from libc/posix.
81548         * lib/gettext.h: copy from gettext.
81549         * lib/.cppi-disable: add strdup.c, gettext.h.
81550
81551 2002-09-25  Karl Berry  <karl@gnu.org>
81552
81553         * config/srclist.txt: enable gettext.h check.
81554         * config/config.{guess,sub}: update from prep.
81555         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
81556                 from automake 1.6.3.
81557         See srclist*.
81558
81559 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
81560
81561         * regex.c (PATFETCH): Remove the translating fetch.
81562         (PATFETCH_RAW): Rename to PATFETCH.
81563         (set_image_of_range): New fun.
81564         (SET_RANGE_TABLE_WORK_AREA): Use it.
81565         (regex_compile): Don't translate the pattern chars so eagerly.
81566         Only do it when inserting an `exactn' bytecode or when handling
81567         a char-range.
81568         (mutually_exclusive_p): Avoid empty statement.
81569
81570 2002-07-06  Jim Meyering  <meyering@lucent.com>
81571
81572         * m4/README: Don't mention Makefile.am.in.
81573         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
81574
81575 2002-07-01  Jim Meyering  <meyering@lucent.com>
81576
81577         * lib/c-stack.c: Include sys/time.h.
81578         From Volker Borchert.
81579
81580 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81581
81582         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
81583
81584 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81585
81586         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
81587         New macro.  Use it uniformly instead of
81588         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
81589         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
81590         reported by Vin Shelton.
81591
81592 2002-06-22  Paul Eggert  <eggert@twinsun.com>
81593
81594         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
81595         Do not assume SA_SIGINFO behavior.
81596         Bug reported by Jim Meyering on NetBSD 1.5.2.
81597
81598 2002-06-22  Jim Meyering  <meyering@lucent.com>
81599
81600         * m4/c-stack.m4: New file, from diffutils-2.8.2.
81601         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
81602
81603         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
81604         now that configure.ac uses AC_GNU_SOURCE.
81605         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
81606         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
81607
81608         Update to latest tools.  Suggestions from Paul Eggert.
81609         * m4/stdbool.m4: New file, from diffutils-2.8.2.
81610         * m4/gnu-source.m4: Update from diffutils-2.8.2.
81611         * m4/fnmatch.m4: Likewise.
81612         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
81613         to AC_HEADER_STDBOOL
81614
81615 2002-06-22  Jim Meyering  <meyering@lucent.com>
81616
81617         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
81618         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
81619
81620 2002-06-22  Jim Meyering  <meyering@lucent.com>
81621
81622         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
81623
81624         * lib/exitfail.c, exitfail.h: Likewise.
81625         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
81626
81627         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
81628         of fnmatch.h.
81629         (EXTRA_DIST): Add fnmatch_loop.c.
81630         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
81631
81632         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
81633         * lib/fnmatch.c: Update from diffutils-2.8.2.
81634         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
81635         * lib/fnmatch.h: Remove file.
81636
81637 2002-06-21  Jim Meyering  <meyering@lucent.com>
81638
81639         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
81640         * m4/mbrtowc.m4: Likewise.
81641
81642         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
81643         * m4/mbswidth.m4: Reflect name change:
81644         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
81645         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81646
81647         * m4/lib-link.m4: Update from gettext-0.11.2.
81648         * m4/gettext.m4: Likewise.
81649
81650         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
81651         From Alfred M. Szmidt.
81652
81653 2002-06-18  Paul Eggert  <eggert@twinsun.com>
81654
81655         * lib/file-type.h: Report an error if neither S_ISREG nor
81656         S_IFREG is defined, instead of using a test specific to glibc
81657         2.2.  This should be safe, since POSIX requires S_ISREG and
81658         Unix Version 7 had S_IFREG.  We don't need to check for
81659         <sys/types.h> since we don't use any symbols that it defines.
81660
81661 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
81662
81663         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
81664         $@-t, so that each temporary file name is unique and valid in the first
81665         8 characters, for operation under DOS.
81666
81667 2002-06-15  Paul Eggert  <eggert@twinsun.com>
81668
81669         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
81670
81671 2002-06-15  Jim Meyering  <meyering@lucent.com>
81672
81673         Work even with DJGPP 2.03, which lacks support for symlinks.
81674         From Richard Dawe.
81675         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
81676         is defined.
81677         * lib/lchown.c (S_ISLNK): Likewise.
81678
81679 2002-06-15  Jim Meyering  <meyering@lucent.com>
81680
81681         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
81682         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
81683         have been included before this file.
81684
81685 2002-06-14  Jim Meyering  <meyering@lucent.com>
81686
81687         * lib/file-type.h: Use the version from diffutils-2.8.2.
81688         * lib/file-type.c: Likewise.
81689
81690 2002-06-07  Jim Meyering  <meyering@lucent.com>
81691
81692         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
81693         They're needed at least for NetBSD 1.5.2.
81694         ($statxfs_includes): Include those same headers.
81695         ($statxfs_includes): Include sys/vfs.h if available.
81696         ($statxfs_includes): Likewise for sys/statvfs.h.
81697         Check for the following members in both structs statfs and statvfs:
81698         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
81699
81700 2002-06-01  Jim Meyering  <meyering@lucent.com>
81701
81702         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
81703         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
81704
81705 2002-05-28  Jim Meyering  <meyering@lucent.com>
81706
81707         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
81708         Reported by Volker Borchert.
81709
81710 2002-05-27  Jim Meyering  <meyering@lucent.com>
81711
81712         Fix a problem seen only on nonconforming systems whereby ls.c's
81713         use of localtime, and then of gettimeofday would cause trouble:
81714         the localtime call used to initialize rpl_gettimeofday's save
81715         mechanism would clobber ls's current local time information so
81716         that in any long listing the first file would always be listed
81717         with date 1970-01-01.  Analysis by Volker Borchert.
81718
81719         * lib/gettimeofday.c (localtime): Undefine.
81720         (rpl_localtime): New function.
81721
81722 2002-05-27  Jim Meyering  <meyering@lucent.com>
81723
81724         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
81725         localtime.
81726
81727         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
81728         use the replacement function; it wouldn't resolve at link time.
81729         Reported by Volker Borchert.
81730
81731 2002-05-22  Jim Meyering  <meyering@lucent.com>
81732
81733         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
81734         file-type.h.
81735         * lib/file-type.h: New file.
81736         * lib/file-type.c (file_type): New file/function.  Extracted from
81737         diffutils.
81738
81739 2002-04-30  Jim Meyering  <meyering@lucent.com>
81740
81741         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
81742
81743 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81744
81745         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
81746
81747 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81748
81749         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
81750         Do not check for alloca.h (no longer used) or stdbool.h (was never
81751         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
81752
81753 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81754
81755         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
81756
81757 2002-04-29  Jim Meyering  <meyering@lucent.com>
81758
81759         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
81760         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
81761         Use AC_FUNC_STRNLEN here instead.
81762
81763         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
81764         With autoconf-2.53a, it's part of AC_PROG_CC.
81765
81766 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81767
81768         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
81769         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
81770
81771 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81772
81773         * lib/sig2str.h, lib/sig2str.c: New files.
81774         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
81775
81776 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81777
81778         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
81779         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
81780         of 127, since 64 is the largest conceivable number for ancient
81781         nonstandard hosts.
81782         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
81783
81784 2002-04-28  Jim Meyering  <meyering@lucent.com>
81785
81786         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
81787
81788 2002-04-24  Jim Meyering  <meyering@lucent.com>
81789
81790         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
81791         (jm_PREREQ): Use it.
81792
81793         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
81794         mach/mach.h fcntl.h.
81795         Check for this function: setlocale.
81796
81797 2002-04-24  Jim Meyering  <meyering@lucent.com>
81798
81799         * lib/gettext.h: New file, from Gettext.
81800         * lib/Makefile.am (INCLUDES): Remove -I../intl.
81801         (libfetish_a_SOURCES): Add gettext.h.
81802
81803 2002-04-16  Jim Meyering  <meyering@lucent.com>
81804
81805         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
81806         ut_pid, ut_id, ut_exit.
81807
81808 2002-04-16  Jim Meyering  <meyering@lucent.com>
81809
81810         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
81811         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
81812         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
81813
81814 2002-04-12  Jim Meyering  <meyering@lucent.com>
81815
81816         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
81817         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
81818         existence of the getmntinfo function.  Needed for Darwin 5.3.
81819
81820         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
81821         This is necessary at least on Darwin 5.3.
81822
81823         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
81824         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
81825         strnlen.o in the library, and that makes some versions of ranlib
81826         object.
81827
81828 2002-04-12  Jim Meyering  <meyering@lucent.com>
81829
81830         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
81831
81832 2002-04-09  Jim Meyering  <meyering@lucent.com>
81833
81834         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
81835         to be more precise.  Rather than saying we're checking whether the
81836         function `works', say what we're testing.
81837         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
81838         Reported by Bruno Haible.
81839
81840 2002-03-10  Jim Meyering  <meyering@lucent.com>
81841
81842         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
81843         Suggestion from Santiago Vila.
81844
81845 2002-03-08  Jim Meyering  <meyering@lucent.com>
81846
81847         * lib/rename.c: Mention that this wrapper is needed also on
81848         mips-dec-ultrix4.4 systems.
81849
81850 2002-03-02  Jim Meyering  <meyering@lucent.com>
81851
81852         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
81853         not HAVE_CLOCK_SETTIME.
81854
81855 2002-02-27  Paul Eggert  <eggert@twinsun.com>
81856
81857         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
81858         Check for clock_settime.
81859
81860 2002-02-27  Paul Eggert  <eggert@twinsun.com>
81861
81862         * lib/nanosleep.h: Rename to....
81863         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
81864
81865         * lib/gettime.c: New file.
81866         * lib/settime.c: New file.
81867         * lib/stime.c: Remove.
81868
81869         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
81870         timespec.h.  Remove nanosleep.h.
81871
81872 2002-02-25  Paul Eggert  <eggert@twinsun.com>
81873
81874         * m4/acl.m4: New file.
81875         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
81876         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
81877
81878 2002-02-25  Paul Eggert  <eggert@twinsun.com>
81879
81880         * lib/acl.c, lib/acl.h: New files.
81881         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
81882
81883 2002-02-24  Jim Meyering  <meyering@lucent.com>
81884
81885         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
81886         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
81887         cause trouble.  Reported by Nelson Beebe.
81888
81889 2002-02-23  Paul Eggert  <eggert@twinsun.com>
81890
81891         * lib/path-concat.c (xpath_concat): Reorder code to pacify
81892         compilers that don't know that xalloc_die never returns.
81893
81894 2002-02-20  Jim Meyering  <meyering@lucent.com>
81895
81896         * lib/getdate.c: Regenerate using bison-1.33.
81897
81898 2002-02-17  Jim Meyering  <meyering@lucent.com>
81899
81900         * config/config.guess (main): Don't use `head -1'; it's no longer
81901         portable. Use `sed 1q' instead.
81902
81903 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
81904
81905         * m4/codeset.m4: Upgrade to gettext-0.11.
81906         * m4/gettext.m4: Upgrade to gettext-0.11.
81907         * m4/glibc21.m4: Upgrade to gettext-0.11.
81908         * m4/iconv.m4: Upgrade to gettext-0.11.
81909         * m4/isc-posix.m4: Upgrade to gettext-0.11.
81910         * m4/lcmessage.m4: Upgrade to gettext-0.11.
81911         * m4/lib-ld.m4: New file, from gettext-0.11.
81912         * m4/lib-link.m4: New file, from gettext-0.11.
81913         * m4/lib-prefix.m4: New file, from gettext-0.11.
81914         * m4/progtest.m4: Upgrade to gettext-0.11.
81915
81916 2002-02-15  Paul Eggert  <eggert@twinsun.com>
81917
81918         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
81919         (jm_PREREQ): Use it.
81920
81921 2002-02-15  Paul Eggert  <eggert@twinsun.com>
81922
81923         * lib/posixver.c, lib/posixver.h: New files.
81924         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
81925
81926 2002-02-02  Paul Eggert  <eggert@twinsun.com>
81927             Bruno Haible  <bruno@clisp.org>
81928
81929         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
81930         (fwrite_success_callback): New declaration.
81931         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
81932         print_unicode_char. Call failure callback instead of error.
81933         (fwrite_success_callback): New function.
81934         (exit_failure_callback): New function.
81935         (fallback_failure_callback): New function.
81936         (print_unicode_char): Call unicode_to_mb.
81937
81938 2002-01-26  Jim Meyering  <meyering@lucent.com>
81939
81940         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
81941         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
81942
81943 2002-01-26  Jim Meyering  <meyering@lucent.com>
81944
81945         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
81946
81947 2002-01-22  Paul Eggert  <eggert@twinsun.com>
81948
81949         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
81950
81951 2002-01-22  Jim Meyering  <meyering@lucent.com>
81952
81953         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
81954         Otherwise, some versions of automake would omit the rule that makes
81955         Makefile from Makefile.in.
81956
81957 2002-01-21  Paul Eggert  <eggert@twinsun.com>
81958
81959         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
81960         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
81961         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
81962         (memcoll): Set errno to zero if there is no error.
81963
81964         * lib/quotearg.c (quotearg_buffer_restyled):
81965         Fix bug with quoting buffers containing NUL when backslashing escapes.
81966         This bug was exposed by the other changes in this patch.
81967         (quotearg_n_options): New arg ARGSIZE.
81968         All callers changed.
81969         (quoting_options_from_style): New function.
81970         (quotearg_n_style): Use it.
81971         (quotearg_n_style_mem): New function.
81972
81973         * lib/quotearg.h (quotearg_n_style_mem): New function.
81974
81975 2002-01-19  Jim Meyering  <meyering@lucent.com>
81976
81977         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
81978         Remove useless quotes: DF_PROG="df".
81979         * m4/strnlen.m4: New file.
81980
81981 2002-01-16  Paul Eggert  <eggert@twinsun.com>
81982
81983         * lib/backupfile.c (ISDIGIT): Comment fix.
81984         * lib/getdate.y (ISDIGIT): Likewise.
81985         * lib/posixtm.c (ISDIGIT, year): Likewise.
81986         * lib/strverscmp.c (ISDIGIT): Likewise.
81987         * lib/userspec.c (ISDIGIT): Likewise.
81988
81989 2002-01-16  Jim Meyering  <meyering@lucent.com>
81990
81991         * lib/getdate.y: Add three semicolons, each just before a closing
81992         brace. Bison (as of version 1.31) no longer papers over that mistake.
81993
81994 2002-01-05  Jim Meyering  <meyering@lucent.com>
81995
81996         * lib/version-etc.c (version_etc_copyright): Update copyright year.
81997
81998 2001-12-19  Paul Eggert  <eggert@twinsun.com>
81999
82000         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
82001         not silently exit merely because the output buffer happens to
82002         have nothing pending.
82003
82004 2001-12-18  Paul Eggert  <eggert@twinsun.com>
82005
82006         See the big note in ../ChangeLog.
82007         * lib/human.c (suffixes): Prefer K to k for 1024.
82008         (generate_suffix_backwards): New function.
82009         (human_readable_inexact): Use it.
82010         * lib/xstrtol.c (__xstrtol): If there is no number but there
82011         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
82012         Accept 'K' as well as 'k'.
82013
82014 2001-12-15  Jim Meyering  <meyering@lucent.com>
82015
82016         * lib/regex.h (__restrict_arr): Update from libc.
82017
82018         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
82019         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
82020         (STREQ): Define.
82021
82022 2001-12-14  Jim Meyering  <meyering@lucent.com>
82023
82024         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
82025         Suggestion from Bruno Haible.
82026
82027 2001-12-10  Jim Meyering  <meyering@lucent.com>
82028
82029         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
82030         xrealloc, Instead, include "xalloc.h".
82031         (initbuffer): Don't cast xmalloc return value to char*.
82032         (readline): Reword comment.
82033         Don't cast xrealloc return value to char*
82034         Return NULL, not 0.
82035
82036 2001-12-09  Jim Meyering  <meyering@lucent.com>
82037
82038         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
82039         about `signed and unsigned type in conditional expression'.
82040         * lib/posixtm.c (posix_time_parse): Likewise.
82041
82042         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
82043
82044         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
82045         to avoid a pedantic warning.
82046
82047         * lib/getstr.c: Don't include assert.h.
82048         (getstr): Remove warning-evoking assertions.
82049         Return -1 if offset parameter is out of bounds.
82050         Change the type of a local from int to size_t.
82051
82052         * lib/strftime.c (my_strftime_localtime_r): Include this function
82053         definition in the `#if ! HAVE_TM_GMTOFF' block.
82054
82055         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
82056         Include xalloc.h instead.
82057
82058 2001-12-02  Jim Meyering  <meyering@lucent.com>
82059
82060         * lib/tempname.c: Don't declare getenv, thus reverting the change of
82061         2001-11-18.  It's no longer necessary, now that stdlib.h is always
82062         included.
82063
82064         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
82065         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
82066
82067 2001-11-30  Akim Demaille  <akim@epita.fr>
82068
82069         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
82070         before being defined.
82071
82072 2001-11-27  Paul Eggert  <eggert@twinsun.com>
82073
82074         * lib/quotearg.h (quotearg_n, quotearg_n_style):
82075         First arg is int, not unsigned.
82076         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
82077         (SIZE_MAX, UINT_MAX): New macros.
82078         (quotearg_n_options): Abort if N is negative.
82079         Avoid overflow check on hosts where size_t is 64 bits and int
82080         is 32 bits, as overflow is impossible there.
82081         Fix off-by-one typo that caused unnecessary reallocation.
82082
82083 2001-11-27  Jim Meyering  <meyering@lucent.com>
82084
82085         * lib/tempname.c: Merge with version from libc.
82086         * lib/regex.c: Likewise.
82087
82088         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
82089         systems for which STDC_HEADERS is 0, it was not included, resulting in
82090         a warning about an integer-to-pointer conversion problem with getenv.
82091         Reported by Volker Borchert.
82092
82093 2001-11-26  Jim Meyering  <meyering@lucent.com>
82094
82095         * lib/gtod.h: Remove file.
82096         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
82097         * lib/gettimeofday.c: Don't include gtod.h.
82098         (GTOD_init): Remove function.
82099         (rpl_gettimeofday): Do its job here instead, rather than aborting.
82100         Suggestion from Volker Borchert.
82101
82102 2001-11-23  Jim Meyering  <meyering@lucent.com>
82103
82104         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
82105         it.
82106         * lib/hash.c (struct hash_table): Define it here instead.
82107
82108 2001-11-22  Jim Meyering  <meyering@lucent.com>
82109
82110         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
82111
82112 2001-11-20  Jim Meyering  <meyering@lucent.com>
82113
82114         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
82115         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
82116
82117 2001-11-19  Jim Meyering  <meyering@lucent.com>
82118
82119         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
82120         directory.  Use "conftestXXXXXX" as the template.
82121         Suggestion from Paul Eggert.
82122
82123         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
82124         immediately, so the test doesn't mistakenly hit the max-open-files
82125         limit.
82126
82127 2001-11-18  Paul Eggert  <eggert@twinsun.com>
82128
82129         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
82130         (TEMPORARIES): New macro.
82131         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
82132         removes an artificial limitation (e.g. HP-UX 10.20, where
82133         TMP_MAX is 17576).
82134
82135 2001-11-18  Jim Meyering  <meyering@lucent.com>
82136
82137         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
82138
82139 2001-11-18  Jim Meyering  <meyering@lucent.com>
82140
82141         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
82142         on SunOS 4.
82143
82144         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
82145         files will be created before anything else.
82146
82147 2001-11-17  Paul Eggert  <eggert@twinsun.com>
82148
82149         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
82150         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
82151
82152 2001-11-17  Jim Meyering  <meyering@lucent.com>
82153
82154         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
82155         Prompted by a report from Bob Proulx.
82156
82157         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
82158         Instead, require UTILS_FUNC_MKSTEMP.
82159
82160 2001-11-17  Jim Meyering  <meyering@lucent.com>
82161
82162         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
82163         Now, that's done as part of AC_FUNC_STRTOD.
82164
82165 2001-11-17  Jim Meyering  <meyering@lucent.com>
82166
82167         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
82168         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
82169         rather than group writable.  Patch by Juan F. Codagnone.
82170
82171         * lib/readtokens.c: Remove explicit declarations of xmalloc and
82172         xrealloc, Instead, include "xalloc.h".
82173
82174         * lib/mountlist.c: Include unlocked-io.h after all system headers.
82175         Remove explicit declarations of xmalloc, xrealloc,
82176         and xstrdup.  Instead, include "xalloc.h".
82177
82178         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
82179         unlocked-io.h.
82180         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
82181         Likewise.
82182         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
82183
82184         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
82185         Reported by Padraig Brady.
82186
82187         * lib/mkstemp.c: #undef mkstemp.
82188         Include config.h.
82189         (rpl_mkstemp): Rename from mkstemp.
82190         Protoize.
82191
82192 2001-11-16  Jim Meyering  <meyering@lucent.com>
82193
82194         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
82195         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
82196         determine the amount of total physical memory, use pstat_getstatic.
82197         HPUX-11 doesn't define _SC_PHYS_PAGES.
82198         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
82199         If sysconf couldn't be used to determine the amount of available
82200         physical memory, use both pstat_getstatic and pstat_getdynamic.
82201         Based on a patch from Bob Proulx.
82202
82203 2001-11-10  Jim Meyering  <meyering@lucent.com>
82204
82205         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
82206         (jm_PREREQ): Use it.
82207
82208 2001-11-09  Jim Meyering  <meyering@lucent.com>
82209
82210         * m4/jm-macros.m4: Require autoconf-2.52f.
82211         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
82212         Use these AC_-prefixed names, not the AM_-prefixed ones.
82213
82214         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
82215
82216 2001-11-05  Jim Meyering  <meyering@lucent.com>
82217
82218         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
82219
82220 2001-11-04  Jim Meyering  <meyering@lucent.com>
82221
82222         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
82223         $DEFS.
82224
82225 2001-11-03  Jim Meyering  <meyering@lucent.com>
82226
82227         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
82228         of AC_DEFUN.
82229
82230         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
82231         know the name of the variable in the macro definition.
82232
82233 2001-11-03  Jim Meyering  <meyering@lucent.com>
82234
82235         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
82236         in argmatch_to_argument call.
82237
82238         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
82239         argument.
82240
82241         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
82242         e.g., a fault due to an attempt to free a NULL pointer.
82243
82244 2001-11-01  Jim Meyering  <meyering@lucent.com>
82245
82246         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
82247         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
82248
82249 2001-11-01  Jim Meyering  <meyering@lucent.com>
82250
82251         * lib/dirfd.c, lib/dirfd.h: New files.
82252         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
82253
82254         * lib/hash.c (hash_print) [TESTING]: Clean up.
82255
82256 2001-10-22  Paul Eggert  <eggert@twinsun.com>
82257
82258         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
82259         to avoid a warning if -Wall.
82260
82261 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
82262
82263         * README: New file
82264         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
82265         (per RMS's instructions, this is now the canonical source)
82266         * lgpl/, gpl/: New directories.
82267
82268 2001-10-21  Paul Eggert  <eggert@twinsun.com>
82269
82270         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
82271
82272 2001-10-21  Jim Meyering  <meyering@lucent.com>
82273
82274         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
82275         this code would end up calling gettext even in packages built
82276         with --disable-nls.
82277         * lib/getopt.c (_): Likewise.
82278         * lib/regex.c (_): Likewise.
82279
82280 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82281
82282         * m4/error.m4 (jm_PREREQ_ERROR):
82283         Do not invoke AC_CHECK_FUNCS with strerror_r, as
82284         AC_FUNC_STRERROR_R does that.
82285         Check for strerror declaration.
82286
82287         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
82288         are supposed to have them these days.
82289         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
82290         Merge changes from latest Autoconf CVS.
82291         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
82292         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
82293         POSIX decided to standardize on the int flavor of strerror_r.
82294
82295 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82296
82297         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
82298         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
82299         Use strerror_r that is only a macro, even if it is not a function.
82300         (strerror): Check for HAVE_DECL_STRERROR before declaring.
82301         (private_strerror): Use prototypes, not old-style function definition.
82302         (print_errno_message): New function.
82303         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
82304         char*-flavored one.
82305         (error_tail, error, error_at_line): Use it.
82306
82307 2001-10-11  Jim Meyering  <meyering@lucent.com>
82308
82309         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
82310         and quote_n (1, ... to avoid clobbering a buffer.
82311
82312 2001-10-05  Jim Meyering  <meyering@lucent.com>
82313
82314         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
82315         hash-pjw.h.
82316         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
82317         * lib/hash-pjw.h: New file.
82318
82319 2001-09-30  Jim Meyering  <meyering@lucent.com>
82320
82321         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
82322         `struct fsstat' has the `f_fstypename' member.
82323         Use that to define FS_TYPE, which is now used to make
82324         the getfsstat link test tighter.
82325
82326 2001-09-30  Jim Meyering  <meyering@lucent.com>
82327
82328         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
82329         Include <sys/ucred.h>, for Apple Darwin.
82330         Include sys/mount.h and sys/fs_types.h only if available.
82331         (FS_TYPE): Define.
82332         (read_filesystem_list): Use FS_TYPE.
82333
82334 2001-09-29  Paul Eggert  <eggert@twinsun.com>
82335
82336         * lib/exclude.c (excluded_filename): 0 -> false, since it's
82337         a boolean context.
82338
82339 2001-09-29  Jim Meyering  <meyering@lucent.com>
82340
82341         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82342         [one-argument getmntent function]): Include stdio.h before mntent.h.
82343         SunOS 4.1.x needs it for the declaration of `FILE'.
82344         Patch by Volker Borchert.
82345
82346         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82347         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
82348         sys/fs_types.h, and make the link-test for getfsstat guard #include
82349         directives with appropriate #if HAVE_*_H tests so that we can
82350         detect getfsstat on Apple Darwin1.3.7 systems.
82351         Reported by Nelson Beebe.
82352         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
82353
82354 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82355
82356         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82357         #defines strtoimax.  Also treat the other strto* functions
82358         like strtoimax.
82359
82360         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82361         Check for strtoul and strtoumax,
82362         as those declarations are made even in the signed case.
82363         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
82364         Likewise, for strtol and strtoimax.
82365
82366 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82367
82368         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82369         #defines strtoimax.  Also treat the other strto* functions
82370         like strtoimax.
82371
82372         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
82373         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
82374         (strtoimax, strtoumax): Do not declare if already defined as a macro.
82375
82376 2001-09-26  Jim Meyering  <meyering@lucent.com>
82377
82378         Most macros in unlocked-io.h had the wrong number of arguments.
82379         * lib/gen-uio: New script.
82380         (USE_UNLOCKED_IO): Define to 1 if not already defined.
82381         * lib/unlocked-io.hin: Remove file.
82382         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
82383         rather than trying to embed it here.
82384         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
82385         Reported by Padraig Brady.
82386
82387 2001-09-25  Volker Borchert  <bt@teknon.de>
82388
82389         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
82390         `result'.
82391
82392 2001-09-24  Jim Meyering  <meyering@lucent.com>
82393
82394         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
82395
82396 2001-09-23  Jim Meyering  <meyering@lucent.com>
82397
82398         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
82399         instead of the mere test for existence of mntent.h.  The latter
82400         would get a false-positive on AIX 3.4 systems.
82401         In the outer getmntent if-block, don't die if neither of the getmntent
82402         tests succeeds.  Instead, just fall through and continue with the
82403         remaining tests.
82404
82405 2001-09-23  Jim Meyering  <meyering@lucent.com>
82406
82407         * lib/mountlist.c: Remove useless parentheses in #if directives.
82408         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
82409         the deprecated MOUNTED symbol is no longer defined in mntent.h.
82410
82411 2001-09-22  Jim Meyering  <meyering@lucent.com>
82412
82413         * m4/gettext.m4: New file.  From gettext.
82414         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
82415         * m4/progtest.m4: Likewise
82416         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
82417         * m4/glibc21.m4: Likewise.
82418
82419         * m4/libintl.m4: Remove.  No longer used.
82420
82421 2001-09-22  Jim Meyering  <meyering@lucent.com>
82422
82423         * lib/localcharset.c: Update from latest gettext.
82424         * lib/config.charset: Likewise.
82425
82426 2001-09-20  Jim Meyering  <meyering@lucent.com>
82427
82428         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
82429         strtoimax.
82430         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
82431         strtoumax.
82432
82433 2001-09-20  Jim Meyering  <meyering@lucent.com>
82434
82435         * lib/xstrtol.c (strtoimax): Guard declaration with
82436         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
82437         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
82438         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
82439         (strtoumax): Likewise, for completeness (it wasn't necessary).
82440
82441 2001-09-17  Paul Eggert  <eggert@twinsun.com>
82442
82443         * lib/strtoimax.c (HAVE_LONG_LONG):
82444         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
82445         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
82446         to work around bug in IBM C compiler.
82447
82448 2001-09-17  Jim Meyering  <meyering@lucent.com>
82449
82450         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
82451         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
82452         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
82453         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
82454         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
82455         whenever the right hand side need not be expanded by the shell.
82456
82457 2001-09-16  Paul Eggert  <eggert@twinsun.com>
82458
82459         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
82460         library.  It's not correct, as some older glibcs are buggy.
82461         fnmatch wasn't fixed until glibc 2.2.
82462
82463         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
82464         special shell magic here.
82465
82466 2001-09-16  Jim Meyering  <meyering@lucent.com>
82467
82468         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
82469         * m4/jm-macros.m4: Require it.
82470
82471 2001-09-16  Jim Meyering  <meyering@lucent.com>
82472
82473         * lib/mkdir.c: New file.
82474
82475 2001-09-15  Jim Meyering  <meyering@lucent.com>
82476
82477         * m4/jm-macros.m4: Check for help2man.
82478
82479 2001-09-11  Jim Meyering  <meyering@lucent.com>
82480
82481         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
82482         The body, by Paul Eggert, was moved here from configure.in.
82483         * m4/jm-macros.m4: Require UTILS_HOST_OS.
82484
82485 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82486
82487         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
82488         (jm_PREREQ): Use it.
82489
82490 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82491
82492         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
82493         Use ssize_t, not int, to store result of readlink.
82494         Check for ssize_t overflow as well as size_t overflow,
82495         as POSIX says the result of readlink is implementation-defined
82496         when ssize_t overflows.
82497         Remove unnecessary cast to char*.
82498         Use free+malloc instead of realloc, as the storage doesn't need
82499         to be preserved and it's clearer and can be more efficient that way.
82500         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
82501         * lib/xreadlink.h (xreadlink): Update prototype.
82502
82503 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82504
82505         * lib/xgetcwd.c: Revert some of the previous change; intead,
82506         fix the HAVE_GETCWD_NULL code to behave more like the
82507         !HAVE_GETCWD_NULL code used to.
82508
82509         Include "xalloc.h".
82510         (xgetcwd): Do not return NULL when memory is exhausted; instead,
82511         invoke xalloc_die.
82512
82513 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82514
82515         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
82516         sys/param.h, as pathmax.h includes them.
82517
82518 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82519
82520         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
82521         (jm_PREREQ_XGETCWD): New macro.
82522
82523         * m4/getcwd.m4: New file.
82524
82525 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82526
82527         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
82528         like the HAVE_GETCWD_NULL code.
82529         Include pathmax.h if not HAVE_GETCWD.
82530         Do not include xalloc.h.
82531         (INITIAL_BUFFER_SIZE): New symbol.
82532         Do not use xmalloc / xrealloc, since the caller is responsible for
82533         handling errors.  Preserve errno around `free' during failure.
82534         Do not overrun buffer when using getwd.
82535
82536 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82537
82538         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
82539         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
82540         getcwd (NULL, 0).
82541
82542 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82543
82544         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
82545         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
82546         spotted by Jim Meyering.
82547
82548 2001-09-03  Jim Meyering  <meyering@lucent.com>
82549
82550         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
82551         failure.
82552
82553 2001-09-02  Jim Meyering  <meyering@lucent.com>
82554
82555         * lib/error.c: Update from GNU libc.
82556
82557 2001-09-01  Jim Meyering  <meyering@lucent.com>
82558
82559         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
82560         Used by df.
82561
82562 2001-09-01  Jim Meyering  <meyering@lucent.com>
82563
82564         * lib/xreadlink.c: New file.
82565         * lib/xreadlink.h: New file.
82566         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
82567         xreadlink.h.
82568
82569         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
82570         doesn't conflict with sparc Solaris 7's definition in
82571         /usr/include/sys/int_types.h.
82572
82573         * lib/exclude.c: Use `""', not `<>' to #include non-system header
82574         files.
82575         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
82576         and strncasecmp as r-values.  Unixware didn't have declarations.
82577
82578 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82579
82580         * lib/xstrtol.h: Add copyright notice.
82581         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
82582         LONGINT_INVALID_SUFFIX_CHAR.
82583
82584 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82585
82586         * lib/xstrtol.c (strtoimax): New decl.
82587
82588 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82589
82590         * lib/xgetcwd.c: Don't include pathmax.h.
82591         Include stdlib.h and unistd.h if available.
82592         Include xalloc.h.
82593         (xmalloc, xstrdup, free): Remove decls.
82594         (xgetcwd): Don't assume sizes fit in unsigned.
82595         Check for overflow when computing sizes.
82596         Simplify reallocation code.
82597
82598 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82599
82600         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
82601         a directory's st_size can have an arbitrary value, so the old
82602         usage could waste an arbitrary amount of memory.  All uses
82603         changed.
82604         * lib/savedir.h: Update prototype.
82605
82606 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82607
82608         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
82609
82610         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
82611         old strtoimax.c.
82612
82613         Also, make the following further changes to make this file's
82614         configuration more similar to that of strtol.c:
82615         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
82616         (strtoumax, uintmax_t, strtoull, strtol): Remove.
82617         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
82618         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
82619         changed to signed values.
82620
82621         And make the following changes as well:
82622         Fix copyright notice, as 1999 was missing.
82623         (verify): New macro.
82624         (strtoimax): Check sizes at compile-time, not run-time.
82625         Prefer strtol to strtoll if both work.
82626         (main): Remove; it was not that useful and was a pain to maintain.
82627
82628         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
82629
82630 2001-08-31  Jim Meyering  <meyering@lucent.com>
82631
82632         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
82633         Use an initial, malloc'd, buffer of length 128 rather than
82634         a statically allocated one of length 1024.
82635
82636 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82637
82638         Simplify code, partly by assuming autoconf 2.52 semantics.
82639
82640         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
82641
82642         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
82643         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
82644         All uses removed.
82645         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
82646         Move AC_REQUIRE to next-to-top level, to avoid confusion.
82647         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
82648         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
82649         jm_AC_HEADER_INTTYPES_H.
82650         * m4/jm-macros.m4 (jm_MACROS): Likewise.
82651
82652         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
82653
82654         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82655         Quote first arg of AC_DEFUN.
82656         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
82657         since they are needed to parse the include file even if we need
82658         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
82659         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
82660         but with opposite signedness.
82661
82662 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82663
82664         Merge 'exclude' changes from tar 1.13.22.
82665         This fixes one or two unlikely storage allocation overflow bugs,
82666         but doesn't change user-visible behavior otherwise.
82667
82668 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82669
82670         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
82671         (jm_PREREQ_EXCLUDE): New macro.
82672
82673 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82674
82675         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
82676         tm to be declared.
82677
82678 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82679
82680         * lib/hash.c: Remove '2001' from copyright notice.
82681
82682 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82683
82684         * lib/full-write.h: New file.
82685         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
82686         * lib/full-write.c: Correct credits, as cccp.c no longer
82687         exists and anyway it was so heavily changed from the old cccp
82688         code as to be unrecognizable.  Include full-write.h.
82689         (full_write): Return size_t, with short writes meaning failure.
82690         All callers changed.  This fixes a bug with large buffers
82691         on 64-bit hosts.
82692         * lib/utime.c: Include full-write.h.
82693
82694 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82695
82696         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
82697         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
82698         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
82699         Include if available.
82700         (<xalloc.h>): Include
82701         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
82702         (verify): New macro.  Use it to verify that EXCLUDE macros do not
82703         collide with FNM macros.
82704         (struct patopts): New struct.
82705         (struct exclude): Use it, as exclude patterns now come with options.
82706         (new_exclude): Support above changes.
82707         (new_exclude, add_exclude_file):
82708         Initial size must now be a power of two to simplify overflow checking.
82709         (free_exclude, fnmatch_no_wildcards): New function.
82710         (excluded_filename): No longer requires options arg, as the options
82711         are determined by add_exclude.  Now returns bool, not int.
82712         (excluded_filename, add_exclude):
82713         Add support for the fancy new exclusion options.
82714         (add_exclude, add_exclude_file): Now takes int options arg.
82715         Check for arithmetic overflow when computing sizes.
82716         (add_exclude_file): xrealloc might modify errno, so don't
82717         realloc until after errno might be used.
82718
82719         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
82720         New macros.
82721         (free_exclude): New decl.
82722         (add_exclude, add_exclude_file): Now takes int options arg.
82723         (excluded_filename): No longer requires options arg, as the options
82724         are determined by add_exclude.  Now returns bool, not int.
82725
82726 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82727
82728         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
82729
82730 2001-08-27  Jim Meyering  <meyering@lucent.com>
82731
82732         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
82733
82734         * lib/version-etc.c (N_): Remove definition.
82735         Revert most of last change.
82736         Instead, simply don't mark the `Copyright...' string for translation.
82737         Based on advice from Paul Eggert.
82738
82739         * lib/strtoxmax.c: Tweak comment.
82740
82741 2001-08-26  Jim Meyering  <meyering@lucent.com>
82742
82743         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
82744
82745         * m4/xstrtoimax.m4: New file.
82746         * m4/xstrtoumax.m4: Add comments explaining why we
82747         AC_REPLACE_FUNCS(strtol).
82748
82749 2001-08-26  Jim Meyering  <meyering@lucent.com>
82750
82751         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
82752         of copyright with `%s' so translators don't get an untranslated
82753         message in 2002.
82754         (COPYRIGHT_YEAR): Define.
82755         (version_etc): Use fprintf rather than fputs.
82756         Suggestion from Ulrich Drepper.
82757
82758         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
82759
82760         * lib/strtoll.c: New file, from GNU libc.
82761         * lib/xstrtoimax.c: New file.
82762
82763         * lib/xstrtol.h: Add xstrtoimax.
82764         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
82765         * lib/strtoimax.c: New file.  Likewise, but first define
82766         STRTOUXMAX_SIGNED.
82767
82768         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
82769         ...
82770         * lib/strtoxmax.c: ... then renamed to this.
82771
82772 2001-08-18  Paul Eggert  <eggert@twinsun.com>
82773
82774         * m4/inttypes.m4: Add AC_PREREQ(2.13).
82775         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
82776         (jm_AC_TYPE_INTMAX_T): New macro.
82777         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
82778
82779         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
82780
82781         * m4/longlong.m4: Renamed from ulonglong.m4.
82782         * m4/inttypes.m4: Renamed from inttypes_h.m4.
82783         * m4/uintmax_t.m4: Removed.
82784
82785 2001-08-13  Paul Eggert  <eggert@twinsun.com>
82786
82787         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
82788         Port to Solaris 8, where 'sed' requires a space after the 'r'
82789         command, and where sh dislikes "$/".  Clean up the spacing a bit.
82790         Redirect output to $tmp just once.
82791
82792 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
82793
82794         * lib/addext.c (<errno.h>): Include.
82795         (errno): Declare if not defined.
82796         (addext): Work correctly when pathconf returns -1 and leaves
82797         errno alone because there is no limit.  Also, work even if
82798         pathconf returns a value greater than SIZE_MAX.
82799
82800 2001-08-12  Jim Meyering  <meyering@lucent.com>
82801
82802         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
82803         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
82804         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
82805         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
82806         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
82807         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
82808         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
82809         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
82810         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
82811         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
82812         utime.m4, utimes.m4, xstrtoumax.m4:
82813         Quote the first argument in each use of AC_DEFUN.
82814
82815 2001-08-12  Jim Meyering  <meyering@lucent.com>
82816
82817         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
82818         Simply `return getcwd (NULL, 0);'.
82819         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
82820         Use 1300 as initial value for length, not PATH_MAX.
82821
82822         * lib/pathmax.h: Clean up cpp syntax.
82823
82824 2001-08-12  Jim Meyering  <meyering@lucent.com>
82825
82826         * lib/gettimeofday.c: New file.
82827         * lib/gtod.h: New file.
82828         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
82829
82830 2001-08-05  Jim Meyering  <meyering@lucent.com>
82831
82832         * m4/jm-macros.m4: Require autoconf-2.52.
82833
82834 2001-08-04  Jim Meyering  <meyering@lucent.com>
82835
82836         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
82837         stmt, to get in sync with glibc.
82838
82839 2001-08-03  Paul Eggert  <eggert@twinsun.com>
82840
82841         The following changes are from gettext 0.10.39 as maintained by
82842         Bruno Haible.
82843
82844         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
82845         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
82846         with inverted sense.  All uses changed.
82847
82848         * lib/mbswidth.c: Don't include <limits.h>.
82849         Include <stdlib.h> and <string.h> unconditionally.
82850         (iswcntrl, mbsinit, ISCNTRL): New macros.
82851         (mbsnwidth): Use K&R style function declarations.
82852         Don't bother checking for MB_LEN_MAX == 1, since the compiler
82853         can optimize it when MB_CUR_MAX == 1.
82854         The width of control characters is zero, not 1.
82855
82856 2001-08-03  Paul Eggert  <eggert@twinsun.com>
82857
82858         The following changes are from gettext 0.10.39 as maintained by
82859         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
82860
82861         * m4/codeset.m4: Upgrade to serial AM1.
82862         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
82863         all uses changed.  Quote first arg of AC_DEFUN.
82864         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
82865
82866         * m4/iconv.m4: Upgrade to serial AM2.
82867         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
82868         Add --with-libconv-prefix.
82869         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
82870         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
82871         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
82872         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
82873         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
82874
82875         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
82876         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
82877         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
82878         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
82879         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
82880         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
82881         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
82882         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
82883         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
82884
82885         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
82886         string.h any more.
82887
82888         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
82889         not the default value.
82890
82891         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
82892         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
82893         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
82894         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
82895         Also check for iswcntrl, used for wcwidth fallback.
82896         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
82897         to Autoconf 2.13.
82898
82899 2001-08-03  Jim Meyering  <meyering@lucent.com>
82900
82901         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
82902         as it was in the original.  Reported by Paul Eggert.
82903
82904 2001-07-16  Jim Meyering  <meyering@lucent.com>
82905
82906         * m4/gettimeofday.m4: New file.
82907         Prompted by a report from Bernhard Baehr.
82908
82909 2001-07-15  Jim Meyering  <meyering@lucent.com>
82910
82911         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
82912         stuff. Now it's in ../Makefile.cfg.
82913
82914 2001-07-15  Jim Meyering  <meyering@lucent.com>
82915
82916         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
82917         (BUILT_SOURCES): Add unlocked-io.h.
82918         (io_functions): Define.
82919         (unlocked-io.h): New rule.
82920         (DISTCLEANFILES): Add unlocked-io.h.
82921         (all-local): Depend on unlocked-io.h, to ensure it is created.
82922
82923         * lib/unlocked-io.hin: New file
82924
82925         * lib/regex.c: Update from glibc.
82926
82927 2001-07-05  Jim Meyering  <meyering@lucent.com>
82928
82929         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
82930         recommendation.
82931         (libfetish_a_SOURCES): Put all .h files here instead.
82932         Remove a thus-exposed (better checks in automake) duplicate and
82933         two unnecessary .h files.
82934
82935 2001-07-04  Jim Meyering  <meyering@lucent.com>
82936
82937         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
82938         that generates jm-glibc-io.m4 so that it doesn't trigger any make
82939         distcheck failure.
82940
82941 2001-07-02  Jim Meyering  <meyering@lucent.com>
82942
82943         The following changes were prompted by suggestions from Bruno Haible.
82944
82945         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
82946         is now generated.
82947         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
82948         definition of EXTRA_DIST.
82949         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
82950         ensure that the generated file is created/updated whenever the list
82951         of $(unlocked_functions) is changed.
82952         (jm-glibc-io.m4): New rule.
82953         (unlocked-io.h): New rule -- currently unused.
82954
82955 2001-06-24  Jim Meyering  <meyering@lucent.com>
82956
82957         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
82958         unmatched right bracket, rather than kludging it with an extra,
82959         falsely-matching quote in a comment.  Patch by Akim Demaille.
82960
82961 2001-06-11  Jim Meyering  <meyering@lucent.com>
82962
82963         * lib/regex.c: Update from GNU libc.
82964
82965 2001-05-27  Jim Meyering  <meyering@lucent.com>
82966
82967         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
82968         Check for ut_type in struct utmp.
82969
82970 2001-05-27  Jim Meyering  <meyering@lucent.com>
82971
82972         * lib/readutmp.h (UT_TYPE): Define.
82973
82974 2001-05-24  Jim Meyering  <meyering@lucent.com>
82975
82976         * lib/argmatch.c: Include "quote.h".
82977         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
82978         quote function.  Reported by Göran Uddeborg.
82979
82980 2001-05-22  Jim Meyering  <meyering@lucent.com>
82981
82982         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
82983         now that we use the package-supplied version unconditionally.
82984         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
82985
82986 2001-05-21  Jim Meyering  <meyering@lucent.com>
82987
82988         * m4/regex.m4: Change a couple backticks to single quotes to avoid
82989         shell syntax errors.
82990
82991 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
82992
82993         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
82994
82995 2001-05-20  Paul Eggert  <eggert@twinsun.com>
82996
82997         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
82998         Don't bother to check library strftime, since
82999         we'll be using our own my_strftime function anyway.
83000         Define my_strftime instead of strftime.
83001
83002 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
83003
83004         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
83005         which is not yet declared.
83006
83007 2001-05-15  Jim Meyering  <meyering@lucent.com>
83008
83009         * m4/regex.m4: Use proper quoting so brackets appear in the test
83010         program.
83011         Reported by, and with help from, Bruno Haible.
83012
83013 2001-05-13  Jim Meyering  <meyering@lucent.com>
83014
83015         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
83016         undefined.
83017
83018 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83019
83020         dirname code cleanup.  base_name now behaves more compatibly
83021         with POSIX basename when given file names that have trailing
83022         slashes, and similarly for dir_name.  Add new primitives
83023         base_len and dir_len.  Put the directory-name-related decls
83024         into dirname.h.
83025
83026         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
83027         * lib/backupfile.c (base_name): Likewise.
83028         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
83029         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
83030         * lib/makepath.c (strip_trailing_slashes): Likewise.
83031         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
83032         ISSLASH): Likewise.
83033         * lib/rename.c (strip_trailing_slashes): Likewise.
83034         * lib/same.c (base_name): Likewise.
83035         * lib/stripslash.c (ISSLASH): Likewise.
83036
83037         * lib/addext.c: Include <dirname.h> after size_t is defined.
83038         * lib/backupfile.c: Likewise.
83039
83040         * lib/addext.c (addext): Use base_len to trim redundant
83041         trailing slashes instead of doing it ourselves.
83042         But do not trim the last slash if it is not redundant.
83043
83044         * lib/backupfile.c (find_backup_file_name,
83045         max_backup_version): Use base_len instead of rolling it ourselves.
83046         Handle the case of "" and (on DOS) "C:" correctly.
83047
83048         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
83049         needed. Include <string.h>, <dirname.h>.
83050         (base_name): Allow file names ending in slashes, other than names
83051         that are all slashes.  In this case, return the basename followed
83052         by the slashes.  This is more general, and can be used in places
83053         where the original base_name purposely had an assertion failure.
83054         (base_len): New function.
83055
83056         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
83057         Do not include <assert.h>; no longer needed.
83058         Include xalloc.h.
83059         (memrchr): Remove decl.
83060         (dir_name_r): Remove.
83061         (dir_len): Renamed from dirlen.  All callers changed.
83062         Rewrite in terms of base_name, for simplicity and consistency.
83063         (dir_name): Never return NULL.  All callers changed.
83064         Do not include <stdlib.h> in test program; no longer needed.
83065         return 0; is fine for test program.
83066
83067         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
83068         New macros.
83069         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
83070
83071         * lib/path-concat.c (path_concat): Use base_len to compute
83072         base length, not strlen; this means we cannot rely on memcpy
83073         to null-terminate.
83074
83075         * lib/same.c (STREQ): Remove.
83076         (same_name): Handle the case where the basename ends in trailing '/'.
83077
83078         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
83079         a slash was stripped.  Do not strip the last slash after a
83080         file system prefix.
83081
83082 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83083
83084         * lib/Makefile.am (libfetish_a_SOURCES):
83085         Add strftime.c, since we now compile it on all hosts.
83086
83087         * lib/strftime.c (my_strftime):
83088         Define to nstrftime if emacs, but only if my_strftime is not defined.
83089         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
83090         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
83091         Add one more extra argument: a nanoseconds value.
83092         All uses changed.
83093         (ns): New macro.
83094         (my_strftime function): Add %N format.
83095         (emacs_strftimeu): Renamed from emacs_strftime,
83096         with extra ut argument.
83097
83098 2001-05-09  Paul Eggert  <eggert@twinsun.com>
83099
83100         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
83101
83102 2001-04-21  Jim Meyering  <meyering@lucent.com>
83103
83104         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
83105         doesn't interfere.
83106
83107 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83108
83109         * m4/ftruncate.m4: Check for chsize.
83110         Link with ftruncate.o unconditionally if ftruncate is missing.
83111         This was required when cross-compiling to i586-mingw32msvc.
83112
83113 2001-04-08  Jim Meyering  <meyering@lucent.com>
83114
83115         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
83116         recomputed; that's necessary when the offset spans a DST transition.
83117         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
83118
83119 2001-04-02  Jim Meyering  <meyering@lucent.com>
83120
83121         * lib/regex.h, regex.c: Update from GNU libc.
83122
83123 2001-03-24  Jim Meyering  <meyering@lucent.com>
83124
83125         * m4/jm-macros.m4: Require autoconf-2.49d.
83126
83127 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
83128
83129         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
83130
83131 2001-03-19  Paul Eggert  <eggert@twinsun.com>
83132
83133         * lib/version-etc.c (version_etc_copyright): Update to 2001.
83134
83135 2001-03-17  Jim Meyering  <meyering@lucent.com>
83136
83137         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
83138         now that the version in autoconf is equivalent.
83139         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
83140
83141         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
83142         Suggestion from Akim Demaille.
83143
83144         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
83145         (jm_PREREQ_TEMPNAME): New function.
83146
83147 2001-03-16  Paul Eggert  <eggert@twinsun.com>
83148
83149         * lib/tempname.c (uint64_t): Define to uintmax_t if
83150         not defined, and if UINT64_MAX is not defined.
83151         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
83152         Reported by John David Anglin.
83153
83154 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
83155
83156         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
83157         resolve alias if codeset is empty.
83158         * lib/config.charset (BeOS): Use wildcard syntax.
83159
83160 2001-03-13  Jim Meyering  <meyering@lucent.com>
83161
83162         * lib/path-concat.c (path_concat)
83163         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
83164         concatenating e.g., `C:' and `foo'.
83165         From Bruno Haible.
83166
83167 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83168
83169         * lib/localcharset.c (locale_charset): Don't use
83170         setlocale(LC_CTYPE,NULL). Don't return NULL.
83171         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
83172
83173 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83174
83175         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
83176         support for DOS/DJGPP.
83177
83178 2001-03-01  Paul Eggert  <eggert@twinsun.com>
83179
83180         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
83181         lacks mkstemp.  Compile our own tempname.c if we compile our own
83182         mkstemp.c, as mkstemp relies on tempname.
83183
83184 2001-03-01  Jim Meyering  <meyering@lucent.com>
83185
83186         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
83187         AH_VERBATIM really does output its argument verbatim.
83188
83189 2001-02-28  Paul Eggert  <eggert@twinsun.com>
83190
83191         * lib/Makefile.am (libfetish_a_SOURCES):
83192         Add dup-safer.c, fopen-safer.c.
83193         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
83194
83195         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
83196         * lib/unistd-safer.h: New files.
83197
83198 2001-02-25  Paul Eggert  <eggert@twinsun.com>
83199
83200         The mkstemp replacement is taken from glibc 2.2.2, with some
83201         portability fixes for use outside glibc, as follows:
83202
83203         * lib/tempname.c (struct_stat64): New macro.
83204         (direxists, __gen_tempname): Use it.
83205         This avoids a portability problem with Solaris 8.
83206
83207         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
83208         (<stddef.h>, <stdint.h>, <string.h>):
83209         Include only if STDC_HEADERS || _LIBC.
83210         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
83211         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
83212         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
83213         (__set_errno): Define this macro if <errno.h> doesn't.
83214         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
83215         Define these macros if <stdio.h> doesn't.
83216         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
83217         Define these macros if <sys/stat.h>
83218         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
83219         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
83220         __xstat64): Define if not _LIBC.
83221         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
83222         (__gen_tempname): Invoke gettimeofday only if
83223         HAVE_GETTIMEOFDAY || _LIBC;
83224         otherwise, fall back on plain "time".
83225         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
83226
83227         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
83228
83229         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
83230
83231 2001-02-18  Paul Eggert  <eggert@twinsun.com>
83232
83233         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
83234
83235 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83236
83237         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
83238         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
83239         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
83240         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83241
83242 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83243
83244         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
83245         Remove workaround macros for hosts that have mbrtowc but not
83246         mbstate_t, as we now insist on proper declarations for both
83247         before using mbrtowc.
83248
83249 2001-02-17  Jim Meyering  <meyering@lucent.com>
83250
83251         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
83252         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
83253         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
83254         UnixWare 7.1.1.
83255
83256         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
83257         rather than AC_CACHE_VAL.
83258
83259 2001-02-17  Jim Meyering  <meyering@lucent.com>
83260
83261         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
83262         around included file name.
83263
83264         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
83265
83266         * lib/strftime.c: Update from GNU libc (the only changes were to
83267         comments).
83268
83269 2001-02-17  Jim Meyering  <meyering@lucent.com>
83270
83271         * lib/regex.c: Update from libc.
83272
83273 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
83274
83275         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
83276         clash.
83277
83278 2001-02-16  Paul Eggert  <eggert@twinsun.com>
83279
83280         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
83281         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
83282         Reported by Mark Hounschell via Paul Eggert.
83283
83284 2001-02-07  Jim Meyering  <meyering@lucent.com>
83285
83286         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
83287
83288 2001-02-05  Jim Meyering  <meyering@lucent.com>
83289
83290         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
83291         it includes the patch required for `large file' support with at least
83292         HP-UX's 10.20 /bin/cc.
83293
83294 2001-02-03  Jim Meyering  <meyering@lucent.com>
83295
83296         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
83297         AS_IF, now that it works once again (mysteriously).
83298         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83299
83300 2001-01-30  Jim Meyering  <meyering@lucent.com>
83301
83302         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
83303         * m4/chown.m4: Rename conftestchown to conftest.chown.
83304         * m4/rename.m4: s/conftestdir/conftest.d1/ and
83305         s/conftestdir2/conftest.d2/.
83306         * m4/utimes.m4: s/conftestdata/conftest.data/
83307         Inspired by Pavel Roskin's change in autoconf.
83308
83309 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
83310
83311         * lib/config.charset: Update for FreeBSD 4.2.
83312
83313 2001-01-27  Jim Meyering  <meyering@lucent.com>
83314
83315         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
83316         a use of AS_IF.
83317         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83318
83319 2001-01-26  Jim Meyering  <meyering@lucent.com>
83320
83321         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
83322         quotearg.c includes it.
83323
83324 2001-01-26  Jim Meyering  <meyering@lucent.com>
83325
83326         * lib/quotearg.c: Include stddef.h.
83327         * lib/quote.c: Include stddef.h.
83328         Reported by Axel Kittenberger.
83329
83330         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
83331         line in double quotes so that it evokes a better diagnostic.
83332         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
83333         Reported by Axel Kittenberger.
83334
83335 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
83336
83337         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
83338         as if it was a `charset'.
83339
83340 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83341
83342         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
83343         has const.
83344
83345 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83346
83347         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
83348         to avoid a warning.  Add back 'const' to inptr.
83349
83350 2001-01-20  Jim Meyering  <meyering@lucent.com>
83351
83352         Be sure that headers are checked before used in code compiled
83353         for the type checks.
83354         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
83355         In place of that, invoke jm_CHECK_ALL_TYPES.
83356         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
83357         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
83358         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
83359         The check for ssize_t was mistakenly run before the test for unistd.h.
83360
83361         The configure-time check for stdbool.h was missing.
83362         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
83363         (jm_PREREQ_HASH): New function.
83364
83365 2001-01-17  Jim Meyering  <meyering@lucent.com>
83366
83367         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
83368         for autoconf-2.49c.
83369         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
83370
83371 2001-01-16  Jim Meyering  <meyering@lucent.com>
83372
83373         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
83374         From Bruno Haible.
83375
83376 2001-01-14  Jim Meyering  <meyering@lucent.com>
83377
83378         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
83379         foo and bar.  Create conftestdir/ in the script, not in the C code.
83380         Remove directories in the script, not in the C code.
83381         Remove conftestdir{,2} before trying to create the directory.
83382         Make the entire configure script fail if the mkdir fails.
83383
83384 2001-01-14  Jim Meyering  <meyering@lucent.com>
83385
83386         * lib/rename.c: New file.  From Volker Borchert.
83387         Include stdlib.h, string.h or strings.h, and xalloc.h.
83388         Use strip_trailing_slashes rather than open-coding it.
83389
83390 2001-01-03  Paul Eggert  <eggert@twinsun.com>
83391
83392         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
83393
83394 2001-01-03  Jim Meyering  <meyering@lucent.com>
83395
83396         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
83397         of local `inptr' to avoid warning with some system declarations of
83398         iconv.
83399
83400 2001-01-02  Volker Borchert  <bt@teknon.de>
83401
83402         * m4/rename.m4: New file.
83403         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
83404
83405 2001-01-01  Jim Meyering  <meyering@lucent.com>
83406
83407         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
83408         even on systems with utmpx.h.  It's necessary for the declaration of
83409         utmp's ut_user member.  Reported by Andreas Jaeger.
83410
83411         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
83412         available. They are required for the declarations of getgrgid and
83413         getpwuid resp.
83414         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
83415         Reported by Andreas Jaeger.
83416
83417 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
83418
83419         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
83420         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
83421         so `make install' also works in VPATH builds.
83422
83423 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
83424
83425         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
83426         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
83427         can be used in subdirectories.
83428
83429 2000-12-29  Paul Eggert  <eggert@twinsun.com>
83430
83431         * lib/modechange.c: Do not assume that mode_t uses the
83432         traditional octal encoding.  E.g. "chmod 1 FOO" should set
83433         the other-execute bit of FOO even if S_IXOTH != 1.
83434
83435         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
83436         WOTH, XOTH, ALLM): New macros.
83437         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
83438          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
83439         Use them.
83440         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
83441         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
83442         (mode_compile):
83443         No need to use uintmax_t; unsigned long is long enough.
83444         Don't bother to get suffix since we don't use it.
83445
83446 2000-12-26  Jim Meyering  <meyering@lucent.com>
83447
83448         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
83449         better with autoheader.
83450
83451 2000-12-24  Jim Meyering  <meyering@lucent.com>
83452
83453         * lib/hash.c (is_prime): Return explicit boolean values.
83454         (hash_get_first): Return NULL to appease Irix5.6's 89.
83455         Reported by Nelson Beebe.
83456
83457 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
83458
83459         * lib/localcharset.c (locale_charset): Add support for Win32.
83460
83461 2000-12-18  Paul Eggert  <eggert@twinsun.com>
83462
83463         * lib/physmem.h, lib/physmem.c: New files.
83464
83465         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
83466         (noinst_HEADERS): Add physmem.h.
83467
83468         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
83469         't' for compatibility with Solaris 8 sort.
83470
83471 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
83472
83473         * lib/config.charset: Add support for BeOS.
83474
83475 2000-12-17  Jim Meyering  <meyering@lucent.com>
83476
83477         * m4/dos.m4 (jm_AC_DOS): New file and macro.
83478         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
83479
83480 2000-12-16  Jim Meyering  <meyering@lucent.com>
83481
83482         This bug had a serious impact on chown: `chown N:M FILE' (for integer
83483         N and M) would have treated it like `chown N:N FILE'.
83484
83485         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
83486
83487 2000-12-16  Jim Meyering  <meyering@lucent.com>
83488
83489         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
83490         SHELLS_FILE to a file name that's useful on djgpp systems.
83491         Include stdlib.h.
83492         (ADDITIONAL_DEFAULT_SHELLS): Define.
83493         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
83494         Based mostly on a patch from Prashant TR.
83495
83496 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
83497
83498         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
83499         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
83500         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
83501
83502 2000-12-08  Andreas Schwab  <schwab@suse.de>
83503
83504         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
83505         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
83506
83507 2000-12-07  Jim Meyering  <meyering@lucent.com>
83508
83509         * lib/stripslash.c (ISSLASH): Define.
83510         (strip_trailing_slashes): Use ISSLASH rather than comparing against
83511         `/'.
83512         From Prashant TR.
83513
83514         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
83515         (dir_name_r): Declare this function as static.
83516         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
83517         manifest itself on a name containing a mix of slashes and
83518         backslashes.
83519         Make this function work with names starting with a DOS-style
83520         drive letter and colon prefix.
83521         (dir_name): Append `.' if necessary.
83522         Based mostly on patches from Prashant TR and Eli Zaretskii.
83523
83524         * lib/dirname.h (dir_name_r): Remove prototype.
83525
83526 2000-12-06  Paul Eggert  <eggert@twinsun.com>
83527
83528         * m4/off_t-format.m4: Remove this file.
83529         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
83530
83531 2000-12-06  Jim Meyering  <meyering@lucent.com>
83532
83533         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
83534         replacement strtoull, we may well need the replacement strtoul, too.
83535         Check for declarations of strtoul and strtoull.
83536         Check for strtol.  Mainly as a cue to cause automake to include
83537         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
83538         Check for limits.h -- strtol.c needs it.
83539
83540 2000-12-05  Jim Meyering  <meyering@lucent.com>
83541
83542         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
83543
83544 2000-12-04  Jim Meyering  <meyering@lucent.com>
83545
83546         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
83547         Also include memory.h, stdlib.h, unistd.h if appropriate.
83548         Reported by Andreas Jaeger (conflicting declaration of malloc).
83549
83550 2000-12-02  Jim Meyering  <meyering@lucent.com>
83551
83552         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
83553         * m4/jm-macros.m4 (jm_MACROS): require it.
83554
83555 2000-12-02  Jim Meyering  <meyering@lucent.com>
83556
83557         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
83558
83559 2000-12-01  Paul Eggert  <eggert@twinsun.com>
83560
83561         * lib/memrchr.c: Include <config.h> before any system include file.
83562
83563 2000-11-30  Jim Meyering  <meyering@lucent.com>
83564
83565         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
83566
83567 2000-11-30  Jim Meyering  <meyering@lucent.com>
83568
83569         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
83570
83571 2000-11-29  Paul Eggert  <eggert@twinsun.com>
83572
83573         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
83574
83575 2000-11-26  Jim Meyering  <meyering@lucent.com>
83576
83577         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
83578
83579 2000-11-22  Paul Eggert  <eggert@twinsun.com>
83580
83581         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
83582         size of (size_t) -1; it's not portable.
83583
83584 2000-11-17  Jim Meyering  <meyering@lucent.com>
83585
83586         * lib/strstr.c: Update from GNU libc.
83587
83588 2000-11-17  Akim Demaille  <akim@epita.fr>
83589
83590         * lib/obstack.h: Formatting changes.
83591         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
83592         prevent type checking.
83593         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
83594         cast the value to (void *): assigning a `foo *' to a `void *'
83595         variable is valid.
83596         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
83597
83598 2000-11-16  Jim Meyering  <meyering@lucent.com>
83599
83600         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
83601
83602 2000-11-11  Jim Meyering  <meyering@lucent.com>
83603
83604         * lib/error.c: Add a couple #includes, merging from GNU libc version.
83605
83606 2000-11-10  Jim Meyering  <meyering@lucent.com>
83607
83608         * lib/obstack.h: Update from GNU libc.
83609         * lib/obstack.c: Likewise.
83610
83611 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
83612
83613         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
83614
83615 2000-11-06  Paul Eggert  <eggert@twinsun.com>
83616
83617         * lib/getusershell.c (setusershell): Use rewind rather than
83618         fseek/fseeko, to avoid configuration hassles with fseeko.
83619         Don't bother opening SHELLS_FILE if shellstream is NULL;
83620         it's not necessary.
83621
83622 2000-11-05  Jim Meyering  <meyering@lucent.com>
83623
83624         * lib/makepath.h (make_dir): Declare.
83625         * lib/makepath.c (make_dir): Remove `static' attribute.
83626         Tweak a comment.
83627
83628 2000-11-04  Jim Meyering  <meyering@lucent.com>
83629
83630         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
83631
83632 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
83633
83634         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
83635         last one in a bucket, advance to the next bucket.
83636
83637 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
83638
83639         * lib/fnmatch.c: Do not comment out all the code if we are using
83640         the GNU C library, because in some cases we are replacing buggy
83641         code in the GNU C library itself.
83642
83643 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
83644
83645         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
83646         (regex_compile): Catch bogus \(\1\).
83647
83648 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83649
83650         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
83651         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
83652         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
83653
83654 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83655
83656         * lib/error.h, getline.h, modechange.h:
83657         Remove "2000" from Copyright line, as the file hasn't been
83658         changed this year other than in the copyright notice.
83659
83660         * lib/xalloc.h: Add "2000" to Copyright line, as this file
83661         was changed this year.
83662
83663 2000-10-29  Jim Meyering  <meyering@lucent.com>
83664
83665         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
83666         renaming.
83667         * m4/ls-mntd-fs.m4: Likewise
83668
83669 2000-10-29  Jim Meyering  <meyering@lucent.com>
83670
83671         * lib/xstat.in: Fix grammar in comment.
83672
83673 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
83674
83675         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
83676         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
83677         doesn't define __restrict_arr.
83678
83679 2000-10-28  Jim Meyering  <meyering@lucent.com>
83680
83681         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
83682         (jm_PREREQ_MEMCHR): New function.
83683
83684 2000-10-28  Jim Meyering  <meyering@lucent.com>
83685
83686         * lib/memchr.c: Update from libc.
83687         Adjust for portability:
83688         [HAVE_STDLIB_H]: Include stdlib.h.
83689         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
83690         Undef __memchr, too.
83691         [!weak_alias]: Define __memchr to memchr.
83692
83693         * lib/regex.c: Update from libc.
83694         * lib/regex.h: Likewise.
83695         * lib/getopt1.c: Likewise.
83696         * lib/memcmp.c: Likewise.
83697
83698         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
83699         Avoid using fseek, when possible -- it's broken by design.
83700         Patch by Ulrich Drepper.
83701
83702 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
83703
83704         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
83705         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
83706         Giving in to popular pressure to shut up the compiler with casts.
83707
83708 2000-10-26  Jim Meyering  <meyering@lucent.com>
83709
83710         * lib/strftime.c: Update from libc.
83711
83712 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
83713
83714         * regex.c: More `unsigned char' -> `re_char' changes.
83715         Also change several `int' into `re_wchar_t'.
83716         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
83717         (PUSH_FAILURE_POINTER): Don't cast any more.
83718         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
83719         We want GCC to complain, since this piece of code makes
83720         re_match non-reentrant, which *should* be fixed.
83721         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
83722         (EXTEND_BUFFER): Use RETALLOC.
83723         (SET_LIST_BIT): Don't cast.
83724         (re_wchar_t): New type.
83725         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
83726         that those two functions will always properly return.
83727         (IMMEDIATE_QUIT_CHECK): Cast to void.
83728         (analyse_first): Use recursion rather than an explicit stack.
83729         (re_compile_fastmap): Can't fail anymore.
83730         (re_search_2): Don't check re_compile_fastmap for failure.
83731         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
83732         Now also sets the new value (passed in a new argument).
83733         (re_match_2_internal): Use it.
83734         Also, use a new var `reg' of type size_t when looping through regs
83735         rather than reuse the inappropriate `mcnt'.
83736
83737 2000-10-25  Jim Meyering  <meyering@lucent.com>
83738
83739         * lib/obstack.c: Update from libc.
83740
83741 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
83742
83743         * regex.c (regex_compile): Change the way of handling a range from
83744         a char less than 256 to a char not less than 256.
83745
83746 2000-10-24  Andrew Innes  <andrewi@gnu.org>
83747
83748         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
83749         NT-Emacs only.
83750         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
83751         so that re_search functions only quit when callers expect them to.
83752
83753 2000-10-23  Jim Meyering  <meyering@lucent.com>
83754
83755         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
83756         wrong.  That set_locale call must not have any side effects.
83757         From Paul Eggert.
83758
83759 2000-10-22  Jim Meyering  <meyering@lucent.com>
83760
83761         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
83762         [CYCLIC]: Remove now-unused definition.
83763
83764         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
83765         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
83766         Suggestion from Ulrich Drepper.
83767
83768 2000-10-21  Jim Meyering  <meyering@lucent.com>
83769
83770         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
83771         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
83772         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
83773
83774 2000-10-21  Jim Meyering  <meyering@lucent.com>
83775
83776         * lib/dirname.c (memrchr): Declare if necessary.
83777         (dir_name): Remove the restriction that there be no
83778         trailing slashes.  Now, this code skips past them, effectively
83779         ignoring them.
83780         [TEST_DIRNAME] (main): New unit tests.
83781
83782         * lib/memrchr.c: New file from GNU libc.
83783         Undef __memrchr, too.
83784         [!weak_alias]: Define __memrchr to memrchr.
83785         Guard weak_alias use with `#ifdef weak_alias'.
83786
83787 2000-10-21  Jim Meyering  <meyering@lucent.com>
83788
83789         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
83790         (dir_name): Use dir_name_r.
83791         * lib/dirname.h (dir_name_r): Declare it.
83792
83793 2000-10-17  Jim Meyering  <meyering@lucent.com>
83794
83795         * lib/quote.h (PARAMS): Define and use.
83796         Reported by Akim Demaille.
83797
83798         * lib/getopt.c: Update from libc.
83799
83800 2000-10-16  Jim Meyering  <meyering@lucent.com>
83801
83802         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
83803         setlocale.
83804         From Jan Fedak.
83805
83806 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
83807
83808         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
83809
83810 2000-09-25  Jim Meyering  <meyering@lucent.com>
83811
83812         * lib/md5.h (rol): Define (from GnuPG).
83813
83814         * lib/sha.c: Give credit (GnuPG) where due.
83815         (M): Use rol rather than open-coding it.
83816         Add a FIXME comment.
83817
83818 2000-09-21  Jim Meyering  <meyering@lucent.com>
83819
83820         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
83821         Reported by Michael Stone.
83822
83823 2000-09-20  Jim Meyering  <meyering@lucent.com>
83824
83825         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
83826         (noinst_HEADERS): Add sha.h.
83827         Based on code from Scott G. Miller and from GnuPG.
83828
83829 2000-09-18  Jim Meyering  <meyering@lucent.com>
83830
83831         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
83832         LIBS. Otherwise, everyone ends up linking with -lelf for some
83833         configurations.
83834         Reported by Mike Stone.
83835
83836 2000-09-15  Jim Meyering  <meyering@lucent.com>
83837
83838         * lib/regex.c: Update from libc.
83839
83840 2000-09-10  Jim Meyering  <meyering@lucent.com>
83841
83842         * lib/getopt.c (_getopt_internal): Update from glibc.
83843
83844 2000-09-09  Jim Meyering  <meyering@lucent.com>
83845
83846         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
83847         think it should be used as a general replacement for isascii.
83848         * lib/fnmatch.c: Likewise.
83849         * lib/mbswidth.c: Likewise
83850         * lib/regex.c: Likewise.
83851
83852         Don't use atoi.
83853         * lib/userspec.c: Include sys/param.h and limits.h.
83854         Include xstrtol.h.
83855         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
83856         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
83857         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
83858         UID, GID.  Check range.
83859
83860 2000-09-06  Jim Meyering  <meyering@lucent.com>
83861
83862         * lib/getopt.c (_getopt_internal): Update from glibc.
83863
83864 2000-08-30  Jim Meyering  <meyering@lucent.com>
83865
83866         * lib/strftime.c: Merge in changes from GNU libc.
83867
83868 2000-08-26  Jim Meyering  <meyering@lucent.com>
83869
83870         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
83871         * m4/fpending.m4: New file.
83872
83873 2000-08-26  Jim Meyering  <meyering@lucent.com>
83874
83875         * lib/closeout.c: Include "__fpending.h".
83876         (close_stdout_status): Return right away if there's nothing to flush.
83877
83878         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
83879         * lib/__fpending.c: New file.
83880         * lib/__fpending.h: New file.
83881
83882 2000-08-20  Jim Meyering  <meyering@lucent.com>
83883
83884         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
83885         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
83886         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
83887
83888 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
83889
83890         Improve fileutils installation on systems where running
83891         programs (like install) can't be unlinked.
83892         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
83893         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
83894
83895 2000-08-07  Paul Eggert  <eggert@twinsun.com>
83896
83897         Standardize on "memory exhausted" instead of "Memory exhausted"
83898         or "virtual memory exhausted".
83899         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
83900         "virtual memory exhausted".
83901         * lib/same.c (same_name): Invoke xalloc_die instead of printing
83902         our own message.
83903         * lib/userspec.c (parse_user_spec): Likewise.
83904         * lib/bumpalloc.h: comment fix
83905         * lib/same.c, userspec.c: Include xalloc.h.
83906
83907         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
83908         not char *const and pointing to a constant array.
83909         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
83910         (xrealloc): Comment fix.
83911
83912         * lib/userspec.c (parse_user_spec):
83913         Don't translate a message until just before returning,
83914         to avoid unnecessary translation.
83915
83916 2000-08-07  Jim Meyering  <meyering@lucent.com>
83917
83918         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
83919         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
83920         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
83921         getgroups.c, gethostname.c, getopt.h, group-member.c,
83922         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
83923         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
83924         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
83925         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
83926         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
83927         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
83928         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
83929         yesno.c: Back out Copyright date changes for each file with no change
83930         this year.  This eases coordination with other programs using the same
83931         source code modules.  From Paul Eggert.
83932
83933 2000-08-06  Paul Eggert  <eggert@twinsun.com>
83934
83935         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
83936         not char, for compatibility with glibc 2.1.3 strftime.c.
83937
83938 2000-08-03  Greg McGary  <greg@mcgary.org>
83939
83940         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
83941         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
83942         (EXTEND_BUFFER): Use them.
83943
83944 2000-08-01  Jim Meyering  <meyering@lucent.com>
83945
83946         * lib/dirname.c (ISSLASH): Define.
83947         (BACKSLASH_IS_PATH_SEPARATOR): Define.
83948         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
83949         both `\' and `/' may be use as path separators.
83950         Based on a patch from Prashant TR.
83951
83952 2000-07-31  Paul Eggert  <eggert@twinsun.com>
83953
83954         * lib/quotearg.c (quotearg_n_options): Don't make the initial
83955         slot vector a constant, since it might get modified.
83956
83957 2000-07-31  Jim Meyering  <meyering@lucent.com>
83958
83959         * lib/xmalloc.c: Use `virtual memory exhausted', not
83960         `Memory exhausted'.
83961         * lib/obstack.c (print_and_abort): Likewise.
83962
83963 2000-07-30  Paul Eggert  <eggert@twinsun.com>
83964
83965         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
83966         buffer, so that the caller can always quote one small
83967         component of a "memory exhausted" message in slot 0.
83968         From a suggestion by Jim Meyering.
83969
83970 2000-07-30  Jim Meyering  <meyering@lucent.com>
83971
83972         * lib/makepath.c (make_path): Quote the other instance, too.
83973
83974         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
83975         (STATIC_BUF_SIZE): Define.
83976         (quotearg_n_options): Use only statically allocated storage when
83977         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
83978         than STATIC_BUF_SIZE.
83979
83980 2000-07-29  Jim Meyering  <meyering@lucent.com>
83981
83982         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
83983         * lib/dirname.c (dir_name): Likewise.
83984
83985         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
83986         `/'.
83987
83988         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
83989         (dir_name): Assert that there are no trailing slashes.
83990
83991 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
83992
83993         * lib/mbswidth.h (mbswidth): Add a flags argument.
83994         (mbswidth): New declaration.
83995         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
83996         * lib/mbswidth.c (mbswidth): Add a flags argument.
83997         (mbsnwidth): New function.
83998
83999 2000-07-24  Jim Meyering  <meyering@lucent.com>
84000
84001         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
84002
84003 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84004
84005         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
84006
84007 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84008
84009         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
84010         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
84011         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
84012         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
84013         invoke multibyte primitives.
84014
84015 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84016
84017         * lib/quotearg.c:
84018         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
84019         so that mbstate_t is always defined.
84020
84021         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
84022         be 1 in at least one GCC installation, and this configuration
84023         error is likely to be common.  Ignoring MB_LEN_MAX hurts
84024         performance on hosts that have mbrtowc but have only unibyte
84025         locales, but I assume these hosts are rare.
84026
84027 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84028
84029         * lib/mbswidth.c (_XOPEN_SOURCE):
84030         Don't define; this causes problems on Solaris 7.
84031         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
84032
84033 2000-07-23  Jim Meyering  <meyering@lucent.com>
84034
84035         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
84036         too: getgrgid, getpwuid, getuid.
84037
84038 2000-07-23  Jim Meyering  <meyering@lucent.com>
84039
84040         * lib/basename.c (base_name): Add an assertion.
84041
84042 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
84043
84044         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
84045         shadow its mbsinit function.
84046
84047 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84048
84049         * lib/mbswidth.h: New file.
84050         * lib/mbswidth.c: New file.
84051         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
84052         (noinst_HEADERS): Add mbswidth.h.
84053
84054 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84055
84056         * lib/config.charset: Add support for FreeBSD. Improve support for
84057         HP-UX and IRIX 6.
84058
84059 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
84060
84061         * m4/mbswidth.m4: New file.
84062         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
84063
84064 2000-07-15  Jim Meyering  <meyering@lucent.com>
84065
84066         * lib/makepath.c: Include quote.h.
84067         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
84068         corresponding argument in a `quote (...)' call.
84069         Give better diagnostics.
84070
84071         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
84072         (noinst_HEADERS): Add quote.h.
84073
84074         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
84075         from tar's src/misc.c.
84076         * lib/quote.h: New file.  Prototypes for same.
84077
84078 2000-07-14  Paul Eggert  <eggert@twinsun.com>
84079
84080         From a suggestion by Bruno Haible.
84081         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
84082         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
84083         to decide whether to define the BeOS workaround macro;
84084         this adjusts to the change to AC_MBSTATE_T.
84085
84086 2000-07-14  Jim Meyering  <meyering@lucent.com>
84087
84088         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
84089         jm_AC_TYPE_UINTMAX_T.
84090
84091 2000-07-13  Paul Eggert  <eggert@twinsun.com>
84092
84093         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
84094
84095         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
84096         quotearg_buffer_restyled): Add support for
84097         clocale_quoting_style.  Undo previous change to
84098         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
84099         and "{RIGHT QUOTATION MARK}" msgids.
84100
84101 2000-07-10  Paul Eggert  <eggert@twinsun.com>
84102
84103         From a suggestion by Bruno Haible.
84104         * m4/mbstate_t.m4 (AC_MBSTATE_T):
84105         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
84106         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
84107         and mbstate_t, to a single-part test that simply defines mbstate_t.
84108         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
84109         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
84110
84111 2000-07-10  Jim Meyering  <meyering@lucent.com>
84112
84113         * m4/strerror_r.m4: Mirror the correction made in autoconf.
84114
84115         * m4/gnu-source.m4: Output to confdefs.h directly.
84116         Suggestion from Akim Demaille.
84117
84118 2000-07-09  Paul Eggert  <eggert@twinsun.com>
84119
84120         The old behavior of quoting `like this' doesn't look good with
84121         newer, ISO-style fonts.  See:
84122         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
84123
84124         Instead, quote "like this" by default.  Let the translator
84125         tailor the locale-specific quoting behavior by providing
84126         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
84127
84128         * lib/quotearg.c (N_): New macro.
84129         (gettext_default): New function.
84130         (quotearg_buffer_restyled): Use
84131         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
84132         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
84133
84134 2000-07-09  Jim Meyering  <meyering@lucent.com>
84135
84136         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
84137         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
84138
84139         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
84140         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
84141
84142 2000-07-09  Jim Meyering  <meyering@lucent.com>
84143
84144         * lib/Most files: Update copyright dates to include 2000.
84145
84146 2000-07-08  Jim Meyering  <meyering@lucent.com>
84147
84148         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
84149         if not defined.
84150         (xgethostname): Remove now-unnecessary #ifdef.
84151         Move declaration of `err' into loop where it's used.
84152
84153 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84154         and Bruno Haible  <haible@clisp.cons.org>
84155
84156         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
84157         only if the test for an object-type mbstate_t fails.  This
84158         prevents us from mistakenly reporting that mbstate_t is a
84159         system object type after we "#define mbstate_t int" to work
84160         around its lack.
84161
84162 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84163         and Bruno Haible  <haible@clisp.cons.org>
84164
84165         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
84166
84167 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84168
84169         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
84170         to strerror_r.
84171         Include <ctype.h> for use of isalpha.
84172
84173 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84174
84175         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
84176         by allocating a larger buffer. Test the gethostname return value for
84177         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
84178         returns an error and ENAMETOOLONG isn't defined.
84179
84180 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84181
84182         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
84183         dimension.
84184
84185 2000-07-04  Jim Meyering  <meyering@lucent.com>
84186
84187         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
84188         of the deprecated AC_CHECKING.
84189
84190 2000-07-04  Jim Meyering  <meyering@lucent.com>
84191
84192         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
84193         Reported by Bruno Haible.
84194
84195 2000-07-04  Jim Meyering  <meyering@lucent.com>
84196
84197         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
84198         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
84199         lacks mbrtowc.
84200
84201 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84202
84203         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
84204         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
84205
84206 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84207         and Bruno Haible  <haible@clisp.cons.org>
84208
84209         * lib/quotearg.c (mbrtowc):
84210         Assign to *pwc, and return 1 only if result is nonzero.
84211         (iswprint): Use ISPRINT when substituting our own mbrtowc.
84212
84213 2000-07-03  Jim Meyering  <meyering@lucent.com>
84214
84215         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
84216
84217 2000-07-03  Jim Meyering  <meyering@lucent.com>
84218
84219         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
84220         This is necessary to get a definition of e.g., UTMP_FILE on
84221         HP-UX 10.20.
84222         From Bob Proulx.
84223
84224 2000-07-02  Jim Meyering  <meyering@lucent.com>
84225
84226         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
84227
84228         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
84229         AC_LIBOBJ(function_name).
84230         * m4/chown.m4: Likewise.
84231         * m4/fnmatch.m4: Likewise.
84232         * m4/ftruncate.m4: Likewise.
84233         * m4/getgroups.m4: Likewise.
84234         * m4/getline.m4: Likewise.
84235         * m4/group-member.m4: Likewise.
84236         * m4/jm-macros.m4: Likewise.
84237         * m4/lstat.m4: Likewise.
84238         * m4/malloc.m4: Likewise.
84239         * m4/memcmp.m4: Likewise.
84240         * m4/nanosleep.m4: Likewise.
84241         * m4/putenv.m4: Likewise.
84242         * m4/realloc.m4: Likewise.
84243         * m4/regex.m4: Likewise.
84244         * m4/stat.m4: Likewise.
84245         * m4/strftime.m4: Likewise.
84246
84247 2000-07-02  Jim Meyering  <meyering@lucent.com>
84248
84249         * lib/quotearg.c (mbstate_t): Don't define here.
84250
84251 2000-07-02  Jim Meyering  <meyering@lucent.com>
84252
84253         * lib/nanosleep.c (SIGCONT): Define if not already defined.
84254
84255 2000-07-01  Jim Meyering  <meyering@lucent.com>
84256
84257         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
84258
84259 2000-07-01  Jim Meyering  <meyering@lucent.com>
84260
84261         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
84262         problem.
84263
84264 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84265
84266         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
84267         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
84268
84269 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84270
84271         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
84272         per change in ../m4/ls-mntd-fs.m4.
84273         (read_filesystem_list): Ignore symbolic links.
84274
84275 2000-06-29  Jim Meyering  <meyering@lucent.com>
84276
84277         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
84278         for declaration of strcmp.
84279
84280         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
84281
84282         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
84283         Avoid warning by casting result to `char *' to remove `const'.
84284
84285 2000-06-28  Jim Meyering  <meyering@lucent.com>
84286
84287         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
84288         included by quotearg.c, for which we perform this test.  From
84289         Bruno Haible.
84290
84291 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84292
84293         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
84294         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
84295         <utmpx.h> exists, put readutmp.o into LIBOBJS.
84296
84297 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84298
84299         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
84300
84301 2000-06-26  Paul Eggert  <eggert@twinsun.com>
84302
84303         savedir now sets errno on failure and invokes xmalloc to get memory.
84304         Fix a couple of other minor bugs while we're at it.
84305
84306         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
84307         (NAMLEN): Remove macro.
84308         (malloc, realloc): Remove decls.
84309         (stpcpy): Likewise.
84310         ("xalloc.h"): Include.
84311         (NAME_SIZE_DEFAULT): New macro.
84312         (savedir): Use xmalloc / xrealloc to allocate memory.
84313         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
84314         Skip "" directory entries.
84315         Use strlen to calculate directory entry length, since the old method
84316         is rarely used these days and isn't worth supporting.
84317         Don't use a pointer after freeing it.
84318         Check for integer overflow when calculating allocation size.
84319         Use memcpy to copy entries, instead of stpcpy.
84320         Set errno properly when returning NULL.
84321         Check for readdir error.
84322
84323 2000-06-26  Jim Meyering  <meyering@lucent.com>
84324
84325         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
84326
84327 2000-06-25  Jim Meyering  <meyering@lucent.com>
84328
84329         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
84330         Linux header bug when _XOPEN_SOURCE is defined to 500.
84331
84332 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84333
84334         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
84335         deficiency.
84336
84337 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84338
84339         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
84340         Include xalloc.h.
84341         Don't include <stdlib.h>.  Don't declare malloc, realloc.
84342
84343 2000-06-24  Jim Meyering  <meyering@lucent.com>
84344
84345         * m4/strerror_r.m4: Revive this file -- to try out an experimental
84346         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
84347         for which strerror does return char*, but which lacks a conveniently
84348         accessible declaration of the function.  If the compile-test says
84349         strerror_r doesn't work, then resort to a `run'-test that works on
84350         BeOS and segfaults on DEC Unix.
84351
84352 2000-06-24  Jim Meyering  <meyering@lucent.com>
84353
84354         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
84355
84356 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84357
84358         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
84359         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
84360
84361 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84362
84363         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
84364         (mbrtowc, mbstate_t): Define substitutes if
84365         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
84366         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
84367         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
84368
84369 2000-06-23  Jim Meyering  <meyering@lucent.com>
84370
84371         * m4/afs.m4: Add missing AC_MSG_RESULT.
84372         Reported by Bruno Haible.
84373
84374         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
84375         Suggestion from Bruno Haible.
84376
84377 2000-06-23  Jim Meyering  <meyering@lucent.com>
84378
84379         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
84380
84381 2000-06-21  Jim Meyering  <meyering@lucent.com>
84382
84383         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
84384
84385 2000-06-21  Jim Meyering  <meyering@lucent.com>
84386
84387         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
84388         (noinst_HEADERS): Add getstr.h.
84389
84390         * lib/getline.c (getstr): Move into a separate file.
84391         * lib/getstr.c (getstr): New file, extracted from getline.c, with
84392         the following changes: new parameter, delim2; both delim[12]
84393         parameters have type `int', not `char'.  The latter would lose
84394         with 8-bit delimiters.
84395         * lib/getstr.h: New file.
84396
84397 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84398
84399         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
84400         than 1024, return a memory chunk of least possible size, instead
84401         of size PATH_MAX + 2. In the loop, increment the size proportionally.
84402         Use free/xmalloc instead of xrealloc to avoid copying for very long
84403         paths.
84404
84405 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84406
84407         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
84408         the empty string.
84409
84410 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84411
84412         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
84413         address, not strdup.  Include <stdlib.h> and don't declare free().
84414
84415 2000-06-19  Jim Meyering  <meyering@lucent.com>
84416
84417         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
84418
84419 2000-06-18  Jim Meyering  <meyering@lucent.com>
84420
84421         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
84422
84423         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
84424         `checking whether...' message to be consistent with that of the
84425         lstat test.
84426
84427 2000-06-18  Jim Meyering  <meyering@lucent.com>
84428
84429         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
84430         Besides, these days every porting target provides a mkdir function.
84431
84432         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
84433         needed. (this snippet comes from src/system.h).
84434
84435 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
84436
84437         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
84438
84439 2000-06-15  Paul Eggert  <eggert@twinsun.com>
84440
84441         * lib/human.c (adjust_value): New function.
84442         (human_readable_inexact): Apply rounding style even when
84443         printing approximate values.
84444
84445 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84446
84447         * lib/human.c (human_readable_inexact): Allow an input block
84448         size that is not a multiple of the output block size, and vice versa.
84449         Reported by Piergiorgio Sartor.
84450
84451 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84452
84453         * lib/getdate.y (get_date): Apply relative times after time
84454         zone indicator, not before.  Reported by Todd A. Jacobs.
84455
84456 2000-06-13  Jim Meyering  <meyering@lucent.com>
84457
84458         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
84459
84460         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
84461
84462 2000-06-12  Paul Eggert  <eggert@twinsun.com>
84463
84464         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
84465
84466 2000-06-12  Jim Meyering  <meyering@lucent.com>
84467
84468         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
84469         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
84470         optional argument.
84471         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
84472         the optional argument, `lib'.
84473
84474 2000-06-08  Jim Meyering  <meyering@lucent.com>
84475
84476         * m4/largefile.m4: Remove file (now that it's part of autoconf).
84477
84478 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84479
84480         Rewrite largefile configuration so that we don't need to run
84481         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
84482         AC_CANONICAL_HOST in configure.in -- jmm]
84483
84484         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
84485         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
84486         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
84487         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
84488         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
84489         All uses changed.
84490         Instead of inspecting the output of getconf, try to compile the
84491         test program without and with the macro definition.
84492         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
84493         for getconf.  Instead, check for the needed flags by compiling
84494         test programs.
84495
84496 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84497
84498         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
84499
84500 2000-06-04  Jim Meyering  <meyering@lucent.com>
84501
84502         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
84503         SunOS 4.1.4 for which gid_t is an unsigned type.
84504
84505 2000-06-03  Jim Meyering  <meyering@lucent.com>
84506
84507         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
84508         now that autoconf requires that.
84509
84510         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
84511         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
84512         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
84513
84514 2000-06-03  Jim Meyering  <meyering@lucent.com>
84515
84516         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
84517
84518 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84519
84520         * m4/glibc21.m4: New file.
84521         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
84522
84523 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84524
84525         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
84526         newer, don't install charset.alias.
84527         * lib/config.charset: Change the Linux/glibc rules so they become empty
84528         on glibc-2.1 or newer.
84529
84530 2000-06-02  Jim Meyering  <meyering@lucent.com>
84531
84532         * lib/mountlist.c: Back out last change.  Instead, do this...
84533         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
84534         me_dummy member using the same `ignore'-testing code.
84535         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
84536         fs_type strings.
84537         From Mark D. Roth.
84538
84539 2000-05-29  Jim Meyering  <meyering@lucent.com>
84540
84541         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
84542         mounts with the `ignore' attribute.  Based on a patch from
84543         Mark D. Roth.
84544
84545 2000-05-28  Jim Meyering  <meyering@lucent.com>
84546
84547         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
84548         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84549         * m4/stat.m4: Likewise.
84550         * m4/lstat.m4: Likewise.
84551         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
84552
84553         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
84554         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
84555
84556 2000-05-26  Jim Meyering  <meyering@lucent.com>
84557
84558         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
84559
84560 2000-05-24  Jim Meyering  <meyering@lucent.com>
84561
84562         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
84563         autoconf requires that.
84564         * m4/lib-check.m4: Likewise.
84565         * m4/jm-macros.m4: Likewise.
84566         * m4/strftime.m4: Likewise.
84567
84568         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
84569         AC_CHECK_DECLS, now that autoconf requires that.
84570
84571 2000-05-22  Jim Meyering  <meyering@lucent.com>
84572
84573         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84574         * m4/lstat.m4: Likewise.
84575
84576 2000-05-22  Jim Meyering  <meyering@lucent.com>
84577
84578         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
84579
84580 2000-05-20  Jim Meyering  <meyering@lucent.com>
84581
84582         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
84583         (jm_PREREQ): Use it.
84584
84585 2000-05-18  Jim Meyering  <meyering@lucent.com>
84586
84587         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
84588         back, too, since it may have been modified by allocate_entry.
84589         (hash_delete): Rewrite to use neither the assignment operator
84590         nor the comma operator in an if-expression.
84591
84592 2000-05-15  Paul Eggert  <eggert@twinsun.com>
84593
84594         * lib/closeout.c:
84595         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
84596         Remove; no longer needed.
84597         "quotearg.h": Add include.
84598         (file_name): Do not bother to explicitly initialize to NULL; it's less
84599         efficient on some hosts.
84600         (close_stdout_status): Remove test as to whether stdout was already
84601         closed; it breaks for the case "echo x | sort >&-".
84602         Quote file name colons.
84603         Do not assume that _("write error") lacks format strings.
84604
84605 2000-05-15  Jim Meyering  <meyering@lucent.com>
84606
84607         * lib/version-etc.c (version_etc_copyright): Update the copyright
84608         string used in all --version output.
84609
84610 2000-05-14  Jim Meyering  <meyering@lucent.com>
84611
84612         * lib/closeout.c (close_stdout_set_file_name): New function.
84613         (close_stdout_status): Use new file-scoped global.
84614         Return right away if fstat says the stdout file descriptor is invalid.
84615         * lib/closeout.h (close_stdout_set_file_name): Declare.
84616
84617 2000-05-10  Jim Meyering  <meyering@lucent.com>
84618
84619         * lib/closeout.c [default_exit_status]: New file-scoped variable.
84620         (close_stdout_set_status): New function.
84621         * lib/closeout.h (close_stdout_set_status): Declare.
84622
84623 2000-05-09  Jim Meyering  <meyering@lucent.com>
84624
84625         * m4/gettext.m4: Rename this...
84626         * m4/libintl.m4: ...to this.
84627
84628 2000-05-08  Jim Meyering  <meyering@lucent.com>
84629
84630         * lib/long-options.c: Don't include closeout.h.
84631         (parse_long_options): Don't call close_stdout for --version.
84632
84633 2000-05-06  Paul Eggert  <eggert@twinsun.com>
84634
84635         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
84636         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
84637         2.1.3 bug.  This avoids a clash when files like regex.c define
84638         _GNU_SOURCE.
84639
84640 2000-05-06  Jim Meyering  <meyering@lucent.com>
84641
84642         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
84643         (AC_REPLACE_FUNCS): Add strnlen.
84644
84645         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
84646         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
84647
84648         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
84649         AC_SEARCH_LIBS call for nanosleep.
84650         (LIB_NANOSLEEP): Set and AC_SUBST.
84651
84652 2000-05-06  Jim Meyering  <meyering@lucent.com>
84653
84654         * lib/strnlen.c: Undefine __strnlen and strnlen.
84655         [!weak_alias]: Define __strnlen to strnlen.
84656
84657         * lib/atexit.c: New file, from libiberty.
84658
84659 2000-05-06  Jim Meyering  <meyering@lucent.com>
84660
84661         * lib/closeout.c (close_stdout_status): Also check for errors on the
84662         stderr stream.
84663
84664 2000-05-05  Jim Meyering  <meyering@lucent.com>
84665
84666         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
84667         AC_SEARCH_LIBS call for clock_gettime.
84668         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
84669
84670         * m4/search-libs.m4: Update from autoconf.
84671
84672         su doesn't work on Solaris 2.6.
84673         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
84674         <shadow.h>.  Reported by Dragos Harabor.
84675
84676 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
84677
84678         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
84679         memcpy instead of xmalloc, xrealloc, path_concat.
84680         (locale_charset): Treat empty environment variables as absent.
84681         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
84682
84683 2000-05-04  Jim Meyering  <meyering@lucent.com>
84684
84685         * lib/getopt.c: Update from glibc.
84686         * lib/obstack.c: Likewise.
84687         * lib/obstack.h: Likewise.
84688         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
84689         file
84690
84691         * lib/regex.h: Likewise.
84692         * lib/strndup.c: Likewise.
84693         * lib/strnlen.c: New file, from glibc.
84694
84695 2000-05-03  Jim Meyering  <meyering@lucent.com>
84696
84697         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
84698
84699 2000-05-02  Paul Eggert  <eggert@twinsun.com>
84700
84701         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
84702         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
84703         compile-time test, rather than inspecting host and OS, to
84704         decide whether to define _LARGEFILE_SOURCE.
84705
84706 2000-05-01  Jim Meyering  <meyering@lucent.com>
84707
84708         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
84709
84710         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
84711         Based on a patch from Bruno Haible.
84712
84713 2000-05-01  Jim Meyering  <meyering@lucent.com>
84714
84715         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
84716
84717 2000-04-29  Jim Meyering  <meyering@lucent.com>
84718
84719         * lib/path-concat.c: Declare strdup only if it's not defined.
84720         * lib/canon-host.c: Likewise.
84721
84722 2000-04-28  Jim Meyering  <meyering@lucent.com>
84723
84724         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
84725         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
84726         is included first, then limits.h is included by locale.h by libintl.h.
84727         From John David Anglin.
84728
84729 2000-04-25  Jim Meyering  <meyering@lucent.com>
84730
84731         * lib/makepath.c (S_IRWXUGO): Define.
84732         (make_path): Always perform explicit chmod if MODE specifies any
84733         of the `special' permission bits.  Prompted by a bug report against
84734         install from Mate Wierdl and Joost van Baal.
84735
84736 2000-04-18  Jim Meyering  <meyering@lucent.com>
84737
84738         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
84739         (jm_PREREQ): Use it.
84740
84741 2000-04-18  Jim Meyering  <meyering@lucent.com>
84742
84743         * lib/README: New file.
84744
84745         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
84746         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
84747
84748 2000-04-17  Jim Meyering  <meyering@lucent.com>
84749
84750         Get it right :-)
84751         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
84752         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
84753         Suggestion from Akim Demaille.
84754
84755 2000-04-17  Jim Meyering  <meyering@lucent.com>
84756
84757         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
84758         the definition of it to rpl_strftime also defined-away the system's
84759         declaration.
84760
84761 2000-04-15  Jim Meyering  <meyering@lucent.com>
84762
84763         Use `C' to denote so-called `contiguous' files, the same way
84764         that tar does.
84765         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
84766         (ftypelet): Use S_ISCTG.
84767         From Michael Deutschmann.
84768
84769 2000-04-14  Jim Meyering  <meyering@lucent.com>
84770
84771         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
84772         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
84773         clobbered.
84774
84775 2000-04-14  Jim Meyering  <meyering@lucent.com>
84776
84777         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
84778
84779 2000-04-13  Jim Meyering  <meyering@lucent.com>
84780
84781         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
84782         AH_VERBATIM to insert required #ifndef into config.h.in.
84783         Suggestion from Akim Demaille.
84784
84785 2000-04-12  Jim Meyering  <meyering@lucent.com>
84786
84787         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
84788         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
84789         Christian Krackowizer.
84790
84791         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
84792         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
84793         (AC_SYS_LARGEFILE): Require.
84794         (AM_C_PROTOTYPES): Require.
84795
84796 2000-04-08  Jim Meyering  <meyering@lucent.com>
84797
84798         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
84799         names don't conflict.  Reported by Eli Zaretskii.
84800
84801 2000-04-07  Jim Meyering  <meyering@lucent.com>
84802
84803         * lib/putenv.c: Move inclusion of errno.h so it follows that of
84804         sys/types.h, to work around system header problems on AIX 3.2.5.
84805         From Bruno Haible.
84806
84807 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
84808
84809         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
84810         bug.  Deal with the different error behavior of Irix iconv.
84811
84812 2000-04-05  Paul Eggert  <eggert@twinsun.com>
84813
84814         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
84815         IRIX if the installer said otherwise.
84816
84817 2000-04-05  Jim Meyering  <meyering@lucent.com>
84818
84819         Portability tweaks required for ultrix4.3.
84820         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
84821         (jm_CHECK_DECLS): Add getutent to the list of functions.
84822         (_jm_DECL_HEADERS): Add utmpx.h.
84823         From John David Anglin.
84824
84825         * m4/strftime.m4: Back out the 2000-04-02 change.
84826         Instead of that change, simply undefine putenv in the test program.
84827
84828 2000-04-05  Jim Meyering  <meyering@lucent.com>
84829
84830         Portability tweaks required for ultrix4.3.
84831         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
84832         getutent.
84833         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
84834         * lib/canon-host.c: Declare strdup.
84835         * lib/path-concat.c: Likewise.
84836         From John David Anglin.
84837
84838 2000-04-04  Jim Meyering  <meyering@lucent.com>
84839
84840         Be more DOS 8.3-friendly.
84841         * lib/ref-add.sin: Renamed from ref-add.sed.in.
84842         * lib/ref-del.sin: Renamed from ref-del.sed.in.
84843         * lib/Makefile.am: Reflect renaming.
84844         Reported by Eli Zaretskii.
84845
84846         Use a temporary file name that won't clash with `charset.alias'
84847         in the DOS 8.3 name space.
84848         * lib/Makefile.am (charset_tmp): Define.
84849         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
84850         (uninstall-local): Likewise.
84851         Reported by Eli Zaretskii.
84852
84853 2000-04-03  Jim Meyering  <meyering@lucent.com>
84854
84855         * m4/gettext.m4: Fix typo in comment.
84856
84857         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
84858         textutils/configure.in).  Suggestion from Paul Eggert.
84859         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
84860
84861 2000-04-02  Paul Eggert  <eggert@twinsun.com>
84862
84863         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
84864         variable in the shell rather than using putenv, which isn't
84865         portable.  This avoids the configure-time inter-test dependency
84866         on the potentially-renamed putenv function.
84867
84868 2000-03-30  Paul Eggert  <eggert@twinsun.com>
84869
84870         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
84871         before checking struct stat.st_blksize, so that
84872         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
84873
84874 2000-03-29  Paul Eggert  <eggert@twinsun.com>
84875
84876         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
84877         since strftime.c uses HAVE_STRFTIME to decide whether to use
84878         the underlying strftime.
84879
84880 2000-03-29  Paul Eggert  <eggert@twinsun.com>
84881
84882         * lib/time/strftime.c (my_strftime): Make sure we call the system
84883         strftime, not ourselves, when invoking the underlying strftime.
84884
84885 2000-03-24  Jim Meyering  <meyering@lucent.com>
84886
84887         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
84888         (charset_alias): Define.
84889         (install-exec-local): Factor out common code.
84890         (uninstall-local): Split lines longer than 80.
84891         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
84892         (SUFFIXES): Define.
84893         (.sed.in.sed): New rule.  Don't redirect directly to $@.
84894         (CLEANFILES): Add ref-add.sed and ref-del.sed.
84895
84896 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
84897
84898         * lib/config.charset: Output a line containing "Packages using this
84899         file".
84900         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
84901         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
84902         ref-del.sed): New rules.
84903
84904 2000-03-17  Jim Meyering  <meyering@lucent.com>
84905
84906         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
84907         Otherwise, include <strings.h>
84908
84909 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
84910
84911         * lib/unicodeio.c (utf8_wctomb): New function.
84912         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
84913         format instead of in UCS-4 with platform dependent endianness.
84914
84915 2000-03-10  Jim Meyering  <meyering@lucent.com>
84916
84917         * m4/lib-check.m4: Look for getspnam in -lgen, too.
84918         From Marco Franzen.
84919
84920 2000-03-07  Paul Eggert  <eggert@twinsun.com>
84921
84922         * lib/savedir.c (savedir): Work even if directory size is
84923         negative; this can happen with some screwy NFS configurations.
84924
84925 2000-03-06  Jim Meyering  <meyering@lucent.com>
84926
84927         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
84928         if it's NULL (because we ran out of memory).  From Bruno Haible.
84929
84930 2000-03-05  Jim Meyering  <meyering@lucent.com>
84931
84932         * lib/localcharset.c ("path-concat.h"): Include.
84933         (get_charset_aliases): Use path_concat instead of ANSI string
84934         concatenation.
84935
84936         * lib/unicodeio.h (PARAMS): Define.
84937         Use it to guard prototype.
84938
84939 2000-03-04  Jim Meyering  <meyering@lucent.com>
84940
84941         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
84942         for lib/localcharset.c.
84943
84944 2000-03-04  Jim Meyering  <meyering@lucent.com>
84945
84946         * lib/Makefile.am (install-exec-local): Create $(libdir) before
84947         installing into it.
84948         (uninstall-local): Uncomment this rule so `make distcheck' works
84949         once again.
84950
84951         * lib/unicodeio.c (<errno.h>): Include it.
84952         (errno): Declare if not defined.
84953
84954         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
84955
84956         * lib/config.charset: New version, incorporating remarks from a linux
84957         i18n mailing list.  From Bruno Haible.
84958
84959 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
84960
84961         * m4/codeset.m4: New file.
84962         * m4/iconv.m4: New file.
84963         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
84964
84965 2000-03-03  Jim Meyering  <meyering@lucent.com>
84966
84967         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
84968
84969 2000-03-02  Jim Meyering  <meyering@lucent.com>
84970
84971         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
84972         the messages come out on separate lines.
84973
84974         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
84975         rather than jm_CHECK_DECLARATIONS.
84976         * m4/decl.m4: Remove now-unused file.
84977
84978         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
84979         geteuid.
84980
84981 2000-03-02  Jim Meyering  <meyering@lucent.com>
84982
84983         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
84984
84985 2000-03-01  Jim Meyering  <meyering@lucent.com>
84986
84987         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
84988         * lib/unicodeio.c: Likewise.
84989
84990 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
84991
84992         * lib/config.charset: New file.
84993         * lib/localcharset.c: New file.
84994         * lib/unicodeio.h, lib/unicodeio.c: New files.
84995         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
84996         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
84997         (noinst_HEADERS): Add unicodeio.h.
84998         (all-local, install-exec-local, charset.alias): New targets.
84999
85000 2000-02-28  Paul Eggert  <eggert@twinsun.com>
85001
85002         * lib/quotearg.c (ALERT_CHAR): New macro.
85003         (quotearg_buffer_restyled): Use it.
85004
85005 2000-02-27  Jim Meyering  <meyering@lucent.com>
85006
85007         * m4/check-decl.m4: Add getenv to the list.
85008
85009 2000-02-27  Jim Meyering  <meyering@lucent.com>
85010
85011         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
85012         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
85013
85014         * lib/backupfile.c: Guard inclusion of stdlib.h with
85015         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
85016         Declare malloc if needed.
85017
85018         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
85019         `#ifndef HAVE_DECL..'
85020         now that autoconf always defines the HAVE_DECL_ symbols.
85021         * lib/human.c: Likewise.
85022         * lib/same.c: Likewise.
85023         * lib/strtoumax.c: Likewise.
85024
85025         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
85026         declaration check was not run.
85027         * lib/hash.c: Likewise.
85028         * lib/human.c: Likewise.
85029         * lib/same.c: Likewise.
85030         * lib/strtoumax.c: Likewise.
85031
85032         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
85033         `.', then first look up the entire `.'-containing string as a login
85034         name.
85035
85036 2000-02-23  Jim Meyering  <meyering@lucent.com>
85037
85038         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
85039         in place of my hack.
85040
85041 2000-02-18  Paul Eggert  <eggert@twinsun.com>
85042
85043         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
85044         (textint): New typedef.
85045         (parser_control): Member year changed from int to textint.
85046         All uses changed.
85047         (YYSTYPE): Removed; replaced by %union with int and textint members.
85048         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
85049         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
85050         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
85051         (tSNUMBER, tUNUMBER): Now of type <textintval>.
85052         (date, number, to_year): Use width of number in digits, not its value,
85053         to determine whether it's a 2-digit year, or a 2-digit time.
85054         (yylex): Store number of digits of numeric tokens.
85055         Reported by John Kendall.
85056
85057         (parser_control): Changed from struct parser_control to typedef (for
85058         consistency).  All uses changed.
85059
85060         (tID): Removed; not used.
85061         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
85062
85063 2000-02-14  Paul Eggert  <eggert@twinsun.com>
85064
85065         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
85066         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
85067
85068 2000-02-12  Jim Meyering  <meyering@lucent.com>
85069
85070         * lib/userspec.c (ISDIGIT): Define it.
85071         (isdigit): Remove definition.
85072         (is_number): Use ISDIGIT, not isdigit.
85073         <libintl.h>: Include.
85074         (_ and N_): Define.
85075         (parse_user_spec): Mark translatable strings.
85076
85077 2000-02-10  Jim Meyering  <meyering@lucent.com>
85078
85079         With these changes, nanosleep.[ch] are finally enough like the other
85080         lib/* replacement files to compile on a few more losing systems.
85081
85082         * lib/nanosleep.h: Don't include config.h.
85083         Remove prototype from declaration of nanosleep.
85084         (PARAMS): Remove now-unneeded definition.
85085         * lib/nanosleep.c: #undef nanosleep.
85086         (rpl_nanosleep): Rename from nanosleep.
85087
85088 2000-02-10  Jim Meyering  <meyering@lucent.com>
85089
85090         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
85091         gnu_nanosleep to rpl_nanosleep.
85092
85093 2000-02-09  Jim Meyering  <meyering@lucent.com>
85094
85095         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
85096         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
85097
85098 2000-02-08  Akim Demaille  <akim@epita.fr>
85099
85100         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
85101         `[' and `]' and remove uses of `changequote'.
85102         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
85103         (AC_SYS_LARGEFILE): Likewise.
85104         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
85105         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
85106         of changequote.
85107         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
85108         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
85109         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
85110         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
85111
85112 2000-02-05  Jim Meyering  <meyering@lucent.com>
85113
85114         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
85115         Remove explicit use of AC_HEADER_TIME.  It is required by
85116         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
85117         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
85118         in autoconf whereby the expansion of the latter ended up preceding
85119         the expansion of its prerequisite, AC_HEADER_TIME.
85120         Reported by Volker Borchert.
85121
85122 2000-02-03  Jim Meyering  <meyering@lucent.com>
85123
85124         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
85125
85126 2000-02-03  Jim Meyering  <meyering@lucent.com>
85127
85128         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
85129         rather than with `#if HAVE_UTMPNAME'.
85130
85131 2000-02-02  Jim Meyering  <meyering@lucent.com>
85132
85133         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
85134         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
85135         Reported by Eli Zaretskii.
85136
85137 2000-02-01  Jim Meyering  <meyering@lucent.com>
85138
85139         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
85140
85141 2000-01-31  Jim Meyering  <meyering@lucent.com>
85142
85143         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
85144         functions.  Add the time.h and sys/time.h headers along with the
85145         AC_REQUIRE'ment of AC_HEADER_TIME.
85146
85147 2000-01-31  Jim Meyering  <meyering@lucent.com>
85148
85149         * lib/nanosleep.h (nanosleep): Guard declaration with
85150         `#if ! HAVE_DECL_NANOSLEEP'.
85151         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
85152         the declaration in that vendor's sys/timers.h.
85153         Reported by Christian Krackowizer.
85154
85155         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
85156         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
85157         (ISPRINT): Likewise.
85158         Reported by Tom Tromey.
85159
85160 2000-01-30  Jim Meyering  <meyering@lucent.com>
85161
85162         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
85163
85164         * m4/prereq.m4 (utmp_includes): Define.
85165         Check for ut_user and ut_name members in both struct utmpx
85166         and struct utmp.
85167
85168 2000-01-30  Jim Meyering  <meyering@lucent.com>
85169
85170         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
85171         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
85172         header files where only utmpx.ut_user is declared.
85173
85174         * lib/readutmp.h (UT_USER): Define.
85175
85176 2000-01-29  Jim Meyering  <meyering@lucent.com>
85177
85178         * m4/lib-check.m4: New file containing library-related checks from
85179         fileutils and sh-utils (textutils had none).
85180
85181 2000-01-28  Jim Meyering  <meyering@lucent.com>
85182
85183         * m4/perl.m4: Change format of warning message to look more like that
85184         from the missing script.  Suggestion from François Pinard.
85185
85186 2000-01-25  Jim Meyering  <meyering@lucent.com>
85187
85188         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
85189         well as time.h in the compile check.
85190         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
85191         Fix typo in cross-compiling case: s/yes/no/.
85192
85193 2000-01-23  Jim Meyering  <meyering@lucent.com>
85194
85195         * m4/jm-macros.m4: Move df-related tests here from
85196         fileutils/configure.in
85197
85198         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
85199         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
85200
85201         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
85202         s/space/ac_fsusage_space/.
85203         (jm_FILE_SYSTEM_USAGE): Take two parameters.
85204
85205         * m4/ftruncate.m4: New file (derived from part of
85206         fileutils/configure.in).
85207         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
85208         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
85209
85210         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
85211         AC_SUBST these here, rather than just in sh-util/configure.in, so
85212         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
85213         all the same.
85214         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
85215         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
85216         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
85217         (AC_SUBST(POW_LIBM)): Likewise.
85218         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
85219
85220 2000-01-23  Jim Meyering  <meyering@lucent.com>
85221
85222         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
85223         obstack.c.
85224
85225 2000-01-22  Jim Meyering  <meyering@lucent.com>
85226
85227         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
85228
85229         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
85230
85231         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
85232         configure.in
85233         (AC_CHECK_HEADERS): Likewise for sh-utils.
85234         (AC_CHECK_HEADERS): Likewise for textutils.
85235         Merge the three lists of headers.
85236
85237         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
85238         from fileutils' configure.in.
85239
85240         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
85241         code. Moved tests into their own function (_jm_DECL_HEADERS) in
85242         check-decl.m4.
85243
85244         * m4/check-decl.m4: Use #if rather than #ifdef.
85245         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
85246         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
85247         (_jm_DECL_HEADERS): Define new function.
85248         (jm_CHECK_DECLARATIONS): Require it.
85249
85250 2000-01-22  Jim Meyering  <meyering@lucent.com>
85251
85252         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
85253         [! HAVE_DECL_STRTOULL]: Declare strtoull.
85254         Required for some AIX systems.  Reported by Christian Krackowizer.
85255         [TESTING] (main): New function.
85256
85257         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
85258         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
85259         letters.
85260
85261         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
85262         iswprint.
85263
85264         * lib/strverscmp.c (ISDIGIT): Define.
85265         (strverscmp): Use ISDIGIT, not isdigit.
85266
85267 2000-01-19  Jim Meyering  <meyering@lucent.com>
85268
85269         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
85270         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
85271         defines `struct timespec' in <sys/time.h>
85272
85273         * m4/c-bs-a.m4: Remove uses of changequote altogether.
85274         Thanks to Akim for explaining.
85275
85276 2000-01-17  Paul Eggert  <eggert@twinsun.com>
85277
85278         * lib/nanosleep.c (nanosleep):
85279         Don't use SA_INTERRUPT to decide whether to call sigaction, as
85280         POSIX.1 doesn't require SA_INTERRUPT and some systems
85281         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
85282         it's been part of POSIX.1 since day 1 (in 1988).
85283
85284 2000-01-17  Jim Meyering  <meyering@lucent.com>
85285
85286         * lib/interlock: Remove unused file.  Reported by François Pinard.
85287
85288 2000-01-16  Paul Eggert  <eggert@twinsun.com>
85289
85290         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
85291         alert, backslash, formfeed, and vertical tab unnecessarily in
85292         shell quoting style.
85293
85294 2000-01-16  Jim Meyering  <meyering@lucent.com>
85295
85296         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
85297         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
85298         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
85299         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
85300
85301 2000-01-16  Jim Meyering  <meyering@lucent.com>
85302
85303         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
85304         because the latter didn't work.
85305
85306 2000-01-15  Jim Meyering  <meyering@lucent.com>
85307
85308         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
85309         (AC_REPLACE_FUNCS): Add memcpy and memset.
85310         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
85311         Add strpbrk.
85312         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
85313
85314 2000-01-12  Jim Meyering  <meyering@lucent.com>
85315
85316         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
85317         (jm_PREREQ): Use it.
85318         (jm_PREREQ_READUTMP): New macro.
85319         (jm_PREREQ): Use it.
85320
85321 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85322
85323         Quote multibyte characters correctly.
85324         * m4/c-bs-a.m4: New file.
85325         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
85326         (jm_PREREQ): Use it.
85327
85328 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85329
85330         * m4/uintmax_t.m4: Port to autoconf 2.13.
85331
85332 2000-01-08  Jim Meyering  <meyering@ascend.com>
85333
85334         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
85335         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
85336
85337 2000-01-04  Jim Meyering  <meyering@ascend.com>
85338
85339         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
85340         jm_STRUCT_DIRENT_D_TYPE.
85341         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
85342         jm_STRUCT_DIRENT_D_INO.
85343         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
85344         jm_STRUCT_UTIMBUF.
85345         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
85346         renamings.
85347         * m4/utime.m4: Likewise.
85348
85349         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
85350         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
85351
85352 2000-01-03  Paul Eggert  <eggert@twinsun.com>
85353
85354         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
85355         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
85356
85357 2000-01-02  Jim Meyering  <meyering@ascend.com>
85358
85359         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
85360         remember if this is necessary.
85361
85362 1999-12-26  Jim Meyering  <meyering@ascend.com>
85363
85364         * m4/jm-macros.m4: Use it here.
85365         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
85366
85367 1999-12-23  Jim Meyering  <meyering@ascend.com>
85368
85369         * m4/jm-macros.m4: Check for clock_gettime (moved from
85370         fileutils/configure.in)
85371         Check for gettimeofday.
85372
85373 1999-12-20  Jim Meyering  <meyering@ascend.com>
85374
85375         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
85376         autoconf-2.14a-1999-12-20.
85377
85378 1999-12-19  Jim Meyering  <meyering@ascend.com>
85379
85380         * m4/lstat-slash.m4: New file.
85381         * m4/jm-macros.m4: Use the new macro:
85382         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85383
85384 1999-12-07  Jim Meyering  <meyering@ascend.com>
85385
85386         * m4/perl.m4: Require that File::Compare be available, too.
85387         Too many systems seem to lack it.
85388
85389         * m4/strftime.m4: Add checks for most of the cpp macros tested in
85390         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
85391
85392 1999-11-18  Paul Eggert  <eggert@twinsun.com>
85393
85394         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
85395         problem with the QNX 4.25 shell, which doesn't propagate exit
85396         status of failed commands inside shell assignments.
85397
85398 1999-11-17  Jim Meyering  <meyering@ascend.com>
85399
85400         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
85401
85402 1999-11-07  Jim Meyering  <meyering@ascend.com>
85403
85404         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
85405
85406 1999-11-06  Jim Meyering  <meyering@ascend.com>
85407
85408         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
85409         * m4/jm-macros.m4 (jm_MACROS): Use it here.
85410
85411 1999-11-05  Jim Meyering  <meyering@ascend.com>
85412
85413         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
85414         configure.in of textutils, fileutils, and sh-utils into this one
85415         (shared between those packages) file.
85416         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
85417         AC_STRUCT_ST_BLKSIZE.
85418
85419 1999-11-03  Jim Meyering  <meyering@ascend.com>
85420
85421         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
85422         of AC_CHECK_TYPE checks includes unistd.h.
85423         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
85424         Suggestion from Akim Demaille.
85425
85426 1999-10-30  Jim Meyering  <meyering@ascend.com>
85427
85428         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
85429         m4-quoted string.
85430         * m4/ls-mntd-fs.m4: Likewise.
85431         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
85432         * m4/jm-winsz1.m4: Likewise.
85433
85434         * m4/const.m4: Remove file, since the fix made it into the experimental
85435         version of autoconf.
85436         * m4/mktime.m4: Likewise.
85437
85438         * m4/check-type.m4: Remove file, now that the latest version of
85439         AC_CHECK_TYPE takes a third arg to specify additional #includes.
85440
85441         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
85442         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
85443         AC_CHECK_TYPE.
85444
85445 1999-10-04  Jim Meyering  <meyering@ascend.com>
85446
85447         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
85448
85449 1999-09-22  Paul Eggert  <eggert@twinsun.com>
85450
85451         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
85452         2.95.1 bug with HP-UX 10.20.
85453
85454 1999-09-17  Jim Meyering  <meyering@ascend.com>
85455
85456         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
85457         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
85458         due to missing strdup (against sh-utils-2.0).
85459
85460 1999-08-29  Jim Meyering  <meyering@ascend.com>
85461
85462         * m4/jm-macros.m4: Require jm_BISON.
85463         * m4/bison.m4: New file.
85464
85465 1999-08-17  Paul Eggert  <eggert@twinsun.com>
85466
85467         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
85468         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
85469
85470 1999-08-05  Jim Meyering  <meyering@ascend.com>
85471
85472         * m4/getline.m4: Rename test file from conftestdata to conftest.data
85473         to avoid conflicts with `conftest' on 8+3 filesystems.
85474         Suggestion from Eli Zaretskii.
85475
85476 1999-08-04  Jim Meyering  <meyering@ascend.com>
85477
85478         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
85479         fileutils and sh-utils (textutils's getline test was inadequate).
85480         (AM_FUNC_GETLINE): Run this test.
85481         (AC_CHECK_FUNCS): Check for getdelim.
85482         Reported by Bob Proulx.
85483
85484 1999-08-02  Jim Meyering  <meyering@ascend.com>
85485
85486         * m4/jm-macros.m4: Add a comment.
85487
85488 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85489
85490         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
85491         <inttypes.h> defines strtoumax as a macro (and not as a
85492         function).
85493
85494 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85495
85496         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
85497         that we can shift, multiply and divide unsigned long long
85498         values; Ultrix cc can't do it.
85499
85500 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85501
85502         * m4/mktime.m4: New file, which is a preview of what should appear
85503         in the next public autoconf release.
85504
85505 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85506
85507         * m4/lfs.m4: Remove this file.
85508         * m4/largefile.m4: New file.  It contains the old contents of
85509         lfs.m4, except that all names with prefix AC_LFS have been
85510         changed to use the prefix AC_SYS_LARGEFILE instead, to be
85511         compatible with future autoconf versions.  Also, some minor m4
85512         quoting problems have been fixed.
85513
85514 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85515
85516         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
85517         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
85518         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
85519         and simplify the shell code.
85520
85521 1999-08-01  Jim Meyering  <meyering@ascend.com>
85522
85523         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
85524         m4.
85525
85526 1999-07-20  Jim Meyering  <meyering@ascend.com>
85527
85528         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
85529
85530 1999-07-15  Jim Meyering  <meyering@ascend.com>
85531
85532         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
85533
85534 1999-05-22  Jim Meyering  <meyering@ascend.com>
85535
85536         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
85537
85538 1999-05-20  Jim Meyering  <meyering@ascend.com>
85539
85540         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
85541         Add a colon after each `then' in case $4 is empty.
85542
85543 1999-05-16  Jim Meyering  <meyering@ascend.com>
85544
85545         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
85546
85547 1999-05-10  Jim Meyering  <meyering@ascend.com>
85548
85549         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
85550
85551         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
85552         AC_FUNC_MKTIME.
85553
85554 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
85555
85556         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
85557
85558 1999-05-04  Paul Eggert  <eggert@twinsun.com>
85559
85560         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
85561         not CPPFLAGS, so that linking works correctly in IRIX.
85562
85563 1999-04-30  Paul Eggert  <eggert@twinsun.com>
85564
85565         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
85566
85567 1999-04-20  Paul Eggert  <eggert@twinsun.com>
85568
85569         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
85570         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
85571         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
85572         jm_AC_TYPE_UNSIGNED_LONG_LONG.
85573         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
85574
85575         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
85576
85577 1999-04-20  Jim Meyering  <meyering@ascend.com>
85578
85579         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
85580         AC_REPLACE xstroull if necessary.  From Paul Eggert.
85581         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
85582
85583 1999-04-18  Jim Meyering  <meyering@ascend.com>
85584
85585         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
85586         * m4/jm-macros.m4: Use it.
85587
85588 1999-04-06  Jim Meyering  <meyering@ascend.com>
85589
85590         * m4/strftime.m4: Remove test for %f.
85591
85592 1999-03-29  Jim Meyering  <meyering@ascend.com>
85593
85594         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
85595         superset of the AC_TYPE_* checks in the textutils, fileutils,
85596         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
85597         AC_TYPE_PID_T.
85598
85599 1999-03-28  Jim Meyering  <meyering@ascend.com>
85600
85601         * m4/jm-macros.m4: Define GNU_PACKAGE here.
85602         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
85603         replaced e.g., in the *.sh files of the sh-utils.
85604
85605 1999-03-20  Jim Meyering  <meyering@ascend.com>
85606
85607         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
85608         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
85609         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
85610
85611 1999-03-19  Jim Meyering  <meyering@ascend.com>
85612
85613         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
85614
85615 1999-03-12  Jim Meyering  <meyering@ascend.com>
85616
85617         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
85618
85619 1999-03-07  Jim Meyering  <meyering@ascend.com>
85620
85621         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
85622         declared.
85623
85624 1999-02-17  Jim Meyering  <meyering@ascend.com>
85625
85626         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
85627         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
85628
85629 1999-02-07  Jim Meyering  <meyering@ascend.com>
85630
85631         * m4/group-member.m4: New file -- extracted from sh-utils'
85632         configure.in.
85633
85634         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
85635         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
85636
85637 1999-02-06  Jim Meyering  <meyering@ascend.com>
85638
85639         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
85640         * m4/fnmatch.m4: Likewise.
85641         * m4/getgroups.m4: Likewise.
85642         * m4/lstat.m4: Likewise.
85643         * m4/malloc.m4: Likewise.
85644         * m4/putenv.m4: Likewise.
85645         * m4/realloc.m4: Likewise.
85646         * m4/regex.m4: Likewise.
85647         * m4/stat.m4: Likewise.
85648         * m4/strftime.m4: Likewise.
85649         Suggestion from Alain Magloire.
85650
85651         * m4/chown.m4: Use `.$ac_objext', not `.o'.
85652         * m4/fnmatch.m4: Likewise.
85653         * m4/getgroups.m4: Likewise.
85654         * m4/getline.m4: Likewise.
85655         * m4/lstat.m4: Likewise.
85656         * m4/malloc.m4: Likewise.
85657         * m4/memcmp.m4: Likewise.
85658         * m4/putenv.m4: Likewise.
85659         * m4/realloc.m4: Likewise.
85660         * m4/regex.m4: Likewise.
85661         * m4/stat.m4: Likewise.
85662         * m4/strftime.m4: Likewise.
85663         Suggestion from Alain Magloire.
85664
85665         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
85666         an argument.
85667
85668         * m4/regex.m4: Add a run-time Test for proper operation of
85669         re_compile_pattern.
85670
85671 1999-01-31  Jim Meyering  <meyering@ascend.com>
85672
85673         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
85674
85675 1999-01-30  Jim Meyering  <meyering@ascend.com>
85676
85677         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
85678
85679         * m4/jm-mktime.m4: Make this a wrapper around the official
85680         AM_FUNC_MKTIME rather than my private copy, now that the official one
85681         is up to date.
85682         * m4/mktime.m4: Remove file.
85683
85684         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
85685         * m4/uptime.m4: Likewise.
85686         * m4/uintmax_t.m4: Likewise.
85687
85688 1999-01-28  Jim Meyering  <meyering@ascend.com>
85689
85690         * m4/jm-macros.m4: Use jm_AFS.
85691         * m4/afs.m4: New file (from fileutils' configure.in).
85692
85693         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
85694         * m4/chown.m4: Likewise.
85695         * m4/d-ino.m4: Likewise.
85696         * m4/d-type.m4: Likewise.
85697         * m4/fnmatch.m4: Likewise.
85698         * m4/getgroups.m4: Likewise.
85699         * m4/gettext.m4: Likewise.
85700         * m4/jm-mktime.m4: Likewise.
85701         * m4/jm-winsz2.m4: Likewise.
85702         * m4/lcmessage.m4: Likewise.
85703         * m4/ls-mntd-fs.m4: Likewise.
85704         * m4/malloc.m4: Likewise.
85705         * m4/memcmp.m4: Likewise.
85706         * m4/putenv.m4: Likewise.
85707         * m4/realloc.m4: Likewise.
85708         * m4/st_mtim.m4: Likewise.
85709         * m4/strftime.m4: Likewise.
85710
85711 1999-01-16  Jim Meyering  <meyering@ascend.com>
85712
85713         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
85714         (ARGMATCH_DIE_DECL): Define.
85715
85716 1999-01-12  Jim Meyering  <meyering@ascend.com>
85717
85718         * m4/Makefile.am.in: Rewrite to avoid using fmt.
85719         Reported by Lars Hecking.
85720
85721 1999-01-10  Jim Meyering  <meyering@ascend.com>
85722
85723         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
85724         gross kludge.
85725         * m4/inttypes_h.m4: Likewise.
85726         * m4/lstat.m4: Likewise.
85727         * m4/malloc.m4: Likewise.
85728         * m4/readdir.m4: Likewise.
85729         * m4/realloc.m4: Likewise.
85730         * m4/st_dm_mode.m4: Likewise.
85731         * m4/stat.m4: Likewise.
85732         * m4/utimbuf.m4: Likewise.
85733         * m4/utimes.m4: Likewise.
85734
85735         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
85736         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
85737         comments in config.h.in are meaningful.
85738
85739         * m4/jm-macros.m4: Require autoconf-2.13 here.
85740
85741         * m4/regex.m4: By default, don't use the included regex.c on systems
85742         with glibc 2.  Suggestion from Uli Drepper.
85743
85744 1999-01-02  Jim Meyering  <meyering@ascend.com>
85745
85746         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
85747
85748 1998-12-18  Jim Meyering  <meyering@ascend.com>
85749
85750         * m4/Makefile.am.in (Makefile.am): Simplify rule.
85751         Based on a suggestion from Lars Hecking.
85752
85753 1998-11-16  Paul Eggert  <eggert@twinsun.com>
85754
85755         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
85756
85757 1998-11-16  Jim Meyering  <meyering@ascend.com>
85758
85759         * m4/lfs.m4: Double-quote the `uname...` expression.
85760
85761 1998-11-14  Jim Meyering  <meyering@ascend.com>
85762
85763         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
85764         * m4/stat.m4: Likewise.
85765
85766 1998-11-03  Jim Meyering  <meyering@ascend.com>
85767
85768         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
85769         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
85770
85771 1998-10-18  Jim Meyering  <meyering@ascend.com>
85772
85773         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
85774
85775 1998-10-17  Jim Meyering  <meyering@ascend.com>
85776
85777         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
85778         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
85779         calls for those previously hard-coded headers.  Instead, take a new
85780         parameter.
85781         (jm_CHECK_DECLARATIONS): Reflect interface change.
85782         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
85783         (jm_CHECK_DECL_LOCALTIME_R): New macro.
85784
85785         * m4/mktime.m4: Test for spring-forward gap before long-running test.
85786
85787 1998-10-14  Jim Meyering  <meyering@ascend.com>
85788
85789         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
85790         instead of "TZ=America/Vancouver".  From Paul Eggert.
85791
85792 1998-10-11  Jim Meyering  <meyering@ascend.com>
85793
85794         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
85795         This adds a test for a recently added compatibility fix for mktime.c.
85796         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
85797
85798 1998-09-27  Jim Meyering  <meyering@ascend.com>
85799
85800         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
85801
85802         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
85803         ../configure.in, including a change from Gordon Matzigkeit to allow
85804         cross-compiling for the Hurd.
85805
85806         * m4/glibc.m4: New file/macro to test for the GNU C Library
85807         versions 1 and 2.  From Gordon Matzigkeit.
85808         Indent.
85809
85810 1998-09-21  Jim Meyering  <meyering@ascend.com>
85811
85812         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
85813
85814 1998-08-18  Paul Eggert  <eggert@twinsun.com>
85815
85816         Port nanosecond-resolution times to UnixWare 2.1.2 and
85817         pedantic Solaris 2.6.
85818
85819         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
85820         AC_STRUCT_ST_MTIM.
85821         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
85822         Generate name of ns member, instead of just 1 or undef.
85823         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
85824
85825 1998-08-15  Jim Meyering  <meyering@ascend.com>
85826
85827         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
85828         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
85829         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
85830         instead of jm_TYPE_SSIZE_T.
85831
85832 1998-08-12  Jim Meyering  <meyering@ascend.com>
85833
85834         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
85835
85836 1998-08-02  Jim Meyering  <meyering@ascend.com>
85837
85838         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
85839         in acconfig.h manually.
85840
85841 1998-07-31  Paul Eggert  <eggert@twinsun.com>
85842
85843         * m4/st_mtim.m4: New file.
85844
85845 1998-07-28  Jim Meyering  <meyering@ascend.com>
85846
85847         * m4/utimes.m4: Undef stat.
85848
85849 1998-07-25  Jim Meyering  <meyering@ascend.com>
85850
85851         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
85852         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
85853
85854 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
85855
85856         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
85857         uid and gid actually remain unchanged.
85858
85859 1998-07-07  Jim Meyering  <meyering@ascend.com>
85860
85861         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
85862
85863 1998-07-04  Jim Meyering  <meyering@ascend.com>
85864
85865         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
85866         to prove that this macro can be used in packages without regex.c.
85867
85868 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
85869
85870         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
85871         is to be used.
85872
85873 1998-07-03  Jim Meyering  <meyering@ascend.com>
85874
85875         * m4/gettext.m4: Add -lintl if it's found to be necessary.
85876
85877         * m4/gettext.m4: New file -- from gettext-0.10.35.
85878         * m4/lcmessage.m4: Likewise.
85879         * m4/progtest.m4: Likewise.
85880
85881         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
85882         * m4/jm-macros.m4: Require the new macro.
85883
85884 1998-06-29  Jim Meyering  <meyering@ascend.com>
85885
85886         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
85887         for the definition of NGROUPS (used in a system header included
85888         by sys/mount.h).
85889
85890 1998-06-28  Jim Meyering  <meyering@ascend.com>
85891
85892         * m4/ls-mntd-fs.m4: New file.
85893         * m4/fstypename.m4: New file.
85894
85895         * m4/jm-macros.m4: Require the new macro.
85896         * m4/jm-glibc-io.m4: New file.
85897
85898 1998-05-19  Jim Meyering  <meyering@ascend.com>
85899
85900         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
85901         * m4/lchown.m4: New file.
85902
85903         * m4/Makefile.am.in: New file.
85904         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
85905
85906 1998-05-14  Jim Meyering  <meyering@ascend.com>
85907
85908         * m4/Makefile.am (EXTRA_DIST): Add them.
85909         * m4/jm-macros.m4: New file.
85910         * m4/utimbuf.m4: New file.
85911
85912 1998-05-12  Jim Meyering  <meyering@ascend.com>
85913
85914         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
85915
85916 1998-05-11  Jim Meyering  <meyering@ascend.com>
85917
85918         * m4/isc-posix.m4: New file.
85919
85920 1998-05-10  Jim Meyering  <meyering@ascend.com>
85921
85922         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
85923
85924 1998-05-09  Jim Meyering  <meyering@ascend.com>
85925
85926         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
85927         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
85928         with automake.
85929
85930         * m4/ssize_t.m4: New file.
85931         * m4/mktime.m4: Remove file -- the new automake has this now.
85932
85933 1998-04-26  Jim Meyering  <meyering@ascend.com>
85934
85935         * m4/assert.m4: New file.
85936         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
85937
85938 1998-04-05  Jim Meyering  <meyering@ascend.com>
85939
85940         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
85941         (jm_PREREQ): Use it here.
85942
85943 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
85944
85945         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
85946         in acconfig.h.
85947
85948 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
85949
85950         * m4/prereq.m4: New file.
85951         * m4/error.m4: New file.
85952         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
85953
85954 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
85955
85956         * m4/getline.m4: Don't set am_cv_func_working_getline before the
85957         cache-check for the same variable -- that defeated the purpose of
85958         the test; the test program was never run.  This was a problem only
85959         on systems with losing getline functions -- HP-UX 10.20 is one.
85960         Reported by Bjorn Helgaas.
85961
85962 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
85963
85964         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
85965
85966 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
85967
85968         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
85969
85970         * m4/const.m4: New file.  Use an initializer in this declaration
85971         typedef int charset[2]; const charset x;
85972         Reported by Bob Glickstein.
85973
85974 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
85975
85976         * m4/chown.m4: Fix reversed types on -1 args to chown.
85977         From Kaveh Ghazi.
85978
85979 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
85980
85981         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
85982         Add lseek and memchr.
85983
85984         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
85985         T.E.Dickey <dickey@clark.net> said that some older preprocessors
85986         have a 20-character limit on names.
85987
85988 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
85989
85990         * m4/inttypes_h.m4: New file.
85991         * m4/uintmax_t.m4: New file.
85992         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
85993
85994
85995         -----
85996
85997         Local Variables:
85998         coding: utf-8
85999         End:
86000
86001         Copyright (C) 1997-2011 Free Software Foundation, Inc.
86002
86003         Copying and distribution of this file, with or without
86004         modification, are permitted provided the copyright notice
86005         and this notice are preserved.